ruby-rdf / rdf-rdfa

Ruby RDFa reader/writer for RDF.rb.
http://ruby-rdf.github.com/rdf-rdfa
The Unlicense
35 stars 11 forks source link

Issues installing rdf-rdfa-0.3.5 from rubyforge #7

Closed ldodds closed 13 years ago

ldodds commented 13 years ago

Hi,

I've been getting errors when updating/installing the rdf-rdfa gem from rubyforge. Gem repeatedly gives this error:

   Invalid gemspec in [/usr/lib/ruby/gems/1.8/specifications/rdf-rdfa-0.3.5.gemspec]: Illformed requirement ["#<YAML::Syck::DefaultKey:0xb60813b0> 2.2.4"]

This is caused by the following line in the gemspec:

   s.add_runtime_dependency(%q<addressable>, ["#<YAML::Syck::DefaultKey:0xb60813b0> 2.2.4"])

I'm unclear how that has happened as I can't see an issue in the source, so assume it might be a problem with the released gem?

I've deleted the gem and gemspec from my local gem cache and tried installing again:

   Fetching: rdf-rdfa-0.3.5.gem (100%)
   Successfully installed rdf-rdfa-0.3.5
   1 gem installed
   Invalid gemspec in [/usr/lib/ruby/gems/1.8/specifications/rdf-rdfa-0.3.5.gemspec]: Illformed requirement ["#<YAML::Syck::DefaultKey:0xb60813b0> 2.2.4"]
   Installing ri documentation for rdf-rdfa-0.3.5...
   Installing RDoc documentation for rdf-rdfa-0.3.5...

I don't think its a local issue, as I'm getting a similar issue when trying to push an app out to heroku:

   Fetching source index for http://rubygems.org/
   /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/specification.rb:289:in `load': uninitialized constant Syck::Syck (NameError)
    from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/specification.rb:289:in `_load'

Any ideas?

njh commented 13 years ago

Yes, I just had this problem too when I updated my gems for dbpedialite.

Don't know what the solution is though!

gkellogg commented 13 years ago

That's pretty weird. What version of Ruby are you using?

I'll see what I can do and release an update ASAP?

ldodds commented 13 years ago

Hi Greg,

Yes it puzzled me too, I'm really not sure what's causing the problem. My environment is:

ruby 1.8.7 gem 1.8.9

njh commented 13 years ago

I have the same versions: ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0] gem 1.8.9

I just unziped metadata.gz in rdf-rdfa-0.3.5.gem and it looks like this:

- !ruby/object:Gem::Dependency
  name: addressable
  requirement: &2157333300 !ruby/object:Gem::Requirement
    none: false
    requirements:
    - - =
      - !ruby/object:Gem::Version
        version: 2.2.4
  type: :runtime
  prerelease: false
  version_requirements: *2157333300

Maybe there should be a some quotes around the equals sign?

gkellogg commented 13 years ago

I modified the gem to not use Jeweler, which I suspect was the cause of the problem. Now the gemspec and Rakefiles are more like other RDF.rb projects. I'll get around to updating the others as well.

ldodds commented 13 years ago

Looks like this may have been the issue: https://github.com/rubygems/rubygems/pull/121

ldodds commented 12 years ago

Hi,

I've just had a related error from heroku. Which is a little odd as I successfully pushed some code to it yesterday. The error is:


   Unfortunately, the gem rdf-rdfa (0.3.5) has an invalid gemspec. As a result, Bundler cannot install this Gemfile. Please ask the gem author to yank the bad version to fix this issue. For more information, see http://bit.ly/illformed-requirement.

I'm not directly dependent on 0.3.5 so am not sure why the issue is being triggered. Any ideas?

gkellogg commented 12 years ago

I yanked 0.3.5, if there are remaining versions that are causing a problem let me know, and I'll yank them too.