omniauth-jawbone 0.0.42 → 0.0.43
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzgzMDY2YTU0YmUyM2U5N2E1MWUzYzYwZjAzMjIxM2UwN2ExMDliOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDM5NDBlYTU2OTMxMTMyNDlkZWY5NWI4ZWJiYzg5ZDEwN2EwZDdkNg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Zjc3MGI4NjI0MDhmMjlhYjg3YjAxM2QzNjYwMGM0Y2IyZTgxOTY5ZjdlYmQy
|
10
|
+
NGYyNDBhZGQzNDQ1Yjk5YTZhYTkzOGRmMWIzZmZhZjY1N2FlOGNlOGMyZWI1
|
11
|
+
YTM5ZGFlYTJiZWU2NDk2YWU4ZjQyN2VhMWQ1MmZhZTZkNGU1MWE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjQ3MGZkZWRkYTM3NWRlMzVkMDUyNjBhOWM1OWNhMTc5MjliMjJmZjYxN2Nm
|
14
|
+
YzY5NjFmMzc3YTZlZDZmZWMxNTQzZWM3MjNiM2JhYTkyYjcwNDBhNGE2MDkx
|
15
|
+
MjVkM2M3Mzg3ZjY3OTVlMjNkZmNmMzcxNDNiYTE5Yzc3ZDIwMWE=
|
@@ -6,10 +6,9 @@ require 'timeout'
|
|
6
6
|
require 'securerandom'
|
7
7
|
require 'omniauth-oauth2'
|
8
8
|
|
9
|
-
module OmniAuth
|
10
|
-
module Strategies
|
11
|
-
class Jawbone < OmniAuth::Strategies::OAuth2
|
12
|
-
#include OmniAuth::Strategy
|
9
|
+
module OmniAuth
|
10
|
+
module Strategies
|
11
|
+
class Jawbone < OmniAuth::Strategies::OAuth2
|
13
12
|
|
14
13
|
option :client_options, {
|
15
14
|
:site => 'https://jawbone.com',
|
@@ -30,11 +29,6 @@ module OmniAuth #here I'm inheriting behaviors from the OmniAuth module
|
|
30
29
|
}
|
31
30
|
end
|
32
31
|
|
33
|
-
# def raw_info
|
34
|
-
# access_token.options[:mode] = :query
|
35
|
-
# @raw_info ||= access_token.get('user').parsed
|
36
|
-
# end
|
37
|
-
|
38
32
|
|
39
33
|
def user_data
|
40
34
|
access_token.options[:mode] = :query
|
@@ -2,6 +2,7 @@ require 'spec_helper'
|
|
2
2
|
require_relative '../../../lib/omniauth/strategies/jawbone'
|
3
3
|
|
4
4
|
describe OmniAuth::Strategies::Jawbone do
|
5
|
+
|
5
6
|
subject do
|
6
7
|
OmniAuth::Strategies::Jawbone.new({})
|
7
8
|
end
|
@@ -12,15 +13,15 @@ describe OmniAuth::Strategies::Jawbone do
|
|
12
13
|
end
|
13
14
|
|
14
15
|
it "should have correct authorize path" do
|
15
|
-
subject.options.client_options.
|
16
|
+
subject.options.client_options.authorize_url.should eq("/auth/oauth2/auth")
|
16
17
|
end
|
17
18
|
|
18
19
|
it "should have the correct request token path" do
|
19
|
-
subject.options.client_options.
|
20
|
+
subject.options.client_options.token_url.should eq("/auth/oauth2/token")
|
20
21
|
end
|
21
22
|
|
22
23
|
it "should have the correct access token path" do
|
23
|
-
subject.options.client_options.
|
24
|
+
subject.options.client_options.scope.should eq("basic_readsleep_read")
|
24
25
|
end
|
25
26
|
end
|
26
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-jawbone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.43
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ruthie Nachmany
|
@@ -113,7 +113,6 @@ files:
|
|
113
113
|
- Rakefile
|
114
114
|
- lib/omniauth-jawbone.rb
|
115
115
|
- lib/omniauth-jawbone/version.rb
|
116
|
-
- lib/omniauth/strategies/jawbone-attempt2.rb
|
117
116
|
- lib/omniauth/strategies/jawbone.rb
|
118
117
|
- omniauth-jawbone.gemspec
|
119
118
|
- spec/omniauth/strategies/jawbone_spec.rb
|
File without changes
|