Commit Graph

177 Commits

Author SHA1 Message Date
Yosuke Kabuto 657bfc0e01 Create specs for Google::Apis::Error 2016-05-29 19:52:27 +09:00
Michael Wawra 74bbfa2251 Allow symbols for credential flow
Because of my production environment, adding a JSON file a little bit of
a pain. However: using the intializer it's readily possible to set my
credentials manually from my environment. I noticed that while all the
credential details can be either a String or a Symbol, the 'flow' (i.e.,
`web`) **must** be a string.

This allows it to accept both a string and a symbol.
2016-04-26 22:41:32 +01:00
Steve Bazyl 1ee88320e9 #403 - allow nil dates 2016-04-25 10:49:00 -07:00
Steve Bazyl 0aa133f978 Merge branch 'master' of https://github.com/google/google-api-ruby-client 2016-04-22 14:30:36 -07:00
Steve Bazyl 0155b81771 Rewind output stream if requesting partial content but get the full media body instead 2016-04-22 14:30:30 -07:00
Tee Parham 6c325a9c50 Remove comments specifying encoding
In ruby 2.0, the default encoding is UTF-8, so these magic comment
directives can be safely removed.

https://www.ruby-lang.org/en/news/2013/02/24/ruby-2-0-0-p0-is-released/
2016-04-17 12:44:21 -06:00
Steve Bazyl 4e19ae601f #389 - Add option to bypass Rails logger + update readme 2016-04-14 12:54:58 -07:00
Steve Bazyl 6e3342b671 Cache pages in fetch_all to allow multiple iterations 2016-03-11 14:24:27 -08:00
Steve Bazyl f4453f6139 Add helper method for automatic paging 2016-03-08 13:26:28 -08:00
Steve Bazyl 47a02e897e #363 - Add convenience methods for json parsing/formatting to generated objects 2016-02-25 14:37:00 -08:00
Steve Bazyl 07ca6e8ca0 Handle SocketError. #359 2016-02-25 13:30:27 -08:00
Steve Bazyl e67964189e Drop active support as a hard runtime depdendency. Still required for code generation however. #364 2016-02-25 13:06:16 -08:00
Steve Bazyl acf2b0ec61 Merge branch 'master' of https://github.com/google/google-api-ruby-client 2016-02-25 09:39:46 -08:00
Steve Bazyl 2c1fd125e9 #369 - Form encode paramaters when method == post/put and no other body present 2016-02-25 09:35:38 -08:00
Steve Bazyl 7d00754d7f Merge pull request #367 from joker1007/fix-hash-assignment
Fix Hash value assignment in JsonSupport#getter_fn
2016-02-25 09:34:39 -08:00
James Healy 4b9a63c086 replace multi_json dependency with regular stdlib JSON
JSON has been part of the ruby stdlib since 1.9.0 (see
https://github.com/ruby/ruby/commit/af1c4167), and the latest version of
google-api-client requires ruby 2.0 or better so we can assume it's available
2016-02-25 13:27:33 +11:00
joker1007 fe7c377399 Add boolean test case 2016-02-25 05:34:39 +09:00
Yosuke Kabuto 54e974df43 Add specs 2016-01-20 00:42:34 +09:00
Steve Bazyl 451a0b6617 Include reason & message in API error when available 2016-01-07 14:28:34 -08:00
joker1007 db1ab7d0b2 Add basename arg to Tempfile constructor 2016-01-07 03:39:53 +09:00
joker1007 da53defdc8 Add test case for Tempfile input 2016-01-06 14:29:58 +09:00
Steve Bazyl 1715fc9945 Fix #326 - Normalize query parameters to allow falsey values 2015-12-20 15:22:13 -08:00
Steve Bazyl e8481dd14d Use HTTPClient instead of Net::HTTP 2015-12-18 14:37:21 -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
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 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 81a061cb80 Fix #292 - ensure multivalued parameters are encoded correctly 2015-10-02 13:31:19 -07:00
Steven Bazyl a5a9b49160 Merge pull request #274 + fix to use FakeFS to avoid flakey test 2015-08-19 13:57:14 -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
rusikf f4b3992f9f check for nil values on client_secrets specs 2015-08-19 21:55:33 +03: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
Ruslan Korolev cb4c7cfb8c add headers + length test for upload io 2015-08-17 16:51:01 +03:00
Ruslan Korolev 0cc3a1f814 add tests for UploadIO#from_io 2015-08-17 15:50:11 +03:00
Steven Bazyl 297db0eb66 Fix date formatting to include milliseconds, drop virtus 2015-07-24 22:36:01 -07:00
Steven Bazyl 2a9fd28176 Expose HTTP status code & body in errors 2015-07-20 12:36:13 -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
remi Taylor 94a979b512 Respect discovered methods with colons in path 2015-04-13 21:38:47 -07:00
remi Taylor 1ed677b796 Use discovered 'rootUrl' as base URI for services 2015-04-06 21:38:42 -07:00
Steven Bazyl 8e49ee764b Resolve merge conflict 2014-12-17 12:39:57 -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