rubygems

Error while installing an older version of a gem after Sep 1st(Rails 3.0.0 release)

I am on Ruby 1.8.6 and Rails 2.3.8. I am trying to install a older version of formtastic gem. gem install formtastic -v 0.9.10 I got the following error: ERROR: Error installing formtastic: activemodel requires Ruby version >= 1.8.7. I switched to Ruby 1.8.7 and tried to install the gem again. I got the following error: E...

Installing native Ruby extensions on Windows for Jekyll

Hi Guys, I'm about to go crazy here so I'll just ask: How the hell do you install the Ruby Gem Jekyll on Windows. Jekyll depends on fast-stemmer-1.0.0 and that has to be built as a native extension I found this handy guide on RubyDevKit to install a 'sane' environment on Windows and it works, but fast-stemmer is still hell bent on us...

Failed WATIR installation Server 2003

Hi all, I had to rebuild my box and I currently am unable to install Watir. gem install watir ERROR: Error installing watir: activesupport requires Ruby version >= 1.8.7. Which would be fine if Watir was able to use Ruby 1.8.7 . I am using ruby -v ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] ge...

gem customizations

I added some caching functionality to the geokit gem and used gemcutter to create a copy 'badnaam-geokit'. The only changed are in Geocoders.rb which works fine if I just modify it locally. However, after I published it to rubygems and installed it and require it as 'badnaam-geokit' in my environment.rb (config.gem "badnaam-geokit") fi...

What is the difference between where 'require' looks and where 'Gem.available?' looks for gems?

I'm a bit confused about how paths work with gems. Here's the core of my confusion: >> require 'rubygems' => false >> Gem.available?('money') => true >> require 'money' LoadError: no such file to load -- money from (irb):3:in `require' from (irb):3 from /usr/bin/irb:12:in `<main>' >> Gem.available?('pony') => fa...

"gem update --system is disabled on Debian" error

When I try to update rubygems (by running 'gem update --system') I get this error: ERROR: While executing gem ... (RuntimeError) gem update --system is disabled on Debian. RubyGems can be updated using the official Debian repositories by aptitude or apt-get. Any idea what might be wrong and how I can fix it? ...

Groups in a Gemfile in Rails 3?

In my Gemfile in Rails I have these groups: group :development, :test do gem "capybara" gem "database_cleaner" gem "spork" gem "launchy" end group :bdd do gem "cucumber-rails" gem "rspec-rails" end What does this mean? ...

Using cloned git repo instead of gem?

I'm using the Thor gem, but I have cloned the git repo to a folder and I want the system to use that one instead and not the gem, because I have added a feature in the cloned repo and want to test it. How do I tell the system (Ubuntu 10.4) to use the cloned repo and not the installed gem. ...

Rubygems. A newly installed gem isn't added to $LOAD_PATH ($:)

Hi. I installed the new stable Ruby release and when I began to install gems I found out that the paths to them isn't added to the Ruby load path after successful installation of the gems. What is the reason of this issue? How can I achieve it? Thanks. Here's my environment: $ lsb_release -d Description: Debian GNU/Linux 5.0....

no such file to load -- rmagick

I have following - Gem Version - 1.3.2 Ruby Version - ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux] Rails Version - Rails 2.3.5 ======================== rmagick (2.13.1, 2.10.0) Authors: Tim Hunter, Omer Bar-or, Benjamin Thomas Rubyforge: http://rubyforge.org/projects/rmagick Homepage: http://rubyforge.org/projects/rmagick In...

Rails : NoMethodError (undefined method `submitting' for []:Array)

NoMethodError (undefined method `submitting' for []:Array): haml (2.2.0) lib/sass/plugin/rails.rb:19:in `process_without_compass' compass (0.8.17) lib/compass/app_integration/rails/action_controller.rb:7:in `process' /usr/local/lib/ruby/gems/1.8/gems/hoptoad_notifier-2.3.6/lib/hoptoad_notifier/rack.rb:27:in `call' getting error...

rvm and gem install issue

Hello When I try to install any of gems with rmv I got this error: gem install rake ERROR: While executing gem ... (Errno::ENOENT) No such file or directory - /Users/paladiy/.rvm/gems/ruby-1.8.6-p399/cache/rake-0.8.7.gem And also when I call gem list I got an empty list. How can I install gems on this situation? ...

Rubygems. LoadError in Rails

Hi. Everytime I start my Rails applications I get LoadError with the following output. On Rails 2.3.8: no such file to load -- sqlite3/sqlite3_native <internal:lib/rubygems/custom_require>:29:in `require' On Rails 3.0.0: no such file to load -- bundler <internal:lib/rubygems/custom_require>:29:in `require' I run the application...

Ruby gem mysql2 install error

I have the Ruby version ruby 1.9.2p0 (2010-08-18) [i386-mingw32] installed in Windows7. and the gem vesion 1.3.7 When i tried to install mysql gem, it is showing Failed to build gem native extension error, why is this? my mysql version is 5.1.36(WampServer) E:\RubyApps\test_app2>gem install mysql2 Building native extensions. This cou...

Is it possible to uninstall ruby gems, rails etc and do a complete clean install?

I seem to be having issues with gems and want to start with a fresh install. Is this possible without reinstalling Snow Leopard from scratch? Thanks in advance, Galen ...

Why is Ruby 1.9.2 on Windows 7 using a 1.9.1 path for gems? it is using c:/ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.0/lib/rails/commands.rb

I installed Ruby 1.9.2 using one click installer to c:\ruby192 It doesn't set any path, so I set it to include c:\ruby192 at the very beginning of the path. But when it error on something (for Rails 3.0), the path says: [Error message] c:/ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.0/lib/rails/commands.rb why is it 1.9.1 gems path...

Architecture mismatch between a ruby gem and ruby?

I successfully installed the yajl-ruby rubygem via gem install, yet attempting to use it throws this error: /usr/local/lib/ruby/gems/1.8/gems/yajl-ruby-0.7.7/lib/yajl_ext.bundle: dlopen(/usr/local/lib/ruby/gems/1.8/gems/yajl-ruby-0.7.7/lib/yajl_ext.bundle, 9): no suitable image found. Did find: (LoadError) /usr/local/lib/ruby/gems/1.8/...

changing version number in newgem

I'm using newgem to manage my gem and according to the readme you just change the version in the top level file of the gem name. However rake gem is not picking up the gem version i am specifiying. module mygem VERSION = "0.0.1.beta1" end when i run the rake task rake gem it builds '0.0.1', not 0.0.1.beta1 is there a rake argument ...

how to require active record working outside of rails

i need to require active record, but I am working outside of rails (here is why: Simple Ruby Input Validation Library). do I need to require the entire rails gem, or can i be DRYer? ...

Rails 3's "bundle install" is super fast (takes 1 second), but no Rails is there afterwards? (using rvm)

I am using rvm, doing the following: rvm install ree <--- (Ruby Enterprise Edition), or this can be 1.8.7 or 1.9.2 rvm ree rvm gemset create 'proj' cd path/to/proj bundle install so Gemfile in that project says: gem 'rails', '3.0.0' and bundle install is super fast, reporting Using rails (3.0.0) but after that when I type $...