Open OscarGodson opened 11 years ago
That's pretty weird, what version of Ruby are you running? Also, make sure your PATH is setup correctly to run and find gem executables.
Actually, no idea how, but the commands are being found in BASH now. Went to bed, woke up, and all of a sudden it can find them.
The errors tho still happen. It still uploads the files, but I get the following:
Desktop $ flickr-store put jake-proj/package.json
/Users/oscar/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/flickr-store-0.0.3/lib/flickr-store.rb:101:in `update_dict!': undefined method `write' for File:Class (NoMethodError)
from /Users/oscar/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/flickr-store-0.0.3/lib/flickr-store.rb:78:in `upload'
from /Users/oscar/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/flickr-store-0.0.3/bin/flickr-store:19:in `<top (required)>'
from /Users/oscar/.rbenv/versions/1.9.2-p320/bin/flickr-store:23:in `load'
from /Users/oscar/.rbenv/versions/1.9.2-p320/bin/flickr-store:23:in `<main>'
Ruby info:
Desktop $ ruby -v
ruby 1.9.2p320 (2012-04-20 revision 35421) [x86_64-darwin12.2.0]
It's weird mate, File::write
should be inherited by IO
(http://ruby-doc.org/core-1.9.3/IO.html#method-c-write). Does this happen every time you attempt to run this?
@dekz Yep. Never seen this error before :\
Oh I see it now, you're using 1.9.2
which doesn't seem to have File::write
only File#write
http://ruby-doc.org/core-1.9.2/IO.html#method-i-write. It should work if you update to a recent version of Ruby(1.9.3). Or we could refactor that code to open and then write.
This looks pretty cool, but I'm getting this error:
Also, no idea why, maybe you have an idea, but I have to run these as shell scripts (
./flickr-store
) because even after doing gem install I getbash: flickr-authenticate: command not found
.