qbo_api 1.6.5 → 1.6.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3025022857f508d3f6522d3ab13c2d0237e6ac67
4
- data.tar.gz: b264a7c95043b9337b94075b315c7fc74be3f72b
3
+ metadata.gz: cdc10d932fd283adbce9198fdd164ab9cbf059c5
4
+ data.tar.gz: 7ab9647de1f34b36978a3718474cb6644461f1b2
5
5
  SHA512:
6
- metadata.gz: d9831b0aab6fd731849cb16dad761d5f4e1ef81f5494342af591edea5fa965133034d3b61b18d10e63df80100f08a72e7c3294887973dcd8d5adad4b426fc78c
7
- data.tar.gz: 7ff2bba02f51e0cdce47086208a13e7d2f5a65e64cf9ed60ff24613fef0477f0dce092e12493522b1cbb2a2683a4597407045cfd52699d31d8ec19249fadf450
6
+ metadata.gz: 701c4e1075f1e97533d2ee3e26867ae1b428a93dd8193e46009fea36cac835fd8a7c6b33de2315762d5af7c0ca00e362a01fcb04f663dd308bacd7c65f1bbdfd
7
+ data.tar.gz: 73db5f7dada2e5d9a9a6fc7906e3ea974a4b5911f6e96ff9d359a0bc3a7b935ab89563be79a7a7135810c95400b10c760e16737dfcba42d50c340b059c60eb80
data/README.md CHANGED
@@ -12,7 +12,9 @@ Ruby client for the QuickBooks Online API version 3.
12
12
  - <a href="http://minimul.com/getting-started-with-the-modern-ruby-quickbooks-online-client-qbo_api-part-1.html" target="_blank">Part 1</a>: Learn how to spin up the <a href="https://github.com/minimul/qbo_api#spin-up-an-example">example app</a>.
13
13
  - <a href="http://minimul.com/the-modern-ruby-quickbooks-client-part-2.html" target="_blank">Part 2</a>: <a href="https://github.com/minimul/qbo_api#running-the-specs">Running the specs</a> to aid you in understanding a QuickBooks API transaction.
14
14
  - <a href="http://minimul.com/the-modern-ruby-quickbooks-client-contributing.html" target="_blank">Part 3</a>: <a href="https://github.com/minimul/qbo_api#creating-new-specs-or-modifying-existing-spec-that-have-been-recorded-using-the-vcr-gem">Contributing to the gem</a>.
15
-
15
+ ### Important Note: The videos are out of date.
16
+ If you signed up for a Intuit developer account after July 17th, 2017 then you will have to
17
+ follow <a href='#OAuth2-example'>OAuth2: Spin up an example</a>
16
18
  ## The Book
17
19
 
18
20
  <a href="https://leanpub.com/minimul-qbo-guide-vol-1" target="_blank">
@@ -162,19 +164,19 @@ QboApi.minor_version = 8
162
164
  p response['DisplayName'] # => "Dukes Basketball Camp"
163
165
  ```
164
166
 
165
- ### Get an entity by one its Filter attributes
167
+ ### Get an entity by one of its filter attributes
166
168
  ```ruby
167
169
  response = qbo_api.get(:customer, ["DisplayName", "Dukes Basketball Camp"])
168
170
  p response['Id'] # => 5
169
171
  ```
170
172
 
171
- ### Get an entity by one its Filter attributes using a LIKE search
173
+ ### Get an entity by one of its filter attributes using a LIKE search
172
174
  ```ruby
173
175
  response = qbo_api.get(:customer, ["DisplayName", "LIKE", "Dukes%"])
174
176
  p response['Id'] # => 5
175
177
  ```
176
178
 
177
- ### Get an entity by one its Filter attributes using a IN search
179
+ ### Get an entity by one of its filter attributes using a IN search
178
180
  ```ruby
179
181
  response = qbo_api.get(:vendor, ["DisplayName", "IN", "(true, false)"])
180
182
  p response.size # => 28
@@ -332,7 +334,7 @@ See [docs](https://developer.intuit.com/docs/0100_quickbooks_online/0100_essenti
332
334
  p qbo_api.is_transaction_entity?(:customer) # => false
333
335
  p qbo_api.is_name_list_entity?(:vendors) # => true
334
336
  ```
335
- ## OAuth2: Spin up an example
337
+ ## <a name='OAuth2-example'>OAuth2: Spin up an example</a>
336
338
  ### If you signed up for a Intuit developer account after July 17th, 2017 follow this example
337
339
  - <a href="http://minimul.com/access-the-quickbooks-online-api-with-oauth2.html" target="_blank">Check out this article on spinning up the OAuth2 example</a>.
338
340
  - `git clone git://github.com/minimul/qbo_api && cd qbo_api`
@@ -1,5 +1,10 @@
1
1
  class QboApi
2
2
  module Util
3
+ attr_writer :minor_version
4
+
5
+ def minor_version
6
+ @minor_version || QboApi.minor_version
7
+ end
3
8
 
4
9
  def esc(query)
5
10
  query.gsub("'", "\\\\'")
@@ -33,7 +38,7 @@ class QboApi
33
38
  end
34
39
 
35
40
  def add_minor_version_to(path)
36
- if minor_version = QboApi.minor_version
41
+ if minor_version = self.minor_version
37
42
  add_params_to_path(path: path, params: { "minorversion" => minor_version })
38
43
  else
39
44
  path
@@ -1,3 +1,3 @@
1
1
  class QboApi
2
- VERSION = "1.6.5"
2
+ VERSION = "1.6.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qbo_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.5
4
+ version: 1.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Pelczarski
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-08 00:00:00.000000000 Z
11
+ date: 2018-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler