ocean-rails 2.16.3 → 3.0.0

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: 0abe1ea25a87eacf12ac36147d3f3ed351fd7c0c
4
- data.tar.gz: 6a3d4902ad2e035d4f6f695f57a46e3c6c616691
3
+ metadata.gz: cc7467eadc1b9e6c22b723afecd1491ba0b10d44
4
+ data.tar.gz: 4cef310262cab2869e58f4619af7a036afe38d4f
5
5
  SHA512:
6
- metadata.gz: 6efe92ccc4ba14e8388bc9193e1f01147864ec32734fa35ab350304c795aa9b3ca87d9fe2420f0a63f402df773f97e2496560e8c81c3ed26b8490600d7fd7dca
7
- data.tar.gz: cd2a64e30ee8da82577fc7e3512e27d16743a62a62828bcff1b8fa6c639b6ea0fd454d8c4083310444600116bf8f7325d2e4aa8be71b557992d09672dafeef7f
6
+ metadata.gz: 1700913d9e5606c7f963ba2d1395dd04dedaf026bac96d946a2792198c42ba69fcfce5b63a84fd30f5336e78490f00080a6bd20c37e34cbc95f709b722687657
7
+ data.tar.gz: 7e99f72e82b949b08eb7bf961fbedbe6a071c1a6a33733cce9e59b6efa15e8e73ee30e2eb5c09767febdb9cd59033287071a32cdefcbf4b7dda89fa3a8d86f66
data/lib/ocean/api.rb CHANGED
@@ -140,7 +140,7 @@ class Api
140
140
  ssl_verifypeer: true, ssl_verifyhost: 2)
141
141
  # Set up the request
142
142
  headers['Accept'] = "application/json"
143
- headers['Content-Type'] = "application/json"
143
+ headers['Content-Type'] = "application/json" if [:post, :put].include?(http_method)
144
144
  headers['User-Agent'] = "Ocean"
145
145
  headers['X-API-Token'] = x_api_token if x_api_token
146
146
 
data/lib/ocean/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "2.16.3"
2
+ VERSION = "3.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.16.3
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-20 00:00:00.000000000 Z
11
+ date: 2014-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus