qbo_api 1.5.1 → 1.5.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: 430743a894af002cc941bad7718061ad8e92318c
4
- data.tar.gz: 261dfeb6da46efac3cc215faec85fca9c260898a
3
+ metadata.gz: 9aa8fd9083ddf6fc25a4ffc9c3b372bc96510eaf
4
+ data.tar.gz: f05e8153ca1a65b5c4e105ae510422667aeb6ebc
5
5
  SHA512:
6
- metadata.gz: 1cc2bccce416c0ea0e141d8315951d91b8ee41c9ada35a5241ada1c397eeaf2b0c0cc7e3ace18ce1dfb5b852052d2930c0363152be85639dc8d652981071523b
7
- data.tar.gz: 8cf4e6c599ed946addb07c85d333d39c20c0a1e18ab86513fe8164fc386501028bc3d2ee2468eb15028ebcf5cba9124fabbe5360c14e4da876214dc1cf449202
6
+ metadata.gz: 49c7dc7d77864991763879a564df323ecc2e363248e4a3abd78cfb91323146a77e0e25671685e7e62906a82ae42c91a4c77a2fb2950e59571858f68085144bc3
7
+ data.tar.gz: 147cc777b4ea88ec4dccfdc3302056b285fe7391e790b788ca37b708f0b862654d4069f0fa6e8bf6cb2a8c5e809251e4f2553571267f64c181f1f3d3079d9882
data/README.md CHANGED
@@ -73,6 +73,9 @@ Or install it yourself as:
73
73
  - qboapi.get :customer, 1
74
74
  ```
75
75
 
76
+ ### TLS v1.2
77
+ Intuit will be [requiring](https://developer.intuit.com/hub/blog/2017/08/03/upgrading-your-apps-to-support-tls-1-2) API client connections to be negotiated over TLS1.2 by December 31st, 2017. Using the default HTTP client (Net::HTTP) with Faraday this is the case with QboApi, however, if you are using another HTTP client you may need to directly set the TLS version negotiation manually.
78
+
76
79
  ### Configuration options
77
80
  - By default this client runs against a QBO sandbox. To run against the production QBO API URL do:
78
81
  ```ruby
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title></title>
6
+ <style type="text/css" media="all">
7
+ ul li span {
8
+ vertical-align: top;
9
+ }
10
+ </style>
11
+ </head>
12
+ <body>
13
+ <h1>OAuth2 Process Success!</h1>
14
+ <ul>
15
+ <li><span>Access token:</span> <textarea rows="8" cols="160"><%= session[:access_token] %></textarea></li>
16
+ <li><span>Refresh token:</span> <textarea rows="4" cols="60"><%= session[:refresh_token] %></textarea></li>
17
+ </ul>
18
+ <div>
19
+ <p>
20
+ <a href='/oauth2/customer/5'>Click here</a> to make an API call
21
+ </p>
22
+ </div>
23
+
24
+ </body>
25
+ </html>
@@ -82,7 +82,7 @@ class QboApi
82
82
  end
83
83
 
84
84
  def extract_entity_from_query(query, to_sym: false)
85
- if m = query.match(/from\s+(\w+)\s/i)
85
+ if m = query.match(/from\s+(\w+)(?:$|\s)/i)
86
86
  (to_sym ? underscore(m[1]).to_sym : m[1]) if m[1]
87
87
  end
88
88
  end
@@ -55,7 +55,7 @@ module FaradayMiddleware
55
55
  r = res['Fault']['Error']
56
56
  r.collect do |e|
57
57
  {
58
- fault_type: e['type'],
58
+ fault_type: res['Fault']['type'],
59
59
  error_code: e['code'],
60
60
  error_message: e['Message'],
61
61
  error_detail: e['Detail']
@@ -1,3 +1,3 @@
1
1
  class QboApi
2
- VERSION = "1.5.1"
2
+ VERSION = "1.5.2"
3
3
  end
@@ -34,5 +34,5 @@ Gem::Specification.new do |spec|
34
34
  spec.add_runtime_dependency 'faraday_middleware'
35
35
  spec.add_runtime_dependency 'faraday-detailed_logger'
36
36
  spec.add_runtime_dependency 'simple_oauth'
37
- spec.add_runtime_dependency 'nokogiri'
37
+ spec.add_runtime_dependency 'nokogiri', "~> 1.7.0"
38
38
  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.5.1
4
+ version: 1.5.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: 2017-08-17 00:00:00.000000000 Z
11
+ date: 2017-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -238,16 +238,16 @@ dependencies:
238
238
  name: nokogiri
239
239
  requirement: !ruby/object:Gem::Requirement
240
240
  requirements:
241
- - - ">="
241
+ - - "~>"
242
242
  - !ruby/object:Gem::Version
243
- version: '0'
243
+ version: 1.7.0
244
244
  type: :runtime
245
245
  prerelease: false
246
246
  version_requirements: !ruby/object:Gem::Requirement
247
247
  requirements:
248
- - - ">="
248
+ - - "~>"
249
249
  - !ruby/object:Gem::Version
250
- version: '0'
250
+ version: 1.7.0
251
251
  description:
252
252
  email:
253
253
  - christian@minimul.com
@@ -267,6 +267,7 @@ files:
267
267
  - example/views/customer.erb
268
268
  - example/views/index.erb
269
269
  - example/views/oauth2.erb
270
+ - example/views/oauth2_redirect.erb
270
271
  - lib/qbo_api.rb
271
272
  - lib/qbo_api/configuration.rb
272
273
  - lib/qbo_api/entity.rb