patient_zero 0.3.0 → 0.3.1

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: a037356146290a626fa56f41f3ea9ac05ef1ba8e
4
- data.tar.gz: 140f175a8f2f333105e5ac50b8b4263419ca8bac
3
+ metadata.gz: f21fab6e80fa8c0ef9c8cacf6afcef9ad727649d
4
+ data.tar.gz: 12f1d59bee5d1b29fa9103aaf3e2e49a8683f75f
5
5
  SHA512:
6
- metadata.gz: b0e70002f5430e5b3453802ada0c013e9c8154087df702d50b8c21e2c0c310d344a70f32ea89b9822a9a6d2d0de9d3adfdad10115ba7e8eba513cf9acfab3209
7
- data.tar.gz: af84b55608d2edfd6f415c883d80eba65f07ffe7f201ad9dd537553f9b131dd1c2abab310d80a9bd6ba10d8c6fd98548d801d33ae59b72b49fe61a84dbecb5e0
6
+ metadata.gz: 2eac5211ffac1e766decdf0fe0fbfddd5e7eb23e187743150eeb1ed53d6915bb559f072874e9d9461e0d022d55eeaa81496279c34cbac2397dda53f4e4f9fc4b
7
+ data.tar.gz: 990570e260fcec96b1bb2096b92e785dff63f146a4db42477797feb05205a96d6116b71aea6f4391a51c2c5f67f2a2009425fc67d8d84c1dbf83edfc98febcba
@@ -21,7 +21,7 @@ module PatientZero
21
21
  end
22
22
 
23
23
  def self.find id
24
- response = get '/social/api/v2/monitoring/profiles', api_key: PatientZero.api_key, id: id
24
+ response = get "/social/api/v2/monitoring/profiles/#{id}", api_key: PatientZero.api_key
25
25
  new response['profiles'].first
26
26
  end
27
27
 
@@ -1,3 +1,3 @@
1
1
  module PatientZero
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
@@ -35,10 +35,10 @@ module PatientZero
35
35
 
36
36
  describe '.find' do
37
37
  let(:profile_response) { response_with_body profiles: [profile_data] }
38
- before { allow(Profile.connection).to receive(:get).with('/social/api/v2/monitoring/profiles', anything) { profile_response } }
38
+ before { allow(Profile.connection).to receive(:get).with("/social/api/v2/monitoring/profiles/#{id}", anything) { profile_response } }
39
39
 
40
40
  it 'calls the profiles api endpoint' do
41
- expect(Profile.connection).to receive(:get).with('/social/api/v2/monitoring/profiles', anything)
41
+ expect(Profile.connection).to receive(:get).with("/social/api/v2/monitoring/profiles/#{id}", anything)
42
42
  Profile.find id
43
43
  end
44
44
 
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.3.0
4
+ version: 0.3.1
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-04-21 00:00:00.000000000 Z
12
+ date: 2015-04-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler