omniauth-plangrade 0.1.1 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3174239bb8b6b7b3c24cd69bbc2391976bfb2095
4
- data.tar.gz: 3b7ea023d9b1c54c8b485c1971f4adaa4a670d22
3
+ metadata.gz: f20382683646397d438216dff85c3fadb59d1612
4
+ data.tar.gz: 463ed6b76fc86f4fce6d4a4d8c312a487b6b93db
5
5
  SHA512:
6
- metadata.gz: ea9c296465dc5fdc58653a8e5e0aa18c4029f121b34ce0358b4f5e5f5b1c01d4093f96940f79b1d80fe95016a4dc3cce322fd73860e797f6d7232bef66ff5fdf
7
- data.tar.gz: 76b6f7288d675b6a24fbaa7f2273c162f4e73cef5ad57ab87b6de8aa23180fce243708a62ddc4a8642771c3855744a27e1edbdb079c5418b1daa3e3495976660
6
+ metadata.gz: d25c9373bdef474b8357f1d7c64458aec72f8747936595a1f4e7de240055173bb0c10aca0fb302da925438479b9f7a7ca0cb8a687ed0dd40b6ddf6745f187e70
7
+ data.tar.gz: 486c6a6f1287a5e468d4169693f9bf1db6d012f115568c75660f0134c0452b67ff41a1a4a04a9e41389b803ac35c5179620520abc68d443fc9c189c70ba1cb0f
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Plangrade
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
@@ -20,7 +20,8 @@ module OmniAuth
20
20
  end
21
21
 
22
22
  def raw_info
23
- @raw_info ||= access_token.get('/api/v1/me.json').parsed
23
+ response = access_token.get('/api/v1/me')
24
+ @raw_info ||= JSON.parse(response.body)
24
25
  end
25
26
  end
26
27
  end
@@ -60,15 +60,4 @@ describe OmniAuth::Strategies::Plangrade do
60
60
  it { expect { subject.info }.not_to raise_error }
61
61
  end
62
62
  end
63
-
64
- describe '#raw_info' do
65
- before :each do
66
- response = double('response', :parsed => { 'foo' => 'bar' })
67
- allow(subject).to receive(:access_token) { double('access token', :get => response) }
68
- end
69
-
70
- it 'returns parsed response from access token' do
71
- expect(subject.raw_info).to eq({ 'foo' => 'bar' })
72
- end
73
- end
74
63
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-plangrade
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Reynoso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-12 00:00:00.000000000 Z
11
+ date: 2014-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json