omniauth-workxp 0.0.2 → 0.0.3

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.
data/Gemfile.lock CHANGED
@@ -1,14 +1,61 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-workxp (0.0.1)
4
+ omniauth-workxp (0.0.2)
5
+ omniauth (~> 1.0)
6
+ omniauth-oauth2 (~> 1.1)
5
7
 
6
8
  GEM
7
9
  remote: https://rubygems.org/
8
10
  specs:
11
+ addressable (2.3.2)
12
+ crack (0.3.1)
13
+ diff-lcs (1.1.3)
14
+ faraday (0.8.4)
15
+ multipart-post (~> 1.1)
16
+ hashie (1.2.0)
17
+ httpauth (0.2.0)
18
+ jwt (0.1.5)
19
+ multi_json (>= 1.0)
20
+ multi_json (1.4.0)
21
+ multipart-post (1.1.5)
22
+ oauth2 (0.8.0)
23
+ faraday (~> 0.8)
24
+ httpauth (~> 0.1)
25
+ jwt (~> 0.1.4)
26
+ multi_json (~> 1.0)
27
+ rack (~> 1.2)
28
+ omniauth (1.1.1)
29
+ hashie (~> 1.2)
30
+ rack
31
+ omniauth-oauth2 (1.1.1)
32
+ oauth2 (~> 0.8.0)
33
+ omniauth (~> 1.0)
34
+ rack (1.4.1)
35
+ rack-test (0.6.2)
36
+ rack (>= 1.0)
37
+ rspec (2.12.0)
38
+ rspec-core (~> 2.12.0)
39
+ rspec-expectations (~> 2.12.0)
40
+ rspec-mocks (~> 2.12.0)
41
+ rspec-core (2.12.1)
42
+ rspec-expectations (2.12.0)
43
+ diff-lcs (~> 1.1.3)
44
+ rspec-mocks (2.12.0)
45
+ simplecov (0.7.1)
46
+ multi_json (~> 1.0)
47
+ simplecov-html (~> 0.7.1)
48
+ simplecov-html (0.7.1)
49
+ webmock (1.9.0)
50
+ addressable (>= 2.2.7)
51
+ crack (>= 0.1.7)
9
52
 
10
53
  PLATFORMS
11
54
  ruby
12
55
 
13
56
  DEPENDENCIES
14
57
  omniauth-workxp!
58
+ rack-test
59
+ rspec (~> 2.7)
60
+ simplecov
61
+ webmock
@@ -4,9 +4,9 @@ module OmniAuth
4
4
  module Strategies
5
5
  class Workxp < OmniAuth::Strategies::OAuth2
6
6
  option :client_options, {
7
- :site => 'https://api.github.com',
8
- :authorize_url => 'https://github.com/login/oauth/authorize',
9
- :token_url => 'https://github.com/login/oauth/access_token'
7
+ :site => 'https://workxp.info',
8
+ :authorize_url => 'https://workxp.info/oauth/authorize',
9
+ :token_url => 'https://workxp.info/oauth/token'
10
10
  }
11
11
 
12
12
  def request_phase
@@ -30,7 +30,7 @@ module OmniAuth
30
30
  'name' => raw_info['name'],
31
31
  'image' => raw_info['avatar_url'],
32
32
  'urls' => {
33
- 'GitHub' => "https://github.com/#{raw_info['login']}",
33
+ 'Workxp' => "https://workxp.info/#{raw_info['login']}",
34
34
  'Blog' => raw_info['blog'],
35
35
  },
36
36
  }
@@ -41,8 +41,9 @@ module OmniAuth
41
41
  end
42
42
 
43
43
  def raw_info
44
- access_token.options[:mode] = :query
45
- @raw_info ||= access_token.get('/user').parsed
44
+ # access_token.options[:mode] = :query
45
+ # @raw_info ||= access_token.get('/user').parsed
46
+ @raw_info = {}
46
47
  end
47
48
 
48
49
  def email
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Workxp
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-workxp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: