Greetings:
I’m a Ruby/Rails/Cucumber neophyte.
Goal: To use Cucumber for automated testing of iOS (Objective-C)
applications.
Environment:
- Mac OS X & iOS simulation/OS X.
- ruby --version
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11] - 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: #<ArgumentError: Illformed requirement
["#YAML::Syck::DefaultKey:0x10f13dcc8 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:
- How do I correctly manage my gems/ruby environment so the assorted
.gemspecs are in sync? - 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.