gplus 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v2.0.1: 2012/01/11
4
+
5
+ * Fix file permissions so that gplus's files are world readable
6
+
3
7
  ## v2.0.0: 2012/01/03
4
8
 
5
9
  ### Breaking API changes
data/README.md CHANGED
@@ -58,6 +58,8 @@ Generate an authorization URL, and use it in a view. You may want to request off
58
58
 
59
59
  = link_to 'Authorize This App', @auth_url
60
60
 
61
+ You can specify a different `redirect_uri` to the one you initialized your `Gplus::Client` with. If you do so, you must call `get_token` with the same `redirect_uri` value.
62
+
61
63
  After the user authorizes your app, they will be redirected to your `redirect_uri`. Use `params[:code]` to retrieve an OAuth token for the user, and store the `token`, `refresh_token` and `expires_at` for persistence:
62
64
 
63
65
  class OauthController < ApplicationController
@@ -48,7 +48,7 @@ module Gplus
48
48
  # @see https://code.google.com/apis/accounts/docs/OAuth2WebServer.html#formingtheurl The set of query string parameters supported by the Google Authorization Server for web server applications.
49
49
  #
50
50
  # @param [Hash] options Additional parameters used in the OAuth request.
51
- # @option options [String] :redirect_uri An optional over-ride for the redirect_uri you initialized the API client with.
51
+ # @option options [String] :redirect_uri An optional over-ride for the redirect_uri you initialized the API client with. This must match the redirect_uri you use when you call #get_token.
52
52
  # @option options [String] :access_type ('online'). Indicates if your application needs to access a Google API when the user is not present at the browser. Allowed values are 'online' and 'offline'.
53
53
  # @return [String] A Google account authorization URL for your application.
54
54
  def authorize_url(options = {})
@@ -58,6 +58,7 @@ module Gplus
58
58
  end
59
59
 
60
60
  # Retrieve an OAuth access token using the short-lived authentication code given to you after a user authorizes your application.
61
+ # Note that if you specified an over-ride redirect_uri when you called #authorize_url, you must use the same redirect_uri when calling #get_token.
61
62
  #
62
63
  # @param [String] auth_code The code returned to your redirect_uri after the user authorized your application to access their Google+ data.
63
64
  # @param [Hash] params Additional parameters for the token endpoint (passed through to OAuth2::Client#get_token)
@@ -1,5 +1,5 @@
1
1
  module Gplus
2
2
  # The version of Gplus that you're using. I use semantic versioning to version Gplus.
3
3
  # @see http://semver.org/
4
- VERSION = "2.0.0"
4
+ VERSION = "2.0.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gplus
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-03 00:00:00.000000000 Z
12
+ date: 2012-01-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json
16
- requirement: &10358020 !ruby/object:Gem::Requirement
16
+ requirement: &12014640 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '1.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *10358020
24
+ version_requirements: *12014640
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: oauth2
27
- requirement: &10357520 !ruby/object:Gem::Requirement
27
+ requirement: &12013040 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0.5'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *10357520
35
+ version_requirements: *12013040
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &10356960 !ruby/object:Gem::Requirement
38
+ requirement: &12012240 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *10356960
46
+ version_requirements: *12012240
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: webmock
49
- requirement: &10356360 !ruby/object:Gem::Requirement
49
+ requirement: &12011000 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *10356360
57
+ version_requirements: *12011000
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: simplecov
60
- requirement: &10355760 !ruby/object:Gem::Requirement
60
+ requirement: &12008680 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *10355760
68
+ version_requirements: *12008680
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: yard
71
- requirement: &10355100 !ruby/object:Gem::Requirement
71
+ requirement: &12007040 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *10355100
79
+ version_requirements: *12007040
80
80
  description: A complete implementation of the Google plus API for Ruby
81
81
  email:
82
82
  - nicholas@2suggestions.com.au
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  version: 1.3.6
129
129
  requirements: []
130
130
  rubyforge_project:
131
- rubygems_version: 1.8.11
131
+ rubygems_version: 1.8.13
132
132
  signing_key:
133
133
  specification_version: 3
134
134
  summary: Google+ API implementation with support for authorized requests, People,