summaryrefslogtreecommitdiff
path: root/spec/bundler/support
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-06-03 20:46:54 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-06-18 19:14:15 +0900
commita572e78201e1a4f5a44b6e354dc7b91f5f6d9c93 (patch)
treea6fda16af2e3b7560239ccff161f4d413ed32bcf /spec/bundler/support
parent696a50751bc3257e5a75b4f0eb89ccef7ec89363 (diff)
[rubygems/rubygems] s/gem_command!/gem_command
https://github.com/rubygems/rubygems/commit/f52733f6a4
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3212
Diffstat (limited to 'spec/bundler/support')
-rw-r--r--spec/bundler/support/builders.rb4
-rw-r--r--spec/bundler/support/helpers.rb6
2 files changed, 5 insertions, 5 deletions
diff --git a/spec/bundler/support/builders.rb b/spec/bundler/support/builders.rb
index ba1a6b5733..65f30d1f38 100644
--- a/spec/bundler/support/builders.rb
+++ b/spec/bundler/support/builders.rb
@@ -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)
diff --git a/spec/bundler/support/helpers.rb b/spec/bundler/support/helpers.rb
index 627367b555..c1ad1b24f6 100644
--- a/spec/bundler/support/helpers.rb
+++ b/spec/bundler/support/helpers.rb
@@ -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