Problem with execute generator

169 views
Skip to first unread message

Przemysław Ciąćka

unread,
Mar 23, 2012, 8:17:35 AM3/23/12
to activem...@googlegroups.com
Hi,

I have had clone active_merchant repository on my local hard drive.
While I'm trying to generate new integration I got following exception:

/Users/kacperix/.rvm/gems/ruby-1.9.2-p180/gems/rubigen-1.5.7/lib/rubigen/options.rb:31:in `default_options': undefined method `write_inheritable_attribute' for RubiGen::Base:Class (NoMethodError)
from /Users/kacperix/.rvm/gems/ruby-1.9.2-p180/gems/rubigen-1.5.7/lib/rubigen/base.rb:84:in `<class:Base>'
from /Users/kacperix/.rvm/gems/ruby-1.9.2-p180/gems/rubigen-1.5.7/lib/rubigen/base.rb:79:in `<module:RubiGen>'
from /Users/kacperix/.rvm/gems/ruby-1.9.2-p180/gems/rubigen-1.5.7/lib/rubigen/base.rb:42:in `<top (required)>'
from /Users/kacperix/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/kacperix/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/kacperix/.rvm/gems/ruby-1.9.2-p180/gems/rubigen-1.5.7/lib/rubigen.rb:10:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:33:in `require'
from <internal:lib/rubygems/custom_require>:33:in `rescue in require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from script/generate:5:in `<main>'

bundle update command returns:

Using rake (0.9.2.2) 
Using i18n (0.6.0) 
Using multi_json (1.1.0) 
Using activesupport (3.2.2) 
Using builder (3.0.0) 
Using activemodel (3.2.2) 
Using erubis (2.7.0) 
Using journey (1.0.3) 
Using rack (1.4.1) 
Using rack-cache (1.2) 
Using rack-test (0.6.1) 
Using hike (1.2.1) 
Using tilt (1.3.3) 
Using sprockets (2.1.2) 
Using actionpack (3.2.2) 
Using mime-types (1.18) 
Using polyglot (0.3.3) 
Using treetop (1.4.10) 
Using mail (2.4.4) 
Using actionmailer (3.2.2) 
Using active_utils (1.0.3) 
Using json (1.6.5) 
Using money (4.0.2) 
Using activemerchant (1.21.0) from source at /Users/kacperix/Develop/Projects/active_merchant 
Using arel (3.0.2) 
Using tzinfo (0.3.32) 
Using activerecord (3.2.2) 
Using activeresource (3.2.2) 
Using addressable (2.2.7) 
Using braintree (2.14.0) 
Using bundler (1.0.21) 
Using daemons (1.0.10) 
Using unf_ext (0.0.4) 
Using unf (0.0.5) 
Using domain_name (0.5.2) 
Using gem_plugin (0.2.3) 
Using launchy (2.1.0) 
Using net-http-digest_auth (1.2) 
Using net-http-persistent (2.5.2) 
Using nokogiri (1.5.2) 
Using ntlm-http (0.1.1) 
Using webrobots (0.0.13) 
Using mechanize (2.3) 
Using metaclass (0.0.1) 
Using mocha (0.10.5) 
Using mongrel (1.2.0.pre2) 
Using rack-ssl (1.3.2) 
Using rdoc (3.12) 
Using thor (0.14.6) 
Using railties (3.2.2) 
Using rails (3.2.2) 
Using rubigen (1.5.7) 
Using samurai (0.4.0) 

Environment:
  • ruby 1.9.2-p180
  • rubygems 1.8.21
Knows somebody what can be wrong?

Nathaniel Talbott

unread,
Mar 23, 2012, 11:26:13 AM3/23/12
to activem...@googlegroups.com
Did you use `bundle exec`? This looks like rubigen might be picking up
the wrong version of activesupport.


--
Nathaniel

> --
> You received this message because you are subscribed to the Google Groups
> "Active Merchant" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/activemerchant/-/mN5F5J4gLigJ.
> To post to this group, send email to activem...@googlegroups.com.
> To unsubscribe from this group, send email to
> activemerchan...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/activemerchant?hl=en.

Michael Noack

unread,
Mar 23, 2012, 1:07:44 PM3/23/12
to activem...@googlegroups.com
Looks like a problem with rubigen
https://github.com/drnic/rubigen/pull/10

I'm not sure why the rubigen project haven't accepted this persons fix

I fixed this by manually uninstalling activesupport 3.2.x and manually
installing activesupport 3.1.x

Michael Noack

unread,
Apr 7, 2012, 1:27:30 AM4/7/12
to Active Merchant
BY the way, I contacted Dr. Nic about this and he updated the
dependencies (i.e. ActiveSupport < 3.2) to fix this issue.

On Mar 24, 2:07 am, Michael Noack <mich...@noack.com.au> wrote:
> Looks like a problem with rubigenhttps://github.com/drnic/rubigen/pull/10
Reply all
Reply to author
Forward
0 new messages