qbo_api 1.8.3 → 1.8.4

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: 1a14e9e5e66c903adfe8068876926ab4a7cb1a6a
4
- data.tar.gz: 81dea94865459c92b103ae0b6804b85f2287e23c
3
+ metadata.gz: f371122afffd1a7ee2001eb53f0d6232911bc8c1
4
+ data.tar.gz: 277ccd9722b6dbc092190eedc7e5ebe8c9cf8682
5
5
  SHA512:
6
- metadata.gz: 5c7a3e681f058684ccec7da9db94da92ce20f010f6762b91eb7e87cf10b83a320897a8fcd84f882d841544ec17b08ab3e90711c3674ef0662669861e3108ed58
7
- data.tar.gz: 5ffdd016f2ef8f8d83b9b700d76a835cdb86fd39a85621976fc0fef99a69c9dff30b5c4b0a40bbf2624a5fd163bfe71753aebc2058ca03f55a6f76b90e8615f2
6
+ metadata.gz: e34002b773b0849e92f427163881c49177e80c85600bb58000b61c3c272276b9401c055df28e3752404b408c9ebac825351b1c7c543a19c3c57e746d775af7d6
7
+ data.tar.gz: 50072c5952f184b6966cdc0ef34ce72b15eb7fc5360ac1d96d9475425412321552417759a400f21a3c25fdaff37813ada759c874487134013f324ae4f604d66f
@@ -21,7 +21,7 @@ class OAuth2App < Sinatra::Base
21
21
 
22
22
  helpers do
23
23
  def oauth2_client
24
- client = Rack::OAuth2::Client.new(
24
+ Rack::OAuth2::Client.new(
25
25
  identifier: CLIENT_ID,
26
26
  secret: CLIENT_SECRET,
27
27
  redirect_uri: "http://localhost:#{PORT}/oauth2-redirect",
@@ -128,7 +128,7 @@ class QboApi
128
128
  payload = build_update(resp).merge('sparse': true, 'Active': false)
129
129
 
130
130
  case singular(entity)
131
- when 'Account'
131
+ when 'Account', 'Class'
132
132
  payload['Name'] = resp['Name']
133
133
  end
134
134
  payload
@@ -23,7 +23,10 @@ class QboApi
23
23
  end
24
24
 
25
25
  def authorized_multipart_connection(url)
26
- headers = { 'Content-Type' => 'multipart/form-data' }
26
+ headers = {
27
+ 'Content-Type' => 'multipart/form-data',
28
+ 'Accept' => 'application/json'
29
+ }
27
30
  build_connection(url, headers: headers) do |conn|
28
31
  add_authorization_middleware(conn)
29
32
  add_exception_middleware(conn)
@@ -1,3 +1,3 @@
1
1
  class QboApi
2
- VERSION = "1.8.3"
2
+ VERSION = "1.8.4"
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.8.3
4
+ version: 1.8.4
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-04-12 00:00:00.000000000 Z
11
+ date: 2018-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler