summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBundlerbot <bot@bundler.io>2019-08-18 06:43:39 +0000
committerBundlerbot <bot@bundler.io>2019-08-18 06:43:39 +0000
commitdb600de804aa415a7d4df198b37b3b9479ebb94f (patch)
treea29308ef9db0a9860d045a532b8769582dc80834
parent6125cb3d81908a3505dad8acbe94861176a13b22 (diff)
parentc9dc0f6f2c3fa10905223c9391373f41da02d553 (diff)
downloadbundler-db600de804aa415a7d4df198b37b3b9479ebb94f.tar.gz
Merge #7312
7312: Remove old rubies stuff no longer needed r=hsbt a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that was still some code specific to old rubies we no longer support. ### What is your fix for the problem, implemented in this PR? My fix is to remove that code. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
-rw-r--r--lib/bundler/cli/exec.rb2
-rw-r--r--lib/bundler/spec_set.rb6
-rw-r--r--spec/bundler/dsl_spec.rb2
-rw-r--r--spec/quality_es_spec.rb5
-rw-r--r--spec/spec_helper.rb1
5 files changed, 3 insertions, 13 deletions
diff --git a/lib/bundler/cli/exec.rb b/lib/bundler/cli/exec.rb
index 5dcf4a01ef..0b0e991ea5 100644
--- a/lib/bundler/cli/exec.rb
+++ b/lib/bundler/cli/exec.rb
@@ -13,7 +13,7 @@ module Bundler
@cmd = args.shift
@args = args
- if Bundler.current_ruby.ruby_2? && !Bundler.current_ruby.jruby?
+ if !Bundler.current_ruby.jruby?
@args << { :close_others => !options.keep_file_descriptors? }
elsif options.keep_file_descriptors?
Bundler.ui.warn "Ruby version #{RUBY_VERSION} defaults to keeping non-standard file descriptors on Kernel#exec."
diff --git a/lib/bundler/spec_set.rb b/lib/bundler/spec_set.rb
index 2c5d9e6580..463113ef8e 100644
--- a/lib/bundler/spec_set.rb
+++ b/lib/bundler/spec_set.rb
@@ -162,11 +162,7 @@ module Bundler
end
def extract_circular_gems(error)
- if Bundler.current_ruby.mri? && Bundler.current_ruby.on_19?
- error.message.scan(/(\w+) \([^)]/).flatten
- else
- error.message.scan(/@name="(.*?)"/).flatten
- end
+ error.message.scan(/@name="(.*?)"/).flatten
end
def lookup
diff --git a/spec/bundler/dsl_spec.rb b/spec/bundler/dsl_spec.rb
index 2102086794..40739a431b 100644
--- a/spec/bundler/dsl_spec.rb
+++ b/spec/bundler/dsl_spec.rb
@@ -275,7 +275,7 @@ RSpec.describe Bundler::Dsl do
end
end
- describe "Runtime errors", :unless => Bundler.current_ruby.on_18? do
+ describe "Runtime errors" do
it "will raise a Bundler::GemfileError" do
gemfile "raise RuntimeError, 'foo'"
expect { Bundler::Dsl.evaluate(bundled_app("Gemfile"), nil, true) }.
diff --git a/spec/quality_es_spec.rb b/spec/quality_es_spec.rb
index 46eed8f18a..909d6d4e6c 100644
--- a/spec/quality_es_spec.rb
+++ b/spec/quality_es_spec.rb
@@ -1,10 +1,5 @@
# frozen_string_literal: true
-if defined?(Encoding) && Encoding.default_external.name != "UTF-8"
- # An approximation of ruby -E UTF-8, since it works on 1.8.7
- Encoding.default_external = Encoding.find("UTF-8")
-end
-
RSpec.describe "La biblioteca si misma" do
def check_for_expendable_words(filename)
failing_line_message = []
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 14df93a3da..4d4177bea3 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -66,7 +66,6 @@ RSpec.configure do |config|
git_version = Bundler::Source::Git::GitProxy.new(nil, nil, nil).version
- config.filter_run_excluding :ruby => RequirementChecker.against(RUBY_VERSION)
config.filter_run_excluding :rubygems => RequirementChecker.against(Gem::VERSION)
config.filter_run_excluding :git => RequirementChecker.against(git_version)
config.filter_run_excluding :bundler => RequirementChecker.against(Bundler::VERSION.split(".")[0])