omniauth-artsy 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +7 -4
- data/CHANGELOG.md +5 -0
- data/lib/omniauth-artsy/version.rb +1 -1
- data/lib/omniauth/strategies/artsy.rb +1 -1
- data/spec/omniauth/strategies/artsy_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84c99fab0ddb785b438967eb1dbaf35ec62ed53b
|
4
|
+
data.tar.gz: 10d61d64a4a3cb913d72cc62ee0bab142bfe8042
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d56f1e29e8254e78ee73ab138454badb183d099beae4df6cd7b544dc240fa5e5291e3a828036c52d91b59301a821796e4c8e2507aec10e56f7582ff12a6727f
|
7
|
+
data.tar.gz: 72a3ccaa269c35c9931b7bf87f328653edf86d1902944aaca8407ba0d42f67b2a462fb2e1d8c8e6fc4631868a70cf74ca3dbd2ee4e18f0b8d7d792e477b6e3ec
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -3,15 +3,18 @@ language: ruby
|
|
3
3
|
cache: bundler
|
4
4
|
|
5
5
|
rvm:
|
6
|
-
- 2.
|
7
|
-
- 2.
|
8
|
-
-
|
9
|
-
- rbx-2.2.10
|
6
|
+
- 2.3.0
|
7
|
+
- 2.2
|
8
|
+
- rbx-2
|
10
9
|
- jruby-19mode
|
11
10
|
- ruby-head
|
12
11
|
- jruby-head
|
13
12
|
|
14
13
|
matrix:
|
15
14
|
allow_failures:
|
15
|
+
- rvm: rbx-2
|
16
16
|
- rvm: ruby-head
|
17
17
|
- rvm: jruby-head
|
18
|
+
|
19
|
+
before_install:
|
20
|
+
- gem update bundler
|
data/CHANGELOG.md
CHANGED
@@ -21,7 +21,7 @@ module OmniAuth
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def raw_info
|
24
|
-
@raw_info ||= access_token.get('/api/
|
24
|
+
@raw_info ||= access_token.get('/api/current_user', headers: { 'X-ACCESS-TOKEN' => access_token.token }).parsed
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
@@ -40,7 +40,7 @@ describe OmniAuth::Strategies::Artsy do
|
|
40
40
|
allow(subject).to receive(:access_token).and_return(access_token)
|
41
41
|
|
42
42
|
response = instance_double(OAuth2::Response, parsed: @raw_info_hash)
|
43
|
-
expect(access_token).to receive(:get).with('/api/
|
43
|
+
expect(access_token).to receive(:get).with('/api/current_user', headers: { 'X-ACCESS-TOKEN' => 'secret' }).and_return(response)
|
44
44
|
|
45
45
|
expect(subject.raw_info).to eq(@raw_info_hash)
|
46
46
|
end
|