summaryrefslogtreecommitdiff
path: root/spec/bundler/support
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-06-03 20:46:35 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-06-18 19:14:15 +0900
commit9cc784784979620ea0353c09c778e41146b36d26 (patch)
tree6f9352665ffba790cab0c8c677332a7bcd92ba07 /spec/bundler/support
parent77df7ccc101432a80c7dd6f525dfc4484f6aa898 (diff)
s/sys_exec!/sys_exec
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3212
Diffstat (limited to 'spec/bundler/support')
-rw-r--r--spec/bundler/support/path.rb2
-rw-r--r--spec/bundler/support/rubygems_version_manager.rb8
2 files changed, 5 insertions, 5 deletions
diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb
index f56fdfc5aa..042aae92fd 100644
--- a/spec/bundler/support/path.rb
+++ b/spec/bundler/support/path.rb
@@ -240,7 +240,7 @@ module Spec
def git_ls_files(glob)
skip "Not running on a git context, since running tests from a tarball" if ruby_core_tarball?
- sys_exec!("git ls-files -z -- #{glob}", :dir => source_root).split("\x0")
+ sys_exec("git ls-files -z -- #{glob}", :dir => source_root).split("\x0")
end
def tracked_files_glob
diff --git a/spec/bundler/support/rubygems_version_manager.rb b/spec/bundler/support/rubygems_version_manager.rb
index a74cb64337..a7f9fdf2b2 100644
--- a/spec/bundler/support/rubygems_version_manager.rb
+++ b/spec/bundler/support/rubygems_version_manager.rb
@@ -67,8 +67,8 @@ private
def switch_local_copy_if_needed
return unless local_copy_switch_needed?
- sys_exec!("git remote update", :dir => local_copy_path)
- sys_exec!("git checkout #{target_tag} --quiet", :dir => local_copy_path)
+ sys_exec("git remote update", :dir => local_copy_path)
+ sys_exec("git checkout #{target_tag} --quiet", :dir => local_copy_path)
ENV["RGV"] = local_copy_path.to_s
end
@@ -86,7 +86,7 @@ private
end
def local_copy_tag
- sys_exec!("git rev-parse --abbrev-ref HEAD", :dir => local_copy_path)
+ sys_exec("git rev-parse --abbrev-ref HEAD", :dir => local_copy_path)
end
def local_copy_path
@@ -100,7 +100,7 @@ private
unless rubygems_path.directory?
rubygems_path.parent.mkpath
- sys_exec!("git clone https://github.com/rubygems/rubygems.git #{rubygems_path}")
+ sys_exec("git clone https://github.com/rubygems/rubygems.git #{rubygems_path}")
end
rubygems_path