diff --git a/.bundle/config b/.bundle/config new file mode 100644 index 0000000..e5eb0a7 --- /dev/null +++ b/.bundle/config @@ -0,0 +1,2 @@ +--- +BUNDLE_WITHOUT: "typing" diff --git a/.github/workflows/rspec.yml b/.github/workflows/rspec.yml index d9b97eb..6792907 100644 --- a/.github/workflows/rspec.yml +++ b/.github/workflows/rspec.yml @@ -19,17 +19,7 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby-version }} - - - name: Cache gems - uses: actions/cache@v3 - with: - path: vendor/bundle - key: ${{ runner.os }}-rspec-${{ matrix.ruby-version }}-${{ hashFiles('Gemfile.lock') }} - restore-keys: - ${{ runner.os }}-rspec-${{ matrix.ruby-version }}- - - - name: Install gems - run: bundle install --jobs 4 --retry 3 + bundler-cache: true - name: Run RSpec run: bundle exec rspec diff --git a/Steepfile b/Steepfile index a9bffad..7f4e0c0 100644 --- a/Steepfile +++ b/Steepfile @@ -7,11 +7,3 @@ target :lib do library "pathname" library "date" end - -target :test do - signature "sig" - check "test" - configure_code_diagnostics(D::Ruby.default) - library "pathname" - library "date" -end diff --git a/sig/environment_helpers.rbs b/sig/environment_helpers.rbs index c8059af..26b8308 100644 --- a/sig/environment_helpers.rbs +++ b/sig/environment_helpers.rbs @@ -36,8 +36,7 @@ module EnvironmentHelpers module AccessHelpers # (Actually provided by ENV, which these are all extended onto) - def fetch: (String name) -> String? - | (String name, String? default) -> String? + def fetch: (String name, ?String? default) -> String? private def fetch_value: (String name, required: bool) -> String? private def check_default_type: (String | Symbol context, untyped value, *Class types) -> void