qbo_api 1.4.1 → 1.4.2

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: 2e41a433e03e41c3dac4380180dcf47711010be9
4
- data.tar.gz: 09b2fe6b8fbbeef55a4426cb555e261320ea80d4
3
+ metadata.gz: 75b86eaa49027fe32fde7711c739153a4ac00e1e
4
+ data.tar.gz: 4f8035cd4bd8bb1ac1095bf936152095734afc8d
5
5
  SHA512:
6
- metadata.gz: 77bfbad436de513999307c1bd13b3f85e3856e7bddaa8665905eb78aed314aac91c116e4d3736bcc354891e0c59e54a2629f8c53a3900adef3f70d6ad7545d4c
7
- data.tar.gz: b54d825ed56ec6262123d505c3ce43a2ccb9f49df51274052932316d2e35c58dad44705f1617938a399eb6adaf547c7a615461f07ad895e98cc13b4f02079cd2
6
+ metadata.gz: bbac4bcb348aac0099de83caa41dd55ab846cbce0c8b854ce03311a8fd3c84d769f8179a6ece9c4ef2f6a17ebd3b12fbedf34bba1ab56ba252af110633b03342
7
+ data.tar.gz: 7dafeab7cca38c3bb8da2bd5b7a88215fb469a02b843297e45c3d9be6c624476628ef39b603549a8072005270d86abdfe59d8ba52b4c7584cb80d855c5726ffe
data/README.md CHANGED
@@ -13,6 +13,13 @@ Ruby client for the QuickBooks Online API version 3.
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
 
16
+ ## The Book
17
+
18
+ <a href="https://leanpub.com/minimul-qbo-guide-vol-1" target="_blank">
19
+ <img src="http://img.minimul.com/shared/crow-cover.png" alt="The QBO book">
20
+ </a>
21
+
22
+
16
23
  ## Ruby >= 2.2.2 required
17
24
 
18
25
  ## Installation
@@ -4,9 +4,9 @@ class QboApi
4
4
  def singular(entity)
5
5
  e = snake_to_camel(entity)
6
6
  case e
7
- when 'Classes'
7
+ when 'Classes', 'Class'
8
8
  'Class'
9
- when /^(Entitlements|Preferences)$/
9
+ when 'Entitlements', 'Preferences'
10
10
  e
11
11
  else
12
12
  e.chomp('s')
@@ -71,7 +71,7 @@ module FaradayMiddleware
71
71
  fault_type: res.at('Fault')['type'],
72
72
  error_code: res.at('Error')['code'],
73
73
  error_message: e.at('Message').content,
74
- error_detail: e.at('Detail').content
74
+ error_detail: (detail = e.at('Detail')) ? detail.content : ''
75
75
  }
76
76
  end
77
77
  end
@@ -1,3 +1,3 @@
1
1
  class QboApi
2
- VERSION = "1.4.1"
2
+ VERSION = "1.4.2"
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.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Pelczarski
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-14 00:00:00.000000000 Z
11
+ date: 2017-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -267,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
267
267
  version: '0'
268
268
  requirements: []
269
269
  rubyforge_project:
270
- rubygems_version: 2.4.8
270
+ rubygems_version: 2.4.5.2
271
271
  signing_key:
272
272
  specification_version: 4
273
273
  summary: Ruby JSON-only client for QuickBooks Online API v3. Built on top of the Faraday