avocado-docs 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avocado/uploader.rb +3 -1
- data/lib/avocado/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: ea393aa0cffae6e04b797584a713ed0272322993
|
4
|
+
data.tar.gz: 1d4d5ccecb7a31628a59af65bfb0afd9f10f3d9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 492145eae722de43b99c17bb48e2c9b0094b3e1b67b66193f2ee280f84dedf1d2ff7a653de367f8710f8ddbc0cd1ab3fefef333a872efba088c915049b59bcda
|
7
|
+
data.tar.gz: 5bee858272af096ce695c08df6645d8eb70b0eb39df796cd7bac72d3cb54a49453a4e5054719d1ad2746e91c4e17999ca27b8d0c43d19dd17c19cc9901f17a47
|
data/lib/avocado/uploader.rb
CHANGED
@@ -13,7 +13,9 @@ module Avocado
|
|
13
13
|
WebMock.allow_net_connect!
|
14
14
|
write_payload_to_json_file do |file|
|
15
15
|
request = Net::HTTP::Post::Multipart.new uri.path, 'file' => UploadIO.new(file, 'text/json', 'avocado.json')
|
16
|
-
Net::HTTP.
|
16
|
+
net_request = Net::HTTP.new(uri.host, uri.port)
|
17
|
+
net_request.use_ssl = (uri.scheme == 'https')
|
18
|
+
net_request.start { |http| http.request(request) }
|
17
19
|
end
|
18
20
|
ensure
|
19
21
|
WebMock.disable_net_connect!
|
data/lib/avocado/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avocado-docs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Logan Serman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|