Skip to content

Commit

Permalink
[rubygems/rubygems] s/gem_command!/gem_command
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez authored and hsbt committed Jun 18, 2020
1 parent 696a507 commit a572e78
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion spec/bundler/bundler/gem_helper_spec.rb
Expand Up @@ -167,7 +167,7 @@ def mock_build_message(name, version)
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
Expand Down
8 changes: 4 additions & 4 deletions spec/bundler/commands/clean_spec.rb
Expand Up @@ -379,7 +379,7 @@ def should_not_have_gems(*gems)
gem "rack"
G

gem_command! :list
gem_command :list
expect(out).to include("rack (1.0.0)").and include("thin (1.0)")
end

Expand Down Expand Up @@ -507,7 +507,7 @@ def should_not_have_gems(*gems)
end
bundle :update, :all => true

gem_command! :list
gem_command :list
expect(out).to include("foo (1.0.1, 1.0)")
end

Expand All @@ -531,7 +531,7 @@ def should_not_have_gems(*gems)
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
Expand Down Expand Up @@ -565,7 +565,7 @@ def should_not_have_gems(*gems)
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
Expand Down
2 changes: 1 addition & 1 deletion spec/bundler/install/gems/compact_index_spec.rb
Expand Up @@ -936,7 +936,7 @@ def start
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
Expand Down
4 changes: 2 additions & 2 deletions spec/bundler/support/builders.rb
Expand Up @@ -406,7 +406,7 @@ def update_repo(path)
@_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
Expand Down Expand Up @@ -753,7 +753,7 @@ def _build(opts)
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)
Expand Down
6 changes: 3 additions & 3 deletions spec/bundler/support/helpers.rb
Expand Up @@ -295,7 +295,7 @@ def install_gems(*gems)
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)
Expand Down Expand Up @@ -323,7 +323,7 @@ def with_built_bundler(version = nil)

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
Expand Down Expand Up @@ -411,7 +411,7 @@ def realworld_system_gems(*gems)

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
Expand Down

0 comments on commit a572e78

Please sign in to comment.