bin/gem2rpm in gem2rpm-0.9.2 vs bin/gem2rpm in gem2rpm-0.10.0
- old
+ new
@@ -107,10 +107,10 @@
srpmdir = nil
gemname = nil
srpmdir = nil
specfile = nil
if srpm
- gemname = Gem::Format.from_file_by_path(gemfile).spec.name
+ gemname = Gem2Rpm::Package.new(gemfile).spec.name
srpmdir = `/bin/mktemp -t -d gem2rpm-#{gemname}.XXXXXX`.chomp
specfile = File::join(srpmdir, "rubygem-#{gemname}.spec")
if output_file.nil?
output_file = specfile
end