hobo_paperclip gem error

15 views
Skip to first unread message

Arve Voldsund

unread,
Oct 23, 2012, 10:21:55 AM10/23/12
to hobo...@googlegroups.com
I tried to use the hobo_paperclip gem in a new project, but I get bundler complaints and I'm not sure what to do about it. Anyone?

Arve


Unfortunately, a fatal error has occurred. Please see the Bundler 
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks! 
/Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/bundler/gems/hobo_paperclip-4f90158436b8/hobo_paperclip.gemspec:16:in `block in <main>': undefined local variable or method `name' for main:Object (NameError)
from /Users/arvevoldsund/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1346:in `initialize'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/bundler/gems/hobo_paperclip-4f90158436b8/hobo_paperclip.gemspec:7:in `new'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/bundler/gems/hobo_paperclip-4f90158436b8/hobo_paperclip.gemspec:7:in `<main>'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/lib/bundler.rb:298:in `eval'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/lib/bundler.rb:298:in `rescue in block in load_gemspec_uncached'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/lib/bundler.rb:293:in `block in load_gemspec_uncached'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/lib/bundler.rb:291:in `chdir'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/lib/bundler.rb:291:in `load_gemspec_uncached'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/lib/bundler.rb:282:in `load_gemspec'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/lib/bundler/source.rb:411:in `block in load_spec_files'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/lib/bundler/source.rb:410:in `each'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/lib/bundler/source.rb:410:in `load_spec_files'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/lib/bundler/source.rb:799:in `load_spec_files'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/lib/bundler/source.rb:381:in `local_specs'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/lib/bundler/source.rb:774:in `specs'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/lib/bundler/definition.rb:491:in `block in converge_locked_specs'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/lib/bundler/definition.rb:480:in `each'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/lib/bundler/definition.rb:480:in `converge_locked_specs'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/lib/bundler/definition.rb:166:in `resolve'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/lib/bundler/definition.rb:113:in `specs'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/lib/bundler/definition.rb:108:in `resolve_remotely!'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/lib/bundler/installer.rb:81:in `run'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/lib/bundler/installer.rb:14:in `install'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/lib/bundler/cli.rb:230:in `install'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/lib/bundler/vendor/thor/task.rb:27:in `run'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/lib/bundler/vendor/thor.rb:275:in `dispatch'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/lib/bundler/vendor/thor/base.rb:408:in `start'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/bin/bundle:14:in `block in <top (required)>'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/lib/bundler/friendly_errors.rb:4:in `with_friendly_errors'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/bundler-1.2.1/bin/bundle:14:in `<top (required)>'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/bin/bundle:19:in `load'
from /Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/bin/bundle:19:in `<main>'


Bryan Larsen

unread,
Oct 23, 2012, 10:28:25 AM10/23/12
to hobo...@googlegroups.com
Try it now, there was definitely a problem with the gemspec. I'm not
sure why it didn't give anybody else a problem.

Bryan

P.S. Bob, it appears that you copied that line from a Hobo gem.
Hobo packages a bunch of gems into the same git repository, which is
why they need the -x #{name}. hobo_paperclip is one gem in a single
repo, so doesn't need it.
> --
> You received this message because you are subscribed to the Google Groups
> "Hobo Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/hobousers/-/PQh9WNGBCMIJ.
> To post to this group, send email to hobo...@googlegroups.com.
> To unsubscribe from this group, send email to
> hobousers+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/hobousers?hl=en.

Bob Sleys

unread,
Oct 23, 2012, 11:01:10 AM10/23/12
to hobo...@googlegroups.com
Yes I did, sorry about that and thanks for the quick fix.

Bob

Arve Voldsund

unread,
Oct 23, 2012, 11:44:39 AM10/23/12
to hobo...@googlegroups.com
Great! I compared the gemspec with another hobo gem and didn't spot any differences on that line...  Thanks for the fix and explanation!

Best
Arve
To view this discussion on the web visit https://groups.google.com/d/msg/hobousers/-/sh8FHhvyG-oJ.
Reply all
Reply to author
Forward
0 new messages