Bug 711556

Summary: Error message on newer gem when attempting to generate a spec file.
Product: [Fedora] Fedora Reporter: Darryl L. Pierce <dpierce>
Component: rubygem-gem2rpmAssignee: Vít Ondruch <vondruch>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: lutter, mastahnke, tross
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-20 10:38:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Darryl L. Pierce 2011-06-07 19:01:23 UTC
Description of problem:

When trying to generate a spec file for foreigner 1.0.3 I get an error message (see additional information below). But if I run gem2rpm on a previous version or another gem it works fine.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Download gem from - https://rubygems.org/gems/foreigner/versions/1.0.3
2. Run gem2rpm foreigner-1.0.3.gem

  
Actual results:

The error message is shown, and no spec file is generated.


Expected results:

A spec file to be generated.


Additional info:

(mcpierce@mcpierce-laptop:rubygem-foreigner)$ gem2rpm foreigner-1.0.3.gem 
(erb):18:in `convert': undefined method `version_requirements' for #<Gem::Dependency:0x7f96d6426cf0> (NoMethodError)
	from (erb):17:in `each'
	from (erb):17:in `convert'
	from /usr/lib/ruby/gems/1.8/gems/gem2rpm-0.6.0/lib/gem2rpm.rb:76:in `convert'
	from /usr/lib/ruby/gems/1.8/gems/gem2rpm-0.6.0/bin/gem2rpm:88
	from /usr/bin/gem2rpm:19:in `load'
	from /usr/bin/gem2rpm:19

Comment 1 Fedora Admin XMLRPC Client 2011-06-28 04:57:50 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 2 Vít Ondruch 2011-07-20 10:38:41 UTC
Trying to reproduce with gem2rpm 0.7.1 and I can't reproduce the error. It was already fixed I guess.