Skip to content

Commit ad0b429

Browse files
committed
Use Gem::Specification.load to avoid LoadError in Rakefile
1 parent 8a4855f commit ad0b429

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ end
2222

2323
require 'rake/extensiontask'
2424

25-
spec = eval(File.read("cool.io.gemspec"))
25+
spec = Gem::Specification.load("cool.io.gemspec")
2626

2727
def configure_cross_compilation(ext)
2828
unless RUBY_PLATFORM =~ /mswin|mingw/

0 commit comments

Comments
 (0)