help_scout 0.12.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/help_scout.rb +5 -3
- data/lib/help_scout/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 975c65e3a727e0ff9dde7a883b6128dc48e3c0b1367a2318c05f89cb6c941741
|
4
|
+
data.tar.gz: a8374deb4ffd828d2c5c025844d663684953e581e7a1c31081b7b4eb6a11e4d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d1a5764d2b872592ca7e81e83e6de8f73b0048e0f58c3464e8077da9a03675550ad4ce679933239ea19dc615cd7d9735949bb2ca797a191063b940150e5b5db
|
7
|
+
data.tar.gz: af8f594af7cbdd12bc99081141651610131a917415b5a6324a929e67299eb5982c93146082ab3c2379f48c0a4fd34aae1cb1f08010eb49799857325570abc602
|
data/lib/help_scout.rb
CHANGED
@@ -238,11 +238,13 @@ class HelpScout
|
|
238
238
|
basic_auth: {
|
239
239
|
username: @api_key, password: 'X'
|
240
240
|
},
|
241
|
-
headers: {
|
242
|
-
'Content-Type' => 'application/json'
|
243
|
-
}
|
241
|
+
headers: {}
|
244
242
|
}.merge(options)
|
245
243
|
|
244
|
+
if options.key?(:body)
|
245
|
+
options[:headers]['Content-Type'] ||= 'application/json'
|
246
|
+
end
|
247
|
+
|
246
248
|
@last_response = HTTParty.send(method, uri, options)
|
247
249
|
case last_response.code
|
248
250
|
when HTTP_OK, HTTP_CREATED, HTTP_NO_CONTENT
|
data/lib/help_scout/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: help_scout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dennis Paagman
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: exe
|
13
13
|
cert_chain: []
|
14
|
-
date: 2018-06-
|
14
|
+
date: 2018-06-21 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: httparty
|