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 +4 -4
- data/lib/ocean/api.rb +1 -1
- data/lib/ocean/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: cc7467eadc1b9e6c22b723afecd1491ba0b10d44
|
4
|
+
data.tar.gz: 4cef310262cab2869e58f4619af7a036afe38d4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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:
|
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-
|
11
|
+
date: 2014-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|