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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c792d6a2f85b3958ee72a17e867c150fb5da583e
4
- data.tar.gz: 104e1a27c7ad16e8994e3b58ac7c73fa12bd465a
3
+ metadata.gz: 28d0e4bf5b76d88ca44a62276da4d6432ca7b9f6
4
+ data.tar.gz: a896fbc12562a8bc2aacde323f9a8466f994302a
5
5
  SHA512:
6
- metadata.gz: 03d236eb66c9dab99aff723c68f95cadf0a3d305183a89ae998ddee26139bf312b79dfde2730caa94abccac091df6f37461cdc2c6061a6d1d75fa03b8e61813b
7
- data.tar.gz: 95162a77119aa37dad645f44e4353c6cfcbf7d13fe7c13f06c298f268a11ca424121a5fc235ccf6f31a2480492c7d6ce54c64a976ff6d878336736663a3bce1b
6
+ metadata.gz: 38466fe4ba4a3a80791c3557be51fb86234a2fece2a97c433629077a9f82dc47a86754dc2b7177f3e4948e5f5beaa70bf00d7683eb7444f861329b357856479d
7
+ data.tar.gz: 865a9d42ae45b87ed64511043a9771407cf46e3a0749cb827134247060fd2a485f9c6d81b23aafcc21ef435f08b72498fbecb15e7716db8f79ae8c20a02fb42f
checksums.yaml.gz.sig CHANGED
Binary file
@@ -21,8 +21,7 @@ module Plangrade
21
21
  get("/api/v1/participants/#{id}")
22
22
  end
23
23
 
24
- def all_participants(opts={})
25
- company_id = opts[:company_id]
24
+ def all_participants(company_id)
26
25
  get("/api/v1/participants?company_id=#{company_id}")
27
26
  end
28
27
  end
@@ -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, *opts)
29
- opts ||= {}
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|
@@ -1,5 +1,5 @@
1
1
  module Plangrade
2
2
  module Ruby
3
- VERSION = "0.3.21"
3
+ VERSION = "0.3.22"
4
4
  end
5
5
  end
@@ -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(:company_id => 1)
76
+ @client.all_participants(1)
77
77
  end
78
78
  end
79
79
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plangrade-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.21
4
+ version: 0.3.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Reynoso
metadata.gz.sig CHANGED
Binary file