google / google-api-ruby-client-samples

Samples for the Google API Ruby Client
327 stars 164 forks source link

Examples not working with current gem due to missing file_storage.rb #4

Closed dsager closed 10 years ago

dsager commented 11 years ago

It seems like the file file_storage.rb is missing in the gem (version 0.6.4):

$ls ~/.rvm/gems/ruby-1.9.3-p392@gaspm/gems/google-api-client-0.6.4/lib/google/api_client/auth
installed_app.rb jwt_asserter.rb  key_utils.rb     pkcs12.rb

When I clone the repository and try to run the examples, I get the following error:

drive.rb:17:in `require': cannot load such file -- google/api_client/auth/file_storage (LoadError)
    from drive.rb:17:in `<main>'
thapakazi commented 11 years ago

⚔ ya, felt the same problem too.. as @dsager require': cannot load such file -- google/api_client/auth/file_storage (LoadError) from drive.rb:17:in

'`

→So I manually did this

cd ~/.rvm/gems/ruby-2.0.0-p195/gems/google-api-client-0.6.4/lib/google/api_client/auth → then wget https://raw.github.com/google/google-api-ruby-client/master/lib/google/api_client/auth/file_storage.rb

→ and got it working 2.0.0p195 :017 > require 'google/api_client/auth/file_storage' => true

delmendo commented 11 years ago

Good thing they monitor this project :)

sgomes commented 10 years ago

Apologies for breaking master for 0.6 projects, I hadn't noticed FileStorage was only available for 0.7.

I've created an 0.6 branch without my changes for those of you using 0.6.

russellsilva commented 10 years ago

@sgomes What about making it the other way around, having a branch for the breaking changes using Google API Client 0.7? It seems to me that the master branch should work with the latest stable version of the gem, which is 0.6.4 as of this writing. 0.7 is only in release candidate stage. What do you think?