dl 1.2.2 → 1.2.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.
Files changed (3) hide show
  1. data/bin/dl +5 -0
  2. data/lib/dl.rb +1 -1
  3. metadata +1 -1
data/bin/dl CHANGED
@@ -32,4 +32,9 @@ end
32
32
  Dl::be_quiet = opts[:quiet]
33
33
  Dl::file = opts[:file]
34
34
 
35
+ if ARGV[0].nil?
36
+ puts "Error: No URL specified."
37
+ exit 1
38
+ end
39
+
35
40
  Dl::download ARGV[0], opts[:raw]
data/lib/dl.rb CHANGED
@@ -3,7 +3,7 @@ require 'patron'
3
3
  require 'dl/dl'
4
4
 
5
5
  module Dl
6
- VERSION = "1.2.2"
6
+ VERSION = "1.2.3"
7
7
 
8
8
  @@be_quiet = false
9
9
  @@file = ""
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: dl
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.2.2
5
+ version: 1.2.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Mark Szymanski