From da9c57399a89f128f30fd864a0477a48e9fc6d98 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 22:31:00 +0000 Subject: [PATCH 1/2] Bump rubocop from 1.64.0 to 1.66.1 Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.64.0 to 1.66.1. - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop/compare/v1.64.0...v1.66.1) --- updated-dependencies: - dependency-name: rubocop dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile | 2 +- Gemfile.lock | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Gemfile b/Gemfile index 08a0fb7..7710914 100644 --- a/Gemfile +++ b/Gemfile @@ -10,7 +10,7 @@ group :development, :test do gem 'pry-byebug', '~> 3.6' gem 'rake', '~> 13.0' gem 'rspec', '~> 3.13' - gem 'rubocop', '~> 1.64' + gem 'rubocop', '~> 1.66' gem 'rubocop-rspec', '~> 3.1' gem 'timecop', '~> 0.9' gem 'vcr', '~> 5.0' diff --git a/Gemfile.lock b/Gemfile.lock index 57adcc3..e97582e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -174,15 +174,14 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) rspec-support (3.13.0) - rubocop (1.64.0) + rubocop (1.66.1) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.8, < 3.0) - rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.31.1, < 2.0) + regexp_parser (>= 2.4, < 3.0) + rubocop-ast (>= 1.32.2, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) rubocop-ast (1.32.3) @@ -241,7 +240,7 @@ DEPENDENCIES pushmi_pullyu! rake (~> 13.0) rspec (~> 3.13) - rubocop (~> 1.64) + rubocop (~> 1.66) rubocop-rspec (~> 3.1) timecop (~> 0.9) vcr (~> 5.0) From 1d74e881585ac66950ae8597987f1fbdaf9e4fe6 Mon Sep 17 00:00:00 2001 From: Tricia Jenkins Date: Mon, 7 Oct 2024 16:39:19 -0600 Subject: [PATCH 2/2] Gemspec/AddRuntimeDependency Use add_dependency instead of add_runtime_dependency. (https://rubystyle.guide#add_dependency_vs_add_runtime_dependency, https://github.com/rubygems/rubygems/issues/7799#issuecomment-2192720316) --- CHANGELOG.md | 3 +++ pushmi_pullyu.gemspec | 24 ++++++++++++------------ 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6807be9..198d078 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,9 @@ and releases in PushmiPullyu adheres to [Semantic Versioning](https://semver.org ### Fixed - Use `File.open` with a block for simple exception handling and ensuring files are closed [#475](https://github.com/ualbertalib/pushmi_pullyu/issues/475) +### Chores + - Use add_dependency instead of add_runtime_dependency. [PR#473](https://github.com/ualbertalib/pushmi_pullyu/pull/473) + ## [2.1.3] - Refresh authentication token after it expires [#311](https://github.com/ualbertalib/pushmi_pullyu/issues/311) diff --git a/pushmi_pullyu.gemspec b/pushmi_pullyu.gemspec index aa3bc16..6c83806 100644 --- a/pushmi_pullyu.gemspec +++ b/pushmi_pullyu.gemspec @@ -21,18 +21,18 @@ Gem::Specification.new do |spec| spec.required_ruby_version = '>= 2.7' - spec.add_runtime_dependency 'activesupport', '>= 5', '< 8' - spec.add_runtime_dependency 'bagit', '~> 0.4' - spec.add_runtime_dependency 'connection_pool', '~> 2.2' - spec.add_runtime_dependency 'daemons', '~> 1.2', '>= 1.2.4' - spec.add_runtime_dependency 'minitar', '>= 0.7', '< 2.0' - spec.add_runtime_dependency 'openstack', '~> 3.3', '>= 3.3.10' - spec.add_runtime_dependency 'rdf', '>= 1.99', '< 4.0' - spec.add_runtime_dependency 'rdf-n3', '>= 1.99', '< 4.0' - spec.add_runtime_dependency 'redis', '>= 3.3', '< 6.0' - spec.add_runtime_dependency 'rest-client', '>= 1.8', '< 3.0' - spec.add_runtime_dependency 'rollbar', '>= 2.18', '< 4.0' - spec.add_runtime_dependency 'uuid', '~> 2.3.9' + spec.add_dependency 'activesupport', '>= 5', '< 8' + spec.add_dependency 'bagit', '~> 0.4' + spec.add_dependency 'connection_pool', '~> 2.2' + spec.add_dependency 'daemons', '~> 1.2', '>= 1.2.4' + spec.add_dependency 'minitar', '>= 0.7', '< 2.0' + spec.add_dependency 'openstack', '~> 3.3', '>= 3.3.10' + spec.add_dependency 'rdf', '>= 1.99', '< 4.0' + spec.add_dependency 'rdf-n3', '>= 1.99', '< 4.0' + spec.add_dependency 'redis', '>= 3.3', '< 6.0' + spec.add_dependency 'rest-client', '>= 1.8', '< 3.0' + spec.add_dependency 'rollbar', '>= 2.18', '< 4.0' + spec.add_dependency 'uuid', '~> 2.3.9' spec.metadata = { 'rubygems_mfa_required' => 'true'