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 +4 -4
- data/lib/patient_zero/profile.rb +1 -1
- data/lib/patient_zero/version.rb +1 -1
- data/spec/patient_zero/profile_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f21fab6e80fa8c0ef9c8cacf6afcef9ad727649d
|
4
|
+
data.tar.gz: 12f1d59bee5d1b29fa9103aaf3e2e49a8683f75f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2eac5211ffac1e766decdf0fe0fbfddd5e7eb23e187743150eeb1ed53d6915bb559f072874e9d9461e0d022d55eeaa81496279c34cbac2397dda53f4e4f9fc4b
|
7
|
+
data.tar.gz: 990570e260fcec96b1bb2096b92e785dff63f146a4db42477797feb05205a96d6116b71aea6f4391a51c2c5f67f2a2009425fc67d8d84c1dbf83edfc98febcba
|
data/lib/patient_zero/profile.rb
CHANGED
@@ -21,7 +21,7 @@ module PatientZero
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def self.find id
|
24
|
-
response = get
|
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
|
|
data/lib/patient_zero/version.rb
CHANGED
@@ -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(
|
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(
|
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.
|
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-
|
12
|
+
date: 2015-04-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|