grd 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +5 -13
  2. data/bin/grd +1 -1
  3. data/lib/grd.rb +1 -1
  4. data/lib/grd/version.rb +1 -1
  5. metadata +5 -5
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NmE1NjQxMmUwYzBlMzk3NDRlZDdhMmUxODI1NjYzMGEyNzMyYzkwZQ==
5
- data.tar.gz: !binary |-
6
- ODIwY2QzMGIzMmZkZWZlYjYxMDg0ZTRmMTE4YzgyNmE1OTA5YjMwMA==
2
+ SHA1:
3
+ metadata.gz: 83a5fb5d24b684d7094c02c8917f44976f6177fa
4
+ data.tar.gz: 6038d4b8649019b521e3046981447b6df8c8544d
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YzIyYjMzMDJjMWIyZjA1NDEzMzU0ZWIyMzJlNGYyMDYzZDU2YmU2NzYyNTE1
10
- NDlhNjRiODQyODc5MGIyMjZkOGE0YjFhMWZjNzhhYjcwZTg0NTUzNWIxMTEy
11
- ZTE3YjE5YjEyNDdjNzFmY2U4MGVhNTEwYjAzNWE2ZTQ4MmM0MDE=
12
- data.tar.gz: !binary |-
13
- ODNlOGE0MjBiMjg5MmYzOTEwODU3ZDNlMTI2MDVhMDU1MzEwY2Y4ZjMzYjQx
14
- N2QzZjAyMGNiNGVmNDYxODRmY2I5MGJmZjRjOTlkMzc2NmY4MGI4NDQxZjlh
15
- NWQ2ZTc3YzJlOGQ1ZWIxNWUwNTBmNjhmZDU3ZTM5NzFlOGZjZjI=
6
+ metadata.gz: b3980059c05931a0032925f246560422618e44e67e949b0885fa410a26dc6acad21945df4ce162d5f97c79477ca3789b4aefdecfb60a85dd8925ac158920cf6c
7
+ data.tar.gz: 780ecd0936f2ff029a8de36df627e5bbfd8dba598309a41e706f6bc0c2628f388e11ad08b0952b703a75ecb236ffd4f0c478803d7aaf2789daf794d25aa5aaf8
data/bin/grd CHANGED
@@ -4,7 +4,7 @@
4
4
  require 'grd'
5
5
 
6
6
  begin
7
- GRD::getredirect(ARGV[0])
7
+ puts GRD::getredirect(ARGV[0])
8
8
  rescue Exception => e
9
9
  puts "Get ReDirect: Get the URL redirection."
10
10
  puts "by Daniel P. Clark / License: The MIT License"
data/lib/grd.rb CHANGED
@@ -7,7 +7,7 @@ module GRD
7
7
  val.prepend('http://') unless !!val['http://']
8
8
  uri = URI.parse val
9
9
  req = Net::HTTP::Get.new(uri.request_uri)
10
- puts Net::HTTP.new(uri.host).start { |server|
10
+ Net::HTTP.new(uri.host).start { |server|
11
11
  server.request(req)
12
12
  }["location"]
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module GRD
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel P. Clark / 6ftDan(TM)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-21 00:00:00.000000000 Z
11
+ date: 2014-08-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Get url redirection on the command line. 'grd www.example.com'
14
14
  email: webmaster@6ftdan.com
@@ -30,17 +30,17 @@ require_paths:
30
30
  - lib
31
31
  required_ruby_version: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - ! '>='
33
+ - - ">="
34
34
  - !ruby/object:Gem::Version
35
35
  version: '0'
36
36
  required_rubygems_version: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  requirements: []
42
42
  rubyforge_project:
43
- rubygems_version: 2.2.2
43
+ rubygems_version: 2.3.0
44
44
  signing_key:
45
45
  specification_version: 4
46
46
  summary: Get url redirection on the command line.