quickbooks-ruby 0.6.1 → 0.6.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: 24e06887a6e813d61012ea901b56c7437190f2fd
4
- data.tar.gz: 91f01e4dc65fe45baa475ea7f32c88e4e0c02fdf
3
+ metadata.gz: accc0a77ff44dd134bb323c566e6d169a0b7ada4
4
+ data.tar.gz: fc1db99a838386cd4f0e0f4a4efd821b29fd8327
5
5
  SHA512:
6
- metadata.gz: 4ebb387c402a60a882433c46788276c627f91d7bd70a92ebe501a0a2bdc2d02bac8625ad354cace62a2e5c4ae781fb0244e7da911c057d6b4f38f3bc597e1ff5
7
- data.tar.gz: 0925d3076e903d837a95072f269fbd452451029fd7bcaaba0182a6712546ddcfa4794e2543ac7647bd5d4ff94e14c766e359b63d23e7777d68d713fc06fd831d
6
+ metadata.gz: 0cce4765e477de47b0826b21a57372a6a20e80d6a208f5cbfcf3c57c6442534b81c6cedf40faede7e0e6c857566ebd53327bfa2616fd5d36fce4bd28aa6061e2
7
+ data.tar.gz: b2908e22c81f99de3dc112c77021fe6129a3cb46b0c2b82032138a411336949a7ecda0c9de2b1c7a0a2adf85b6990457a5a01277dd5b2c9bce362e78a8d6ba9b
@@ -46,7 +46,7 @@ module Quickbooks
46
46
 
47
47
  def existence_of_employee_ref
48
48
  if employee_ref.nil? || (employee_ref && employee_ref.value == 0)
49
- errors.add(:employee_ref, "VendorRef is required and must be a non-zero value.")
49
+ errors.add(:employee_ref, "EmployeeRef is required and must be a non-zero value.")
50
50
  end
51
51
  end
52
52
 
@@ -239,12 +239,19 @@ module Quickbooks
239
239
  else
240
240
  raise "Do not know how to perform that HTTP operation"
241
241
  end
242
- check_response(response, :request => body)
242
+
243
+ if response.code.to_i == 302 && [:get, :post].include?(method)
244
+ do_http(method, response['location'], body, headers)
245
+ else
246
+ check_response(response, :request => body)
247
+ end
243
248
  end
244
249
 
245
250
  def add_query_string_to_url(url, params)
246
251
  if params.is_a?(Hash) && !params.empty?
247
- url + "?" + params.collect { |k| "#{k.first}=#{k.last}" }.join("&")
252
+ keyvalues = params.collect { |k| "#{k.first}=#{k.last}" }.join("&")
253
+ delim = url.index("?") != nil ? "&" : "?"
254
+ url + delim + keyvalues
248
255
  else
249
256
  url
250
257
  end
@@ -1,5 +1,5 @@
1
1
  module Quickbooks
2
2
 
3
- VERSION = "0.6.1"
3
+ VERSION = "0.6.2"
4
4
 
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quickbooks-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Caughlan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-31 00:00:00.000000000 Z
11
+ date: 2018-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth
@@ -134,14 +134,14 @@ dependencies:
134
134
  requirements:
135
135
  - - '='
136
136
  - !ruby/object:Gem::Version
137
- version: 2.13.0
137
+ version: 2.14.1
138
138
  type: :development
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - '='
143
143
  - !ruby/object:Gem::Version
144
- version: 2.13.0
144
+ version: 2.14.1
145
145
  - !ruby/object:Gem::Dependency
146
146
  name: fakeweb
147
147
  requirement: !ruby/object:Gem::Requirement