synack 1.0.1 → 1.1.0
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.
- data/README.md +2 -2
- data/README.rdoc +2 -2
- data/VERSION +1 -1
- data/bin/synack +7 -6
- data/lib/synack/server.rb +1 -1
- data/synack.gemspec +2 -2
- metadata +3 -3
data/README.md
CHANGED
@@ -13,11 +13,11 @@ To start synack:
|
|
13
13
|
|
14
14
|
To send a message to your local Notification Center:
|
15
15
|
|
16
|
-
synack "Watson, come here, I need you."
|
16
|
+
synack -m "Watson, come here, I need you."
|
17
17
|
|
18
18
|
You can send messages to remote machines by specifying a host and port in the client:
|
19
19
|
|
20
|
-
synack -h my_remote_machine "I'm here, what did you want?"
|
20
|
+
synack -h my_remote_machine -m "I'm here, what did you want?"
|
21
21
|
|
22
22
|
You can even use UNIX pipes to send messages (first line of input only, for now):
|
23
23
|
|
data/README.rdoc
CHANGED
@@ -12,11 +12,11 @@ To start synack:
|
|
12
12
|
|
13
13
|
To send a message to your local Notification Center:
|
14
14
|
|
15
|
-
synack "Watson, come here, I need you."
|
15
|
+
synack -m "Watson, come here, I need you."
|
16
16
|
|
17
17
|
You can send messages to remote machines by specifying a host and port in the client:
|
18
18
|
|
19
|
-
synack -h my_remote_machine -p 11113 "I'm here, what did you want?"
|
19
|
+
synack -h my_remote_machine -p 11113 -m "I'm here, what did you want?"
|
20
20
|
|
21
21
|
You can even use UNIX pipes to send messages (first line of input only, for now):
|
22
22
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0
|
1
|
+
1.1.0
|
data/bin/synack
CHANGED
@@ -4,9 +4,10 @@ require 'getopt/long'
|
|
4
4
|
require 'synack'
|
5
5
|
|
6
6
|
options = Getopt::Long.getopts(
|
7
|
-
["--
|
8
|
-
["--
|
9
|
-
["--
|
7
|
+
["--message", "-m", Getopt::REQUIRED],
|
8
|
+
["--server", "-s", Getopt::OPTIONAL],
|
9
|
+
["--host", "-h", Getopt::OPTIONAL],
|
10
|
+
["--port", "-p", Getopt::OPTIONAL]
|
10
11
|
)
|
11
12
|
|
12
13
|
@host = options['host'] || 'localhost'
|
@@ -14,17 +15,17 @@ options = Getopt::Long.getopts(
|
|
14
15
|
|
15
16
|
if options["server"]
|
16
17
|
Synack::Server.start(
|
17
|
-
host: @host,
|
18
|
+
host: @host,
|
18
19
|
port: @port
|
19
20
|
)
|
20
21
|
else
|
21
22
|
begin
|
22
23
|
client = Synack::Client.new(
|
23
|
-
host: @host,
|
24
|
+
host: @host,
|
24
25
|
port: @port
|
25
26
|
)
|
26
27
|
|
27
|
-
_input =
|
28
|
+
_input = options['message']
|
28
29
|
client.say _input
|
29
30
|
rescue DRb::DRbConnError => e
|
30
31
|
puts "Some kind of connection error occurred: #{e}"
|
data/lib/synack/server.rb
CHANGED
data/synack.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "synack"
|
8
|
-
s.version = "1.0
|
8
|
+
s.version = "1.1.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Corey Ehmke", "Max Thom Stahl"]
|
12
|
-
s.date = "2012-07-
|
12
|
+
s.date = "2012-07-30"
|
13
13
|
s.description = "A Ruby server for terminal-notifier"
|
14
14
|
s.email = "corey@idolhands.com"
|
15
15
|
s.executables = ["synack", "synack_client", "synack_server"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: synack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-07-
|
13
|
+
date: 2012-07-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: getopt
|
@@ -167,7 +167,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
167
167
|
version: '0'
|
168
168
|
segments:
|
169
169
|
- 0
|
170
|
-
hash:
|
170
|
+
hash: 309323358682620341
|
171
171
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
172
172
|
none: false
|
173
173
|
requirements:
|