From 5f4cc99347e6b887e6eec342551068eec1912f9f Mon Sep 17 00:00:00 2001 From: Tim Emiola Date: Mon, 23 Mar 2015 16:36:46 -0700 Subject: [PATCH 1/2] updates gem dependencies to the latest version --- googleauth.gemspec | 4 ++-- spec/googleauth/compute_engine_spec.rb | 6 +++--- spec/googleauth/service_account_spec.rb | 4 ++-- spec/googleauth/signet_spec.rb | 10 +++++----- spec/googleauth/user_refresh_spec.rb | 4 ++-- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/googleauth.gemspec b/googleauth.gemspec index 7cc20b48..c4ca4bcf 100755 --- a/googleauth.gemspec +++ b/googleauth.gemspec @@ -27,7 +27,7 @@ Gem::Specification.new do |s| s.add_dependency 'faraday', '~> 0.9' s.add_dependency 'logging', '~> 1.8' - s.add_dependency 'jwt', '~> 1.3.0' + s.add_dependency 'jwt', '~> 1.4.1' s.add_dependency 'memoist', '~> 0.11.0' s.add_dependency 'multi_json', '1.11.0' s.add_dependency 'signet', '~> 0.6.0' @@ -36,6 +36,6 @@ Gem::Specification.new do |s| s.add_development_dependency 'simplecov', '~> 0.9.2' s.add_development_dependency 'coveralls', '~> 0.7.11' s.add_development_dependency 'rake', '~> 10.0' - s.add_development_dependency 'rubocop', '~> 0.28.0' + s.add_development_dependency 'rubocop', '~> 0.29.1' s.add_development_dependency 'rspec', '~> 3.0' end diff --git a/spec/googleauth/compute_engine_spec.rb b/spec/googleauth/compute_engine_spec.rb index 5b5ba06e..95785cdc 100644 --- a/spec/googleauth/compute_engine_spec.rb +++ b/spec/googleauth/compute_engine_spec.rb @@ -51,9 +51,9 @@ def make_auth_stubs(opts = {}) headers = env[:request_headers] expect(headers['Metadata-Flavor']).to eq('Google') build_json_response( - 'access_token' => access_token, - 'token_type' => 'Bearer', - 'expires_in' => 3600) + 'access_token' => access_token, + 'token_type' => 'Bearer', + 'expires_in' => 3600) end end end diff --git a/spec/googleauth/service_account_spec.rb b/spec/googleauth/service_account_spec.rb index caaa878b..108e2b07 100644 --- a/spec/googleauth/service_account_spec.rb +++ b/spec/googleauth/service_account_spec.rb @@ -47,8 +47,8 @@ before(:example) do @key = OpenSSL::PKey::RSA.new(2048) @client = ServiceAccountCredentials.new( - StringIO.new(cred_json_text), - 'https://www.googleapis.com/auth/userinfo.profile') + StringIO.new(cred_json_text), + 'https://www.googleapis.com/auth/userinfo.profile') end def make_auth_stubs(opts = {}) diff --git a/spec/googleauth/signet_spec.rb b/spec/googleauth/signet_spec.rb index de02d164..60da4fdf 100644 --- a/spec/googleauth/signet_spec.rb +++ b/spec/googleauth/signet_spec.rb @@ -41,11 +41,11 @@ before(:example) do @key = OpenSSL::PKey::RSA.new(2048) @client = Signet::OAuth2::Client.new( - token_credential_uri: 'https://accounts.google.com/o/oauth2/token', - scope: 'https://www.googleapis.com/auth/userinfo.profile', - issuer: 'app@example.com', - audience: 'https://accounts.google.com/o/oauth2/token', - signing_key: @key + token_credential_uri: 'https://accounts.google.com/o/oauth2/token', + scope: 'https://www.googleapis.com/auth/userinfo.profile', + issuer: 'app@example.com', + audience: 'https://accounts.google.com/o/oauth2/token', + signing_key: @key ) end diff --git a/spec/googleauth/user_refresh_spec.rb b/spec/googleauth/user_refresh_spec.rb index eced0270..0765f879 100644 --- a/spec/googleauth/user_refresh_spec.rb +++ b/spec/googleauth/user_refresh_spec.rb @@ -47,8 +47,8 @@ before(:example) do @key = OpenSSL::PKey::RSA.new(2048) @client = UserRefreshCredentials.new( - StringIO.new(cred_json_text), - 'https://www.googleapis.com/auth/userinfo.profile') + StringIO.new(cred_json_text), + 'https://www.googleapis.com/auth/userinfo.profile') end def make_auth_stubs(opts = {}) From 48da187d505c5572615457b88e55e1e01cf79761 Mon Sep 17 00:00:00 2001 From: Tim Emiola Date: Mon, 23 Mar 2015 16:40:55 -0700 Subject: [PATCH 2/2] Adds a version badge --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5119aef3..ad3d52b0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Google Auth Library for Ruby +# Google Auth Library for Ruby
Homepage
http://www.github.com/google/google-auth-library-ruby
@@ -7,6 +7,7 @@
License
Apache 2.0
+[![Gem Version](https://badge.fury.io/rb/googleauth.svg)](http://badge.fury.io/rb/googleauth) [![Build Status](https://secure.travis-ci.org/google/google-auth-library-ruby.png)](http://travis-ci.org/google/google-auth-library-ruby) [![Coverage Status](https://coveralls.io/repos/google/google-auth-library-ruby/badge.png)](https://coveralls.io/r/google/google-auth-library-ruby) [![Dependency Status](https://gemnasium.com/google/google-auth-library-ruby.png)](https://gemnasium.com/google/google-auth-library-ruby)