quickbooks-ruby 0.4.6 → 0.4.7

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: bd6ad957a89437617f1bcff71acf5d6a35ca2230
4
- data.tar.gz: ff0d3df6b00727db3babf0066dd091f9cbf35b95
3
+ metadata.gz: bf58ab2146665d8d154f9bb9169e3d6028d66343
4
+ data.tar.gz: f7049347e1d87eb961a93680e2401986995d2f89
5
5
  SHA512:
6
- metadata.gz: 4344907b9f25e64fedfdbf8e4ca9f8522fd9a46579f4438973c931aed7837571f58137b6a4492cf389761c6eb901205bbc3eaec62e8734fc0994d9cfdba4331b
7
- data.tar.gz: f5ad837bc5dfa26b4c5c5607cf5073efe1323e93430daebfcc3d625088e13cda980870f88da2fa36471323d33c1d6a815e2042cc22249e8d7aa96551ed6b34b1
6
+ metadata.gz: 4fdad280be3946c721fa615879fa1b5211683a0cb9a289b00ee5c3d65724e2377ea22ef10a371432b8ab2072f3d406767de4c76c6ab39f5701a41d0df0104917
7
+ data.tar.gz: 9eb317dc1d41dcef46635279f723e0d73b4f404861c6f414d3f188ad4962b2a386f352d8de762f6bdb08a0d787a8032105e4478be81ba53e038260b45873cc03
@@ -217,6 +217,8 @@ module Quickbooks
217
217
  class InvalidModelException < StandardError; end
218
218
  class AuthorizationFailure < StandardError; end
219
219
  class Forbidden < StandardError; end
220
+ class NotFound < StandardError; end
221
+ class RequestTooLarge < StandardError; end
220
222
  class ThrottleExceeded < Forbidden; end
221
223
  class TooManyRequests < StandardError; end
222
224
  class ServiceUnavailable < StandardError; end
@@ -2,7 +2,7 @@ module Quickbooks
2
2
  module Model
3
3
  class DepositLineDetail < BaseModel
4
4
 
5
- xml_accessor :entity, :from => 'Entity', :as => BaseReference
5
+ xml_accessor :entity_ref, :from => 'Entity', :as => BaseReference
6
6
  xml_accessor :class_ref, :from => 'ClassRef', :as => BaseReference
7
7
  xml_accessor :account_ref, :from => 'AccountRef', :as => BaseReference
8
8
  xml_accessor :payment_method_ref, :from => 'PaymentMethodRef', :as => BaseReference
@@ -10,7 +10,7 @@ module Quickbooks
10
10
  xml_accessor :txn_type, :from => 'TxnType'
11
11
  xml_accessor :custom_fields, :from => 'CustomField', :as => [CustomField]
12
12
 
13
- reference_setters :class_ref, :account_ref, :payment_method_ref
13
+ reference_setters :class_ref, :account_ref, :payment_method_ref, :entity_ref
14
14
 
15
15
  end
16
16
  end
@@ -273,6 +273,10 @@ module Quickbooks
273
273
  raise Quickbooks::ThrottleExceeded, message
274
274
  end
275
275
  raise Quickbooks::Forbidden, message
276
+ when 404
277
+ raise Quickbooks::NotFound
278
+ when 413
279
+ raise Quickbooks::RequestTooLarge
276
280
  when 400, 500
277
281
  parse_and_raise_exception(options)
278
282
  when 429
@@ -12,7 +12,7 @@ module Quickbooks
12
12
  self.query_in_batches(object_query, options) do |batch|
13
13
  collection << batch.entries
14
14
  end
15
- collection.flatten!
15
+ collection.flatten
16
16
  end
17
17
 
18
18
  def query_in_batches(object_query=nil, options={})
@@ -1,5 +1,5 @@
1
1
  module Quickbooks
2
2
 
3
- VERSION = "0.4.6"
3
+ VERSION = "0.4.7"
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.4.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Caughlan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-12 00:00:00.000000000 Z
11
+ date: 2017-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth
@@ -42,42 +42,42 @@ dependencies:
42
42
  name: nokogiri
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: activemodel
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - <
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 5.0.0
61
+ version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - <
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 5.0.0
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: multipart-post
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
@@ -112,14 +112,14 @@ dependencies:
112
112
  name: rr
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ~>
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: 1.0.2
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ~>
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: 1.0.2
125
125
  - !ruby/object:Gem::Dependency
@@ -156,6 +156,7 @@ executables: []
156
156
  extensions: []
157
157
  extra_rdoc_files: []
158
158
  files:
159
+ - lib/quickbooks-ruby.rb
159
160
  - lib/quickbooks/model/access_token_response.rb
160
161
  - lib/quickbooks/model/account.rb
161
162
  - lib/quickbooks/model/account_based_expense_line_detail.rb
@@ -314,7 +315,6 @@ files:
314
315
  - lib/quickbooks/util/name_entity.rb
315
316
  - lib/quickbooks/util/query_builder.rb
316
317
  - lib/quickbooks/version.rb
317
- - lib/quickbooks-ruby.rb
318
318
  homepage: http://github.com/ruckus/quickbooks-ruby
319
319
  licenses:
320
320
  - MIT
@@ -325,17 +325,17 @@ require_paths:
325
325
  - lib
326
326
  required_ruby_version: !ruby/object:Gem::Requirement
327
327
  requirements:
328
- - - '>='
328
+ - - ">="
329
329
  - !ruby/object:Gem::Version
330
330
  version: '0'
331
331
  required_rubygems_version: !ruby/object:Gem::Requirement
332
332
  requirements:
333
- - - '>='
333
+ - - ">="
334
334
  - !ruby/object:Gem::Version
335
335
  version: '0'
336
336
  requirements: []
337
337
  rubyforge_project:
338
- rubygems_version: 2.0.6
338
+ rubygems_version: 2.4.6
339
339
  signing_key:
340
340
  specification_version: 4
341
341
  summary: REST API to Quickbooks Online