qbo_api 1.8.1 → 1.8.2
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 +4 -4
- data/lib/qbo_api/connection.rb +2 -2
- data/lib/qbo_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 706590c1ebea65c87b5bd12452dca43fa3746bbc
|
|
4
|
+
data.tar.gz: 7d815c391cca1e6f11ff95d804bc6f17692be548
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 10c69ee5b8e677a9dc58bb1c6c5e9b24e806bd76bf9e5070cd2f99614446c9d5ba5a5f9fca44a4ab50199e20b8f047e1c246bce9f2180e8029df036809ad6c74
|
|
7
|
+
data.tar.gz: 9352623cd9286a26149cfbb8cb5bbdeeb77f95882b938d7bd5774957bae1cdcbe51e766212bae4f13335c1664ac64fe4dec91114091b1465f72502b57ce78397
|
data/lib/qbo_api/connection.rb
CHANGED
|
@@ -12,8 +12,8 @@ class QboApi
|
|
|
12
12
|
|
|
13
13
|
def authorized_json_connection(url, headers: nil)
|
|
14
14
|
headers ||= {}
|
|
15
|
-
headers['Accept'] ||= 'application/json
|
|
16
|
-
headers['Content-Type'] ||= 'application/json' # required when request has a body, else harmless
|
|
15
|
+
headers['Accept'] ||= 'application/json' # required "we'll only accept JSON". Can be changed to any `+json` media type.
|
|
16
|
+
headers['Content-Type'] ||= 'application/json;charset=UTF-8' # required when request has a body, else harmless
|
|
17
17
|
build_connection(url, headers: headers) do |conn|
|
|
18
18
|
add_authorization_middleware(conn)
|
|
19
19
|
add_exception_middleware(conn)
|
data/lib/qbo_api/version.rb
CHANGED
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.8.
|
|
4
|
+
version: 1.8.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: 2018-03
|
|
11
|
+
date: 2018-04-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|