lib/jeweler/gemspec.rb in technicalpickles-jeweler-0.6.0 vs lib/jeweler/gemspec.rb in technicalpickles-jeweler-0.6.1
- old
+ new
@@ -36,13 +36,18 @@
def parse_gemspec(data = nil)
data ||= File.read(gemspec_path)
Thread.new { eval("$SAFE = 3\n#{data}", binding, gemspec_path) }.join
end
+ def unsafe_parse_gemspec(data = nil)
+ data ||= File.read(gemspec_path)
+ eval(data, binding, gemspec_path)
+ end
+
protected
def gemspec_path
denormalized_path = File.join(@base_dir, "#{@gemspec.name}.gemspec")
absolute_path = File.expand_path(denormalized_path)
absolute_path.gsub(Dir.getwd + File::SEPARATOR, '')
end
end
-end
\ No newline at end of file
+end