Problem loading activemerchant using Bundler - ruby

I am using Merb. I can't seem to get activemerchant to load using Bundler. All my other gems load fine.
In my Gemfile I am using:
gem 'activemerchant', :require => 'active_merchant'
Here is the relevant error:
uninitialized constant ActiveMerchant::Billing::AuthorizedNetGateway
Anyone run into this or have any ideas?
Thanks ahead of time!

Never mind, I figured it out. The symbol that indicates the AuthorizeNetGateway changed in activemerchant. Just had to update my legacy code.

Related

Prawn gem - Undefined Method 'position'

Using ruby 2.0.0, I am receiving the following error:
undefined method 'position=' for #<Prawn::Table:0x007fa85cb72850> (NoMethodError)
I've read several posts and 100% of them have pointed to adding this to your gem file and running bundle update:
gem 'prawn', :git => "https://github.com/prawnpdf/prawn.git", :ref => '8028ca0cd2'
However, I still get the same error when I do this versus just using gem 'prawn'.
It's worth noting that my script worked perfectly fine on another machine in another environment, using the same gem file that only had gem prawn in it. I don't recall altering the other environment in any way to make it work, but it's possible that I did.
Any thoughts as to how I can get rid of this error?

Ruby gems installation error

When I am trying to install a gem or run anything with gem command, I see this warning,
Error loading RubyGems plugin "/Users/ender/.rvm/gems/ruby-1.9.3-p194#global/gems/rubygems-bundler-0.9.0/lib/rubygems_plugin.rb": undefined method `first' for #<String:0x007ffedc0964f0> (NoMethodError)
I searched it but I could not find anything out.
What is the problem and how can I fix it?
Note: I cannot install any gems.
Thanks.
Try removing the /Users/ender/.rvm/gems/ruby-1.9.3-p194#global/gems/rubygems-bundler-0.9.0 directory. There seems to be a problem with this gem.

What is the easyest way to use gems in a macruby application, in XCode?

I need to include a rubygem in a simple macruby application i am creating in XCode. Using require 'rubygems' does not give an error, but the next line to require any other gems has a load error. I installed the gems using macgems. Thanks in advance.
The load error might be an indication that the gem doesn't work on Macruby. Post the error and someone might have more info on that gem or that error.
Did the gem actually install correctly? If it did install, does it work from the command line? Try creating a simple script that requires rubygems and your gem and run that on the command line outside of xcode and see if the problem is compatibility with that gem.
A while back in the 0.5 days I had this problem with a gem (miniexif iirc) that would install via macgems but not load or run. This might be a similar problem.

no such file to load -- soap4r -- why?

I migrated to 1.8.7 Ruby and now I keep getting this error and it is driving me crazy. I try installing it manually using gem install soap4r and also include it as a config.gem 'soap4r' and rake gem:install and still nothing....
It's blowing up on my heroku install too....
Try to load it as
require 'soap4r' in your code
And make sure you installed soap4r with all the dependencies
here is a link for how to install it - http://www.tutorialspoint.com/ruby/ruby_web_services.htm
cheers
sameera

Sinatra Gem install error

I have been trying to install sinatra in a macbook running leopard system, and I am not able to do it.
I get the following error.
MacBook:rubygems-1.3.7 lakshmanan$ gem install sinatra
WARNING: RubyGems 1.2+ index not found for:
http://rubygems.org/
RubyGems will revert to legacy indexes degrading performance.
Bulk updating Gem source index for: http://rubygems.org/
ERROR: While executing gem ... (NoMethodError)
undefined method `gems' for #<Array:0x101901008>
Please help. I reinstalled gems also. Still I get the same error.
rubygems.org does not seem to be responding right now. Try again later. It's probably nothing on your end.

Resources