Commit Graph

259 Commits

Author SHA1 Message Date
Daniel Azuma b314e0df2b
Ensure ClientSecrets uses googleauth extensions (#814) 2019-07-29 10:40:52 -07:00
Daniel Azuma ce9de93a55
Prevent errors loading deprecated installed_app file if launchy is not present (#745) 2018-12-05 10:51:45 -08:00
Graham Paye ee49501c6c
fix windows test failures (#736) 2018-11-26 13:22:07 -08:00
Michael Wawra 74bbfa2251 Allow symbols for credential flow
Because of my production environment, adding a JSON file a little bit of
a pain. However: using the intializer it's readily possible to set my
credentials manually from my environment. I noticed that while all the
credential details can be either a String or a Symbol, the 'flow' (i.e.,
`web`) **must** be a string.

This allows it to accept both a string and a symbol.
2016-04-26 22:41:32 +01:00
James Healy 4b9a63c086 replace multi_json dependency with regular stdlib JSON
JSON has been part of the ruby stdlib since 1.9.0 (see
https://github.com/ruby/ruby/commit/af1c4167), and the latest version of
google-api-client requires ruby 2.0 or better so we can assume it's available
2016-02-25 13:27:33 +11:00
Steve Bazyl 9e738cc82a Mark auth classes as deprecated 2015-12-14 17:42:17 -08:00
Steve Bazyl 859fd8503f #287 - set default options if not passed in 2015-10-02 13:41:59 -07:00
Ruslan Korolev 19ead52094 add more detail specs for client_secrets.rb + fix docs 2015-08-19 21:03:53 +03:00
Jason Barnett 69c1eabb01 updated example so that it works and is more relevant to the new api 2015-07-20 16:53:06 -07:00
Steven Bazyl a3bec66216 Allow signet options to be passed through when authorizing 2015-07-20 12:37:03 -07:00
Steven Bazyl 2a9fd28176 Expose HTTP status code & body in errors 2015-07-20 12:36:13 -07:00
Steven Bazyl d04c8fa4c5 Update a few broken doc tags 2015-06-25 16:10:51 -07:00
Steven Bazyl f584a2cec8 Import refactored library. See MIGRATING.MD for details 2015-06-23 15:15:14 -07:00
Steven Bazyl 9b7809174d Nuke it from orbit, it's the only way to be sure 2015-04-16 17:21:38 -07:00
Steve Bazyl 82f69445ad Merge pull request #217 from sudiptachatterjee/master
Updating success logic
2015-04-16 16:38:26 -07:00
dsisnero c24c1432cb Update result.rb
guard next_page and prev_page for when no page_tokens are available
2015-04-15 16:25:00 -06:00
Tim Emiola 15853007bf Bump version to 0.8.6 2015-04-14 17:19:56 -07:00
remi Taylor 94a979b512 Respect discovered methods with colons in path 2015-04-13 21:38:47 -07:00
Sudipta Chatterjee 1cea86609b Updating success logic
Updating the definition of SUCCESS response code to be 200 OK or 201
Continue. Error is anything that isn't success. This helps flag
conditions like an unsuccessful update (return code 304) which the
library would have flagged as success earlier
2015-04-10 16:12:37 -07:00
Tim Emiola 0003e564b1 Merge pull request #213 from remi/respect-discovered-rootUrl
Use discovered 'rootUrl' as base URI for services
2015-04-07 18:55:56 -07:00
remi Taylor 6aa156daa7 Remove trace statements 2015-04-06 22:47:31 -07:00
remi Taylor 1ed677b796 Use discovered 'rootUrl' as base URI for services 2015-04-06 21:38:42 -07:00
Tim Emiola ae8a15ce76 Release 0.8.5 2015-03-31 17:01:35 -07:00
Tim Emiola f008d518f0 Release 0.8.4
- minor updates from the 0.8.3 release to fix file permissions in the released gem.
- fixes a warning when using the gem
2015-03-25 18:31:54 -07:00
Mike Moore 3eb18d6011 Fix warning: shadowing outer local variable
Versions of ruby deal with shadowing in different ways. Best to avoid it when possible.

Addresses the following warnings:

lib/google/api_client/auth/key_utils.rb:34: warning: shadowing outer local variable - passphrase
lib/google/api_client/auth/key_utils.rb:52: warning: shadowing outer local variable - passphrase
2015-03-25 17:14:45 -06:00
Mike Moore 4d81ad116a Fix warning: instance variable not initialized
Initialize the variables to avoid the warning.

Addresses the following warnings:

lib/google/api_client/auth/storage.rb:51: warning: instance variable @authorization not initialized
lib/google/api_client/batch.rb:128: warning: instance variable @global_callback not initialized
2015-03-25 17:10:00 -06:00
Mike Moore 1dd5c2820a Fix warning: File.exists? is deprecated
File.exist? should be used instead.
Might consider using File.file? instead of File.exist? since File.exist? will
return true when given the path of a file or a directory.

Addresses the following warning:

lib/google/api_client/service/simple_file_store.rb:127: warning: File.exists? is a deprecated name, use File.exist? instead
2015-03-25 17:06:20 -06:00
Mike Moore 349c26fa8b Fix warning: assigned but unused variable
There are several places where varaibles are assigned but not used.
The variables can be replaced with _, or prepended with _ to avoid a warning.
In one case the variable was removed because it was at the end of the method.

Addresses the following warnings:

lib/google/api_client.rb:493: warning: assigned but unused variable - key
lib/google/api_client/batch.rb:168: warning: assigned but unused variable - callback
lib/google/api_client/batch.rb:227: warning: assigned but unused variable - base
lib/google/api_client/batch.rb:271: warning: assigned but unused variable - protocol
lib/google/api_client/batch.rb:271: warning: assigned but unused variable - reason
lib/google/api_client/request.rb:247: warning: assigned but unused variable - request_env
2015-03-25 17:03:20 -06:00
Tim Emiola da6977f8ad Version bump, and updates the googleauth dependency 2015-03-23 18:51:22 -07:00
Steven Bazyl 944167de1b Minor release 2015-01-09 16:05:40 -08:00
Steven Bazyl 28adb02b60 #189 - Fix legacy file storage 2015-01-09 16:02:40 -08:00
Steven Bazyl dcd1eb916a Fix logger, take #2 2014-12-19 15:45:20 -08:00
Steven Bazyl 0d0bba2458 Bump version 2014-12-18 09:23:54 -08:00
Néstor Coppi 415dc31c97 Set app logger
For issue #183 I have the same problem with Rails 4.1.6 and Ruby 2.1 with that, we have covered some cases ^^
2014-12-18 11:07:17 -03:00
Steven Bazyl 63ccd91836 Update changelog & bump version 2014-12-17 12:59:54 -08:00
Steven Bazyl 8e49ee764b Resolve merge conflict 2014-12-17 12:39:57 -08:00
Steven Bazyl b9639ee11c #158 - guard against missing page tokens when building next/prev page requests 2014-12-16 20:57:12 -08:00
Steven Bazyl d999033fd6 #159 - Excute batch requests using the service's connection 2014-12-16 20:52:57 -08:00
Steven Bazyl 2622ebf8dc Add minimal tests for ClientSecrets 2014-12-16 13:47:26 -08:00
Steven Bazyl fda7288859 #160 - Add option to set encoding of response body 2014-12-16 12:29:11 -08:00
Steven Bazyl 8510735db8 Resolve merge conflict, update rspec syntax 2014-12-15 13:32:54 -08:00
Steven Bazyl 262ebe3d52 Fix typo in sample 2014-12-15 13:02:51 -08:00
Steven Bazyl ec670e9fa0 Resolve merge conflict 2014-12-15 11:50:16 -08:00
Steven Bazyl 0244bf13b3 Update depdencies, simplify gem management 2014-12-15 11:44:51 -08:00
Pascal Brogle 66a1e15a82 only upload media if there is one 2014-12-07 10:43:30 +01:00
Abdelkader Boudih 2ba98c3332 Dropped uuidtools 2014-10-08 12:03:28 +00:00
Abdelkader Boudih b2343e24a5 Use ActiveSupport instead of extlib 2014-10-08 12:03:28 +00:00
Abdelkader Boudih 39c3e81e26 So many versions!! 2014-10-08 12:02:36 +00:00
Abdelkader Boudih e313235b55 Replace deprecated method that cause ruby warnings File.exit? 2014-10-08 12:02:36 +00:00
Abdelkader Boudih 9c7e953d1b Use the app logger and require railtie 2014-10-08 12:01:32 +00:00