yakr 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -27,7 +27,7 @@ To launch a server instance of Yakr specify a port number to listen for an incom
27
27
 
28
28
  $ yakr -l 2600
29
29
 
30
- For Yakr to operate as a client specify both a remote host and port number using the `-c HOST` and `-p NUM` arguments. For example:
30
+ For Yakr to operate as a client and connect to a remote Yakr instance you'll need to specify both a host and port number using the `-c HOST` and `-p NUM` arguments. For example:
31
31
 
32
32
  $ yakr -c remote.server.com -p 2600
33
33
 
@@ -41,7 +41,7 @@ The server instance of Yakr can be told to redirect the data it receives to a fi
41
41
 
42
42
  $ yakr -l 2600 > output.txt
43
43
 
44
- Pretty easy, right? For additional options type `yakr --help`.
44
+ For additional options type `yakr --help`.
45
45
 
46
46
  ##Fun Stuff
47
47
  To be added soon.
data/lib/yakr.rb CHANGED
@@ -27,7 +27,7 @@ require 'timeout'
27
27
 
28
28
  class Yakr
29
29
 
30
- VERSION = "0.2.1"
30
+ VERSION = "0.2.2"
31
31
  REQUIRE_SERVER = 0.1
32
32
  USAGE_BANNER = "Use `#{File.basename($0)} --help` for available options."
33
33
 
@@ -37,12 +37,7 @@ class OptionReader
37
37
  options.limit_lines = 0
38
38
 
39
39
  opts = OptionParser.new do |opts|
40
- opts.banner = "Usage: #{File.basename($0)} [-c HOST -p PORT] | [-l PORT -m NUM]"
41
-
42
- opts.separator ""
43
-
44
- opts.separator "#{File.basename($0).capitalize} is either listening for a remote connection or connected"
45
- opts.separator "to a remote host. These options are mutually exclusive."
40
+ opts.banner = "Usage: #{File.basename($0)} -c HOST -p PORT | -l PORT [-m NUM]"
46
41
 
47
42
  opts.separator ""
48
43
  opts.separator "Client mode options:"
@@ -51,14 +46,14 @@ class OptionReader
51
46
  options.connect_host << host
52
47
  end
53
48
 
54
- opts.on("-p", "--port NUM", "Port number for outgoing connection") do |port|
49
+ opts.on("-p", "--port PORT", "Port number for outgoing connection") do |port|
55
50
  options.connect_port << port
56
51
  end
57
52
 
58
53
  opts.separator ""
59
54
  opts.separator "Server mode options:"
60
55
 
61
- opts.on("-l", "--listen NUM", "Port number for incoming connection") do |port|
56
+ opts.on("-l", "--listen PORT", "Port number for incoming connection") do |port|
62
57
  options.listen_port << port
63
58
  end
64
59
 
data/yakr.gemspec CHANGED
@@ -21,8 +21,8 @@
21
21
 
22
22
  Gem::Specification.new do |s|
23
23
  s.name = 'yakr'
24
- s.version = '0.2.1'
25
- s.date = '2012-05-15'
24
+ s.version = '0.2.2'
25
+ s.date = '2012-05-18'
26
26
  s.summary = 'TCP/IP output tool'
27
27
  s.description = 'Yakr is a minimalist network tool for forwarding command output or arbitrary data to a remote host.'
28
28
  s.authors = ["Marc Ransome"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yakr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-15 00:00:00.000000000 Z
12
+ date: 2012-05-18 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Yakr is a minimalist network tool for forwarding command output or arbitrary
15
15
  data to a remote host.