intacctrb 0.4.3 → 0.4.4
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/intacctrb/attachment.rb +5 -1
- data/lib/intacctrb/bill.rb +1 -1
- data/lib/intacctrb/exceptions/attachment.rb +6 -0
- data/lib/intacctrb/exceptions/base.rb +5 -1
- data/lib/intacctrb/exceptions/{error.rb → bill.rb} +1 -1
- data/lib/intacctrb/exceptions/vendor.rb +6 -0
- data/lib/intacctrb/vendor.rb +1 -1
- data/lib/intacctrb/version.rb +1 -1
- data/lib/intacctrb.rb +3 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62c00ec8565e126d594edabcfc5dbe818da4d63a
|
4
|
+
data.tar.gz: fd39b538ad5dc035281df3a6ad41384cc900fd5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e8fdf46a41788a242d14b6070a0f51d1bcd84dec7d62b1a4234c8303fd0e5f55238060d7ba217cbd8c653047c19027c524116dc36a40880b9725aa0b1e29570
|
7
|
+
data.tar.gz: 245dab18d268fed543da511ef9b3e58d099e3c04dd5e478e6b94f3750910d1c0d1f555f978728bf633a18125b4db2c914f3da9fbc30f265cd55061d9993ff9de
|
data/Gemfile.lock
CHANGED
data/lib/intacctrb/attachment.rb
CHANGED
data/lib/intacctrb/bill.rb
CHANGED
@@ -2,7 +2,11 @@ module IntacctRB
|
|
2
2
|
module Exceptions
|
3
3
|
class Base < StandardError
|
4
4
|
def initialize(message)
|
5
|
-
|
5
|
+
error_class = self.class.to_s
|
6
|
+
error_class = error_class.split('::').last if error_class.index('::')
|
7
|
+
error_message = "#{error_class} error: "
|
8
|
+
error_message += message || 'Unknown'
|
9
|
+
super(error_message)
|
6
10
|
end
|
7
11
|
end
|
8
12
|
end
|
data/lib/intacctrb/vendor.rb
CHANGED
@@ -12,7 +12,7 @@ module IntacctRB
|
|
12
12
|
end
|
13
13
|
|
14
14
|
if !successful?
|
15
|
-
raise response.at('//error//description2')
|
15
|
+
raise IntacctRB::Exceptions::Vendor.new(response.at('//error//description2'))
|
16
16
|
end
|
17
17
|
|
18
18
|
new_vendor = response.xpath('//result//data//vendor').first
|
data/lib/intacctrb/version.rb
CHANGED
data/lib/intacctrb.rb
CHANGED
@@ -14,7 +14,9 @@ require "intacctrb/account"
|
|
14
14
|
require "intacctrb/attachment"
|
15
15
|
|
16
16
|
require "intacctrb/exceptions/base"
|
17
|
-
require "intacctrb/exceptions/
|
17
|
+
require "intacctrb/exceptions/vendor"
|
18
|
+
require "intacctrb/exceptions/bill"
|
19
|
+
require "intacctrb/exceptions/attachment"
|
18
20
|
|
19
21
|
class Object
|
20
22
|
def blank?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: intacctrb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Hale
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -174,8 +174,10 @@ files:
|
|
174
174
|
- lib/intacctrb/base.rb
|
175
175
|
- lib/intacctrb/bill.rb
|
176
176
|
- lib/intacctrb/customer.rb
|
177
|
+
- lib/intacctrb/exceptions/attachment.rb
|
177
178
|
- lib/intacctrb/exceptions/base.rb
|
178
|
-
- lib/intacctrb/exceptions/
|
179
|
+
- lib/intacctrb/exceptions/bill.rb
|
180
|
+
- lib/intacctrb/exceptions/vendor.rb
|
179
181
|
- lib/intacctrb/invoice.rb
|
180
182
|
- lib/intacctrb/journal_entry.rb
|
181
183
|
- lib/intacctrb/vendor.rb
|