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 CHANGED
@@ -13,7 +13,7 @@ $ gem install zircon
13
13
  require "zircon"
14
14
 
15
15
  client = Zircon.new(
16
- :server => "chat.freenode.net",
16
+ :server => "example.com",
17
17
  :port => "6667",
18
18
  :channel => "#chatroid",
19
19
  :username => "zircon"
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
@@ -1,3 +1,3 @@
1
1
  class Zircon
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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: &70144831922480 !ruby/object:Gem::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: *70144831922480
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