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
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
Steven Bazyl
ddbc978b52
Bump version
2014-01-16 13:45:14 -08:00
Michael C. Beck
fd145d2cd1
moved default key into constant
2014-01-10 16:05:50 +01:00
Michael C. Beck
adf6d1facd
added optional redis credential key to be set
2014-01-10 15:50:04 +01:00
Volker Zöpfel
3ef99c7ebb
changes for ruby 1.8.7
2013-12-03 11:11:51 +01:00
Volker Zöpfel
71eeabe55c
adds specs for file_store
2013-12-03 08:30:55 +01:00
Volker Zöpfel
b1f8ac3c0d
change default for authorization to nil
2013-12-03 08:30:28 +01:00
Volker Zöpfel
18c4bab286
remove deprecation warning
2013-11-28 12:29:55 +01:00
Volker Zöpfel
80d25c219b
bugfix file_storage
2013-11-28 12:26:25 +01:00
Volker Zöpfel
4666fedaed
load_credentials just returns nil on errors
2013-11-28 10:24:47 +01:00
Volker Zöpfel
31fac0a6f5
adds specs for storage
...
changes expectation in write_credentials
2013-11-28 08:14:41 +01:00
Ben Barnard
c428db0f3d
Shutdown WEBrick server used in installed app flow
...
Starting and stopping WEBrick only controls whether the event loop is
running, it does not start and stop listening on TCP sockets.
Our WEBrick server is starting to listen when it is initialised,
so we should ensure that we shut it down when we are done with it.
Note that shutdown is idempotent.
2013-11-20 00:28:21 +01:00
Volker Zöpfel
6404615a57
uses new initialize and authorize
2013-11-18 11:39:40 +01:00
Volker Zöpfel
5c61e39ba4
use authorization method instead of variable
...
remove authorize from initialize
2013-11-18 11:39:02 +01:00
Michael C. Beck
34d3c18fed
added deprecation warnings to file_storage
2013-11-15 10:27:46 +01:00
Michael C. Beck
0e9637c77c
rename file_store
2013-11-15 10:26:18 +01:00
Volker Zöpfel
a27a122825
adds comment
2013-11-15 09:20:37 +01:00
Volker Zöpfel
7de9612071
adds old FileStorage again to be backward compatible
2013-11-14 18:09:48 +01:00
Volker Zöpfel
9ddc8b85dc
make methods private
2013-11-14 17:40:54 +01:00
Volker Zöpfel
c2135d9dcf
split storages in own adapter classes, added redis adapter
2013-11-14 15:50:06 +01:00
Volker Zöpfel
bd7cf179f3
adds Constants for Authorization_uri, Token_credentials_uri
...
extracts authorize
extracts credentials_hash
2013-11-14 14:45:36 +01:00
Volker Zöpfel
bbb24a5d2e
using the path= method on initialize
2013-11-14 08:32:47 +01:00
Volker Zöpfel
10a337b807
adds method path= to proof if file can be accessed
2013-11-14 08:31:21 +01:00
Volker Zöpfel
146ccad83a
using symbols as hash keys
2013-11-14 08:19:21 +01:00
Volker Zöpfel
5538bded1f
refactoring load_credentials
...
adding refresh_authorization
write_credentials now using the authorizations methods not the instance variables, Using the instance variables can cause problems.
2013-11-14 08:17:08 +01:00
Sergio Gomes
f06f1e33fa
Minor documentation fix
2013-10-29 13:25:55 +00:00
Sergio Gomes
ef4541b6eb
Removing service logger. Incorrect implementation; loggers are global instead, and set in a Google::APIClient class method
2013-10-29 13:17:39 +00:00
Sergio Gomes
0fd0dca2f4
Adding discovery document caching to Service interface
2013-10-29 12:59:52 +00:00
Sergio Gomes
876dddad36
Minor doc fix
2013-10-07 18:11:45 +01:00
Sergio Gomes
83d411990c
Adding batch support to new service interface
2013-10-04 15:56:06 +01:00
Sergio Gomes
1e2405093b
- Improving the Service interface with access to more properties
...
- Adding end-to-end spec
- Fixing bugs
2013-09-11 16:51:10 +01:00
Sergio Gomes
e73ce124fa
Initial version of new programming interface
2013-09-10 15:29:36 +01:00
Steven Bazyl
2a3965d976
Redo 0.7.0...
2013-09-09 13:58:13 -07:00
Steven Bazyl
855a7fc823
0.7.0.rc1 release
2013-09-09 13:23:09 -07: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
5249137d4c
Removing empty file
2013-09-05 12:32:36 +01:00
Sergio Gomes
c766975587
Ensuring that multivalued requests in the AdSense Management API actually work
2013-09-05 12:30:30 +01:00
Johan Euphrosine
f5238bbf12
auth: perserve original option param
2013-08-15 14:19:37 -07:00
Johan Euphrosine
9d7735f031
auth: add compute service account
2013-08-14 16:29:16 -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
189473cc9e
Remove example of deprecated use
2013-06-20 10:34:16 -07: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
c45740b81c
Fix normalization of parmeters keys
2013-06-18 15:51:46 -07:00
Steven Bazyl
903e568a65
No longer buffer chunks/files when using resumable upload
2013-06-18 12:15:02 -07:00
Steven Bazyl
e27109078a
Allow apps to override ca_file
2013-06-17 17:16:53 -07:00
Steven Bazyl
f7307ec35d
Remove unnecessary require
2013-05-31 17:22:18 -07:00
Steve Bazyl
ef4e924a5c
Merge pull request #52 from jeffposnick/master
...
Added support for caching OAuth 2 credentials to disk
2013-05-31 15:43:03 -07:00
Steven Bazyl
d68dc4d27e
Don't attempt resumable upload if initial response failed (Issue #32 )
2013-05-31 15:41:00 -07:00
Steven Bazyl
664e21290a
Bundle root certs
2013-05-31 15:38:00 -07:00
Jeff Posnick
fb67a021e7
Added Google::APIClient::FileStorage, to save OAuth 2 credentials to disk
...
This is a (potentially rough) bit of code to persist OAuth 2
credentials to disk, similar to
http://google-api-python-client.googlecode.com/hg/docs/epy/oauth2client .
file.Storage-class.html
It can be used in the following manner, which roughly translates to
what the Python client library code looks like.
file_storage = Google::APIClient::FileStorage.new("#{$0}-oauth2.json")
if file_storage.authorization.nil?
client_secrets = Google::APIClient::ClientSecrets.load
flow = Google::APIClient::InstalledAppFlow.new(
:client_id => client_secrets.client_id,
:client_secret => client_secrets.client_secret,
:scope => [SCOPE1, SCOPE2]
)
client.authorization = flow.authorize(file_storage)
else
client.authorization = file_storage.authorization
end
2013-05-29 15:31:44 -04: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
bfafe1b0c8
Minor release
2013-03-25 21:37:52 -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
Steven Bazyl
ef4c5c1f2f
Fix URI in batched request to allow query parameters
2013-02-15 13:13:58 -08:00
Steven Bazyl
f421551018
Fix duplication of parameters in qeuery string
2013-01-22 22:14:50 -08:00
Steven Bazyl
0dafa5e4ee
Minor release for updating signet
2013-01-18 09:21:13 -08:00
Steven Bazyl
f369139b32
Minor release to fix service account impersonation
2013-01-14 17:00:58 -08:00
Oxana Goutnik
7d204ac507
fix for #22 impersonation
2013-01-12 10:29:47 -05: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