From b3ac277778427cbda5374fdab4b12f606e6ecb1d Mon Sep 17 00:00:00 2001 From: Samuel O'Daniels <35481602+Samuelodan@users.noreply.github.com> Date: Tue, 22 Sep 2026 11:42:12 +0100 Subject: [PATCH] Bump deps, enable deprecation warnings, and fix related issues --- .github/workflows/main.yml | 3 ++ .rubocop.yml | 2 +- .ruby-version | 2 +- Gemfile.lock | 88 +++++++++++++++++++------------------- spec/spec_helper.rb | 1 + src/load_dotenv.rb | 4 +- 6 files changed, 51 insertions(+), 49 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 510259d..7626141 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,6 +11,9 @@ jobs: build: runs-on: ubuntu-latest name: Rspec and Rubocop + strategy: + matrix: + ruby: ['3.4', '4.0'] timeout-minutes: 3 steps: - uses: actions/checkout@v3 diff --git a/.rubocop.yml b/.rubocop.yml index fdde201..2bc38f4 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,5 @@ AllCops: - TargetRubyVersion: 3.2 + TargetRubyVersion: 4.0 NewCops: enable inherit_gem: diff --git a/.ruby-version b/.ruby-version index 2aa5131..43beb40 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.4.7 +4.0.7 diff --git a/Gemfile.lock b/Gemfile.lock index a1208b2..d7e6a02 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -9,33 +9,33 @@ GEM remote: https://rubygems.org/ specs: ast (2.4.3) - bigdecimal (4.0.1) - byebug (12.0.0) + bigdecimal (4.1.3) + byebug (13.0.0) + reline (>= 0.6.0) coderay (1.1.3) diff-lcs (1.6.2) - docile (1.4.1) dotenv (3.2.0) - ffi (1.17.3-x86_64-linux-gnu) - foobara (0.4.1) + ffi (1.17.4-arm64-darwin) + ffi (1.17.4-x86_64-linux-gnu) + foobara (0.6.4) bigdecimal foobara-lru-cache (< 2.0.0) foobara-util (< 2.0.0) inheritable-thread-vars (< 2.0.0) foobara-lru-cache (1.0.0) - foobara-rubocop-rules (1.0.10) + foobara-rubocop-rules (1.1.1) rubocop rubocop-rspec - foobara-util (1.0.7) + foobara-util (1.0.8) formatador (1.2.3) reline - guard (2.19.1) + guard (2.20.2) formatador (>= 0.2.4) listen (>= 2.7, < 4.0) logger (~> 1.6) lumberjack (>= 1.0.12, < 2.0) nenv (~> 0.1) notiffany (~> 0.0) - ostruct (~> 0.6) pry (>= 0.13.0) shellany (~> 0.0) thor (>= 0.18.1) @@ -45,11 +45,12 @@ GEM guard-compat (~> 1.1) rspec (>= 2.99.0, < 4.0) inheritable-thread-vars (0.0.3) - io-console (0.8.2) - json (2.18.0) - language_server-protocol (3.17.0.5) + io-console (0.9.4) + json (3.0.2) + language_server-protocol (3.17.0.6) lint_roller (1.1.0) - listen (3.9.0) + listen (3.10.0) + logger rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) logger (1.7.0) @@ -59,26 +60,26 @@ GEM notiffany (0.1.3) nenv (~> 0.1) shellany (~> 0.0) - ostruct (0.6.3) - parallel (1.27.0) - parser (3.3.10.0) + parallel (2.2.0) + parser (3.3.12.0) ast (~> 2.4.1) racc - prism (1.7.0) - pry (0.15.2) + prism (1.9.0) + pry (0.16.0) coderay (~> 1.1) method_source (~> 1.0) - pry-byebug (3.11.0) - byebug (~> 12.0) - pry (>= 0.13, < 0.16) + reline (>= 0.6.0) + pry-byebug (3.12.0) + byebug (~> 13.0) + pry (>= 0.13, < 0.17) racc (1.8.1) rainbow (3.1.1) - rake (13.3.1) + rake (13.4.2) rb-fsevent (0.11.2) rb-inotify (0.11.1) ffi (~> 1.0) - regexp_parser (2.11.3) - reline (0.6.3) + regexp_parser (2.13.0) + reline (0.7.0) io-console (~> 0.5) rspec (3.13.2) rspec-core (~> 3.13.0) @@ -92,44 +93,41 @@ GEM rspec-its (2.0.0) rspec-core (>= 3.13.0) rspec-expectations (>= 3.13.0) - rspec-mocks (3.13.7) + rspec-mocks (3.13.8) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) - rspec-support (3.13.6) - rubocop (1.82.1) - json (~> 2.3) + rspec-support (3.13.7) + rubocop (1.91.0) + json (>= 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) - parallel (~> 1.10) + parallel (>= 1.10) parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 2.9.3, < 3.0) - rubocop-ast (>= 1.48.0, < 2.0) + rubocop-ast (>= 1.49.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 4.0) - rubocop-ast (1.49.0) + rubocop-ast (1.50.0) parser (>= 3.3.7.2) prism (~> 1.7) rubocop-rake (0.7.1) lint_roller (~> 1.1) rubocop (>= 1.72.1) - rubocop-rspec (3.8.0) + rubocop-rspec (3.10.2) lint_roller (~> 1.1) - rubocop (~> 1.81) + regexp_parser (>= 2.0) + rubocop (~> 1.86, >= 1.86.2) ruby-progressbar (1.13.0) shellany (0.0.1) - simplecov (0.22.0) - docile (~> 1.1) - simplecov-html (~> 0.11) - simplecov_json_formatter (~> 0.1) - simplecov-html (0.13.2) - simplecov_json_formatter (0.1.4) - thor (1.4.0) - unicode-display_width (3.2.0) - unicode-emoji (~> 4.1) - unicode-emoji (4.2.0) + simplecov (1.3.0) + thor (1.5.0) + unicode-display_width (3.3.0) + unicode-emoji (~> 4.3) + unicode-emoji (4.3.0) PLATFORMS + arm64-darwin-25 x86_64-linux DEPENDENCIES @@ -146,7 +144,7 @@ DEPENDENCIES simplecov RUBY VERSION - ruby 3.4.1p0 + ruby 3.4.1p0 BUNDLED WITH - 2.4.14 + 4.0.21 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index b6f3436..17396ae 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -4,6 +4,7 @@ require "pry-byebug" require "rspec/its" require "simplecov" +Warning[:deprecated] = true SimpleCov.start do # enable_coverage :branch diff --git a/src/load_dotenv.rb b/src/load_dotenv.rb index d979b88..cd0da1e 100644 --- a/src/load_dotenv.rb +++ b/src/load_dotenv.rb @@ -13,9 +13,9 @@ def run!(...) # Might be nice if we could grab the directory of the calling code instead of using Dir.pwd but not sure def initialize(env: ENV["DOTENV_ENV"] || ENV["FOOBARA_ENV"] || "development", dir: Dir.pwd) unless env - # :nocov: + # simplecov:disable raise ArgumentError, "env must be provided" - # :nocov: + # simplecov:enable end self.env = env.to_s