1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] s/gem_command!/gem_command

https://github.com/rubygems/rubygems/commit/f52733f6a4
This commit is contained in:
David Rodríguez 2020-06-03 20:46:54 +02:00 committed by Hiroshi SHIBATA
parent 696a50751b
commit a572e78201
Notes: git 2020-06-18 19:15:05 +09:00
5 changed files with 11 additions and 11 deletions

View file

@ -167,7 +167,7 @@ RSpec.describe Bundler::GemHelper do
mock_confirm_message "#{app_name} (#{app_version}) installed."
subject.install_gem(nil, :local)
expect(app_gem_path).to exist
gem_command! :list
gem_command :list
expect(out).to include("#{app_name} (#{app_version})")
end
end

View file

@ -379,7 +379,7 @@ RSpec.describe "bundle clean" do
gem "rack"
G
gem_command! :list
gem_command :list
expect(out).to include("rack (1.0.0)").and include("thin (1.0)")
end
@ -507,7 +507,7 @@ RSpec.describe "bundle clean" do
end
bundle :update, :all => true
gem_command! :list
gem_command :list
expect(out).to include("foo (1.0.1, 1.0)")
end
@ -531,7 +531,7 @@ RSpec.describe "bundle clean" do
bundle "clean --force"
expect(out).to include("Removing foo (1.0)")
gem_command! :list
gem_command :list
expect(out).not_to include("foo (1.0)")
expect(out).to include("rack (1.0.0)")
end
@ -565,7 +565,7 @@ RSpec.describe "bundle clean" do
expect(err).to include(system_gem_path.to_s)
expect(err).to include("grant write permissions")
gem_command! :list
gem_command :list
expect(out).to include("foo (1.0)")
expect(out).to include("rack (1.0.0)")
end

View file

@ -936,7 +936,7 @@ Either installing with `--full-index` or running `bundle update rails` should fi
gem "activemerchant"
end
G
gem_command! "uninstall activemerchant"
gem_command "uninstall activemerchant"
bundle "update rails", :artifice => "compact_index"
expect(lockfile.scan(/activemerchant \(/).size).to eq(1)
end

View file

@ -406,7 +406,7 @@ module Spec
@_build_repo = File.basename(path)
yield
with_gem_path_as Path.base_system_gems do
gem_command! :generate_index, :dir => path
gem_command :generate_index, :dir => path
end
ensure
@_build_path = nil
@ -753,7 +753,7 @@ module Spec
elsif opts[:skip_validation]
@context.gem_command "build --force #{@spec.name}", :dir => lib_path
else
@context.gem_command! "build #{@spec.name}", :dir => lib_path
@context.gem_command "build #{@spec.name}", :dir => lib_path
end
gem_path = File.expand_path("#{@spec.full_name}.gem", lib_path)

View file

@ -295,7 +295,7 @@ module Spec
def install_gem(path)
raise "OMG `#{path}` does not exist!" unless File.exist?(path)
gem_command! "install --no-document --ignore-dependencies '#{path}'"
gem_command "install --no-document --ignore-dependencies '#{path}'"
end
def with_built_bundler(version = nil)
@ -323,7 +323,7 @@ module Spec
replace_build_metadata(build_metadata, dir: build_path) # rubocop:disable Style/HashSyntax
gem_command! "build #{relative_gemspec}", :dir => build_path
gem_command "build #{relative_gemspec}", :dir => build_path
yield(bundler_path)
ensure
@ -411,7 +411,7 @@ module Spec
with_gem_path_as(system_gem_path) do
gems.each do |gem|
gem_command! "install --no-document #{gem}"
gem_command "install --no-document #{gem}"
end
end
end