zircon 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/zircon.rb +4 -0
- data/lib/zircon/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
data/lib/zircon.rb
CHANGED
@@ -89,9 +89,13 @@ class Zircon
|
|
89
89
|
join @channel if @channel
|
90
90
|
end
|
91
91
|
|
92
|
+
# Start blocking-loop.
|
93
|
+
# Call trigger_message and trigger_xxx on a message received.
|
94
|
+
# (xxx is determined by the command type of the message)
|
92
95
|
def wait_message
|
93
96
|
loop do
|
94
97
|
message = Message.new(gets)
|
98
|
+
trigger_message(message)
|
95
99
|
send("trigger_#{message.type}", message)
|
96
100
|
end
|
97
101
|
end
|
data/lib/zircon/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zircon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-09-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &70105687233900 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70105687233900
|
25
25
|
description: Zircon is a mineral belonging to the group of nesosilicates.
|
26
26
|
email:
|
27
27
|
- r7kamura@gmail.com
|