Skip to content

Commit 427b800

Browse files
committed
remove ruby < 2.0.0 bits
1 parent df6a752 commit 427b800

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

Rakefile

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,6 @@ require 'rubocop/rake_task'
66
require 'yard'
77
require 'yard/rake/yardoc_task'
88

9-
desc 'Don\'t run Rubocop for unsupported versions'
10-
begin
11-
args = if RUBY_VERSION >= '2.0.0'
12-
[:spec, :make_bin_executable, :yard, :rubocop, :check_binstubs]
13-
else
14-
[:spec, :make_bin_executable, :yard]
15-
end
16-
end
17-
189
YARD::Rake::YardocTask.new do |t|
1910
OTHER_PATHS = %w().freeze
2011
t.files = ['lib/**/*.rb', 'bin/**/*.rb', OTHER_PATHS]
@@ -44,4 +35,4 @@ task :check_binstubs do
4435
end
4536
end
4637

47-
task default: args
38+
task default: [:spec, :make_bin_executable, :yard, :rubocop, :check_binstubs]

0 commit comments

Comments
 (0)