From 00ba2d570e25105c9d2701511a2e6f3cce0e7fb5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 8 Nov 2024 01:19:18 +0000 Subject: [PATCH 1/2] Update dependency ruby to v3 --- .rubocop.yml | 2 +- .ruby-version | 2 +- README.md | 2 +- terrafile.gemspec | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 7c12e42..8aa86be 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,7 +1,7 @@ inherit_from: .rubocop_todo.yml AllCops: - TargetRubyVersion: 2.7.6 + TargetRubyVersion: 3.1.6' # Exclude: Bundler/OrderedGems: diff --git a/.ruby-version b/.ruby-version index 6a81b4c..9c25013 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.7.8 +3.3.6 diff --git a/README.md b/README.md index e8ca96e..d357727 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ to install the modules listed in `Terrafile` into `vendor/terraform_modules`. ## Dependencies - git -- Ruby (>= 2.7.6) +- Ruby (>= 3.1.6) ## Development diff --git a/terrafile.gemspec b/terrafile.gemspec index 8e1b624..5d2b22f 100644 --- a/terrafile.gemspec +++ b/terrafile.gemspec @@ -7,7 +7,7 @@ Gem::Specification.new do |spec| spec.name = 'terrafile' spec.version = Terrafile::VERSION spec.platform = Gem::Platform::RUBY - spec.required_ruby_version = '>= 2.7.6' + spec.required_ruby_version = '>= 3.1.6' spec.authors = ['dxw'] spec.email = ['systems@dxw.com'] spec.summary = 'Installs the modules listed in Terrafile' @@ -33,6 +33,6 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'pry-byebug', '~> 3.6' spec.add_development_dependency 'rake', '~> 13.0' spec.add_development_dependency 'rspec', '~> 3.8' - spec.add_development_dependency 'rubocop', '~> 0.58' - spec.add_development_dependency 'simplecov', '~> 0.16' + spec.add_development_dependency 'rubocop', '~> 1.68' + spec.add_development_dependency 'simplecov', '~> 0.1' end From e542a96c03e685c29f1d2132b494df30a75a3c27 Mon Sep 17 00:00:00 2001 From: "joseph@dxw.com" Date: Fri, 15 Nov 2024 12:38:22 +0000 Subject: [PATCH 2/2] Update Aruba gem The `run_simple` method has been replaced by `run_command_and_stop` since v0.14.8. See: https://github.com/cucumber/aruba/blob/e069bacedaea8cad4a98c46ddae1bc054a3de48e/CHANGELOG.md?plain=1#L414 --- features/step_definitions/terrafile_steps.rb | 2 +- terrafile.gemspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/step_definitions/terrafile_steps.rb b/features/step_definitions/terrafile_steps.rb index 086dd7c..b974f52 100644 --- a/features/step_definitions/terrafile_steps.rb +++ b/features/step_definitions/terrafile_steps.rb @@ -12,7 +12,7 @@ end When('I run the _terrafile_ command') do - run_simple('terrafile', fail_on_error: false) + run_command_and_stop('terrafile', fail_on_error: false) end Then('I should see that a _modules_ directory will be created') do diff --git a/terrafile.gemspec b/terrafile.gemspec index 5d2b22f..fc4b54b 100644 --- a/terrafile.gemspec +++ b/terrafile.gemspec @@ -28,7 +28,7 @@ Gem::Specification.new do |spec| spec.require_paths = ['lib'] spec.executables = ['terrafile'] - spec.add_development_dependency 'aruba', '~> 0.14' + spec.add_development_dependency 'aruba', '~> 2.2' spec.add_development_dependency 'bundler', '>= 2.1.0' spec.add_development_dependency 'pry-byebug', '~> 3.6' spec.add_development_dependency 'rake', '~> 13.0'