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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7660a0c545e837ce2b9713f6f347a498b52f0140541007bf39ae4cc32e54aeb9
4
- data.tar.gz: 605e29e55d503ccad9c08dd44b7085d6c28edf379bce25e6166ae3a20f2f5d1f
3
+ metadata.gz: 975c65e3a727e0ff9dde7a883b6128dc48e3c0b1367a2318c05f89cb6c941741
4
+ data.tar.gz: a8374deb4ffd828d2c5c025844d663684953e581e7a1c31081b7b4eb6a11e4d7
5
5
  SHA512:
6
- metadata.gz: ab81658e9e6530b4bb747ecf8d65f970b1fe16cf179f680d54eb53b041a64300814df94c4ebd1d330a8b848e4e04cb8a64611a7c27da90c79010e91e271d9e3e
7
- data.tar.gz: f514b291bd8e3d829a47f6bf51f6976440f2707dec3a2c56287a397763b1cafb610eaa1b2057f2d6f0c88dfab0fcdf5cc4a3fc5c46d47f3b11ee6396b8835296
6
+ metadata.gz: 6d1a5764d2b872592ca7e81e83e6de8f73b0048e0f58c3464e8077da9a03675550ad4ce679933239ea19dc615cd7d9735949bb2ca797a191063b940150e5b5db
7
+ data.tar.gz: af8f594af7cbdd12bc99081141651610131a917415b5a6324a929e67299eb5982c93146082ab3c2379f48c0a4fd34aae1cb1f08010eb49799857325570abc602
@@ -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
@@ -1,3 +1,3 @@
1
1
  class HelpScout
2
- VERSION = "0.12.0"
2
+ VERSION = "0.12.1"
3
3
  end
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.0
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 00:00:00.000000000 Z
14
+ date: 2018-06-21 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: httparty