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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: accc0a77ff44dd134bb323c566e6d169a0b7ada4
|
4
|
+
data.tar.gz: fc1db99a838386cd4f0e0f4a4efd821b29fd8327
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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, "
|
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
|
-
|
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
|
-
|
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
|
data/lib/quickbooks/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
144
|
+
version: 2.14.1
|
145
145
|
- !ruby/object:Gem::Dependency
|
146
146
|
name: fakeweb
|
147
147
|
requirement: !ruby/object:Gem::Requirement
|