From: Justin Collins Date: 2011-09-19T16:09:41+09:00 Subject: Re: GEMS: GEMSPEC problem On 09/18/2011 10:01 AM, Frederick Lee wrote: > Greetings: > I'm a Ruby/Rails/Cucumber neophyte. > > Goal: To use Cucumber for automated testing of iOS (Objective-C) > applications. > > Environment: > 1) Mac OS X& iOS simulation/OS X. > 2) ruby --version > ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11] > 3) gem --verison > 1.3.7 > > ---------------------- > > I'm trying to install a cohesive ruby/gem library that simply work. > After I've installed a 'frank-cucumber' gem, everything went crazy. > > Now I'm getting a string of diagnostic text with a warning after I > attempt to access a gem item. For example (abridged): > > RicMac:~ Ric$ gem --list > WARNING: # ["# 0.8.4"]> > # -*- encoding: utf-8 -*- > > Gem::Specification.new do |s| > s.name = %q{cucumber} > s.version = "1.0.4" > > s.required_rubygems_version = Gem::Requirement.new(">= 0") if > s.respond_to? :required_rubygems_version= > s.authors = ["Aslak Helles\303\270y"] > ... > ... > ... > > WARNING: Invalid .gemspec format in > '/opt/local/lib/ruby/gems/1.8/specifications/cucumber- > 1.0.4.gemspec' > rake aborted! > > ------------------------------------ > > Question: > > 1) How do I correctly manage my gems/ruby environment so the assorted > .gemspecs are in sync? > 2) I have ruby 1.9 instance installed on my Mac OS X in addition to the > default ruby v1.8.7. > How do I manage both environments (with associated gem specs)? > > In short... > I want to be able to type $>gem --version or $>cucumber --version > WITHOUT flagging 'invalid...gemspec.' > > > Regards, > Ric rvm[1] should help you with the "managing your environments" issue. I'm guessing your specific issue may be related to this post[2]. [1] http://beginrescueend.com/rvm/install/ [2] http://blog.rubygems.org/2011/08/31/shaving-the-yaml-yacc.html -Justin