ruboty 1.2.1 → 1.2.2
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 +6 -6
- data/lib/ruboty/adapters/shell.rb +1 -1
- data/lib/ruboty/version.rb +1 -1
- data/spec/ruboty/adapters/shell_spec.rb +8 -0
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a05184c782758a07fe769a07976396f6833dcac
|
4
|
+
data.tar.gz: 1db530f4c88ff64f43281fccbceeaad570ea0141
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b16a9cd78ee34c4470d0096f0c5da0c9c9fa31726ad97f2f95ef3be77b2ab0d058651e630ce2ed4fef4de7090a0b22f7b32865af97517ca096bdac46cae94df5
|
7
|
+
data.tar.gz: f323757c6de220447f430148524ed68dfdc9dd387b9078c1ccec85346562f9971c2440daa1da1119e0ab9aae572651b4656dc21253f1f3c90264ad642e0c9716
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
# Ruboty [![Build Status](https://travis-ci.org/r7kamura/ruboty.png)](https://travis-ci.org/r7kamura/ruboty) [![Code Climate](https://codeclimate.com/github/r7kamura/ruboty.png)](https://codeclimate.com/github/r7kamura/ruboty)
|
1
|
+
# Ruboty [![Build Status](https://travis-ci.org/r7kamura/ruboty.png)](https://travis-ci.org/r7kamura/ruboty) [![Code Climate](https://codeclimate.com/github/r7kamura/ruboty.png)](https://codeclimate.com/github/r7kamura/ruboty)
|
2
2
|
|
3
3
|
Ruby + Bot = Ruboty.
|
4
4
|
|
5
5
|
## Dependencies
|
6
|
-
* Ruby
|
6
|
+
* Ruby 2.0.0
|
7
7
|
|
8
8
|
## Adapter
|
9
|
-
Adapter hooks up
|
9
|
+
Adapter hooks up ruboty to chat services.
|
10
10
|
|
11
11
|
* [ruboty-hipchat](https://github.com/r7kamura/ruboty-hipchat)
|
12
12
|
* [ruboty-idobata](https://github.com/hanachin/ruboty-idobata)
|
@@ -14,13 +14,13 @@ Adapter hooks up your robot to chat services.
|
|
14
14
|
* [ruboty-twitter](https://github.com/r7kamura/ruboty-twitter)
|
15
15
|
|
16
16
|
## Brain
|
17
|
-
Brain persists
|
17
|
+
Brain persists memories.
|
18
18
|
|
19
19
|
* [ruboty-leveldb](https://github.com/nownabe/ruboty-leveldb)
|
20
20
|
* [ruboty-redis](https://github.com/r7kamura/ruboty-redis)
|
21
21
|
|
22
22
|
## Handler
|
23
|
-
Handler provides various behaviors
|
23
|
+
Handler provides various behaviors.
|
24
24
|
|
25
25
|
* [ruboty-alias](https://github.com/r7kamura/ruboty-alias)
|
26
26
|
* [ruboty-cron](https://github.com/r7kamura/ruboty-cron)
|
@@ -38,7 +38,7 @@ Handler provides various behaviors to your robot.
|
|
38
38
|
## Configuration
|
39
39
|
Store configuration value in envorinment variables.
|
40
40
|
They are easy to change between deploys without changing any code.
|
41
|
-
We recommend to put `.env` and run with `ruboty --dotenv` option to manage them.
|
41
|
+
We recommend to put `.env` and run with `ruboty --dotenv` option to manage them .
|
42
42
|
|
43
43
|
All you need to use your favorite plugins is to write their names into Gemfile.
|
44
44
|
Ruboty will load them before running.
|
data/lib/ruboty/version.rb
CHANGED
@@ -30,6 +30,14 @@ describe Ruboty::Adapters::Shell do
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
|
+
context "with EOF" do
|
34
|
+
it "stops" do
|
35
|
+
Readline.stub(readline: nil)
|
36
|
+
adapter.should_receive(:stop).and_call_original
|
37
|
+
adapter.run
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
33
41
|
context "with Inturrupt from console" do
|
34
42
|
it "stops" do
|
35
43
|
Readline.stub(:readline).and_raise(Interrupt)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruboty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -229,4 +229,3 @@ test_files:
|
|
229
229
|
- spec/ruboty/handlers/whoami_spec.rb
|
230
230
|
- spec/ruboty/robot_spec.rb
|
231
231
|
- spec/spec_helper.rb
|
232
|
-
has_rdoc:
|