bin/gem2rpm in gem2rpm-0.8.4 vs bin/gem2rpm in gem2rpm-0.9.0
- old
+ new
@@ -3,11 +3,10 @@
$:.push(File.expand_path(File.dirname(__FILE__) + "/../lib"))
require 'gem2rpm'
require 'optparse'
-require 'rubygems/format'
require 'fileutils'
require 'open-uri'
require 'uri'
opts = OptionParser.new("Usage: #{$0} [OPTIONS] GEM")
@@ -139,10 +138,10 @@
system("rpmbuild -bs --nodeps --define '_sourcedir #{srpmdir}' --define '_srcrpmdir #{Dir::pwd}' #{specfile}")
end
if deps
- Gem::Format.from_file_by_path(gemfile).spec.dependencies.each do |dep|
+ Gem2Rpm::Package.new(gemfile).spec.dependencies.each do |dep|
Gem2Rpm::Dependency.new(dep).requirement.each do |r|
puts "rubygem(#{dep.name}) #{r}"
end
end
end