From abc683954ba12b8bb0de0cf7499d80a54aee0a78 Mon Sep 17 00:00:00 2001 From: Nicolas Rodriguez Date: Tue, 22 Oct 2024 22:24:15 +0200 Subject: [PATCH 1/2] Coding style: fix Style/RedundantFreeze offenses --- lib/appraisal/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/appraisal/version.rb b/lib/appraisal/version.rb index 71f6c23e..716dc70e 100644 --- a/lib/appraisal/version.rb +++ b/lib/appraisal/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Appraisal - VERSION = "2.5.0".freeze + VERSION = "2.5.0" end From 7b9a75fc62e3fa537c1b4517565850ded64f5d81 Mon Sep 17 00:00:00 2001 From: Nicolas Rodriguez Date: Tue, 22 Oct 2024 22:27:33 +0200 Subject: [PATCH 2/2] Coding style: fix Style/LineEndConcatenation offenses --- lib/appraisal/appraisal.rb | 4 ++-- lib/appraisal/cli.rb | 6 +++--- lib/appraisal/git.rb | 4 ++-- lib/appraisal/path.rb | 4 ++-- lib/appraisal/task.rb | 16 ++++++++-------- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/lib/appraisal/appraisal.rb b/lib/appraisal/appraisal.rb index 86f2c3eb..c7fa16cf 100644 --- a/lib/appraisal/appraisal.rb +++ b/lib/appraisal/appraisal.rb @@ -161,8 +161,8 @@ def bundle_options(options) if Utils.support_parallel_installation? options_strings << "--jobs=#{jobs}" else - warn "Your current version of Bundler does not support parallel installation. Please " + - "upgrade Bundler to version >= 1.4.0, or invoke `appraisal` without `--jobs` option." + warn "Your current version of Bundler does not support parallel installation. Please " \ + "upgrade Bundler to version >= 1.4.0, or invoke `appraisal` without `--jobs` option." end end diff --git a/lib/appraisal/cli.rb b/lib/appraisal/cli.rb index 3c8a56f1..39bef305 100644 --- a/lib/appraisal/cli.rb +++ b/lib/appraisal/cli.rb @@ -54,11 +54,11 @@ def strip_heredoc(string) method_option "retry", type: :numeric, default: 1, desc: "Retry network and git requests that have failed" method_option "without", banner: "GROUP_NAMES", - desc: "A space-separated list of groups referencing gems to skip " + - "during installation. Bundler will remember this option." + desc: "A space-separated list of groups referencing gems to skip " \ + "during installation. Bundler will remember this option." method_option "full-index", type: :boolean, desc: "Run bundle install with the " \ - "full-index argument." + "full-index argument." method_option "path", type: :string, desc: "Install gems in the specified directory. " \ "Bundler will remember this option." diff --git a/lib/appraisal/git.rb b/lib/appraisal/git.rb index 5849cca1..791429df 100644 --- a/lib/appraisal/git.rb +++ b/lib/appraisal/git.rb @@ -15,7 +15,7 @@ def to_s if @options.empty? "git #{Utils.prefix_path(@source).inspect} do\n#{indent(super)}\nend" else - "git #{Utils.prefix_path(@source).inspect}, #{Utils.format_string(@options)} do\n" + + "git #{Utils.prefix_path(@source).inspect}, #{Utils.format_string(@options)} do\n" \ "#{indent(super)}\nend" end end @@ -25,7 +25,7 @@ def for_dup if @options.empty? "git #{@source.inspect} do\n#{indent(super)}\nend" else - "git #{@source.inspect}, #{Utils.format_string(@options)} do\n" + + "git #{@source.inspect}, #{Utils.format_string(@options)} do\n" \ "#{indent(super)}\nend" end end diff --git a/lib/appraisal/path.rb b/lib/appraisal/path.rb index f06d2737..c33b60c6 100644 --- a/lib/appraisal/path.rb +++ b/lib/appraisal/path.rb @@ -15,7 +15,7 @@ def to_s if @options.empty? "path #{Utils.prefix_path(@source).inspect} do\n#{indent(super)}\nend" else - "path #{Utils.prefix_path(@source).inspect}, #{Utils.format_string(@options)} do\n" + + "path #{Utils.prefix_path(@source).inspect}, #{Utils.format_string(@options)} do\n" \ "#{indent(super)}\nend" end end @@ -25,7 +25,7 @@ def for_dup if @options.empty? "path #{@source.inspect} do\n#{indent(super)}\nend" else - "path #{@source.inspect}, #{Utils.format_string(@options)} do\n" + + "path #{@source.inspect}, #{Utils.format_string(@options)} do\n" \ "#{indent(super)}\nend" end end diff --git a/lib/appraisal/task.rb b/lib/appraisal/task.rb index 5c649925..e3c91f6b 100644 --- a/lib/appraisal/task.rb +++ b/lib/appraisal/task.rb @@ -11,22 +11,22 @@ def initialize namespace :appraisal do desc "DEPRECATED: Generate a Gemfile for each appraisal" task :gemfiles do - warn "`rake appraisal:gemfile` task is deprecated and will be removed soon. " + - "Please use `appraisal generate`." + warn "`rake appraisal:gemfile` task is deprecated and will be removed soon. " \ + "Please use `appraisal generate`." exec "bundle exec appraisal generate" end desc "DEPRECATED: Resolve and install dependencies for each appraisal" task :install do - warn "`rake appraisal:install` task is deprecated and will be removed soon. " + - "Please use `appraisal install`." + warn "`rake appraisal:install` task is deprecated and will be removed soon. " \ + "Please use `appraisal install`." exec "bundle exec appraisal install" end desc "DEPRECATED: Remove all generated gemfiles from gemfiles/ folder" task :cleanup do - warn "`rake appraisal:cleanup` task is deprecated and will be removed soon. " + - "Please use `appraisal clean`." + warn "`rake appraisal:cleanup` task is deprecated and will be removed soon. " \ + "Please use `appraisal clean`." exec "bundle exec appraisal clean" end @@ -35,8 +35,8 @@ def initialize desc "DEPRECATED: Run the given task for appraisal #{appraisal.name}" task appraisal.name do ARGV.shift - warn "`rake appraisal:#{appraisal.name}` task is deprecated and will be removed soon. " + - "Please use `appraisal #{appraisal.name} rake #{ARGV.join(' ')}`." + warn "`rake appraisal:#{appraisal.name}` task is deprecated and will be removed soon. " \ + "Please use `appraisal #{appraisal.name} rake #{ARGV.join(' ')}`." exec "bundle exec appraisal #{appraisal.name} rake #{ARGV.join(' ')}" end end