T
Travis Tslib
I have Perl and PHP experience. I love the idea of true OO and wanted
to give Ruby a try. I expect gem to work like cpan and pear.
I want to use a very simple API to get data and dump into a local
database. I have Windows XP SP 3. I installed Ruby 1.9.2 and Eclipse
and the DLT for Ruby (I've also installed MySQL, but I haven't gotten
that far, yet).
There are three different gems out there that I could use. I'm trying
'reve'. It required 'hpricot'.
That too two hours just to get 'gem install hpricot' to work. I finally
got some sort of Ruby DevKit installed, and hpricot installed and so did
reve, without error.
Now, when I try
require 'reve'
api = Reve::API.new('my_userid','my_apikey')
api.characters.each do |character|
puts character.name
end
I get
C:/Ruby192/lib/ruby/gems/1.9.1/gems/reve-0.0.131/lib/reve.rb:136:in
`read': No such file or directory -
C:/Ruby192/lib/ruby/gems/1.9.1/gems/reve-0.0.131/lib/../VERSION
(Errno::ENOENT)
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/reve-0.0.131/lib/reve.rb:136:in
`initialize'
from C:/Documents and Settings/Travis/workspace/ODNDT Transaction
Farmer/test1.rb:5:in `new'
from C:/Documents and Settings/Travis/workspace/ODNDT Transaction
Farmer/test1.rb:5:in `<main>'
Clearly, I've done something wrong in installing this gem.
Like I said, I'm completely new to Ruby. Yes, there is probably
something I could read somewhere, but I haven't found it today. I
understand that I'm crashing into Ruby, but... I don't want to do 'hello
world'.
to give Ruby a try. I expect gem to work like cpan and pear.
I want to use a very simple API to get data and dump into a local
database. I have Windows XP SP 3. I installed Ruby 1.9.2 and Eclipse
and the DLT for Ruby (I've also installed MySQL, but I haven't gotten
that far, yet).
There are three different gems out there that I could use. I'm trying
'reve'. It required 'hpricot'.
That too two hours just to get 'gem install hpricot' to work. I finally
got some sort of Ruby DevKit installed, and hpricot installed and so did
reve, without error.
Now, when I try
require 'reve'
api = Reve::API.new('my_userid','my_apikey')
api.characters.each do |character|
puts character.name
end
I get
C:/Ruby192/lib/ruby/gems/1.9.1/gems/reve-0.0.131/lib/reve.rb:136:in
`read': No such file or directory -
C:/Ruby192/lib/ruby/gems/1.9.1/gems/reve-0.0.131/lib/../VERSION
(Errno::ENOENT)
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/reve-0.0.131/lib/reve.rb:136:in
`initialize'
from C:/Documents and Settings/Travis/workspace/ODNDT Transaction
Farmer/test1.rb:5:in `new'
from C:/Documents and Settings/Travis/workspace/ODNDT Transaction
Farmer/test1.rb:5:in `<main>'
Clearly, I've done something wrong in installing this gem.
Like I said, I'm completely new to Ruby. Yes, there is probably
something I could read somewhere, but I haven't found it today. I
understand that I'm crashing into Ruby, but... I don't want to do 'hello
world'.