MDownloader 0.0.2 → 0.0.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e2fa2d1249c72a98181c094074553d0260528b9
4
- data.tar.gz: 5c6d820a21a3ea02304978c2ac32043d858aa37b
3
+ metadata.gz: 011770beab3a92d545956b6591e73d6ef71cccbe
4
+ data.tar.gz: b0c48e9e5bd2121044d8d393575f94f24e7e7a24
5
5
  SHA512:
6
- metadata.gz: b9b8b0a7641905231fd5673bb1975e37363f0abc8366a72eb4f2464a3011e64c1538d5d042de35f358bb81530fb03512798691026a0a838491b3bbf41039374a
7
- data.tar.gz: 8ab2172e81dbaf1e0fd78ea3a53491a93af6d36ba3d5211c22444055d1ef55928f4440a5b1964008f8ca3513e7eb5bcaa62c8fb66fb5acbbaa22dc34b3a3ad28
6
+ metadata.gz: 222f6b87cdbeeefea1955ad73f26df19c31be35019dded22e3822e39c00cd5778a454b662e3d5b59df38ccc2cac80f96e1b840c924123fcced3bb84092037aee
7
+ data.tar.gz: fcc8d22ddbeae3f929d8fd0ead5ebf244b69cb076aba8c13cb3d9388d0a4029c28d9489db80d3c920115056c7780513fb419b9ca9cd9e67048f9ef82d3af56d2
data/README.md CHANGED
@@ -25,7 +25,7 @@ Or install it yourself as:
25
25
  options[:resume] = true #true or false, resume continue download, break point resume download
26
26
 
27
27
  result, error = MDownloader.download(url, path, options) do |report|
28
- puts "Progress:#{report[:percent]} Lave:#{report[:min]}m#{report[:sec]}"
28
+ puts "Progress:#{report[:percent]}% Lave:#{report[:min]}m#{report[:sec]}"
29
29
  end
30
30
 
31
31
  if result
data/lib/MDownloader.rb CHANGED
@@ -54,7 +54,7 @@ module MDownloader
54
54
 
55
55
  end
56
56
 
57
- def check_wget
57
+ def MDownloader.check_wget
58
58
  raise Exception.new('Wget not found. Please install it.') if `which wget`.empty?
59
59
  end
60
60
 
@@ -1,3 +1,3 @@
1
1
  module MDownloader
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: MDownloader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - RaymondChou