1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Fix #2892: "rake travis" fails with can't modify frozen String

Make an unfrozen copy of RUBY_VERSION so that rubygems version can
strip! it.
This commit is contained in:
Marcin Owsiany 2014-04-30 13:20:36 +00:00 committed by Marcin Owsiany
parent 86edde28e1
commit 381364637a

View file

@ -214,7 +214,7 @@ require "tasks/github_release_task"
Fog::Rake::GithubReleaseTask.new
task :coveralls_push_workaround do
use_coveralls = (Gem::Version.new(RUBY_VERSION) > Gem::Version.new('1.9.2'))
use_coveralls = (Gem::Version.new(String.new(RUBY_VERSION)) > Gem::Version.new('1.9.2'))
if (ENV['COVERAGE'] != 'false') && use_coveralls
require 'coveralls/rake/task'
Coveralls::RakeTask.new