Commit Graph

295 Commits

Author SHA1 Message Date
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
Tim Emiola da7616d99d Adds simple integration with googleauth 2015-03-09 17:52:43 -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 74134bf873 Resolve merge conflict, update rspec syntax and docs 2014-12-15 13:41:10 -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
Christian-G 0fda40c21f Added HTTP Proxy support 2014-12-03 15:52:00 +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 1a414e7f0d prefer AS's Inflector over Extlib 2014-10-08 12:02:36 +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
Sérgio Gomes fda7086f43 Merge pull request #94 from programmiersportgruppe/master
Shutdown WEBrick server used in installed app flow
2014-09-17 15:56:26 +01:00
Sérgio Gomes f926429461 Fixing issue with service-style batches and requests with bodies 2014-08-15 09:49:59 +01:00
Janis Kesteris 2f88bc5487 allows to pass FaraDay options furthur to FaraDay configuration block upon client initialization 2014-07-29 15:06:45 +02:00
Doug Henderson 17092bb129 Unit test updates + ensure auth retry only done once per execute 2014-03-13 13:13:44 -07:00
Doug Henderson 2bed0748ab Add auto retry logic for auth expiry separate from normal failure retry 2014-03-13 11:20:08 -07:00
Steven Bazyl bfa5225766 Tweak retry policy. 40x errors aren't typically recoverable other than 401s in the case of expired access tokens. Even then, 1 retry is enough 2014-01-30 17:27:16 -08:00
Steven Bazyl df72a3681d Minor release to update retriable dependency lost when merging 2014-01-23 13:31:45 -08:00
Steven Bazyl c06f4edb1e Set content length for media uploads 2014-01-22 15:32:35 -08:00