grd 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/bin/grd +11 -1
- data/lib/grd/version.rb +1 -1
- data/lib/grd.rb +0 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NmE1NjQxMmUwYzBlMzk3NDRlZDdhMmUxODI1NjYzMGEyNzMyYzkwZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODIwY2QzMGIzMmZkZWZlYjYxMDg0ZTRmMTE4YzgyNmE1OTA5YjMwMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzIyYjMzMDJjMWIyZjA1NDEzMzU0ZWIyMzJlNGYyMDYzZDU2YmU2NzYyNTE1
|
10
|
+
NDlhNjRiODQyODc5MGIyMjZkOGE0YjFhMWZjNzhhYjcwZTg0NTUzNWIxMTEy
|
11
|
+
ZTE3YjE5YjEyNDdjNzFmY2U4MGVhNTEwYjAzNWE2ZTQ4MmM0MDE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODNlOGE0MjBiMjg5MmYzOTEwODU3ZDNlMTI2MDVhMDU1MzEwY2Y4ZjMzYjQx
|
14
|
+
N2QzZjAyMGNiNGVmNDYxODRmY2I5MGJmZjRjOTlkMzc2NmY4MGI4NDQxZjlh
|
15
|
+
NWQ2ZTc3YzJlOGQ1ZWIxNWUwNTBmNjhmZDU3ZTM5NzFlOGZjZjI=
|
data/bin/grd
CHANGED
@@ -1,4 +1,14 @@
|
|
1
1
|
#!/usr/bin/ruby
|
2
2
|
#$: << File.join(File.dirname(__FILE__), '../lib')
|
3
3
|
# GRD (Get ReDirect)
|
4
|
-
require 'grd'
|
4
|
+
require 'grd'
|
5
|
+
|
6
|
+
begin
|
7
|
+
GRD::getredirect(ARGV[0])
|
8
|
+
rescue Exception => e
|
9
|
+
puts "Get ReDirect: Get the URL redirection."
|
10
|
+
puts "by Daniel P. Clark / License: The MIT License"
|
11
|
+
puts
|
12
|
+
puts " Usage: grd www.example.com"
|
13
|
+
puts
|
14
|
+
end
|
data/lib/grd/version.rb
CHANGED
data/lib/grd.rb
CHANGED
@@ -11,14 +11,4 @@ module GRD
|
|
11
11
|
server.request(req)
|
12
12
|
}["location"]
|
13
13
|
end
|
14
|
-
end
|
15
|
-
|
16
|
-
begin
|
17
|
-
GRD::getredirect(ARGV[0])
|
18
|
-
rescue Exception => e
|
19
|
-
puts "Get ReDirect: Get the URL redirection."
|
20
|
-
puts "by Daniel P. Clark / License: The MIT License"
|
21
|
-
puts
|
22
|
-
puts " Usage: grd www.example.com"
|
23
|
-
puts
|
24
14
|
end
|