diff options
author | Erick Sasse <esasse@gmail.com> | 2015-07-17 22:56:33 -0300 |
---|---|---|
committer | Erick Sasse <esasse@gmail.com> | 2015-07-19 11:50:50 -0300 |
commit | ebeed8f34dc0e9cea0581224c53fd5feaf9d8b77 (patch) | |
tree | d705d61a22bfa1b104bc124898f2730672b88fda | |
parent | 48d2dc5aa17b3f81905daad87e0b79131dd0d2b8 (diff) | |
download | bundler-ebeed8f34dc0e9cea0581224c53fd5feaf9d8b77.tar.gz |
Fix Style/SingleSpaceBeforeFirstArg
-rw-r--r-- | .rubocop_todo.yml | 5 | ||||
-rw-r--r-- | lib/bundler/cli/check.rb | 2 | ||||
-rw-r--r-- | lib/bundler/cli/exec.rb | 2 | ||||
-rw-r--r-- | lib/bundler/definition.rb | 2 | ||||
-rw-r--r-- | lib/bundler/index.rb | 2 | ||||
-rw-r--r-- | lib/bundler/source/path.rb | 4 | ||||
-rw-r--r-- | spec/install/gems/platform_spec.rb | 4 | ||||
-rw-r--r-- | spec/update/git_spec.rb | 4 |
8 files changed, 10 insertions, 15 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 38ec24380d..f682174c17 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -417,11 +417,6 @@ Style/SingleLineBlockParams: Style/SingleLineMethods: Enabled: false -# Offense count: 10 -# Cop supports --auto-correct. -Style/SingleSpaceBeforeFirstArg: - Enabled: false - # Offense count: 7 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. diff --git a/lib/bundler/cli/check.rb b/lib/bundler/cli/check.rb index 996f5e9dae..75a49dc5ad 100644 --- a/lib/bundler/cli/check.rb +++ b/lib/bundler/cli/check.rb @@ -16,7 +16,7 @@ module Bundler not_installed = definition.missing_specs rescue GemNotFound, VersionConflict Bundler.ui.error "Bundler can't satisfy your Gemfile's dependencies." - Bundler.ui.warn "Install missing gems with `bundle install`." + Bundler.ui.warn "Install missing gems with `bundle install`." exit 1 end diff --git a/lib/bundler/cli/exec.rb b/lib/bundler/cli/exec.rb index d7c3267206..283a99be4b 100644 --- a/lib/bundler/cli/exec.rb +++ b/lib/bundler/cli/exec.rb @@ -40,7 +40,7 @@ module Bundler rescue Errno::ENOENT Bundler.ui = ui Bundler.ui.error "bundler: command not found: #{cmd}" - Bundler.ui.warn "Install missing gem executables with `bundle install`" + Bundler.ui.warn "Install missing gem executables with `bundle install`" exit 127 rescue ArgumentError Bundler.ui = ui diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index 3abbd3c89c..ac5ce934af 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -410,7 +410,7 @@ module Bundler end attr_reader :sources - private :sources + private :sources private diff --git a/lib/bundler/index.rb b/lib/bundler/index.rb index d0e3ae47a3..7a4b9ba4e9 100644 --- a/lib/bundler/index.rb +++ b/lib/bundler/index.rb @@ -11,7 +11,7 @@ module Bundler end attr_reader :specs, :all_specs, :sources - protected :specs, :all_specs + protected :specs, :all_specs def initialize @sources = [] diff --git a/lib/bundler/source/path.rb b/lib/bundler/source/path.rb index 57f8bc0190..a1d821d120 100644 --- a/lib/bundler/source/path.rb +++ b/lib/bundler/source/path.rb @@ -3,8 +3,8 @@ module Bundler class Path < Source autoload :Installer, "bundler/source/path/installer" - attr_reader :path, :options - attr_writer :name + attr_reader :path, :options + attr_writer :name attr_accessor :version DEFAULT_GLOB = "{,*,*/*}.gemspec" diff --git a/spec/install/gems/platform_spec.rb b/spec/install/gems/platform_spec.rb index b25cff0c88..ee7501f759 100644 --- a/spec/install/gems/platform_spec.rb +++ b/spec/install/gems/platform_spec.rb @@ -126,7 +126,7 @@ describe "bundle install with platform conditionals" do end G - should_be_installed "rack 1.0" + should_be_installed "rack 1.0" should_not_be_installed "nokogiri 1.4.2" end @@ -144,7 +144,7 @@ describe "bundle install with platform conditionals" do gem "rack" gem "nokogiri", :platforms => :#{not_local_tag} G - should_be_installed "rack 1.0" + should_be_installed "rack 1.0" should_not_be_installed "nokogiri 1.4.2" end diff --git a/spec/update/git_spec.rb b/spec/update/git_spec.rb index 5743501032..b19673036c 100644 --- a/spec/update/git_spec.rb +++ b/spec/update/git_spec.rb @@ -3,7 +3,7 @@ require "spec_helper" describe "bundle update" do describe "git sources" do it "floats on a branch when :branch is used" do - build_git "foo", "1.0" + build_git "foo", "1.0" update_git "foo", :branch => "omg" install_gemfile <<-G @@ -37,7 +37,7 @@ describe "bundle update" do end it "floats on a branch when :branch is used and the source is specified in the update" do - build_git "foo", "1.0", :path => lib_path("foo") + build_git "foo", "1.0", :path => lib_path("foo") update_git "foo", :branch => "omg", :path => lib_path("foo") install_gemfile <<-G |