Steve Bazyl
554c20d304
Merge pull request #347 from sunboshan/regexp-improvement
...
Cleaner code on regexp
2016-01-29 14:51:50 -08:00
Steve Bazyl
ed31a3bb64
Update class template to allow nil attributes values
2016-01-28 16:38:07 -08:00
boshan
0ce4387091
Cleaner code on regexp
2016-01-25 15:59:24 -08:00
Steve Bazyl
1cc4f99ed3
Fix quote inconsistency
2016-01-20 14:55:38 -08:00
Steve Bazyl
26efeb5057
Updates APIs & bump version
2016-01-20 12:41:43 -08:00
Steve Bazyl
c6cff40982
Merge pull request #338 from Nakilon/patch-1
...
required 'tempfile'
2016-01-20 12:32:33 -08:00
Victor
0948acd8bf
required 'tempfile'
...
Otherwise I get:
```
gems/google-api-client-0.9/lib/google/apis/core/upload.rb:104:in `streamable?': uninitialized constant Google::Apis::Core::BaseUploadCommand::Tempfile (NameError)
```
when do
```
service.insert_file(metadata, upload_source: "temp.pdf")
```
2016-01-19 13:49:51 +03:00
Steve Bazyl
1864ea712f
Bump version
2016-01-14 17:42:44 -08:00
Steve Bazyl
2533098484
Add option to force passing alt=json for some APIs that return xml by default
2016-01-14 10:48:40 -08:00
Steve Bazyl
8dcab2ace0
Bump version
2016-01-07 16:15:43 -08:00
Steve Bazyl
451a0b6617
Include reason & message in API error when available
2016-01-07 14:28:34 -08:00
joker1007
4b78f99f7a
Extract long condition statement to its own method
2016-01-06 14:35:23 +09:00
joker1007
df07478009
Add Tempfile to if statement of BaseUploadCommand#prepare!
2016-01-05 20:19:11 +09:00
Steve Bazyl
1715fc9945
Fix #326 - Normalize query parameters to allow falsey values
2015-12-20 15:22:13 -08:00
Steve Bazyl
4173efe67b
Fix #327 - Don't break Module.hash
2015-12-20 14:39:54 -08:00
Steve Bazyl
e8481dd14d
Use HTTPClient instead of Net::HTTP
2015-12-18 14:37:21 -08:00
Steve Bazyl
c102c571e0
Release 0.9.pre4
2015-12-17 13:34:38 -08:00
Steve Bazyl
d47e96c572
Merge branch 'master' of https://github.com/google/google-api-ruby-client
2015-12-16 11:34:10 -08:00
Steve Bazyl
ccd8a40eb9
Update version, changelog
2015-12-16 11:34:05 -08:00
Steve Bazyl
9e738cc82a
Mark auth classes as deprecated
2015-12-14 17:42:17 -08:00
railscard
f51a4f25a9
Allow http command to keep initial query parameters
2015-12-14 06:16:31 +04:00
Steve Bazyl
0d07ea17f1
Merge branch 'master' of https://github.com/google/google-api-ruby-client
2015-12-02 17:12:21 -08:00
Steve Bazyl
e399d04d33
Tweak method name generation
2015-12-02 17:09:44 -08:00
Steve Bazyl
6c75e89cfe
Merge pull request #310 from amitree/master
...
No longer swallowing errors from block passed to execute
2015-12-02 17:09:01 -08:00
Steve Bazyl
a1b5f6c2d2
Issue #290 - Fix redirects during downloads, only stream body content on 20x response. Includes temporary patch to Hurley until 0.3 released
2015-12-02 15:52:30 -08:00
Steve Bazyl
5822e75f34
Fix #313 - Don't retry uploads marked as final/cancelled and return original error
2015-11-30 15:35:18 -08:00
Tony Novak
9535ffa44c
No longer swallowing errors from block passed to execute
...
Fixes #309
2015-11-20 09:32:43 -05:00
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
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
Steven Bazyl
8ce4d052fe
Add oauth helper for installed apps, update CLI
2013-01-04 16:14:59 -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
31a78788bd
Add railtie
2013-01-02 20:07:17 -08:00
Steven Bazyl
7e3cacdb0e
Define custom load/dump for serializing API instances
2013-01-02 16:13:26 -08:00
Steven Bazyl
be3b436f58
Fix JWT example in docs
2013-01-02 16:12:47 -08:00
Steven Bazyl
a631c4003a
Read keyfile in binary mode
2013-01-02 12:59:43 -08:00
Steven Bazyl
1f0ea6338e
Remove stray output to STDOUT
2013-01-02 12:55:52 -08: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
71fbe4a825
Use JWT support in signet, ignore broken PKCS12 tests on jruby
2013-01-02 11:50:45 -08:00
Steven Bazyl
8f453134d7
Initial logging support
2012-12-30 11:26:18 -08:00
Steve Bazyl
6b9d4bc879
Merge pull request #19 from simplymeasured/feature/make-autorefresh-of-token-optional
...
Make the auto-refresh of tokens configurable and optional
2012-12-30 11:21:56 -08:00
Steve Bazyl
8c2b734ef1
Merge pull request #13 from sanemat/multi-json-in-rails-case
...
Compatible multi_json >= 1.0.0 with Rails3.2.8
2012-12-30 11:20:01 -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
Ranjib Dey
bd04489a43
Ranjib| there is n method/instance variable named options inside serialize, to_hash should be invoke on 'body' instead
2012-12-27 13:36:08 -08:00
Steven Bazyl
b0b03cc363
Fix stackoverflow tag, minor doc cleanup for batch API
2012-11-05 11:05:48 -08:00
Steven Bazyl
1c849c7e7a
Refactor key loading to support PEM + fix issue #62
2012-11-02 13:56:53 -07:00
Steven Bazyl
01fc90b3fc
Fix sample for JWTAsserter (missing .new)
2012-11-02 12:50:06 -07:00
Steven Bazyl
3d157007f6
Auto-refresh OAuth 2 tokens & retry request on 401 response
2012-10-30 13:18:12 -07:00
sanemat
6e40390d26
Remove too much checking
2012-10-13 15:43:52 +09:00
sanemat
f9ccc6efdf
Add namespace check
2012-10-11 09:23:53 +09:00
Steven Bazyl
5fea10a1d7
Re-org service account support
2012-10-10 14:28:46 -06:00
Steven Bazyl
8799e3a689
Move request class to its own file
2012-10-10 14:28:46 -06:00
Steven Bazyl
30d0ffc698
Issue 59 - handle 204 responses more gracefully
2012-10-10 14:28:46 -06:00
Steven Bazyl
cd37e4bfea
Doc improvements
2012-10-10 14:28:46 -06:00
Steven Bazyl
3dcd88a884
Expose discovery doc in prep for future doc changes
2012-10-10 14:28:46 -06:00
Steven Bazyl
000fedfbfb
Add method for checking if upload can be resumed
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
83ab4a681f
More documentation cleanup
2012-10-10 14:28:46 -06:00
Steven Bazyl
9bd9ceb75c
More documentation cleanup
2012-10-10 14:28:45 -06:00
Steven Bazyl
1fca089d62
Mostly doc updates, +remove support for method as string
2012-10-10 14:28:45 -06:00
Steven Bazyl
b425658f2f
Allow adjusting issued-at time to minimize clock skew issues
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
Steven Bazyl
6a37993df7
Remove unnecessary normalization/fix addressable bug
2012-10-10 14:24:25 -06:00
sanemat
92a074bc18
Compatible multi_json >= 1.0.0 with Rails3.2.8
2012-10-11 02:51:34 +09:00
Bob Aman
dd8cee65b2
This should resolve the issue with Kernel#load.
2012-10-08 17:06:08 +03:00
Bob Aman
2c567fd720
Added the ability to create an authorization object from client secrets.
2012-10-05 12:07:42 +03:00
Bob Aman
2f630f6c1d
Merge branch 'master' of github.com:google/google-api-ruby-client
2012-08-30 12:16:49 +03:00
Bob Aman
11155d3c39
Backwards compatibility for MultiJson.
2012-08-30 12:15:59 +03:00
Marc Lennox
0e5070c356
Syntax change to satisfy pull request
2012-08-18 21:12:54 -07:00
Marc Lennox
6795eeece9
Fixed an issue where the code was expecting parameters as a hash when in fact they are previously converted to an array
2012-08-18 16:43:57 -07:00
Steven Bazyl
1ff1a8e355
Issue 47 - Improve error handling on result
2012-08-01 00:28:39 +03:00
Bob Aman
9e55284329
Some debug statements snuck into the commit.
2012-08-01 00:20:29 +03:00
Bob Aman
992a698b0a
Two failing tests, neither of which I can do much about.
2012-08-01 00:16:26 +03:00
Bob Aman
45bc8f4898
Removed trailing whitespace.
2012-07-31 23:57:45 +03:00
Bob Aman
10856af027
Updating version.
2012-07-31 16:56:54 +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
47ed766eea
New version of client lib
2012-06-11 15:59:29 -07: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
Steven Bazyl
f7a4db959d
Initial support for service accounts
2012-06-06 17:25:44 -07:00
Sergio Gomes
2666acc24a
Moving BatchError to errors.rb
2012-05-18 10:45:54 +01:00
Sergio Gomes
a666d52770
Adding batch support
2012-05-16 20:05:24 +01:00
Sérgio Gomes
44d113131b
Resolves issue of validation failing for repeated parameters.
2012-05-11 12:50:18 +03:00
Bob Aman
c651d69674
Updated to avoid deprecation of encode and decode methods in multi_json gem.
2012-04-24 14:39:25 +03:00
Steven Bazyl
9dfd8a132d
Update changelog & API version
2012-03-27 11:10:56 -07:00
Bob Aman
33ea36ca46
Fixed formatting issue with OS version number in Java.
2012-03-14 17:11:19 +01:00
Steven Bazyl
11bae1fde0
Multipart upload compatibility with 1.8.7
2012-03-14 17:10:36 +01:00
Adam Sawyer
eec8c167cb
When running in a jvm, get the OK name and version from java's system properties, to avoid exec'ing uname.
2012-03-13 14:41:58 -04:00
Bob Aman
7545efddb6
Fixed whitespace issue.
2012-03-02 17:07:35 +01:00
Bob Aman
2599184e88
Merge branch 'master' of https://code.google.com/p/google-api-ruby-client
2012-03-02 17:07:02 +01:00
Bob Aman
8eea813905
Initial pass at parsing and handling client_secrets.json.
2012-03-02 17:06:08 +01:00
Steven Bazyl
1121bb7fe6
Merge branch 'master' of https://code.google.com/p/google-api-ruby-client
2012-03-01 17:24:14 -08:00
Steven Bazyl
b8301b0dd5
Media upload support
2012-03-01 17:23:36 -08:00
Bob Aman
2b9ac92b7e
More carefully resolving the discovery-of-discovery issue.
2012-02-27 12:23:33 +01:00
Bob Aman
1e5f09a594
Cleaning up the changes made by @vapir.
2012-02-27 12:14:11 +01:00
Bob Aman
af61568cbe
Merge branch 'master' of github.com:sporkmonger/google-api-ruby-client
2012-02-27 11:29:16 +01:00
Bob Aman
0f25fbe793
Updated version and CHANGELOG.
2012-02-22 15:40:33 +03:00
Bob Aman
1632e98a05
Patch to solve Ruby 1.8.7 incompatibility.
2012-02-22 15:09:35 +03:00
Ethan
b866e07d70
rescue any error invoking external commands attempting to determine OS_VERSION; just return RUBY_PLATFORM on failure.
2012-02-22 03:31:17 -05:00
Ethan
80c41c99fc
minor whitespace touchup
...
gedit's syntax highlighting breaks on the previous
2012-02-22 03:31:17 -05:00
Ethan
b6ef9b00ad
fix schema to not choke when '$ref' is specifying what the '$ref' property actually is, rather than invoking it, and is therefore not a string.
...
this applies to the schema JsonSchema, specified in the document for the discovery service itself
2012-02-22 03:30:59 -05:00
Ethan
bd1ce540d4
if ApiClient receives :authorization => false, respect that, and only default to oauth2 if :authorization is omitted
2012-02-22 03:30:59 -05:00
Ethan
d59901bf1e
add method ApiClient#relative_uri which constructs a full uri from a given relative path, respecting specified protocol, host, and port; and allowing expanded parameters passed through Addressable::Template
2012-02-22 03:30:58 -05:00
Ethan
c50f92c50c
change ApiClient's configurable host to a configurable baseURI, so that protocol, port, and base path may be overridden in addition to host
2012-02-22 03:30:58 -05:00
Nikolay Mischenko
2eb6da99d3
Fixed parameters encoding (should be urlencoded)
2012-02-15 16:25:48 +03:00
Bob Aman
17e540d0de
Added ID token verification against server certificate.
2012-02-15 15:23:54 +03:00
Bob Aman
f1c5b65baf
Updated version and CHANGELOG with recent fixes.
2012-02-10 17:32:58 +03:00
Bob Aman
1a381ab963
Method renames to be consistent with change to resources.
2012-02-10 17:26:44 +03:00
Steven Bazyl
c02f2ce6a4
Don't traverse ancestors when checking if schema is defined
2012-02-08 11:35:39 -08:00
Steven Bazyl
5b45f8f351
Rename 'resources' method due to conflict with one of the APIs.
2012-01-30 23:28:55 -08:00
Bob Aman
06cdb76670
Updated to replace httpadapter with faraday.
2012-01-27 17:57:57 +03:00
Bob Aman
0bc3d4936b
Migrated to MultiJson from JSON gem.
2012-01-05 13:05:56 +03:00
Bob Aman
04ec835ca1
Merge branch 'master' of ../martinsarsale-support-for-repeats
2011-12-02 17:27:13 +03:00
Bob Aman
321533455c
Fixed some YARD documentation issues and changed how the user-agent is built.
2011-12-02 16:43:55 +03:00
Martin Sarsale
f736ac4d97
Merge remote branch 'remotes/upstream/master'
2011-11-30 11:39:28 -03:00
Bob Aman
e0afbdaf05
Attempting to fix some Windows issues and update deprecated library calls.
2011-11-16 11:44:55 +03:00
Martin Sarsale
01229ff710
Accept repeated parameters
2011-11-02 15:18:03 -03:00
Bob Aman
ba38697528
Fixed environment check for Windows.
2011-10-31 13:33:22 +03:00
Bob Aman
99dae4e560
Minor change to inflection.
2011-10-21 11:28:59 +03:00
Bob Aman
4b6e032e1b
Updated to match change to AutoParse.
2011-10-20 17:58:00 +03:00
Bob Aman
abf64d5314
Added task for wiki autogeneration.
2011-10-15 11:22:59 +03:00
Bob Aman
92ad3a293a
Fixed issue with version and moved version back to 0.3.0.
2011-10-15 11:22:50 +03:00
Bob Aman
4db326a3ed
Added task for wiki autogeneration.
2011-10-15 11:22:36 +03:00
Bob Aman
2dcdec1191
Fixed issue with version and moved version back to 0.3.0.
2011-10-15 11:21:21 +03:00
Bob Aman
bb4e15b9f4
Fixed issues with recursive structures and external references.
2011-10-05 14:13:39 +03:00
Bob Aman
06af19a112
Switched to using AutoParse for schemas.
2011-09-22 16:27:24 +03:00
Bob Aman
af104f8c5f
Fixed issue with ambiguous reference.
2011-09-22 16:26:33 +03:00
Bob Aman
15a372cedb
Added code to include userIp and key parameters.
2011-09-22 13:49:58 +03:00
Bob Aman
ef065ce8d6
Added code to include userIp and key parameters.
2011-09-22 13:49:46 +03:00
Bob Aman
b869319d1d
Added better handling for errors.
2011-09-22 12:21:22 +03:00
Bob Aman
a9ae33bb47
Added better handling for errors.
2011-09-22 12:21:05 +03:00
Bob Aman
4fa30fc051
Changed discovery and directory methods to use the main code-path for generating requests.
2011-09-22 10:42:31 +03:00
Bob Aman
7724b20e9a
Changed discovery and directory methods to use the main code-path for generating requests.
2011-09-22 10:41:13 +03:00
Bob Aman
d2907c9d79
Added better support for user IP and developer key across all APIs.
2011-09-21 10:52:15 +03:00
Bob Aman
e399dd76b0
Added better support for user IP and developer key across all APIs.
2011-09-21 10:51:51 +03:00
Bob Aman
6fc526bd21
Partial solution to the issue of generating JSON.
2011-08-19 11:59:53 +03:00
Bob Aman
5c4323b11c
Introduced the ability to pass in an API object instead of a raw body when making requests.
2011-08-17 21:42:24 -04:00
Bob Aman
f159ab7285
Introduced the ability to pass in an API object instead of a raw body when making requests.
2011-08-17 21:42:03 -04:00
Bob Aman
105dbd64f2
Fixed a bug in the method definition closures.
2011-08-10 16:59:55 -04:00
Bob Aman
27ae32d2e7
Basic structure of schema parsing complete.
...
* Note that additionalProperties fields are not currently supported and may
only be accessed in raw form. Shouldn't be a big deal because only the Buzz
API uses them extensively.
2011-08-10 16:48:22 -04:00
Bob Aman
d9a108415b
Added method to expose API property descriptions.
2011-08-08 18:04:48 -04:00
Bob Aman
9a2217a6bb
Added support for API feature lists.
2011-08-08 17:28:21 -04:00
Bob Aman
b8bd8e3964
Added support for API feature lists.
2011-08-08 17:23:59 -04:00
Bob Aman
547034d1e3
Adding missing require.
2011-08-05 17:00:36 -04:00
Bob Aman
75ee556a99
Moved dynamic method definitions into the APIObject class.
2011-08-05 16:55:40 -04:00
Bob Aman
960796d23d
Added default values.
2011-08-05 14:44:29 -04:00
Bob Aman
13d590631b
Added API#schema_for_kind method to allow schema lookups by kind.
2011-08-05 14:43:56 -04:00
Bob Aman
1fa3fb25d9
Better way to handle automatic parsing using the schemas in the discovery document.
2011-08-04 23:36:36 -04:00
Bob Aman
b4745890f5
Separated out the discovery classes into individual files.
2011-08-04 18:32:00 -04:00
Bob Aman
0d2cbe26df
Fixed issue with header/options ambiguity.
2011-08-02 16:20:54 -04:00
Bob Aman
f336ab34a7
Major update, primarily to add pagination support.
...
* Added Reference objects to encapsulate API calls.
* Added Result objects to encapsulate API responses.
* Changed the return value of APIClient#execute to Result.
* Changed the method signature of APIClient#execute to support named params.
* Added APIClient#execute! which throws exceptions on error.
* Added automatic parsing code to better allow for complex nested structures.
* Added error parser.
* Added module for pagination in parsers.
2011-07-29 18:07:04 -04:00
Bob Aman
ef2abc0493
Updated to use v1 of the discovery API.
...
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@155 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2011-05-12 20:14:15 +00:00
Bob Aman
7d370c6d10
Updated documentation on User-Agent.
...
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@154 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2011-05-12 17:12:15 +00:00
Bob Aman
4d56bb8b1b
Added User-Agent improvements.
...
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@133 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2011-05-04 22:43:33 +00:00
Bob Aman
286a7152f2
A significant update of the client functionality.
...
* updated to use v0.3 of the discovery API
* updated to use httpadapter 1.0.0
* added OAuth 2 support to the command line tool
* renamed some switches in the command line tool
* added additional configuration capabilities
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@128 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2011-05-04 11:44:35 +00:00
Bob Aman
1dee705828
Fixed extlib/activesupport conflict. Seriously people, thou shalt not monkey-patch!
...
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@127 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2011-01-19 23:41:37 +00:00
Bob Aman
0b49c3fd2e
Added User-Agent header.
...
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@107 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2011-01-05 01:09:52 +00:00
Bob Aman
76fe65a650
Incrementing the version.
...
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@104 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-11-04 20:00:03 +00:00
Bob Aman
38f5bc5baf
Added ability to update the base URI in services, resources, and methods.
...
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@102 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-22 22:56:01 +00:00
Bob Aman
f63bf8199f
Added option to support manually specified discovery URI.
...
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@101 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-22 22:21:26 +00:00
Bob Aman
316f1c6bd4
Updated dependencies.
...
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@93 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-22 17:14:02 +00:00
Bob Aman
20eff1df7d
Added support for two-legged OAuth.
...
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@92 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-22 00:36:23 +00:00