down 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/down/version.rb +1 -1
- data/lib/down.rb +3 -5
- 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: 198002a2240137218bad98e7af9f0d336616ecc4
|
4
|
+
data.tar.gz: 2db047e9147e441b586a01cf6a0dbbd95363f728
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 224602303ca6a6bf32ab059bfca9c60974c28a14f4b2da12d10245254ace51a521f921ad7130c7bf5b72368f13a9f20309cae4ec0d2a5198d1bc0b6a1a8fc96d
|
7
|
+
data.tar.gz: b79fb3b79c67dc6aa2fd2c1735a7d27befcb7fc5ff603ae0725e98207571bc4289f39e8961114229b92665ddc6d2c24c33faa6f62248d54b94065781b631770e
|
data/lib/down/version.rb
CHANGED
data/lib/down.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen-string-literal: true
|
2
2
|
|
3
3
|
require "down/version"
|
4
|
+
require "down/net_http"
|
4
5
|
|
5
6
|
module Down
|
6
7
|
module_function
|
@@ -20,12 +21,9 @@ module Down
|
|
20
21
|
elsif value
|
21
22
|
@backend = value
|
22
23
|
else
|
23
|
-
backend :net_http if @backend.nil?
|
24
24
|
@backend
|
25
25
|
end
|
26
26
|
end
|
27
|
-
|
28
|
-
def backend=(value)
|
29
|
-
@backend = value
|
30
|
-
end
|
31
27
|
end
|
28
|
+
|
29
|
+
Down.backend Down::NetHttp
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: down
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Janko Marohnić
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|