arvados.git
11 years agoAdded Google::APIClient::FileStorage, to save OAuth 2 credentials to disk
Jeff Posnick [Wed, 29 May 2013 19:31:44 +0000 (15:31 -0400)]
Added Google::APIClient::FileStorage, to save OAuth 2 credentials to disk

This is a (potentially rough) bit of code to persist OAuth 2
credentials to disk, similar to
http://google-api-python-client.googlecode.com/hg/docs/epy/oauth2client.
file.Storage-class.html

It can be used in the following manner, which roughly translates to
what the Python client library code looks like.

  file_storage = Google::APIClient::FileStorage.new("#{$0}-oauth2.json")
  if file_storage.authorization.nil?
    client_secrets = Google::APIClient::ClientSecrets.load
    flow = Google::APIClient::InstalledAppFlow.new(
      :client_id => client_secrets.client_id,
      :client_secret => client_secrets.client_secret,
      :scope => [SCOPE1, SCOPE2]
    )
    client.authorization = flow.authorize(file_storage)
  else
    client.authorization = file_storage.authorization
  end

11 years agoMerge pull request #49 from dillonkearns/patch-1
Bob Aman [Mon, 29 Apr 2013 09:14:22 +0000 (02:14 -0700)]
Merge pull request #49 from dillonkearns/patch-1

Add syntax highlighting to README

11 years agoAdd syntax highlighting to README
Dillon Kearns [Mon, 29 Apr 2013 02:29:39 +0000 (19:29 -0700)]
Add syntax highlighting to README

11 years agoMerge pull request #47 from nevir/patch-2
Steve Bazyl [Sun, 21 Apr 2013 06:14:11 +0000 (23:14 -0700)]
Merge pull request #47 from nevir/patch-2

Consider dropping sudo from "sudo gem install" in example

11 years agoMerge branch 'master' of https://github.com/google/google-api-ruby-client
Steven Bazyl [Fri, 19 Apr 2013 03:57:32 +0000 (20:57 -0700)]
Merge branch 'master' of https://github.com/google/google-api-ruby-client

11 years agoMerge pull request #46 from nevir/patch-1
Bob Aman [Thu, 18 Apr 2013 07:55:53 +0000 (00:55 -0700)]
Merge pull request #46 from nevir/patch-1

Full jruby and rubinius coverage

11 years agoDrop sudo from gem install
Ian MacLeod [Thu, 18 Apr 2013 05:50:58 +0000 (22:50 -0700)]
Drop sudo from gem install

11 years agoFull jruby and rubinius coverage
Ian MacLeod [Thu, 18 Apr 2013 05:46:53 +0000 (22:46 -0700)]
Full jruby and rubinius coverage

11 years agoMerge pull request #43 from sanemat/feature/rubygems-org
Steve Bazyl [Mon, 15 Apr 2013 18:03:09 +0000 (11:03 -0700)]
Merge pull request #43 from sanemat/feature/rubygems-org

Replace rubygems source

11 years agoAll tests pass in ruby 2.0
sanemat [Sun, 14 Apr 2013 13:51:24 +0000 (22:51 +0900)]
All tests pass in ruby 2.0

11 years agoChange rubygems source
sanemat [Sun, 14 Apr 2013 13:48:05 +0000 (22:48 +0900)]
Change rubygems source

This solves deprecated message below:
$ bundle install
or
$ bundle exec rake spec:all

The source :rubygems is deprecated because HTTP requests are insecure.
Please change your source to 'https://rubygems.org' if possible, or
'http://rubygems.org' if not.

11 years agoUpdate homepage link
Steven Bazyl [Mon, 8 Apr 2013 23:07:58 +0000 (16:07 -0700)]
Update homepage link

11 years agoMinor release
Steven Bazyl [Tue, 26 Mar 2013 04:37:52 +0000 (21:37 -0700)]
Minor release

11 years agoUpdate autoparse version
Steven Bazyl [Tue, 26 Mar 2013 04:32:16 +0000 (21:32 -0700)]
Update autoparse version

11 years agoRemove confusing alternate install option
Steven Bazyl [Tue, 26 Mar 2013 04:31:06 +0000 (21:31 -0700)]
Remove confusing alternate install option

11 years agoRemove broken require
Steven Bazyl [Mon, 18 Mar 2013 19:31:59 +0000 (12:31 -0700)]
Remove broken require

11 years agoCheck for existance of Railties (instead of Rails) before loading railtie)
Steven Bazyl [Mon, 18 Mar 2013 19:22:12 +0000 (12:22 -0700)]
Check for existance of Railties (instead of Rails) before loading railtie)

11 years agoAdd contributor instuctions to docs
Steven Bazyl [Sun, 17 Mar 2013 23:33:44 +0000 (16:33 -0700)]
Add contributor instuctions to docs

11 years agoFix referesh of oauth token when passing credentials as param
Steven Bazyl [Sun, 17 Mar 2013 23:33:27 +0000 (16:33 -0700)]
Fix referesh of oauth token when passing credentials as param

11 years agoAdd guide for would-be contributors
Steven Bazyl [Fri, 15 Feb 2013 23:21:21 +0000 (15:21 -0800)]
Add guide for would-be contributors

11 years agoMark failing test as pending
Steven Bazyl [Fri, 15 Feb 2013 22:25:25 +0000 (14:25 -0800)]
Mark failing test as pending

11 years agorestore irb import
Steven Bazyl [Fri, 15 Feb 2013 21:20:30 +0000 (13:20 -0800)]
restore irb import

11 years agoFix URI in batched request to allow query parameters
Steven Bazyl [Fri, 15 Feb 2013 21:13:58 +0000 (13:13 -0800)]
Fix URI in batched request to allow query parameters

11 years agoFix duplication of parameters in qeuery string
Steven Bazyl [Wed, 23 Jan 2013 06:14:50 +0000 (22:14 -0800)]
Fix duplication of parameters in qeuery string

11 years agoMinor release for updating signet
Steven Bazyl [Fri, 18 Jan 2013 17:21:13 +0000 (09:21 -0800)]
Minor release for updating signet

11 years agoMinor release to fix service account impersonation
Steven Bazyl [Tue, 15 Jan 2013 01:00:58 +0000 (17:00 -0800)]
Minor release to fix service account impersonation

11 years agoMerge pull request #23 from layby42/master
Bob Aman [Sat, 12 Jan 2013 17:47:15 +0000 (09:47 -0800)]
Merge pull request #23 from layby42/master

Pull request for #22

11 years agofix for #22 impersonation
Oxana Goutnik [Sat, 12 Jan 2013 15:29:47 +0000 (10:29 -0500)]
fix for #22 impersonation

11 years agoMerge branch 'master' of https://github.com/google/google-api-ruby-client
Steven Bazyl [Wed, 9 Jan 2013 20:52:06 +0000 (12:52 -0800)]
Merge branch 'master' of https://github.com/google/google-api-ruby-client

11 years agoRemove moderate API refs since API no longer exists, re-enable lattitude
Steven Bazyl [Wed, 9 Jan 2013 20:51:50 +0000 (12:51 -0800)]
Remove moderate API refs since API no longer exists, re-enable lattitude

11 years agoMerge pull request #21 from sanemat/feature/ruby-2-0-0
Bob Aman [Wed, 9 Jan 2013 20:26:08 +0000 (12:26 -0800)]
Merge pull request #21 from sanemat/feature/ruby-2-0-0

Add Ruby2.0.0 build in Travis-ci, and allowed to fail

11 years agoAdd Ruby2.0.0 build in Travis-ci, and allowed to fail
sanemat [Wed, 9 Jan 2013 15:34:25 +0000 (00:34 +0900)]
Add Ruby2.0.0 build in Travis-ci, and allowed to fail

http://about.travis-ci.org/docs/user/build-configuration/#Rows-That-are-Allowed-To-Fail

11 years agoMerge pull request #20 from simplymeasured/feature/make-autorefresh-of-token-optional
Steve Bazyl [Sat, 5 Jan 2013 00:59:20 +0000 (16:59 -0800)]
Merge pull request #20 from simplymeasured/feature/make-autorefresh-of-token-optional

incorporate style feedback from @sporkmonger on #19 ab23fe7539ac

11 years agoUpdate changelog
Steven Bazyl [Sat, 5 Jan 2013 00:49:46 +0000 (16:49 -0800)]
Update changelog

11 years agoFix odd conflict with VERSION & logger
Steven Bazyl [Sat, 5 Jan 2013 00:49:27 +0000 (16:49 -0800)]
Fix odd conflict with VERSION & logger

11 years agoUpdate changelog/gemspec
Steven Bazyl [Sat, 5 Jan 2013 00:15:27 +0000 (16:15 -0800)]
Update changelog/gemspec

11 years agoAdd oauth helper for installed apps, update CLI
Steven Bazyl [Sat, 5 Jan 2013 00:14:59 +0000 (16:14 -0800)]
Add oauth helper for installed apps, update CLI

11 years agoSprinkle of logging
Steven Bazyl [Sat, 5 Jan 2013 00:14:14 +0000 (16:14 -0800)]
Sprinkle of logging

11 years agoUpdate JWT example
Steven Bazyl [Sat, 5 Jan 2013 00:13:03 +0000 (16:13 -0800)]
Update JWT example

11 years agoincorporate style feedback from @sporkmonger on ab23fe7539ac
Ryan Biesemeyer [Fri, 4 Jan 2013 21:50:19 +0000 (21:50 +0000)]
incorporate style feedback from @sporkmonger on ab23fe7539ac

11 years agoAdd railtie
Steven Bazyl [Thu, 3 Jan 2013 04:07:17 +0000 (20:07 -0800)]
Add railtie

11 years agoDefine custom load/dump for serializing API instances
Steven Bazyl [Thu, 3 Jan 2013 00:13:26 +0000 (16:13 -0800)]
Define custom load/dump for serializing API instances

11 years agoFix JWT example in docs
Steven Bazyl [Thu, 3 Jan 2013 00:12:47 +0000 (16:12 -0800)]
Fix JWT example in docs

11 years agoRead keyfile in binary mode
Steven Bazyl [Wed, 2 Jan 2013 20:59:43 +0000 (12:59 -0800)]
Read keyfile in binary mode

11 years agoRemove stray output to STDOUT
Steven Bazyl [Wed, 2 Jan 2013 20:55:52 +0000 (12:55 -0800)]
Remove stray output to STDOUT

11 years agoMerge branch 'master' of https://github.com/google/google-api-ruby-client
Steven Bazyl [Wed, 2 Jan 2013 19:51:15 +0000 (11:51 -0800)]
Merge branch 'master' of https://github.com/google/google-api-ruby-client

11 years agoUse JWT support in signet, ignore broken PKCS12 tests on jruby
Steven Bazyl [Wed, 2 Jan 2013 19:50:45 +0000 (11:50 -0800)]
Use JWT support in signet, ignore broken PKCS12 tests on jruby

11 years agoAdd application name to client, update style of assigning client to match other recen...
Steven Bazyl [Sun, 30 Dec 2012 19:27:45 +0000 (11:27 -0800)]
Add application name to client, update style of assigning client to match other recent changes

11 years agoInitial logging support
Steven Bazyl [Sun, 30 Dec 2012 19:26:18 +0000 (11:26 -0800)]
Initial logging support

11 years agoMerge pull request #19 from simplymeasured/feature/make-autorefresh-of-token-optional
Steve Bazyl [Sun, 30 Dec 2012 19:21:56 +0000 (11:21 -0800)]
Merge pull request #19 from simplymeasured/feature/make-autorefresh-of-token-optional

Make the auto-refresh of tokens configurable and optional

11 years agoMerge pull request #13 from sanemat/multi-json-in-rails-case
Steve Bazyl [Sun, 30 Dec 2012 19:20:01 +0000 (11:20 -0800)]
Merge pull request #13 from sanemat/multi-json-in-rails-case

Compatible multi_json >= 1.0.0 with Rails3.2.8

11 years agoMake the auto-refresh of tokens configurable and optional; in distributed environment...
Ryan Biesemeyer [Sat, 29 Dec 2012 00:02:02 +0000 (00:02 +0000)]
Make the auto-refresh of tokens configurable and optional; in distributed environments, this allows us to handle token refreshes in a way that does not hammer the auth endpoint.

11 years agoMerge pull request #18 from ranjibd/GITHUB-ISSUE-17
Steve Bazyl [Thu, 27 Dec 2012 23:42:57 +0000 (15:42 -0800)]
Merge pull request #18 from ranjibd/GITHUB-ISSUE-17

Ranjib| there is n method/instance variable name options in serialize_body

11 years agoRanjib| there is n method/instance variable named options inside serialize, to_hash...
Ranjib Dey [Thu, 27 Dec 2012 21:36:08 +0000 (13:36 -0800)]
Ranjib| there is n method/instance variable named options inside serialize, to_hash should be invoke on 'body' instead

11 years agoUpdate signet version
Steven Bazyl [Thu, 27 Dec 2012 21:34:30 +0000 (13:34 -0800)]
Update signet version

11 years agoTotally paranoia.
Bob Aman [Mon, 19 Nov 2012 09:07:37 +0000 (12:07 +0300)]
Totally paranoia.

11 years agoIf it's in .gitignore, it shouldn't be part of the gem.
Bob Aman [Mon, 19 Nov 2012 09:05:33 +0000 (12:05 +0300)]
If it's in .gitignore, it shouldn't be part of the gem.

11 years agoMerge pull request #15 from simplymeasured/add-test-for-scenario-where-semicolon...
Bob Aman [Sun, 18 Nov 2012 06:34:32 +0000 (22:34 -0800)]
Merge pull request #15 from simplymeasured/add-test-for-scenario-where-semicolon-in-parameter-value-gets-silently-converted-to-ampersand

Add test to ensure semicolon in parameter value doesn't get converted to semicolon.

11 years agoAdd test for scenario where semicolon in parameter value gets silently converted...
Ryan Biesemeyer [Sun, 18 Nov 2012 06:22:25 +0000 (06:22 +0000)]
Add test for scenario where semicolon in parameter value gets silently converted to ampersand

11 years agoFix stackoverflow tag, minor doc cleanup for batch API
Steven Bazyl [Mon, 5 Nov 2012 19:05:48 +0000 (11:05 -0800)]
Fix stackoverflow tag, minor doc cleanup for batch API

11 years agoRefactor key loading to support PEM + fix issue #62
Steven Bazyl [Fri, 2 Nov 2012 20:56:53 +0000 (13:56 -0700)]
Refactor key loading to support PEM + fix issue #62

11 years agoFix sample for JWTAsserter (missing .new)
Steven Bazyl [Fri, 2 Nov 2012 19:50:06 +0000 (12:50 -0700)]
Fix sample for JWTAsserter (missing .new)

11 years agoAuto-refresh OAuth 2 tokens & retry request on 401 response
Steven Bazyl [Tue, 30 Oct 2012 20:18:12 +0000 (13:18 -0700)]
Auto-refresh OAuth 2 tokens & retry request on 401 response

11 years agoG+ API changed schema :(
Steven Bazyl [Mon, 29 Oct 2012 22:46:20 +0000 (15:46 -0700)]
G+ API changed schema :(

11 years agoAdd support info to readme
Steven Bazyl [Fri, 26 Oct 2012 00:02:59 +0000 (17:02 -0700)]
Add support info to readme

11 years agoUpdate readme for CLI + samples
Steven Bazyl [Thu, 25 Oct 2012 23:21:00 +0000 (16:21 -0700)]
Update readme for CLI + samples

11 years agoUpdate owner/author info
Steven Bazyl [Thu, 25 Oct 2012 22:05:34 +0000 (15:05 -0700)]
Update owner/author info

11 years agoSkip rcov for travis runs, remove Bob from notificationswq
Steven Bazyl [Thu, 25 Oct 2012 21:36:15 +0000 (14:36 -0700)]
Skip rcov for travis runs, remove Bob from notificationswq

11 years agoAdditional fix for broken ||= constant assignment
Steven Bazyl [Thu, 25 Oct 2012 21:28:16 +0000 (14:28 -0700)]
Additional fix for broken ||= constant assignment

11 years agoFix failing tests
Steven Bazyl [Thu, 25 Oct 2012 21:25:54 +0000 (14:25 -0700)]
Fix failing tests

11 years agoRemove too much checking
sanemat [Sat, 13 Oct 2012 06:43:52 +0000 (15:43 +0900)]
Remove too much checking

11 years agoAdd namespace check
sanemat [Thu, 11 Oct 2012 00:23:53 +0000 (09:23 +0900)]
Add namespace check

11 years agoResolve merge/rebase
Steven Bazyl [Wed, 10 Oct 2012 20:52:32 +0000 (14:52 -0600)]
Resolve merge/rebase

11 years agoRe-org service account support
Steven Bazyl [Wed, 10 Oct 2012 20:18:33 +0000 (14:18 -0600)]
Re-org service account support

11 years agoMove request class to its own file
Steven Bazyl [Wed, 10 Oct 2012 20:11:49 +0000 (14:11 -0600)]
Move request class to its own file

11 years agoIssue 59 - handle 204 responses more gracefully
Steven Bazyl [Fri, 5 Oct 2012 01:17:54 +0000 (18:17 -0700)]
Issue 59 - handle 204 responses more gracefully

11 years agoDoc improvements
Steven Bazyl [Thu, 4 Oct 2012 22:48:49 +0000 (15:48 -0700)]
Doc improvements

11 years agoExpose discovery doc in prep for future doc changes
Steven Bazyl [Thu, 4 Oct 2012 22:48:21 +0000 (15:48 -0700)]
Expose discovery doc in prep for future doc changes

11 years agoAdd test for options as 5th param in array style calls
Steven Bazyl [Thu, 4 Oct 2012 22:46:48 +0000 (15:46 -0700)]
Add test for options as 5th param in array style calls

11 years agoAdd method for checking if upload can be resumed
Steven Bazyl [Thu, 4 Oct 2012 22:31:46 +0000 (15:31 -0700)]
Add method for checking if upload can be resumed

11 years agoUpdate docs re: api_method + allow options in array-style calls
Steven Bazyl [Thu, 4 Oct 2012 22:30:49 +0000 (15:30 -0700)]
Update docs re: api_method + allow options in array-style calls

11 years agoMore documentation cleanup
Steven Bazyl [Fri, 28 Sep 2012 23:29:51 +0000 (16:29 -0700)]
More documentation cleanup

11 years agoMore documentation cleanup
Steven Bazyl [Fri, 28 Sep 2012 23:11:17 +0000 (16:11 -0700)]
More documentation cleanup

11 years agoMostly doc updates, +remove support for method as string
Steven Bazyl [Fri, 28 Sep 2012 19:07:11 +0000 (12:07 -0700)]
Mostly doc updates, +remove support for method as string

11 years agoAllow adjusting issued-at time to minimize clock skew issues
Steven Bazyl [Fri, 28 Sep 2012 19:06:15 +0000 (12:06 -0700)]
Allow adjusting issued-at time to minimize clock skew issues

11 years agoContinue internal shuffling...
Steven Bazyl [Mon, 24 Sep 2012 23:09:17 +0000 (16:09 -0700)]
Continue internal shuffling...

11 years agoUpdate example in readme
Steven Bazyl [Mon, 24 Sep 2012 22:21:56 +0000 (15:21 -0700)]
Update example in readme

11 years agoUnify processing of api/resumable/batch requests
Steven Bazyl [Tue, 11 Sep 2012 18:04:21 +0000 (11:04 -0700)]
Unify processing of api/resumable/batch requests

11 years agoBegin consolidation of request building in reference. Further changes coming to simpl...
Steven Bazyl [Wed, 5 Sep 2012 21:56:52 +0000 (14:56 -0700)]
Begin consolidation of request building in reference. Further changes coming to simplify batch + media handling

11 years agoConsolidate request routing through execute methods
Steven Bazyl [Wed, 5 Sep 2012 21:16:31 +0000 (14:16 -0700)]
Consolidate request routing through execute methods

11 years agoRemove embedded version #s, use Gemfile
Steven Bazyl [Wed, 5 Sep 2012 21:05:48 +0000 (14:05 -0700)]
Remove embedded version #s, use Gemfile

11 years agoRemove unnecessary normalization/fix addressable bug
Steven Bazyl [Wed, 5 Sep 2012 20:30:46 +0000 (13:30 -0700)]
Remove unnecessary normalization/fix addressable bug

11 years agoTemp disable latitude tests due to discovery bug
Steven Bazyl [Wed, 5 Sep 2012 19:36:03 +0000 (12:36 -0700)]
Temp disable latitude tests due to discovery bug

11 years agoRe-org service account support
Steven Bazyl [Wed, 10 Oct 2012 20:18:33 +0000 (14:18 -0600)]
Re-org service account support

11 years agoMove request class to its own file
Steven Bazyl [Wed, 10 Oct 2012 20:11:49 +0000 (14:11 -0600)]
Move request class to its own file

11 years agoCompatible multi_json >= 1.0.0 with Rails3.2.8
sanemat [Wed, 10 Oct 2012 17:51:34 +0000 (02:51 +0900)]
Compatible multi_json >= 1.0.0 with Rails3.2.8

11 years agoApparently the ||= operator does not work with constants in some versions of Ruby.
Bob Aman [Wed, 10 Oct 2012 16:59:55 +0000 (19:59 +0300)]
Apparently the ||= operator does not work with constants in some versions of Ruby.

11 years agoMarked failing tests as pending.
Bob Aman [Wed, 10 Oct 2012 16:47:02 +0000 (19:47 +0300)]
Marked failing tests as pending.

11 years agoThis should "resolve" issues with OS X.
Bob Aman [Mon, 8 Oct 2012 14:07:08 +0000 (17:07 +0300)]
This should "resolve" issues with OS X.

This is actually a pretty terrible solution, but side-effects should be low.

11 years agoThis should resolve the issue with Kernel#load.
Bob Aman [Mon, 8 Oct 2012 14:06:08 +0000 (17:06 +0300)]
This should resolve the issue with Kernel#load.