Commit Graph

8 Commits

Author SHA1 Message Date
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 2622ebf8dc Add minimal tests for ClientSecrets 2014-12-16 13:47:26 -08:00