Steve Bazyl
8b296b148e
#286 - Send content-id in batch requests
2015-10-19 15:36:24 -07:00
Steve Bazyl
ed40d7b750
#278 - Add option for connection timeouts
2015-10-02 13:42:47 -07:00
Steve Bazyl
859fd8503f
#287 - set default options if not passed in
2015-10-02 13:41:59 -07:00
Steve Bazyl
81a061cb80
Fix #292 - ensure multivalued parameters are encoded correctly
2015-10-02 13:31:19 -07:00
Steve Bazyl
669aaf01a4
Merge pull request #273 from rusikf/patch-5
...
add more detail specs for client_secrets.rb + fix docs
2015-08-19 12:20:56 -07:00
Steve Bazyl
b5d62db691
Merge pull request #272 from rusikf/patch-4
...
fix RequestOptions#merge + test for default options
2015-08-19 12:20:29 -07:00
Ruslan Korolev
19ead52094
add more detail specs for client_secrets.rb + fix docs
2015-08-19 21:03:53 +03:00
Ruslan Korolev
f4f8b41017
fix RequestOptions#merge + test for default options
2015-08-18 14:13:21 +03:00
Steven Bazyl
9c40b96d85
Avoid overwritting parameters with local vars in method template
2015-08-13 12:08:28 -07:00
Steven Bazyl
4da6f47ff0
Bump version
2015-07-30 17:07:49 -07:00
Steven Bazyl
c9da9f38d1
Make required query parameters required.
2015-07-30 17:05:05 -07:00
Steven Bazyl
6c3089bdf5
Bump version
2015-07-24 22:48:01 -07:00
Steve Bazyl
3a55309671
Merge pull request #258 from jasonwbarnett/fix-installed-app-example
...
updated example so that it works and is more relevant to the new api
2015-07-24 22:38:12 -07:00
Steven Bazyl
297db0eb66
Fix date formatting to include milliseconds, drop virtus
2015-07-24 22:36:01 -07: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
a1722c00e7
Move scope @private tag to Representation so data classes are documented
2015-06-25 16:10:21 -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
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