down 4.0.0 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/down/version.rb +1 -1
  3. data/lib/down.rb +3 -5
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6d150dd7f5e9123d9c89ea2cc982fe154fb2345d
4
- data.tar.gz: 3ecf281961282363ae6b9388c0d3d58cb901be76
3
+ metadata.gz: 198002a2240137218bad98e7af9f0d336616ecc4
4
+ data.tar.gz: 2db047e9147e441b586a01cf6a0dbbd95363f728
5
5
  SHA512:
6
- metadata.gz: 93edf1ffb5f96ddc649a907bda723bcdcb82ab908ba8e1ca55cf9360e6cab79b4a8d3bc4957f6445bbce612ce857de7bd4486ccbd0b508455e5fb03899416d63
7
- data.tar.gz: 13f2f52396e71eccc5e4f8cd9fcb6a2094ec10ac24beeff109745800d85bbee46fcf6c4f5b2b400836c299657d574a8fa86e72f45c32eb6adb7de6f6643495e8
6
+ metadata.gz: 224602303ca6a6bf32ab059bfca9c60974c28a14f4b2da12d10245254ace51a521f921ad7130c7bf5b72368f13a9f20309cae4ec0d2a5198d1bc0b6a1a8fc96d
7
+ data.tar.gz: b79fb3b79c67dc6aa2fd2c1735a7d27befcb7fc5ff603ae0725e98207571bc4289f39e8961114229b92665ddc6d2c24c33faa6f62248d54b94065781b631770e
data/lib/down/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen-string-literal: true
2
2
 
3
3
  module Down
4
- VERSION = "4.0.0"
4
+ VERSION = "4.0.1"
5
5
  end
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.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-06-24 00:00:00.000000000 Z
11
+ date: 2017-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest