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
8e49ee764b
Resolve merge conflict
2014-12-17 12:39:57 -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
ec670e9fa0
Resolve merge conflict
2014-12-15 11:50:16 -08:00
Christian-G
0fda40c21f
Added HTTP Proxy support
2014-12-03 15:52:00 +01:00
Abdelkader Boudih
39c3e81e26
So many versions!!
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
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
5326f5c2a7
fix rand call
2014-01-22 15:09:22 -08:00
Steven Bazyl
1819e16f19
Add retry support & redirect following
2014-01-22 13:54:06 -08:00
Steve Bazyl
8b128286c5
Merge pull request #71 from twelvelabs/master
...
fix "already initialized constant" warnings
2013-09-06 11:37:45 -07:00
Sergio Gomes
d1fe3c2277
Small fixes to client secrets:
...
- Load automatically with a "require 'google/api_client'"
- Allow for signet >= 0.4.0
2013-08-06 18:46:11 +01:00
Skip Baney
4143d900e0
don't require faraday/utils; faraday already includes it
2013-08-02 17:13:15 -05:00
Steven Bazyl
8aa50442ab
Enable gzip compression
2013-06-19 17:37:38 -07:00
Steven Bazyl
e8e2350612
Issue #57 - rewind body if possible when retrying
2013-06-18 16:35:38 -07:00
Steven Bazyl
e27109078a
Allow apps to override ca_file
2013-06-17 17:16:53 -07:00
Steven Bazyl
664e21290a
Bundle root certs
2013-05-31 15:38:00 -07:00
Steven Bazyl
aa7a254d23
Allow options when executing batch requests ( #48 )
2013-05-13 15:19:25 -07:00
Steven Bazyl
794c6a90f7
Upgrade to Faraday 0.9 (fixes params encoding problems)
2013-05-13 14:03:49 -07:00
Steven Bazyl
d9033a4f2a
Remove broken require
2013-03-18 12:31:59 -07:00
Steven Bazyl
0b45f0d8b6
Check for existance of Railties (instead of Rails) before loading railtie)
2013-03-18 12:22:12 -07:00
Steven Bazyl
2c38f9fd09
Fix referesh of oauth token when passing credentials as param
2013-03-17 16:33:27 -07:00
Steve Bazyl
ee6f8ae6f9
Merge pull request #20 from simplymeasured/feature/make-autorefresh-of-token-optional
...
incorporate style feedback from @sporkmonger on #19 ab23fe7539
2013-01-04 16:59:20 -08:00
Steven Bazyl
55b4a94715
Fix odd conflict with VERSION & logger
2013-01-04 16:49:27 -08:00
Steven Bazyl
1d7315ee9b
Sprinkle of logging
2013-01-04 16:14:14 -08:00
Ryan Biesemeyer
84ddf9ba3c
incorporate style feedback from @sporkmonger on ab23fe7539
2013-01-04 21:50:19 +00:00
Steven Bazyl
250e9e7b2d
Merge branch 'master' of https://github.com/google/google-api-ruby-client
2013-01-02 11:51:15 -08:00
Steven Bazyl
8f453134d7
Initial logging support
2012-12-30 11:26:18 -08:00
Ryan Biesemeyer
ab23fe7539
Make the auto-refresh of tokens configurable and optional; in distributed environments, this allows us to handle token refreshes in a way that does not hammer the auth endpoint.
2012-12-29 00:02:02 +00:00
Steven Bazyl
3d157007f6
Auto-refresh OAuth 2 tokens & retry request on 401 response
2012-10-30 13:18:12 -07:00
Steven Bazyl
8799e3a689
Move request class to its own file
2012-10-10 14:28:46 -06:00
Steven Bazyl
e88dabaf4c
Update docs re: api_method + allow options in array-style calls
2012-10-10 14:28:46 -06:00
Steven Bazyl
1fca089d62
Mostly doc updates, +remove support for method as string
2012-10-10 14:28:45 -06:00
Steven Bazyl
fc45135fcd
Continue internal shuffling...
2012-10-10 14:28:45 -06:00
Steven Bazyl
2c6bf97b20
Unify processing of api/resumable/batch requests
2012-10-10 14:25:43 -06:00
Steven Bazyl
5d2a6d4842
Begin consolidation of request building in reference. Further changes coming to simplify batch + media handling
2012-10-10 14:24:25 -06:00
Steven Bazyl
9f51031a00
Consolidate request routing through execute methods
2012-10-10 14:24:25 -06:00
Steven Bazyl
e421d1734d
Remove embedded version #s, use Gemfile
2012-10-10 14:24:25 -06:00
Bob Aman
11155d3c39
Backwards compatibility for MultiJson.
2012-08-30 12:15:59 +03:00
Steven Bazyl
1ff1a8e355
Issue 47 - Improve error handling on result
2012-08-01 00:28:39 +03:00
Bob Aman
3bc7d52764
Resolving issues introduced by Faraday dependency upgrade.
2012-07-21 13:51:23 +03:00
Bob Aman
5e751681dd
Updating dependencies.
2012-07-21 13:51:23 +03:00
Steven Bazyl
a9d46c0359
Resolve merge conflict
2012-06-06 17:32:29 -07:00
Steven Bazyl
a7b40becc6
Allow credentials on per-request basis
2012-06-06 17:27:20 -07:00