[Rubygems-developers] gem and jruby problem, can't convert YAML::JvYAML::Map into String

Stephen Bannasch stephen.bannasch at deanbrook.org
Sun Dec 23 14:06:11 EST 2007


I'm trying to learn enough about building gems in order to make a 
simple test case for the problem I've having.

I'm trying to track down why I can't install mongrel with gem on trunk JRuby.

see related bug reports for more detail:

http://jira.codehaus.org/browse/JRUBY-1772 
http://rubyforge.org/tracker/index.php?func=detail&aid=16517&group_id=1306&atid=5145

In doing this I've downloaded mongrel from svn and am getting this error:

   can't convert YAML::JvYAML::Map into String
     ... jruby/lib/ruby/site_ruby/1.8/rubygems/package.rb:738:in `add_file'

while running:

   gem build mongrel.gemspec

I'm looking for suggestions about isolating the problem with a 
simpler testcase.

Here's how to duplicate the problem.

[all the following is running JRuby trunk (r5341)]

$ svn co http://mongrel.rubyforge.org/svn/trunk mongrel
$ cd mongrel
$ rake package java
can't convert YAML::JvYAML::Map into String
   ... jruby/lib/ruby/site_ruby/1.8/rubygems/package.rb:738:in `add_file'

$ cd mongrel/pkg/mongrel-1.1.2
$ gem build mongrel.gemspec -V --backtrace
WARNING:  no email specified
WARNING:  no homepage specified
WARNING:  bin/mongrel_rails is missing #! line
ERROR:  While executing gem ... (TypeError)
     can't convert YAML::JvYAML::Map into String
         ... jruby/lib/ruby/site_ruby/1.8/rubygems/package.rb:738:in `add_file'
         ... jruby/lib/ruby/site_ruby/1.8/rubygems/package.rb:738:in 
`open_from_io'
         ... jruby/lib/ruby/site_ruby/1.8/rubygems/package.rb:738:in `open'
         ... jruby/lib/ruby/site_ruby/1.8/rubygems/package.rb:790:in `open'
         ... jruby/lib/ruby/site_ruby/1.8/rubygems/builder.rb:68:in 
`write_package'
         ... jruby/lib/ruby/site_ruby/1.8/rubygems/builder.rb:68:in `build'
         ... 
jruby/lib/ruby/site_ruby/1.8/rubygems/commands/build_command.rb:23:in 
`execute'
         ... 
jruby/lib/ruby/site_ruby/1.8/rubygems/commands/build_command.rb:22:in 
`each'
         ... 
jruby/lib/ruby/site_ruby/1.8/rubygems/commands/build_command.rb:22:in 
`execute'
         ... 
jruby/lib/ruby/site_ruby/1.8/rubygems/commands/build_command.rb:22:in 
`invoke'
         ... 
jruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:104:in 
`process_args'
         ... 
jruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:74:in `run'
         ... jruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:39:in `run'
         ... 
jruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:69:in `run'


More information about the Rubygems-developers mailing list