Skip to content

Commit d10b19e

Browse files
authored
Merge pull request #325 from nobu/update-required_ruby_version
Drop old ruby versions which are no longer tested
2 parents 0780c70 + a24f841 commit d10b19e

5 files changed

+1
-10
lines changed

rake.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Rake has the following features:
2929
s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
3030
s.require_paths = ["lib".freeze]
3131

32-
s.required_ruby_version = Gem::Requirement.new(">= 2.0.0".freeze)
32+
s.required_ruby_version = Gem::Requirement.new(">= 2.2".freeze)
3333
s.rubygems_version = "2.6.1".freeze
3434
s.required_rubygems_version = Gem::Requirement.new(">= 1.3.2".freeze)
3535
s.rdoc_options = ["--main".freeze, "README.rdoc".freeze]

test/test_rake_application.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ def test_display_exception_details_bad_encoding
7777
end
7878

7979
def test_display_exception_details_cause
80-
skip "Exception#cause not implemented" unless
81-
Exception.method_defined? :cause
82-
8380
begin
8481
raise "cause a"
8582
rescue

test/test_rake_backtrace.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ def test_bin_rake_suppressed
1313

1414
def test_system_dir_suppressed
1515
path = RbConfig::CONFIG["rubylibprefix"]
16-
skip if path.nil?
1716
path = File.expand_path path
1817

1918
paths = [path + ":12"]
@@ -25,7 +24,6 @@ def test_system_dir_suppressed
2524

2625
def test_near_system_dir_isnt_suppressed
2726
path = RbConfig::CONFIG["rubylibprefix"]
28-
skip if path.nil?
2927
path = File.expand_path path
3028

3129
paths = [" " + path + ":12"]

test/test_rake_file_list.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ def test_exclude_with_string_return_on_create
212212
end
213213

214214
def test_exclude_curly_bracket_pattern
215-
skip "brace pattern matches not supported" unless defined? File::FNM_EXTGLOB
216215
fl = FileList["*"].exclude("{abc,xyz}.c")
217216
assert_equal %w[abc.h abc.x cfiles existing x.c xyzzy.txt], fl
218217
end

test/test_rake_task_with_arguments.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ def test_actions_of_various_arity_are_ok_with_args
8282
end
8383

8484
def test_actions_adore_keywords
85-
# A brutish trick to avoid parsing. Remove it once support for 1.9 and 2.0 is dropped
86-
# https://ci.appveyor.com/project/ruby/rake/build/1.0.301
87-
skip "Keywords aren't a feature in this version" if RUBY_VERSION =~ /^1|^2\.0/
8885
# https://github.com/ruby/rake/pull/174#issuecomment-263460761
8986
skip if jruby9?
9087
eval <<-RUBY, binding, __FILE__, __LINE__+1

0 commit comments

Comments
 (0)