daisybill_api 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f4e06ac630954fbf2b73acf8cbcdb70701a4023
4
- data.tar.gz: 5c2279c1252d5b4c10a12ed8cf9bc540824f12c2
3
+ metadata.gz: 4c5c9a4689f859c91d6f9e12a65fe4c13196d733
4
+ data.tar.gz: a65ca0cf2f4d6f2f026a4ebded38a730d8e3f711
5
5
  SHA512:
6
- metadata.gz: cc8a3e51e32e99b04b0c711ad18f3322733d8b6ac6ebcf7161a02de71e6a93ccba160eefcec399477d064a8976e483c99eef5d30c0f809efccda5ea2e85e9d33
7
- data.tar.gz: e72d81a145c9e7b296b32b1f59516f55fa8df339b132c6e442572d1ff0fec73eac8daa585999d358ffb68865d865f0e681c9c6afb40432ad43ee7efd4299cf27
6
+ metadata.gz: 1f8d6235ac3e8d2f0cd2cca00f46b7d54b685da31fe5a279ee1ac193cdb1b0c46cb7076be4cd12727b98d5e69222a7a54585e97e8fc77569c19a25158f97dcb0
7
+ data.tar.gz: e4dd70f84eb317b0c09f8981729fe6ed3a042ce377d7b3fa2942d514b56bf495cc5a7c0668228defbee82d922244696b7417b946191b1c6f4092272e327acb63
@@ -1,5 +1,4 @@
1
1
  require "rest-client"
2
- require "daisybill_api/data/rest_client/payload"
3
2
 
4
3
  module DaisybillApi
5
4
  # @private
@@ -29,8 +28,7 @@ module DaisybillApi
29
28
  data = {
30
29
  method: method,
31
30
  url: url,
32
- payload: params,
33
- headers: { "Content-Type" => "application/json" }
31
+ payload: params
34
32
  }
35
33
  RestClient::Request.execute(data) { |response, request, status|
36
34
  @headers = response.headers
@@ -26,6 +26,7 @@ module DaisybillApi
26
26
  has_many :bills, class: "Bill", set_path: true
27
27
  has_many :pharmacy_bills, class: "PharmacyBill", set_path: true
28
28
  has_many :injuries, class: "Injury", set_path: true
29
+ has_many :tasks, set_path: true, class: "Task"
29
30
  end
30
31
  end
31
32
  end
@@ -1,3 +1,3 @@
1
1
  module DaisybillApi
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
@@ -13,6 +13,7 @@ describe DaisybillApi::Models::BillingProvider do
13
13
  it_behaves_like DaisybillApi::Ext::Associations, :attachments
14
14
  it_behaves_like DaisybillApi::Ext::Associations, :remittances
15
15
  it_behaves_like DaisybillApi::Ext::Associations, :bills
16
+ it_behaves_like DaisybillApi::Ext::Associations, :tasks
16
17
  it_behaves_like DaisybillApi::Ext::Associations, :pharmacy_bills
17
18
  it_behaves_like DaisybillApi::Ext::Associations, :injuries
18
19
  it_behaves_like DaisybillApi::Ext::Links
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daisybill_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Liscio
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-06-12 00:00:00.000000000 Z
13
+ date: 2018-04-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activemodel
@@ -32,14 +32,14 @@ dependencies:
32
32
  requirements:
33
33
  - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: '1.8'
35
+ version: '2.0'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: '1.8'
42
+ version: '2.0'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: bundler
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -158,14 +158,14 @@ dependencies:
158
158
  requirements:
159
159
  - - "~>"
160
160
  - !ruby/object:Gem::Version
161
- version: 0.8.7
161
+ version: 0.9.0
162
162
  type: :development
163
163
  prerelease: false
164
164
  version_requirements: !ruby/object:Gem::Requirement
165
165
  requirements:
166
166
  - - "~>"
167
167
  - !ruby/object:Gem::Version
168
- version: 0.8.7
168
+ version: 0.9.0
169
169
  description: ActiveRecord style wrapper for DaisyBill's API
170
170
  email:
171
171
  - bliscio@daisybill.com
@@ -179,7 +179,6 @@ files:
179
179
  - lib/daisybill_api/configuration.rb
180
180
  - lib/daisybill_api/data.rb
181
181
  - lib/daisybill_api/data/client.rb
182
- - lib/daisybill_api/data/rest_client/payload.rb
183
182
  - lib/daisybill_api/data/url.rb
184
183
  - lib/daisybill_api/ext.rb
185
184
  - lib/daisybill_api/ext/associations.rb
@@ -286,7 +285,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
286
285
  version: '0'
287
286
  requirements: []
288
287
  rubyforge_project:
289
- rubygems_version: 2.4.5.1
288
+ rubygems_version: 2.5.2
290
289
  signing_key:
291
290
  specification_version: 4
292
291
  summary: ActiveRecord style wrapper for DaisyBill's API
@@ -328,4 +327,3 @@ test_files:
328
327
  - spec/daisybill_api/models/task_spec.rb
329
328
  - spec/daisybill_api/models/user_spec.rb
330
329
  - spec/daisybill_api_spec.rb
331
- has_rdoc:
@@ -1,30 +0,0 @@
1
- # @private
2
- module RestClient
3
- module Payload
4
- class Base
5
- def flatten_params_array(value, calculated_key)
6
- result = []
7
- key = "#{calculated_key}[]"
8
- value.each do |elem|
9
- if elem.is_a? Hash
10
- result += flatten_params(elem, key)
11
- elsif elem.is_a? Array
12
- result += flatten_params_array(elem, key)
13
- else
14
- result << [key, elem]
15
- end
16
- end
17
- result
18
- end
19
- end
20
-
21
- class UrlEncoded
22
- def build_stream(params = nil)
23
- @stream = StringIO.new(flatten_params(params).collect do |entry|
24
- entry[1].nil? ? entry[0] : "#{entry[0]}=#{handle_key(entry[1])}"
25
- end.join("&"))
26
- @stream.seek(0)
27
- end
28
- end
29
- end
30
- end