Commit Graph

131 Commits

Author SHA1 Message Date
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
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
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
Yosuke Kabuto 54e974df43 Add specs 2016-01-20 00:42:34 +09:00
Steven Bazyl a5a9b49160 Merge pull request #274 + fix to use FakeFS to avoid flakey test 2015-08-19 13:57:14 -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
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 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 8510735db8 Resolve merge conflict, update rspec syntax 2014-12-15 13:32:54 -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
Abdelkader Boudih 740289938b RSpec 3 syntax 2014-10-08 12:02:36 +00:00
Abdelkader Boudih 39c3e81e26 So many versions!! 2014-10-08 12:02:36 +00:00
Abdelkader Boudih d1bbe8cf94 File is being deleted before each test anyway 2014-10-08 12:01:32 +00:00
Sérgio Gomes 73e58f3098 Small fix to service account spec with JRuby >= 1.9 2014-08-14 17:37:47 +01:00
Sérgio Gomes 20e9a9bdc6 Small fix to service account spec 2014-08-14 17:06:44 +01:00
Sérgio Gomes 78ff182905 Updated rspec to v3 and replaced rcov with simplecov.
Also used transpec to convert from "should" syntax to preferred "expect" syntax.
2014-08-14 16:54:16 +01:00
Steven Bazyl 1819e16f19 Add retry support & redirect following 2014-01-22 13:54:06 -08: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 0cb0075c7b remove useless test 2013-12-03 10:01:06 +01:00
Volker Zöpfel 3d1568d67f adds specs for redis_store 2013-12-03 08:42:01 +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 53be124a6f pending test for file_store and redis_store 2013-11-28 10:26:23 +01:00
Volker Zöpfel 31fac0a6f5 adds specs for storage
changes expectation in write_credentials
2013-11-28 08:14:41 +01:00
Volker Zöpfel e6858bd292 adds some specs for storage class 2013-11-18 11:39:58 +01:00
Volker Zöpfel 4a3827c44b adds spec construct for file_store and storage 2013-11-15 09:36:30 +01:00
Volker Zöpfel 2a87a93d48 repair gemspec 2013-11-14 15:58:46 +01:00
Sergio Gomes 0fd0dca2f4 Adding discovery document caching to Service interface 2013-10-29 12:59:52 +00:00
Sergio Gomes 83d411990c Adding batch support to new service interface 2013-10-04 15:56:06 +01:00
Sergio Gomes 00f66633e0 Merge branch 'master' of https://github.com/google/google-api-ruby-client into new_programming_interface 2013-10-04 14:48:58 +01:00
Sergio Gomes 5c31b69356 Fixing broken specs 2013-10-04 14:46:14 +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
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 c766975587 Ensuring that multivalued requests in the AdSense Management API actually work 2013-09-05 12:30:30 +01:00
Sergio Gomes 98c3d6e250 Updating AdSense Management API specs to use v1.3 2013-09-04 18:23:13 +01:00
Johan Euphrosine 9d7735f031 auth: add compute service account 2013-08-14 16:29:16 -07:00
Sergio Gomes b95cf48ada Fixing spec warnings 2013-08-12 16:19:09 +01:00
Sergio Gomes a4ff02e636 Removing latitude API specs 2013-08-09 16:34:27 +01:00
Skip Baney 4143d900e0 don't require faraday/utils; faraday already includes it 2013-08-02 17:13:15 -05:00
Steven Bazyl 8aa50442ab Enable gzip compression 2013-06-19 17:37:38 -07:00