vericite_api 1.5.1 → 1.5.2
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 +4 -4
- data/lib/vericite_client/api_client.rb +4 -2
- data/vericite_api-1.5.1.gem +0 -0
- data/vericite_api.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eb8ef4420a1ed6cab7e7d9455e76d49f79badafe
|
|
4
|
+
data.tar.gz: b057a7644a104b871ce3ca6c8bb670ab672c29f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 45368fb4b739fb3056d4eee561d79b94286daa95d63e5b43aa3d82bf67a8b7f2671ee548c71c3092dce4f20a5b215dc6325c2b1986fb245ff0e12e0920088d20
|
|
7
|
+
data.tar.gz: b00fed7d975bfb825e19ba45ec06d9be0980ed37d836cd93e11d5482e3f10b50d7be5b28cd67d0d8157745ea62273ec3a1524a35951503d0257ffabbec195bbc
|
|
@@ -343,8 +343,10 @@ module VeriCiteClient
|
|
|
343
343
|
url = URI.parse(path)
|
|
344
344
|
|
|
345
345
|
headers ||= {}
|
|
346
|
-
|
|
347
|
-
|
|
346
|
+
if !headers.key?("content-type")
|
|
347
|
+
# content-type is required, or Net::HTTP will add a default content-type, making the signature invalid
|
|
348
|
+
headers["content-type"] = ""
|
|
349
|
+
end
|
|
348
350
|
|
|
349
351
|
response = Net::HTTP.start(url.host) do |http|
|
|
350
352
|
http.send_request("PUT", url.request_uri, (file.is_a?(String) ? file : file.read), headers)
|
|
Binary file
|
data/vericite_api.gemspec
CHANGED
|
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
5
5
|
Gem::Specification.new do |s|
|
|
6
6
|
s.name = "vericite_api"
|
|
7
7
|
s.description = "VeriCite API GEM"
|
|
8
|
-
s.version = "1.5.
|
|
8
|
+
s.version = "1.5.2"
|
|
9
9
|
s.platform = Gem::Platform::RUBY
|
|
10
10
|
s.authors = ["Bryan Holladay"]
|
|
11
11
|
s.email = ["bryan@vericite.com"]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vericite_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.5.
|
|
4
|
+
version: 1.5.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bryan Holladay
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-09-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|
|
@@ -201,6 +201,7 @@ files:
|
|
|
201
201
|
- vericite_api-1.3.0.gem
|
|
202
202
|
- vericite_api-1.4.0.gem
|
|
203
203
|
- vericite_api-1.5.0.gem
|
|
204
|
+
- vericite_api-1.5.1.gem
|
|
204
205
|
- vericite_api-1.6.0.gem
|
|
205
206
|
- vericite_api.gemspec
|
|
206
207
|
homepage: http://www.vericite.com
|