avocado-docs 3.0.8 → 3.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/controllers/avocado/avocado_controller.rb +1 -1
- data/lib/avocado/uploader.rb +4 -8
- data/lib/avocado/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjYyZDdhYTY4MjlhNDU2YTVhNzAzZjU0YWNlN2QyMGI3ZWYzYjUxNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTNkNWFiNTU2NTRhZDJhM2IzZDMzNjAwMDdiYzg5ZGFjYjBiNWNmZg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjQxNjMyN2JjNzU1YWEwNGQ0YTZjMWQ3NDZkYzZkMmU0YzE0ODk4ZmYwMDQ2
|
10
|
+
NTY1NTExNDAzN2JlZGQ2M2I0YmIzNzg0NjQxYTdhYzU3Y2I4MzA2NTEwNGM3
|
11
|
+
OWJlZTU5ZDM1NDA5OGQ3YzYwMTJlZjZmYjU4Mzg4ZmRmOTJmNzg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MmM3ZmY0ZTI5MzExNWExY2RmMzJhNzRlYWNiZDU0ZjdhYzc2ZTcxNzRjYzZi
|
14
|
+
OTIwMTA4ZjU1MzY2YTEwZDNkMGMwMDg0ZDUyYzc2NWZmN2FlMWQ4NDIzZmM4
|
15
|
+
MGNiZjkwYzdlYTk4NWQ5NjY4Y2ExZGMwYWIxZDZkOTA4NjhkNzg=
|
data/lib/avocado/uploader.rb
CHANGED
@@ -17,14 +17,10 @@ module Avocado
|
|
17
17
|
net_request.use_ssl = (uri.scheme == 'https')
|
18
18
|
response = net_request.start { |http| http.request(request) }
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
location = response['location']
|
25
|
-
raise "Avocado was redirected to '#{location}', update your initializer!"
|
26
|
-
else
|
27
|
-
raise response.value
|
20
|
+
if response.is_a?(Net::HTTPRedirection)
|
21
|
+
raise "Avocado was redirected to '#{response['location']}', update your initializer!"
|
22
|
+
else
|
23
|
+
response
|
28
24
|
end
|
29
25
|
end
|
30
26
|
ensure
|
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.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Logan Serman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|