quickbooks_api 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,8 +15,7 @@ class Quickbooks::Parser::QbxmlBase
15
15
 
16
16
  QB_TYPE_CONVERSION_MAP= {
17
17
  "AMTTYPE" => FLOAT_CAST,
18
- #"BOOLTYPE" => BOOL_CAST,
19
- "BOOLTYPE" => STR_CAST,
18
+ "BOOLTYPE" => BOOL_CAST,
20
19
  "DATETIMETYPE" => TIME_CAST,
21
20
  "DATETYPE" => DATE_CAST,
22
21
  "ENUMTYPE" => STR_CAST,
@@ -91,7 +90,7 @@ class Quickbooks::Parser::QbxmlBase
91
90
  attrs[:xml_attributes] = xml_attributes
92
91
  self.class.attribute_names.inject(attrs) do |h, m|
93
92
  val = self.send(m)
94
- if val
93
+ if !val.nil?
95
94
  if recursive
96
95
  h[m] = case val
97
96
  when QBXML_BASE
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quickbooks_api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Skryl
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-30 00:00:00 -05:00
18
+ date: 2011-07-07 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency