tango 0.1.6 → 0.1.7

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.
Files changed (3) hide show
  1. data/lib/tango/fetch.rb +11 -1
  2. data/lib/tango/version.rb +1 -1
  3. metadata +4 -4
data/lib/tango/fetch.rb CHANGED
@@ -2,7 +2,17 @@ module Tango
2
2
  module Fetch
3
3
 
4
4
  def fetch(url)
5
- shell("curl", "-O", "-C", "-", "-L", "--progress-bar", url)
5
+ if have_wget?
6
+ shell("wget", "--progress=bar:force", "--continue", url)
7
+ else
8
+ shell("curl", "-O", "-C", "-", "-L", "--progress-bar", url)
9
+ end
10
+ end
11
+
12
+ private
13
+
14
+ def have_wget?
15
+ shell("which", "wget", :echo => false).succeeded?
6
16
  end
7
17
 
8
18
  end
data/lib/tango/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tango
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tango
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 6
10
- version: 0.1.6
9
+ - 7
10
+ version: 0.1.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Pete Yandell
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-21 00:00:00 +10:00
18
+ date: 2011-10-30 00:00:00 +11:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency