plangrade-ruby 0.3.21 → 0.3.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/plangrade/api/participant.rb +1 -2
- data/lib/plangrade/resources/participant.rb +2 -4
- data/lib/plangrade/ruby/version.rb +1 -1
- data/spec/api/participant_spec.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28d0e4bf5b76d88ca44a62276da4d6432ca7b9f6
|
4
|
+
data.tar.gz: a896fbc12562a8bc2aacde323f9a8466f994302a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38466fe4ba4a3a80791c3557be51fb86234a2fece2a97c433629077a9f82dc47a86754dc2b7177f3e4948e5f5beaa70bf00d7683eb7444f861329b357856479d
|
7
|
+
data.tar.gz: 865a9d42ae45b87ed64511043a9771407cf46e3a0749cb827134247060fd2a485f9c6d81b23aafcc21ef435f08b72498fbecb15e7716db8f79ae8c20a02fb42f
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -25,10 +25,8 @@ module Plangrade
|
|
25
25
|
:zip => parsed_result["zip"], :dob => parsed_result["dob"], :email => parsed_result["email"], :phone => parsed_result["phone"])
|
26
26
|
end
|
27
27
|
|
28
|
-
def self.all(company_id
|
29
|
-
|
30
|
-
opts[:company_id] = company_id
|
31
|
-
result = api_handler.all_participants(opts)
|
28
|
+
def self.all(company_id)
|
29
|
+
result = api_handler.all_participants(company_id)
|
32
30
|
parsed_result = JSON.parse(result.body)
|
33
31
|
participants ||= begin
|
34
32
|
parsed_result.map do |participant|
|
@@ -73,7 +73,7 @@ describe Plangrade::Api::Participant do
|
|
73
73
|
describe 'all_participants' do
|
74
74
|
it 'makes an http request' do
|
75
75
|
@client.should_receive(:get).with('/api/v1/participants?company_id=1')
|
76
|
-
@client.all_participants(
|
76
|
+
@client.all_participants(1)
|
77
77
|
end
|
78
78
|
end
|
79
79
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|