ellen 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +3 -1
- data/lib/ellen.rb +1 -0
- data/lib/ellen/env.rb +1 -1
- data/lib/ellen/handlers/help.rb +1 -1
- data/lib/ellen/handlers/ping.rb +9 -0
- data/lib/ellen/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d5eded192c9ddbe27cc1945a8244b5cc74dbbcb
|
4
|
+
data.tar.gz: 028bc33be16675edf0edaf6f9c17a375ec472441
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f20921ead795cb4723da0952ed672b9ad453c98fb51a1e50e426837442b660f3dcf59c79ee060b3e6f74a6795f7096e29d34f66531379a08c23f61531174ef5
|
7
|
+
data.tar.gz: f9e3d431ddb0eafc577bdfe94d10937ae23d33e1de38252ca9737c64516de134d619fca53ac3aef23d03e682ec4e01840e25309e960fbdc38431e991e9f35395
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -9,14 +9,16 @@ You can create your own favorite adapter from
|
|
9
9
|
[Ellen::Adpaters::Base](https://github.com/r7kamura/ellen/blob/master/lib/ellen/adapters/base.rb)
|
10
10
|
class with #run method. Please see the following real examples for more details.
|
11
11
|
|
12
|
-
* [Ellen::Adapters::Hipchat](https://github.com/r7kamura/ellen-hipchat/blob/master/lib/ellen/adapters/hipchat.rb)
|
13
12
|
* [Ellen::Adapters::Shell](https://github.com/r7kamura/ellen/blob/master/lib/ellen/adapters/shell.rb)
|
13
|
+
* [Ellen::Adapters::Hipchat](https://github.com/r7kamura/ellen-hipchat)
|
14
|
+
* [Ellen::Adapters::Twitter](https://github.com/r7kamura/ellen-twitter)
|
14
15
|
|
15
16
|
## Handler
|
16
17
|
You can create your own handlers to add new behaviors from
|
17
18
|
[Ellen::Handlers::Base](https://github.com/r7kamura/ellen/blob/master/lib/ellen/handlers/base.rb) DSL.
|
18
19
|
|
19
20
|
* [Ellen::Handlers::Help](https://github.com/r7kamura/ellen/blob/master/lib/ellen/handlers/help.rb)
|
21
|
+
* [Ellen::Handlers::GoogleImage](https://github.com/r7kamura/ellen-google_image)
|
20
22
|
|
21
23
|
## Bundler
|
22
24
|
All you need to use your favorite plugins is to write their names into Gemfile.
|
data/lib/ellen.rb
CHANGED
data/lib/ellen/env.rb
CHANGED
data/lib/ellen/handlers/help.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Ellen
|
2
2
|
module Handlers
|
3
3
|
class Help < Base
|
4
|
-
on /help\z
|
4
|
+
on /help\z/i, description: "Show this help message" do |message|
|
5
5
|
lines = Ellen.handlers.map(&:actions).flatten.sort_by(&:all?).map do |action|
|
6
6
|
prefix = "@#{name} " unless action.all?
|
7
7
|
line = "%-30s - #{action.description}" % "#{prefix}#{action.pattern.inspect}"
|
data/lib/ellen/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ellen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -150,6 +150,7 @@ files:
|
|
150
150
|
- lib/ellen/env.rb
|
151
151
|
- lib/ellen/handlers/base.rb
|
152
152
|
- lib/ellen/handlers/help.rb
|
153
|
+
- lib/ellen/handlers/ping.rb
|
153
154
|
- lib/ellen/logger.rb
|
154
155
|
- lib/ellen/message.rb
|
155
156
|
- lib/ellen/robot.rb
|