omniauth-prayer-letters 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d565264227a4c6aa9425074703958d72de264c2
4
- data.tar.gz: d7dfbbdbeda373294888fb930612962a2dfaf495
3
+ metadata.gz: 20e0094789e6e9755b39a95cb4b409613d993e6f
4
+ data.tar.gz: b47ca793c41e42cebe20ce8c2f492727b189e95c
5
5
  SHA512:
6
- metadata.gz: d6a15a317ed4e6e715e2da1dff491bcc52bf9db191f06179c69886c7e64675780abe144ef3cfc254f073902bf4bdc52ccdd5cffc692802231625003593bafba1
7
- data.tar.gz: 58134698007c00b341760f15fa1b8265bc56439f8698c5875195301ed0c8107fe07083ee772b8c8babc8f330e89a1f6b843364477e44a301a1dfa8d16c7ac911
6
+ metadata.gz: 5b62309b5334d28e776feeeaf3ac53c2eea6457099b94cd7e0c93222283e4a9b50ed1fb903d1038a1691cc3389c609c28099612b434e4a0d3ecf0849af3c8a60
7
+ data.tar.gz: b2c522250731adac443b62e363f94f90407a44d38269a15c9483b64ee132c368a0641c8aa52cdbf39924db0ecaa048a76a89a5a9f6289dbb751499aefbcc05f1
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module PrayerLetters
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
@@ -12,9 +12,11 @@ module OmniAuth
12
12
  :access_token_path => '/api/oauth1/token',
13
13
  :request_token_path => '/api/oauth1/initiate',
14
14
  :http_method => 'post',
15
- :scheme => :query_string,
15
+ :scheme => :query_string
16
16
  }
17
17
 
18
+ option :permissions, 'contacts.read,contacts.write'
19
+
18
20
  uid { raw_info['id'] }
19
21
 
20
22
  info do
@@ -31,6 +33,13 @@ module OmniAuth
31
33
  def raw_info
32
34
  @raw_info ||= {} #MultiJson.decode(access_token.get('/v2/people/@me/@self?format=json').body)['entry']
33
35
  end
36
+
37
+ def request_phase
38
+ options.request_params ||= {}
39
+ options.request_params[:permissions] = options.permissions
40
+ super
41
+ end
42
+
34
43
  end
35
44
  end
36
45
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-prayer-letters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Starcher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-12 00:00:00.000000000 Z
11
+ date: 2013-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth