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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b5e573ac386655befe4cd3e1bc64f8d475804d5
4
- data.tar.gz: 40f229bf0684ae1fb36cf14b38560060b230847b
3
+ metadata.gz: 6a05184c782758a07fe769a07976396f6833dcac
4
+ data.tar.gz: 1db530f4c88ff64f43281fccbceeaad570ea0141
5
5
  SHA512:
6
- metadata.gz: 55aa5a748ffa69af647d33fe09a822f9f9b90d6dc1fc04c0db531026155dd660822c568f68ff4ea618e05650064965dcf30ef4016cfcca0200611cc583699643
7
- data.tar.gz: fdb2f35abd87618475104ad4c5ee675fad30ea94dba8e50f30676ccf105e98d73e03e5138a0a8f453506ac860a3343c8a622e7d3a3677a9071ef4712ddc5406a
6
+ metadata.gz: b16a9cd78ee34c4470d0096f0c5da0c9c9fa31726ad97f2f95ef3be77b2ab0d058651e630ce2ed4fef4de7090a0b22f7b32865af97517ca096bdac46cae94df5
7
+ data.tar.gz: f323757c6de220447f430148524ed68dfdc9dd387b9078c1ccec85346562f9971c2440daa1da1119e0ab9aae572651b4656dc21253f1f3c90264ad642e0c9716
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.2.2
2
+ - Support ^D on shell adapter (thx @suu-g)
3
+
1
4
  ## 1.2.1
2
5
  - Refer Bundler from top-level
3
6
 
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) [![Code Climate](https://codeclimate.com/github/r7kamura/ruboty/coverage.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 1.9.3+
6
+ * Ruby 2.0.0
7
7
 
8
8
  ## Adapter
9
- Adapter hooks up your robot to chat services.
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 your robot's memory.
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 to your robot.
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.
@@ -45,7 +45,7 @@ module Ruboty
45
45
 
46
46
  def step
47
47
  case body = read
48
- when "exit", "quit"
48
+ when "exit", "quit", nil
49
49
  stop
50
50
  else
51
51
  robot.receive(body: body, source: SOURCE)
@@ -1,3 +1,3 @@
1
1
  module Ruboty
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
@@ -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.1
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-03-10 00:00:00.000000000 Z
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: