Commit Graph

234 Commits

Author SHA1 Message Date
Mike Moore 06df528c4b Remove third_party directory from gemspec (#778) 2019-04-12 17:08:37 -07:00
soylent 56df9903e1 Fix exception when API desc doesn't contain blacklisted params (#768) 2019-03-20 14:58:19 -07:00
Mike Moore 6e90789b27
Handle bad response errors without response object (#765)
We have received word that a bad proxy setting can cause this behavior.

[fixes #764]
2019-02-14 14:14:34 -07:00
Daniel Azuma 9b43faa06e
Redact response logs for certain cases (#757) 2019-01-30 14:14:21 -08:00
Daniel Azuma 55320753c7
Change logged representation of certain classes (#752) 2019-01-03 22:48:27 -08:00
Ruslan Korolev b1942bdc3e add tests for constants in storage_spec (#276) 2018-12-05 12:01:13 -08:00
Ruslan Korolev dadb8e4275 add test for invalid credentials in file storage (#277) 2018-12-05 12:01:03 -08:00
Ruslan Korolev 3a1e54d959 Add tests for initialization on InstalledAppFlow (#275) 2018-12-05 11:49:57 -08:00
Janko Marohnić e20e6bdffd Allow download destination to only respond to #write (#638)
According to the documentation the destination IO only needs to respond
to #write. However, the downloader breaks this by calling #flush.

We fix this by calling #flush only if the destination IO responds to
that method. We also add a test to enforce that the destination IO only
needs to respond to #write.
2018-12-04 13:09:11 -08:00
Graham Paye ee49501c6c
fix windows test failures (#736) 2018-11-26 13:22:07 -08:00
Daniel Azuma 97967804da
Fix naming of monitoring.projects.timeSeries.create method (#734) 2018-11-05 16:16:19 -08:00
Daniel Azuma 50c4897e18
OpenCensus integration for outgoing requests (#724) 2018-10-10 13:23:11 -07:00
Daniel Azuma 406fcb0032
Add logging to gemfile to fix specs (#707)
* Add logging to gemfile to fix specs
* Get rid of huge puts in the generator test that was overwhelming travis
* Fix HTTP tests by making the new Signet::RemoteServerError retriable
2018-08-22 13:42:05 -07:00
Sergey Ponomarev 3bffde39e2 Add Ruby 2.5 support (#648)
* Fix os version detection not to include newline
* Add ruby 2.4 and 2.5 to CI
2018-03-22 08:29:35 -07:00
bantini 6e2276cb80 Handle recursive hashes (#621)
This fixes the generator for cases where one of the entries of the
"schemas" object returned by the Discovery service is a recursively
defined map.

Fixes #608
2017-10-12 10:57:57 -07:00
Sai Cheemalapati 2a4efbf3b9 Allow retry on Signet::AuthorizationError (#611) 2017-09-18 12:40:11 -07:00
Sai Cheemalapati e3792b19d2 Add Hash support to fetch_all (#586)
This commit aligns the behavior of `fetch_all` over map responses with
that of arrays (returning a single collection with all entries).
2017-06-01 23:52:09 -04:00
Steven Bazyl 6a4e9184e7 Allow using v2 error messages + fix to_json signature to allow arbitrary args 2017-05-19 17:16:22 -06:00
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