omniauth-jawbone 0.0.42 → 0.0.43

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjUzYWE1YzRjYzA4MDUyMWE1NGE4NmJmZjc4ZGMyNjllYTRiZjFiZQ==
4
+ YzgzMDY2YTU0YmUyM2U5N2E1MWUzYzYwZjAzMjIxM2UwN2ExMDliOA==
5
5
  data.tar.gz: !binary |-
6
- MTJjZWI3MDIyOGNjNGU1NWJiZWMwYzRkOWRlOWNjMjgxYzZmY2IyMQ==
6
+ MDM5NDBlYTU2OTMxMTMyNDlkZWY5NWI4ZWJiYzg5ZDEwN2EwZDdkNg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OTg5MzU4M2Q1NjdjYjZkODY4NDE4YjU2Y2YxNzg2ZWU0ODFlZTM1NTEzMWU2
10
- NDhhODI2ZTZmMmM5NDQyZDQ4NmJlMjI1MzA0OWQyMGI2YzRhMTdhNjMxZDIy
11
- ZGViMTI0YmQ0YmI4YmMyZjdjNmI5OWIyMWI4NjVmNTNiZTI5MmQ=
9
+ Zjc3MGI4NjI0MDhmMjlhYjg3YjAxM2QzNjYwMGM0Y2IyZTgxOTY5ZjdlYmQy
10
+ NGYyNDBhZGQzNDQ1Yjk5YTZhYTkzOGRmMWIzZmZhZjY1N2FlOGNlOGMyZWI1
11
+ YTM5ZGFlYTJiZWU2NDk2YWU4ZjQyN2VhMWQ1MmZhZTZkNGU1MWE=
12
12
  data.tar.gz: !binary |-
13
- N2I1MjcwMWNiMWIwNDY2YzViNjg5ZGExZjVkYzdjNjkyZjBmZDM1ZjJjMGY1
14
- MmIyMzA0M2E0YjE2MjIwZGQ0NDA5NzdmMzUwMjQ0NzBkYTA4MDI3OTJjMzM5
15
- ODdiZDFhOTUyMzU1M2I0ZjBlYTA4NjBiNzFiOTQ5MTI0YWUxMDc=
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 #here I'm inheriting behaviors from the OmniAuth module
10
- module Strategies #here I'm inheriting behaviors from the Omniauth::Strategies module
11
- class Jawbone < OmniAuth::Strategies::OAuth2 #declaring a class for my new OmniAuth strategy
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
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Jawbone
3
- VERSION = "0.0.42"
3
+ VERSION = "0.0.43"
4
4
  end
5
5
  end
@@ -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.authorize_path.should eq("/auth/oauth2/auth")
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.request_token_path.should eq("/auth/oauth2/token)
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.access_token_path.should eq("/1/OAuthGetAccessToken")
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.42
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