to_qbxml 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Mzk2ZDQ3MjZjN2FjNWRhOTQyM2RhYmMyNjdkMzljY2RkNmQyMjIzNQ==
4
+ MWUzZjZkYjBjOWNlYjY3YmZmYzk0ZTk3Y2FiZmI0Mzg5MDM2Mjg5Ng==
5
5
  data.tar.gz: !binary |-
6
- YTJkZTUzNzRlNjA2MWY3YzljNzMwMDAzY2U5M2U5MjYwODRhZWIzMA==
6
+ NzllM2E0ZGJjYjU3ZTU0NGU4NTY4ODcwMTUxNzkyZjZjYmY0OWI4NQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTc5ZmQxZDBlNDZiNTY0ZTQ0YWVjNzM3NzJhOWVhYzJjMDkwOTZiNDk3ODM1
10
- YTI0MGNlMTEzZTQ5MGU3NjI4OTVjNzc4NjdkYTViMjBkZDkwZjRmYmUwZGFh
11
- ZWQ2NDUxMmI1YjdhODE3YTkwYWMzN2M4M2I3ZjI2YTNkZTQyZGE=
9
+ MGM2YzNmNGNlMTI0YTA0MGM1YTlmNDZkOTg0NjA5OWJiZjQwMTM1Mzk4YTc1
10
+ YWFiZThiODdkN2RlYmM0NDg2YTA0OWY4YzVkNTg0YWQ3Nzc3OTRhZGIxMGJi
11
+ ZDY4MTBiYmRjMDA2MjI2ODM4YzdkNTkxNmQ0M2E1ZTMzNDgzNWU=
12
12
  data.tar.gz: !binary |-
13
- MGFmY2Q3NDQzNzAxNjdjN2ZiODU2YzQwMzIwOWQ4NDQ2Y2NmYzBmODljOTVm
14
- NjI1ZTM2Zjk5MDMwOTRhZjE5NmI5M2ZkZjMwYWQwYTIyZjQxMjc2N2VhYmM5
15
- YjA3NDQzNGE2MjFmYzE2ZjRiZjRjNmRjYTQ5YTU0MTJmNjQwYzc=
13
+ N2NlNmZlOWMwN2Q3NzJkNzc1ZmY4NWZmZDFhNTM4NTdmYzYwZmNjOTQ5ZGQx
14
+ MmE5NGZiMDFjYTFlYTA2OTFiYTdkYWRkNmQxZWQyZGM0MjU5M2VjYjgyY2Ni
15
+ YmU3YjM4MTU4MzkyNjdmMWEyMjkyZTEwZDlmNzJlNjhjOWViZjU=
data/README.md CHANGED
@@ -150,7 +150,7 @@ Use the parent node *repeat* to make repeating nodes such as *InvoiceLineAdd* an
150
150
  ### Create an iterator query request returning a Nokogiri Document instead of XML
151
151
  ```ruby
152
152
  n = ToQbxml.new({}, doc: true).make(:customer, action: :query, attrs: { 'iterator' => 'Start'})
153
- puts n.at('CustomerQueryRq')['iterator'].content
153
+ puts n.at('CustomerQueryRq')['iterator']
154
154
  ## Output = 'Start'
155
155
  puts n.to_xml
156
156
  ```
@@ -175,22 +175,22 @@ attrs = { 'requestID' => 34, 'iterator' => 'Continue', 'iteratorID' => '{2343333
175
175
  Takes 2 arguments:
176
176
 
177
177
  1. a Hash. This is to be the body of the QBXML request.
178
- 2. a Hash of options. See this method for a full list.
178
+ 2. a Hash of options. See this [method](https://github.com/minimul/to_qbxml/blob/master/lib/to_qbxml/to_qbxml.rb#L54) for a full list.
179
179
 
180
180
  ### The *make* method
181
181
  Takes 2 arguments:
182
182
 
183
183
  1. The desired QBXML request in a snakecased Symbol or String. For example, ```.make(:sales_tax_code)``` equals SalesTaxCode
184
- 2. a Hash of options. See this method for a full list.
184
+ 2. a Hash of options. See this [method](https://github.com/minimul/to_qbxml/blob/master/lib/to_qbxml/to_qbxml.rb#L89) for a full list.
185
185
 
186
186
  ### Examples:
187
- See the specs for more examples
187
+ See the [specs](https://github.com/minimul/to_qbxml/blob/master/spec/lib/to_qbxml/to_qbxml_spec.rb) for more examples
188
188
 
189
189
  ### What about validation?
190
190
  This library provides no validation or schema validation. In my experience, it is best to use the [OCR docs](http://developer-static.intuit.com/qbsdk-current/common/newosr/index.html) and the [QBXML validator and SDKTest utilities](https://developer.intuit.com/docs/0250_qb/0010_get_oriented/0060_sdk_components) that come bundled with the standard QBSDK installation. These tools are only available on Windows but if you are wanting to do any serious integration with QuickBooks Desktop then you better have a Windows machine or VM handy.
191
191
 
192
192
  ### What about reading and parsing QBXML?
193
- I suggest using Nokogiri. See the specs for using Nokogiri to parse QBXML.
193
+ I suggest using Nokogiri. See the [specs](https://github.com/minimul/to_qbxml/blob/master/spec/lib/to_qbxml/to_qbxml_spec.rb) for using Nokogiri to parse QBXML.
194
194
  Here are some quick examples:
195
195
 
196
196
  #### Given
@@ -1,3 +1,3 @@
1
1
  class ToQbxml
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
19
 
20
- gem.add_dependency('activesupport', '~> 3.2')
20
+ gem.add_dependency('activesupport', '>= 3.2')
21
21
  gem.add_dependency('nokogiri', '~> 1.6')
22
22
  gem.add_dependency('builder', '~> 3.0')
23
23
  gem.add_dependency('json', '~> 1.8')
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: to_qbxml
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Pelczarski (minimul)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-30 00:00:00.000000000 Z
11
+ date: 2014-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.2'
27
27
  - !ruby/object:Gem::Dependency