This is because it's running under Ruby 1.8 and the 'with_index' method is 1.9 
only. I have myself installed Ruby 1.9 using rbenv and ruby-build. It's really 
a very nice way to have several versions of Ruby installed, wth very minimal 
additions to your bash profile, and without interfering at all with your 
system. It all goes in your home folder in ~/.rbenv.

You install first rbenv, and use ruby-build to add Ruby 1.9.3. The instructions 
are very clear:

https://github.com/sstephenson/rbenv/
https://github.com/sstephenson/ruby-build

After that is done, I recommend starting with a fresh new Terminal window to 
make sure the .profile is loaded and the paths set properly. Then switch to 
Ruby 1.9.3:

rbenv global 1.9.3-p194 (or whatever you installed; in theory it should also 
work with just rbenv local 1.9.3-p194 once you are inside the CSL style 
directory)

You can check the paths/versions are good:

which gem
which ruby

You will then have to install the gems again for that version, as instructed by 
Sylvester. Note also when you are in the csl directory with the Gemfile, the 
command:

bundle show bundler

should show soemthing like

/Users/charles/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/bundler-1.1.5

Anyway, rbenv works great (it was recommended to me by our Mekentosj Ruby 
gurus).

charles



On Jul 18, 2012, at 8:03 AM, Sylvester Keil wrote:

> Did you run `bundle install` before that?
> 
> Alternatively, you could also run `bundle exec rake` to make sure the correct 
> versions of the dependencies are being used?
> 
> 
> On Jul 18, 2012, at 5:00 PM, Bruce D'Arcus wrote:
> 
>> Sigh .... yeah, OS X is a mess. Anyway, I got the dependencies
>> installed finally (with help from the nokogiri site), but now run into
>> this problem. I think I'm done for the day.
>> 
>> $ rake
>> /Users/darcusb/.rvm/rubies/ruby-1.8.7-p358/bin/ruby -S rspec
>> ./spec/dependent_styles_spec.rb ./spec/independent_styles_spec.rb
>> ./spec/repository_spec.rb --require spec_helper.rb --format progress
>> --color
>> 
>> /Users/darcusb/code/styles/spec/spec_helper.rb:21: undefined method
>> `with_index' for #<Array:0x1016a0a70> (NoMethodError)
>>      from 
>> /Users/darcusb/.rvm/gems/ruby-1.8.7-p358/gems/rspec-core-2.11.0/lib/rspec/core/configuration.rb:434:in
>> `require'
>>      from 
>> /Users/darcusb/.rvm/gems/ruby-1.8.7-p358/gems/rspec-core-2.11.0/lib/rspec/core/configuration.rb:434:in
>> `requires='
>>      from 
>> /Users/darcusb/.rvm/gems/ruby-1.8.7-p358/gems/rspec-core-2.11.0/lib/rspec/core/configuration.rb:434:in
>> `map'
>>      from 
>> /Users/darcusb/.rvm/gems/ruby-1.8.7-p358/gems/rspec-core-2.11.0/lib/rspec/core/configuration.rb:434:in
>> `requires='
>>      from 
>> /Users/darcusb/.rvm/gems/ruby-1.8.7-p358/gems/rspec-core-2.11.0/lib/rspec/core/configuration_options.rb:20:in
>> `send'
>>      from 
>> /Users/darcusb/.rvm/gems/ruby-1.8.7-p358/gems/rspec-core-2.11.0/lib/rspec/core/configuration_options.rb:20:in
>> `configure'
>>      from 
>> /Users/darcusb/.rvm/gems/ruby-1.8.7-p358/gems/rspec-core-2.11.0/lib/rspec/core/configuration_options.rb:19:in
>> `each'
>>      from 
>> /Users/darcusb/.rvm/gems/ruby-1.8.7-p358/gems/rspec-core-2.11.0/lib/rspec/core/configuration_options.rb:19:in
>> `configure'
>>      from 
>> /Users/darcusb/.rvm/gems/ruby-1.8.7-p358/gems/rspec-core-2.11.0/lib/rspec/core/command_line.rb:21:in
>> `run'
>>      from 
>> /Users/darcusb/.rvm/gems/ruby-1.8.7-p358/gems/rspec-core-2.11.0/lib/rspec/core/runner.rb:69:in
>> `run'
>>      from 
>> /Users/darcusb/.rvm/gems/ruby-1.8.7-p358/gems/rspec-core-2.11.0/lib/rspec/core/runner.rb:8:in
>> `autorun'
>>      from /Users/darcusb/.rvm/gems/ruby-1.8.7-p358/bin/rspec:19
>> Loading dependent stylesrake aborted!
>> /Users/darcusb/.rvm/rubies/ruby-1.8.7-p358/bin/ruby -S rspec
>> ./spec/dependent_styles_spec.rb ./spec/independent_styles_spec.rb
>> ./spec/repository_spec.rb --require spec_helper.rb --format progress
>> --color failed
>> 
>> Tasks: TOP => default => spec
>> (See full trace by running task with --trace)
>> 
>> 
>> On Wed, Jul 18, 2012 at 10:43 AM, Bruce D'Arcus <[email protected]> wrote:
>>> Making progress, but stuck on nokogiri; any ideas? Wondering if it's
>>> some problem with OS X and brew?
>>> 
>>> Installing nokogiri (1.5.5) with native extensions
>>> Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native
>>> extension.
>>> 
>>> /usr/local/Cellar/ruby/1.9.2-p180/bin/ruby extconf.rb
>>> checking for libxml/parser.h... *** extconf.rb failed ***
>>> Could not create Makefile due to some reason, probably lack of
>>> necessary libraries and/or headers.
>>> 
>>> On Wed, Jul 18, 2012 at 10:39 AM, Bruce D'Arcus <[email protected]> wrote:
>>>> I don't know, is it just that the '-t' here should be a '-b'?
>>>> 
>>>> $ git checkout -t origin/development
>>>> 
>>>> On Wed, Jul 18, 2012 at 10:37 AM, Bruce D'Arcus <[email protected]> wrote:
>>>>> There's one little detail you're missing on the instructions. By
>>>>> default, git won't pull in remote branches (like "development"). So
>>>>> you need to add the command to do that (which I forget).
>>>>> 
>>>>> On Wed, Jul 18, 2012 at 4:04 AM, Sylvester Keil <[email protected]> 
>>>>> wrote:
>>>>>> I've added a wiki page with installation instructions here:
>>>>>> 
>>>>>> https://github.com/citation-style-language/styles/wiki/Test-Environment
>>>>>> 
>>>>>> Please let me know if anything is missing or unclear.
>>>>>> 
>>>>>> Sylvester
>>>>>> 
>>>>>> 
>>>>>> On Jul 17, 2012, at 6:07 PM, Charles Parnot wrote:
>>>>>> 
>>>>>>> @sylvester: thanks! and 'development' seems like a good name :-)
>>>>>>> 
>>>>>>> @bruce: thanks for the trip back to memory lane; had not thought of svn 
>>>>>>> in a while… Given the nature of the CSL repo, and the low granularity, 
>>>>>>> and given that there are almost no dependencies between files, it works 
>>>>>>> very well to have just one shared branch, but I agree it's good to keep 
>>>>>>> in mind.
>>>>>>> 
>>>>>>> In fact, it reminds me of the discussion about CSL 1.0.1. With these 
>>>>>>> tests put in place (and after giving it a bit of time to settle), maybe 
>>>>>>> it would be nice to start thinking about that transition also in terms 
>>>>>>> of branches. I know you had proposed to create a separate directory for 
>>>>>>> the different version (how svn-like!!!), but a branch would likely work 
>>>>>>> as well. Merging changes from development back into a 1.0.1 branch 
>>>>>>> would allow to keep the 1.0.1 styles in sync, and eventually, the 
>>>>>>> 'development' branch could be split to leave a 1.0.0 branch behind, and 
>>>>>>> switch its content to 1.0.1 styles. At that point, 'master' would pick 
>>>>>>> up those 1.0.1 styles as well. The 1.0.0 branch could also be updated 
>>>>>>> by merging back 'master' into it (but being careful to then strip the 
>>>>>>> changes that are 1.0.1 specific).
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> On Jul 17, 2012, at 8:53 AM, Bruce D'Arcus wrote:
>>>>>>> 
>>>>>>>> One thing to keep in mind about git: branches are super lightweight.
>>>>>>>> So, for example, it's possible to consider dev branches for every
>>>>>>>> committer.
>>>>>>>> 
>>>>>>>> I'm not saying this is a great idea; just suggesting you all not be
>>>>>>>> bound by CVS/SVN thinking on branches.
>>>>>>>> 
>>>>>>>> On Tue, Jul 17, 2012 at 11:43 AM, Rintze Zelle 
>>>>>>>> <[email protected]> wrote:
>>>>>>>>> "development" is fine.
>>>>>>>>> 
>>>>>>>>> Rintze
>>>>>>>>> 
>>>>>>>>> On Tue, Jul 17, 2012 at 11:13 AM, Sylvester Keil 
>>>>>>>>> <[email protected]>
>>>>>>>>> wrote:
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> On Jul 17, 2012, at 4:07 PM, Rintze Zelle wrote:
>>>>>>>>>> 
>>>>>>>>>>> Yes, keeping the master branch of
>>>>>>>>>>> https://github.com/citation-style-language/styles as the canonical 
>>>>>>>>>>> one makes
>>>>>>>>>>> sense.
>>>>>>>>>>> 
>>>>>>>>>>> So the consensus seems to be that a new branch for untested test 
>>>>>>>>>>> should
>>>>>>>>>>> suffice? I'd be very happy if one of you could pick up the gauntlet 
>>>>>>>>>>> and set
>>>>>>>>>>> this up (I prefer to hide behind the excuse that I'm not a 
>>>>>>>>>>> professional
>>>>>>>>>>> programmer). I can give read/write access to the repo to anybody 
>>>>>>>>>>> interested.
>>>>>>>>>> 
>>>>>>>>>> I'll gladly create the new branch and set up the test-environment 
>>>>>>>>>> there.
>>>>>>>>>> Any preferences for the branch name? (I would have suggested 
>>>>>>>>>> 'development'
>>>>>>>>>> or 'dev' myself)
>>>>>>>>>> 
>>>>>>>>>> Sylvester
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>> Live Security Virtual Conference
>>>>>>>>>> Exclusive live event will cover all the ways today's security and
>>>>>>>>>> threat landscape has changed and how IT managers can respond. 
>>>>>>>>>> Discussions
>>>>>>>>>> will include endpoint security, mobile security and the latest in 
>>>>>>>>>> malware
>>>>>>>>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>>>>>>>>> _______________________________________________
>>>>>>>>>> xbiblio-devel mailing list
>>>>>>>>>> [email protected]
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/xbiblio-devel
>>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> Live Security Virtual Conference
>>>>>>>>> Exclusive live event will cover all the ways today's security and
>>>>>>>>> threat landscape has changed and how IT managers can respond. 
>>>>>>>>> Discussions
>>>>>>>>> will include endpoint security, mobile security and the latest in 
>>>>>>>>> malware
>>>>>>>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>>>>>>>> _______________________________________________
>>>>>>>>> xbiblio-devel mailing list
>>>>>>>>> [email protected]
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/xbiblio-devel
>>>>>>>>> 
>>>>>>>> 
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> Live Security Virtual Conference
>>>>>>>> Exclusive live event will cover all the ways today's security and
>>>>>>>> threat landscape has changed and how IT managers can respond. 
>>>>>>>> Discussions
>>>>>>>> will include endpoint security, mobile security and the latest in 
>>>>>>>> malware
>>>>>>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>>>>>>> _______________________________________________
>>>>>>>> xbiblio-devel mailing list
>>>>>>>> [email protected]
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/xbiblio-devel
>>>>>>> 
>>>>>>> --
>>>>>>> Charles Parnot
>>>>>>> [email protected]
>>>>>>> twitter: @cparnot
>>>>>>> http://mekentosj.com
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> Live Security Virtual Conference
>>>>>>> Exclusive live event will cover all the ways today's security and
>>>>>>> threat landscape has changed and how IT managers can respond. 
>>>>>>> Discussions
>>>>>>> will include endpoint security, mobile security and the latest in 
>>>>>>> malware
>>>>>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>>>>>> _______________________________________________
>>>>>>> xbiblio-devel mailing list
>>>>>>> [email protected]
>>>>>>> https://lists.sourceforge.net/lists/listinfo/xbiblio-devel
>>>>>> 
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> Live Security Virtual Conference
>>>>>> Exclusive live event will cover all the ways today's security and
>>>>>> threat landscape has changed and how IT managers can respond. Discussions
>>>>>> will include endpoint security, mobile security and the latest in malware
>>>>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>>>>> _______________________________________________
>>>>>> xbiblio-devel mailing list
>>>>>> [email protected]
>>>>>> https://lists.sourceforge.net/lists/listinfo/xbiblio-devel
>>>>>> 
>> 
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and 
>> threat landscape has changed and how IT managers can respond. Discussions 
>> will include endpoint security, mobile security and the latest in malware 
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> xbiblio-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/xbiblio-devel
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. 
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
> xbiblio-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xbiblio-devel

--
Charles Parnot
[email protected]
twitter: @cparnot
http://mekentosj.com



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
xbiblio-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbiblio-devel

Reply via email to