patient_zero 0.5.8 → 0.5.9

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: 153ec2b306afb2cb3246ae44af572dfaf4b3a339
4
- data.tar.gz: 37465e5232e2e0e79ad005134f381eb50ab56110
3
+ metadata.gz: caba49b3ff85ada3a23acb0b0359352250c8ec76
4
+ data.tar.gz: 2b96189aad39683e4c981b23abb1d2562c4bdfb4
5
5
  SHA512:
6
- metadata.gz: 5c20cff52a8871e886ccaa192393b1c8b34675332ae4cad426bde9dbf19e15c3c613748215af0943503fd72e627ea8dbcbc598b734a2318f255e2dfa305b83ba
7
- data.tar.gz: 41be55eb469a678708668864f8509d695d876a75ed5776596cc06ca1d81935b6a6ade0882ae2d7ef7fa03498217e5c4c808245673fbf05eddc32c5ce1edcbfb3
6
+ metadata.gz: c348a1e7955016132c4693ee5c08710568d8af8678a85b0cabceb5c81da1a105974c071c5243be31a4d20ff79ef93e3a2cb76d95a31756363ad3bf9ed66b597b
7
+ data.tar.gz: 5e0f972fa4319897b2622d734b3e261c20e904cc1970a79afb107bfe4f4d8aa64e69c457ec45eb7dc004833692d93148ddd3ea31d997fcf736a9b742b0cf3550
@@ -30,7 +30,7 @@ module PatientZero
30
30
 
31
31
  def self.creation_url platform, token=Authorization.token, reference_id=nil
32
32
  response = connection.get("/mobile/api/v1/sources/#{platform}/authenticate", client_token: token, reference_id: reference_id)
33
- creation_url = response.headers.fetch :location
33
+ creation_url = response.headers.fetch 'location'
34
34
  raise InvalidPlatformError, creation_url.split('error=').last if creation_url.include? 'error'
35
35
  creation_url
36
36
  end
@@ -1,3 +1,3 @@
1
1
  module PatientZero
2
- VERSION = '0.5.8'
2
+ VERSION = '0.5.9'
3
3
  end
@@ -68,7 +68,7 @@ module PatientZero
68
68
  describe '.creation_url' do
69
69
  let(:platform) { 'facebook' }
70
70
  let(:url) { 'http://something-something.dangerzone.com' }
71
- let(:creation_url_response) { double :creation_url_response, headers: { location: url } }
71
+ let(:creation_url_response) { double :creation_url_response, headers: { 'location' => url } }
72
72
  before{ allow(Source.connection).to receive(:get).with("/mobile/api/v1/sources/#{platform}/authenticate", anything).and_return creation_url_response }
73
73
  it 'calls the sources authentication api' do
74
74
  expect(Source.connection).to receive(:get).with("/mobile/api/v1/sources/#{platform}/authenticate", anything)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: patient_zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.8
4
+ version: 0.5.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Zaninovich
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-11 00:00:00.000000000 Z
12
+ date: 2015-05-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler