RallyTools / RallyRestToolkitForRuby

A toolkit wrapping Rally's REST webservice for Ruby
MIT License
47 stars 32 forks source link

Making a connection to Rally with Ruby Toolkit for Rally REST API (rally_api) #19

Closed eruialf closed 11 years ago

eruialf commented 11 years ago

I'm trying to connect using the ruby API toolkit. I followed the instructions in: https://developer.help.rallydev.com/ruby-toolkit-rally-rest-api-json The script is exactly the same as the chapter "Making a connection to Rally" with my own values. I receive the following error:

ruby test /var/lib/gems/1.8/gems/rally_api-0.9.14/lib/rally_api/rally_rest_json.rb:437: warning: don't put space before argument parentheses /var/lib/gems/1.8/gems/rally_api-0.9.14/lib/rally_api/rally_collection.rb:30:in each': undefined method parameters' for # (NoMethodError) from /var/lib/gems/1.8/gems/rally_api-0.9.14/lib/rally_api/rally_rest_json.rb:104:in find_workspace' from /var/lib/gems/1.8/gems/rally_api-0.9.14/lib/rally_api/rally_rest_json.rb:79:ininitialize' from test:19:in `new' from test:19

Any tips?

Thanks a lot.

markwilliams970 commented 11 years ago

I note you asked this on Stackoverflow also. My followup query there is important here too: What version of ruby are you running? Please send output of:

ruby -v

It would also be helpful to know what Operating System and type (32, 64 bit), you are running. Please provide as much information as possible - the more info we have, the better we may be able to assist.

eruialf commented 11 years ago

Hi Mark

Thanks a lot for your reply. I'm very sorry for my plain message. The ruby version is ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] and the Operative System is an Ubuntu 12.04.2 LTS

Thanks a lot for your help.

Alfonso.

markwilliams970 commented 11 years ago

Hi Alfonso, thanks very much for the additional info. rally_api requires Ruby 1.9.2 or higher, so you'll need to upgrade your Ruby. I'd strongly recommend using RVM (Ruby Version Manager) to accomodate running an additional, higher-level ruby version on your system.

This article: http://www.srcnix.com/tutorials/ruby/install-multiple-ruby-versions-on-ubuntu-12-04-using-rvm/ has a nice guide on installing and configuring RVM on Ubuntu 12.04.

Let us know how it goes, thanks.

eruialf commented 11 years ago

HI Mark

First of all apologies since I'm rather new with ruby, so sorry if I'm asking something silly.

I succeed upgrading the Ruby version thanks to you useful link, now I think something is missing:

/usr/local/rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require': cannot load such file -- kernel (LoadError) from /usr/local/rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire' from ./rally_test:9:in `

'

I red this thread: https://github.com/carlhuda/bundler/issues/2204

And my version are: bundle -v Bundler version 1.3.5 gem -v 2.0.3 echo $GEM_HOME /usr/local/rvm/gems/ruby-2.0.0-p195 echo $GEM_PATH /usr/local/rvm/gems/ruby-2.0.0-p195:/usr/local/rvm/gems/ruby-2.0.0-p195@global

Thanks a lot for your help. Alfonso

eruialf commented 11 years ago

Hi Mark

My apologies, I solved it just removing the required kernel since It wasn't needed anymore.

Thanks, now it working BR Alfonso.

markwilliams970 commented 11 years ago

Glad you were able to get things working!

eruialf commented 11 years ago

Thanks a lot!!!!!