shoutbox-client 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/shoutbox/shout.rb +11 -2
- metadata +8 -7
data/lib/shoutbox/shout.rb
CHANGED
@@ -10,8 +10,17 @@ module Shoutbox
|
|
10
10
|
|
11
11
|
def parse_options
|
12
12
|
@conf = Trollop::options do
|
13
|
-
|
13
|
+
banner <<-EOS
|
14
|
+
shout is a simple command line client to update your Shoutbox
|
15
|
+
|
16
|
+
Usage:
|
17
|
+
shout -n <name> -s <red|green>
|
18
|
+
|
19
|
+
where [options] are:
|
20
|
+
EOS
|
21
|
+
|
14
22
|
opt :host, "The hostname of the Shoutbox", :type => String
|
23
|
+
opt :group, "The group to use", :type => String, :default => "default"
|
15
24
|
opt :port, "The port of the Shoutbox", :type => Integer
|
16
25
|
opt :name, "", :type => String
|
17
26
|
opt :status, "", :type => String
|
@@ -24,7 +33,7 @@ module Shoutbox
|
|
24
33
|
end
|
25
34
|
|
26
35
|
def do_it
|
27
|
-
ShoutboxClient.shout :name => @conf[:name], :status => @conf[:status]
|
36
|
+
ShoutboxClient.shout :name => @conf[:name], :status => @conf[:status], :group => @conf[:group]
|
28
37
|
end
|
29
38
|
end
|
30
39
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 2
|
9
|
+
version: 0.0.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Benjamin Krause
|
@@ -19,7 +19,6 @@ default_executable: shout
|
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: trollop
|
22
|
-
prerelease: false
|
23
22
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
23
|
none: false
|
25
24
|
requirements:
|
@@ -30,10 +29,10 @@ dependencies:
|
|
30
29
|
- 16
|
31
30
|
version: "1.16"
|
32
31
|
type: :runtime
|
32
|
+
prerelease: false
|
33
33
|
version_requirements: *id001
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: rspec
|
36
|
-
prerelease: false
|
37
36
|
requirement: &id002 !ruby/object:Gem::Requirement
|
38
37
|
none: false
|
39
38
|
requirements:
|
@@ -44,10 +43,10 @@ dependencies:
|
|
44
43
|
- 3
|
45
44
|
version: "2.3"
|
46
45
|
type: :development
|
46
|
+
prerelease: false
|
47
47
|
version_requirements: *id002
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: bundler
|
50
|
-
prerelease: false
|
51
50
|
requirement: &id003 !ruby/object:Gem::Requirement
|
52
51
|
none: false
|
53
52
|
requirements:
|
@@ -58,10 +57,10 @@ dependencies:
|
|
58
57
|
- 0
|
59
58
|
version: "1.0"
|
60
59
|
type: :development
|
60
|
+
prerelease: false
|
61
61
|
version_requirements: *id003
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: webmock
|
64
|
-
prerelease: false
|
65
64
|
requirement: &id004 !ruby/object:Gem::Requirement
|
66
65
|
none: false
|
67
66
|
requirements:
|
@@ -72,10 +71,10 @@ dependencies:
|
|
72
71
|
- 6
|
73
72
|
version: "1.6"
|
74
73
|
type: :development
|
74
|
+
prerelease: false
|
75
75
|
version_requirements: *id004
|
76
76
|
- !ruby/object:Gem::Dependency
|
77
77
|
name: jeweler
|
78
|
-
prerelease: false
|
79
78
|
requirement: &id005 !ruby/object:Gem::Requirement
|
80
79
|
none: false
|
81
80
|
requirements:
|
@@ -86,6 +85,7 @@ dependencies:
|
|
86
85
|
- 5
|
87
86
|
version: "1.5"
|
88
87
|
type: :development
|
88
|
+
prerelease: false
|
89
89
|
version_requirements: *id005
|
90
90
|
description: " Simple Ruby Client to manage status on a node.js Shoutbox Server "
|
91
91
|
email: bk@benjaminkrause.com
|
@@ -119,6 +119,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
119
119
|
requirements:
|
120
120
|
- - ">="
|
121
121
|
- !ruby/object:Gem::Version
|
122
|
+
hash: -2791319397029463430
|
122
123
|
segments:
|
123
124
|
- 0
|
124
125
|
version: "0"
|