2012年5月29日火曜日

instagram-ruby-gem の undefined method `configure' for Instagram:Module(NoMethodError) 続き

$ bundle isntall


できたーと思って


$rails s


起動したら今度は


Bundler could not find compatible versions for gem "faraday":


In snapshot (Gemfile.lock):


faraday (0.8.0)


In Gemfile:


instagram (>= 0) ruby depends on


faraday (= 0.7.6) ruby


Running `bundle update` will rebuild your snapshot from scratch, using only


the gems in your Gemfile, which may resolve the conflict.


今度はfaradayで喧嘩。

ググる。

https://github.com/Instagram/instagram-ruby-gem/issues/33


というわけで、0.7.6にあわせればいいらしい。


forkして、


local に clone


instagram.gemspec


s.add_runtime_dependency('faraday', '0.7.6')

に変更。

$ git add . $ git commit -a -m 'changed faraday verstion to 0.7.6 $ git push origin master

これで

Gemfile

'gem 'instagram', :git => 'git://github.com/yahsan2/instagram-ruby-gem.git'

に変更。

再びGem.lockを消して$ bundke install$rails s

できたー!!!!






0 件のコメント:

コメントを投稿