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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 540dc690902ed7180d4f606dcf69462182ba9bc5
4
- data.tar.gz: ccac36edb12b78ae0b3c23ff7e9d25d4ecaad02c
3
+ metadata.gz: 84c99fab0ddb785b438967eb1dbaf35ec62ed53b
4
+ data.tar.gz: 10d61d64a4a3cb913d72cc62ee0bab142bfe8042
5
5
  SHA512:
6
- metadata.gz: fcd9eb3fb3bbc98d42b4886ea6beef07826b85f41033199334555e9d7e07f283215843edb039aec9b8186a2327369c4a89299485b8103634d2d3e86318fe1a53
7
- data.tar.gz: ba69be9b3ac5993bf47234ba6bd8736e0a45348fb84de68990bfa2bb1948447b427e877f04acdfea6d6337071f5f9523e73822f0902bef8f6a206723a10df9a5
6
+ metadata.gz: 2d56f1e29e8254e78ee73ab138454badb183d099beae4df6cd7b544dc240fa5e5291e3a828036c52d91b59301a821796e4c8e2507aec10e56f7582ff12a6727f
7
+ data.tar.gz: 72a3ccaa269c35c9931b7bf87f328653edf86d1902944aaca8407ba0d42f67b2a462fb2e1d8c8e6fc4631868a70cf74ca3dbd2ee4e18f0b8d7d792e477b6e3ec
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  Gemfile.lock
2
2
  .bundle
3
+ pkg
3
4
 
@@ -3,15 +3,18 @@ language: ruby
3
3
  cache: bundler
4
4
 
5
5
  rvm:
6
- - 2.1.2
7
- - 2.0.0
8
- - 1.9.3
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
@@ -1,3 +1,8 @@
1
+ 0.2.0 (5/4/2016)
2
+ ================
3
+
4
+ * [#5](https://github.com/artsy/omniauth-artsy/pull/5): Obtain user details from APIv2 upon login - [@dblock](https://github.com/dblock).
5
+
1
6
  0.1.1 (5/4/2016)
2
7
  ================
3
8
 
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Artsy
3
- VERSION = '0.1.1'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
@@ -21,7 +21,7 @@ module OmniAuth
21
21
  end
22
22
 
23
23
  def raw_info
24
- @raw_info ||= access_token.get('/api/v1/me', headers: { 'X-ACCESS-TOKEN' => access_token.token }).parsed
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/v1/me', headers: { 'X-ACCESS-TOKEN' => 'secret' }).and_return(response)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-artsy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Fareed