patient_zero 0.3.1 → 0.3.2

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: f21fab6e80fa8c0ef9c8cacf6afcef9ad727649d
4
- data.tar.gz: 12f1d59bee5d1b29fa9103aaf3e2e49a8683f75f
3
+ metadata.gz: 4024def469f47be91a5c4adf49c024e64d39fddb
4
+ data.tar.gz: 93429e3a2e9fcd04c96093d93044ff8a164178e6
5
5
  SHA512:
6
- metadata.gz: 2eac5211ffac1e766decdf0fe0fbfddd5e7eb23e187743150eeb1ed53d6915bb559f072874e9d9461e0d022d55eeaa81496279c34cbac2397dda53f4e4f9fc4b
7
- data.tar.gz: 990570e260fcec96b1bb2096b92e785dff63f146a4db42477797feb05205a96d6116b71aea6f4391a51c2c5f67f2a2009425fc67d8d84c1dbf83edfc98febcba
6
+ metadata.gz: 2fa33fa7b2315c9606817c375236d67d3988ac540b891949c6a2aeb7356d6b08fe084e8a6d1ec9eb3fe8716a12f64bf86a60ef0f194fc83a3aabf87507dcaa0f
7
+ data.tar.gz: 4c45b2c1b326483bcd72c8c167b1a614c762924ab22ef809aeb49404c012c90c142319a470cb8dc472d2f620571d1ddbe0239bb10de22a2cb79013226493d172
@@ -22,7 +22,7 @@ module PatientZero
22
22
 
23
23
  def self.find id
24
24
  response = get "/social/api/v2/monitoring/profiles/#{id}", api_key: PatientZero.api_key
25
- new response['profiles'].first
25
+ new response['profile']
26
26
  end
27
27
 
28
28
  def self.create params={}
@@ -1,3 +1,3 @@
1
1
  module PatientZero
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
@@ -34,7 +34,7 @@ module PatientZero
34
34
  end
35
35
 
36
36
  describe '.find' do
37
- let(:profile_response) { response_with_body profiles: [profile_data] }
37
+ let(:profile_response) { response_with_body profile: profile_data }
38
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
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.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Zaninovich
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  version: '0'
165
165
  requirements: []
166
166
  rubyforge_project:
167
- rubygems_version: 2.4.5
167
+ rubygems_version: 2.2.2
168
168
  signing_key:
169
169
  specification_version: 4
170
170
  summary: A gem to use the Viral Heat API