Skip to content

Commit 475c450

Browse files
junarugasodabrew
authored andcommitted
Update rake (and rake-compiler) to suppress the warning. (#1099)
To suppress the warning: /home/travis/.rvm/gems/ruby-head/gems/rake-10.4.2/lib/rake/application.rb:381: warning: deprecated Object#=~ is called on Proc; it always returns nil in the process of "bundle exec rake compile".
1 parent f62edc0 commit 475c450

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Gemfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ source 'https://rubygems.org'
22

33
gemspec
44

5-
gem 'rake', '~> 10.4.2'
6-
gem 'rake-compiler', '~> 1.0'
5+
gem 'rake', if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("2.2")
6+
'~> 13.0.1'
7+
else
8+
'< 13'
9+
end
10+
gem 'rake-compiler', '~> 1.1.0'
711

812
group :test do
913
gem 'eventmachine' unless RUBY_PLATFORM =~ /mswin|mingw/

0 commit comments

Comments
 (0)