Commit Graph

216 Commits

Author SHA1 Message Date
Steve Bazyl 7c31e8ccb6 Merge branch 'master' of https://github.com/barancw/google-api-ruby-client into barancw-master 2017-04-04 12:11:54 -07:00
Steve Bazyl 48916bfce7 Merge branch 'master' of https://github.com/sqrrrl/google-api-ruby-client into sqrrrl-master 2017-04-03 12:31:20 -07:00
Steve Bazyl 97ff7f4d9a #475, #488 -- allow raw JSON if explicitly requested, fix empty body handling & test cleanup 2017-03-31 15:26:51 -07:00
Steve Bazyl aed2936248 Add test for #509 - setting proxy url as string 2017-03-31 13:12:59 -07:00
Steve Bazyl 5447ddb7c0 Don't normalize unicode in templates (fixed #557 + GCS issues) 2017-03-30 12:33:49 -07:00
Steve Bazyl c4d0ed5d3c Merge branch 'master' into v0.10 2017-03-29 16:25:34 -07:00
Steven Bazyl 5804593f25 Tighten validation around batch operations 2017-03-13 13:40:15 -07:00
Steven Bazyl 687223feb4 Update generator to use batchPath instead of hardcoded path 2017-03-06 12:24:30 -08:00
Sai Cheemalapati 4f143ae551 Bump `representable` dependency to 3.0 (#532)
Also fixes a breaking change introduced between `representable` 2.3 and
3.0. Specifically, `:skip_undefined` is now be passed via the
`:user_options` option.
2017-02-13 12:24:14 -08:00
Thomas Coffee 16f0a768f7 Allow abnormal page token cases for paging methods
Addresses https://github.com/googleapis/toolkit/issues/692.

Manual changes are in:
lib/google/apis/core/base_service.rb
spec/google/apis/core/service_spec.rb
2017-02-03 12:09:18 -08:00
Austin Wang e9d7e47c75 Update check_status to better support different types of errors (#517) 2017-02-01 23:20:19 -08:00
Steve Bazyl a68b8cb758 #467 - Restore error handling for failed downloads 2016-09-19 14:16:36 -07:00
Steve Bazyl e13da8e05e Tighten use of form-encoding to only cases where a JSON body is not ever allowed 2016-09-08 13:40:30 -07:00
Steve Bazyl 70596d26f6 #459 - Fix iteration for genomics API which only has 1 item per page 2016-08-31 13:26:24 -07:00
Steve Bazyl 39d0a164b5 Update generator to correctly handle int64/uint64 types as fixnum/bignum instead of strings 2016-08-17 15:27:23 -07:00
Steve Bazyl 2c190e9745 Update representable, mimetype dependencies + others 2016-08-17 14:38:25 -07:00
Steve Bazyl 2578736b44 #445 - Treat 429 status codes as rate limit errors 2016-08-17 13:58:07 -07:00
Steve Bazyl 2046e00f14 Remove Hurley as a dependency 2016-08-17 13:51:09 -07:00
Steve Bazyl edb841310f Gracefully handle nil collections when paging 2016-06-23 12:43:37 -07:00
Steve Bazyl 65c1cc047e Merge pull request #419 from ysksn/errors_spec
Add specs for Google::Apis::Error
2016-06-09 12:44:25 -07:00
Yosuke Kabuto ab8cfe5208 Stub instance method :backtrace, insted of defining it 2016-05-29 20:20:59 +09:00
Yosuke Kabuto 657bfc0e01 Create specs for Google::Apis::Error 2016-05-29 19:52:27 +09:00
Yosuke Kabuto ccd694a916 Google::APIClient::FileStore.load_credentials loads all attrs of the json 2016-05-29 13:13:42 +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
Steve Bazyl a0d99ba253 Merge pull request #330 from joker1007/enable-upload-to-use-tempfile
Add Tempfile to if statement of BaseUploadCommand#prepare!
2016-01-06 12:02:56 -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
Yosuke Kabuto a382d9be84 Leave $LOAD_PATH.uniq! for jruby 2016-01-05 15:18:56 +09:00
Yosuke Kabuto 59e8342469 Revert "Revert "Make word "path" plural""
This reverts commit 3a8bc07686.
2016-01-02 20:17:40 +09:00
Yosuke Kabuto 3a8bc07686 Revert "Make word "path" plural"
This reverts commit 1dbc4c3fee.
2016-01-02 19:52:36 +09:00
Yosuke Kabuto 1dbc4c3fee Make word "path" plural 2016-01-02 16:53:25 +09:00
Yosuke Kabuto 8581c72a44 Add space between specs 2016-01-02 16:42:29 +09:00
Yosuke Kabuto f6dc748cbd Remove $LOAD_PATH.uniq! because $LOAD_PATH does not contain any duplicate path 2016-01-02 16:41:04 +09:00