[前][次][番号順一覧][スレッド一覧]

ruby-changes:54899

From: hsbt <ko1@a...>
Date: Wed, 20 Feb 2019 19:43:29 +0900 (JST)
Subject: [ruby-changes:54899] hsbt:r67104 (trunk): Adjust the rubycop rules of Bundler upstream repository.

hsbt	2019-02-20 19:43:23 +0900 (Wed, 20 Feb 2019)

  New Revision: 67104

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67104

  Log:
    Adjust the rubycop rules of Bundler upstream repository.

  Modified files:
    trunk/spec/bundler/commands/clean_spec.rb
    trunk/spec/bundler/quality_spec.rb
    trunk/spec/bundler/support/helpers.rb
Index: spec/bundler/support/helpers.rb
===================================================================
--- spec/bundler/support/helpers.rb	(revision 67103)
+++ spec/bundler/support/helpers.rb	(revision 67104)
@@ -316,7 +316,7 @@ module Spec https://github.com/ruby/ruby/blob/trunk/spec/bundler/support/helpers.rb#L316
           if ruby_core?
             spec = Gem::Specification.load(gemspec.to_s)
             spec.bindir = "libexec"
-            File.open(root.join("bundler.gemspec").to_s, "w"){|f| f.write spec.to_ruby }
+            File.open(root.join("bundler.gemspec").to_s, "w") {|f| f.write spec.to_ruby }
             Dir.chdir(root) { gem_command! :build, root.join("bundler.gemspec").to_s }
             FileUtils.rm(root.join("bundler.gemspec"))
           else
Index: spec/bundler/commands/clean_spec.rb
===================================================================
--- spec/bundler/commands/clean_spec.rb	(revision 67103)
+++ spec/bundler/commands/clean_spec.rb	(revision 67104)
@@ -464,7 +464,7 @@ RSpec.describe "bundle clean" do https://github.com/ruby/ruby/blob/trunk/spec/bundler/commands/clean_spec.rb#L464
 
     gem = ruby_core? ? ENV["BUNDLE_GEM"] : "gem"
     sys_exec! "#{gem} list"
-  expect(out).to include("foo (1.0.1, 1.0)")
+    expect(out).to include("foo (1.0.1, 1.0)")
   end
 
   it "cleans system gems when --force is used" do
Index: spec/bundler/quality_spec.rb
===================================================================
--- spec/bundler/quality_spec.rb	(revision 67103)
+++ spec/bundler/quality_spec.rb	(revision 67104)
@@ -228,7 +228,7 @@ RSpec.describe "The library itself" do https://github.com/ruby/ruby/blob/trunk/spec/bundler/quality_spec.rb#L228
         if ruby_core?
           spec = Gem::Specification.load(gemspec.to_s)
           spec.bindir = "libexec"
-          File.open(root.join("bundler.gemspec").to_s, "w"){|f| f.write spec.to_ruby }
+          File.open(root.join("bundler.gemspec").to_s, "w") {|f| f.write spec.to_ruby }
           gem_command! :build, root.join("bundler.gemspec").to_s
           FileUtils.rm(root.join("bundler.gemspec").to_s)
         else

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]