From 419ad0384adf80817544b22e463e395ee17e2e53 Mon Sep 17 00:00:00 2001 From: Kostiantyn Kostiuk Date: Thu, 16 May 2024 12:46:34 +0300 Subject: [PATCH 1/3] add tapioca ci Signed-off-by: Kostiantyn Kostiuk --- .github/workflows/dependabot-tapioca.yml | 48 ++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/dependabot-tapioca.yml diff --git a/.github/workflows/dependabot-tapioca.yml b/.github/workflows/dependabot-tapioca.yml new file mode 100644 index 0000000..da01586 --- /dev/null +++ b/.github/workflows/dependabot-tapioca.yml @@ -0,0 +1,48 @@ +name: Dependabot Tapioca updates +on: + pull_request: + types: [opened, synchronize] + +permissions: + contents: write + pull-requests: read +jobs: + build: + if: ${{ github.actor == 'dependabot[bot]' }} + runs-on: ubuntu-latest + steps: + - name: Fetch Dependabot metadata + id: dependabot-metadata + uses: dependabot/fetch-metadata@v1 + - uses: actions/checkout@v4 + if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'bundler' }} + with: + ref: ${{ github.event.pull_request.head.sha }} + + - name: Update Ubuntu package repository + if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'bundler' }} + run: sudo apt-get update + - name: Setup sqlite-devel + if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'bundler' }} + run: sudo apt-get -y install libsqlite3-dev + - name: Setup libcurl-devel + if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'bundler' }} + run: sudo apt-get -y install libcurl4 libcurl3-gnutls libcurl4-openssl-dev + + - uses: ruby/setup-ruby@v1 + if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'bundler' }} + with: + ruby-version: '3.1.2' + bundler-cache: true + - name: Tapioca update + if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'bundler' }} + run: bundle exec tapioca gem + - name: git update + if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'bundler' }} + run: | + git config --global user.name 'Daynix GitHub Actions' + git config --global user.email 'gha@daynix.com' + git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY + git add sorbet/rbi/gems + git commit -m "updated tapioca definitions" sorbet/rbi/gems + git push -u origin HEAD:${{ github.event.pull_request.head.ref }} From 9bbdc6ec57bfd4e0a780f7a89555e842b4082b54 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 16 May 2024 09:48:32 +0000 Subject: [PATCH 2/3] build(deps): bump dotenv from 3.1.0 to 3.1.2 Bumps [dotenv](https://github.com/bkeepers/dotenv) from 3.1.0 to 3.1.2. - [Release notes](https://github.com/bkeepers/dotenv/releases) - [Changelog](https://github.com/bkeepers/dotenv/blob/main/Changelog.md) - [Commits](https://github.com/bkeepers/dotenv/compare/v3.1.0...v3.1.2) --- updated-dependencies: - dependency-name: dotenv dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 3ee93ce..cfc3114 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -34,7 +34,7 @@ GEM connection_pool (2.4.1) curb (1.0.5) diff-lcs (1.5.1) - dotenv (3.1.0) + dotenv (3.1.2) drb (2.2.1) dropbox_api (0.1.21) faraday (< 3.0) From 4734aa21f75e43cf325eb38e35e452c752cbc2fe Mon Sep 17 00:00:00 2001 From: Daynix GitHub Actions Date: Thu, 16 May 2024 09:50:01 +0000 Subject: [PATCH 3/3] updated tapioca definitions --- .../{dotenv@3.1.0.rbi => dotenv@3.1.2.rbi} | 37 ++++++++++--------- 1 file changed, 20 insertions(+), 17 deletions(-) rename sorbet/rbi/gems/{dotenv@3.1.0.rbi => dotenv@3.1.2.rbi} (91%) diff --git a/sorbet/rbi/gems/dotenv@3.1.0.rbi b/sorbet/rbi/gems/dotenv@3.1.2.rbi similarity index 91% rename from sorbet/rbi/gems/dotenv@3.1.0.rbi rename to sorbet/rbi/gems/dotenv@3.1.2.rbi index 114f1d3..5caa5aa 100644 --- a/sorbet/rbi/gems/dotenv@3.1.0.rbi +++ b/sorbet/rbi/gems/dotenv@3.1.2.rbi @@ -6,30 +6,30 @@ # Shim to load environment variables from `.env files into `ENV`. # -# source://dotenv//lib/dotenv/substitutions/variable.rb#3 +# source://dotenv//lib/dotenv/version.rb#1 module Dotenv extend ::Dotenv # Returns the value of attribute instrumenter. # - # source://dotenv//lib/dotenv.rb#14 + # source://dotenv//lib/dotenv.rb#15 def instrumenter; end # Sets the attribute instrumenter # # @param value the value to set the attribute instrumenter to. # - # source://dotenv//lib/dotenv.rb#14 + # source://dotenv//lib/dotenv.rb#15 def instrumenter=(_arg0); end # Loads environment variables from one or more `.env` files. See `#parse` for more details. # - # source://dotenv//lib/dotenv.rb#17 + # source://dotenv//lib/dotenv.rb#18 def load(*filenames, overwrite: T.unsafe(nil), ignore: T.unsafe(nil)); end # Same as `#load`, but raises Errno::ENOENT if any files don't exist # - # source://dotenv//lib/dotenv.rb#26 + # source://dotenv//lib/dotenv.rb#27 def load!(*filenames); end # Modify `ENV` for the block and restore it to its previous state afterwards. @@ -39,27 +39,27 @@ module Dotenv # # @param env [Hash] Hash of keys and values to set in `ENV` # - # source://dotenv//lib/dotenv.rb#112 + # source://dotenv//lib/dotenv.rb#116 def modify(env = T.unsafe(nil), &block); end # same as `#load`, but will overwrite existing values in `ENV` # - # source://dotenv//lib/dotenv.rb#31 + # source://dotenv//lib/dotenv.rb#32 def overload(*filenames); end # same as `#overwrite`, but raises Errno::ENOENT if any files don't exist # - # source://dotenv//lib/dotenv.rb#37 + # source://dotenv//lib/dotenv.rb#38 def overload!(*filenames); end # same as `#load`, but will overwrite existing values in `ENV` # - # source://dotenv//lib/dotenv.rb#31 + # source://dotenv//lib/dotenv.rb#32 def overwrite(*filenames); end # same as `#overwrite`, but raises Errno::ENOENT if any files don't exist # - # source://dotenv//lib/dotenv.rb#37 + # source://dotenv//lib/dotenv.rb#38 def overwrite!(*filenames); end # Parses the given files, yielding for each file if a block is given. @@ -70,12 +70,12 @@ module Dotenv # @param block [Proc] Block to yield for each parsed `Dotenv::Environment` # @return [Hash] parsed key/value pairs # - # source://dotenv//lib/dotenv.rb#49 + # source://dotenv//lib/dotenv.rb#50 def parse(*filenames, overwrite: T.unsafe(nil), ignore: T.unsafe(nil), &block); end # @raise [MissingKeys] # - # source://dotenv//lib/dotenv.rb#122 + # source://dotenv//lib/dotenv.rb#126 def require_keys(*keys); end # Restore `ENV` to a given state @@ -83,12 +83,12 @@ module Dotenv # @param env [Hash] Hash of keys and values to restore, defaults to the last saved state # @param safe [Boolean] Is it safe to modify `ENV`? Defaults to `true` in the main thread, otherwise raises an error. # - # source://dotenv//lib/dotenv.rb#76 + # source://dotenv//lib/dotenv.rb#77 def restore(env = T.unsafe(nil), safe: T.unsafe(nil)); end # Save the current `ENV` to be restored later # - # source://dotenv//lib/dotenv.rb#66 + # source://dotenv//lib/dotenv.rb#67 def save; end # Update `ENV` with the given hash of keys and values @@ -96,12 +96,12 @@ module Dotenv # @param env [Hash] Hash of keys and values to set in `ENV` # @param overwrite [Boolean] Overwrite existing `ENV` values # - # source://dotenv//lib/dotenv.rb#94 + # source://dotenv//lib/dotenv.rb#98 def update(env = T.unsafe(nil), overwrite: T.unsafe(nil)); end private - # source://dotenv//lib/dotenv.rb#130 + # source://dotenv//lib/dotenv.rb#134 def instrument(name, payload = T.unsafe(nil), &block); end end @@ -263,7 +263,7 @@ Dotenv::Parser::LINE = T.let(T.unsafe(nil), Regexp) # An internal monitor to synchronize access to ENV in multi-threaded environments. # -# source://dotenv//lib/dotenv.rb#11 +# source://dotenv//lib/dotenv.rb#12 Dotenv::SEMAPHORE = T.let(T.unsafe(nil), Monitor) # source://dotenv//lib/dotenv/substitutions/variable.rb#4 @@ -298,3 +298,6 @@ module Dotenv::Substitutions::Variable def substitute(match, variable, env); end end end + +# source://dotenv//lib/dotenv/version.rb#2 +Dotenv::VERSION = T.let(T.unsafe(nil), String)