ruboty 1.1.4 → 1.1.5

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: aa15654d16ccd04937bfe8b9bf7fb83a690e7a39
4
- data.tar.gz: d24a8b185b355c529113bb5c5161debd6138686b
3
+ metadata.gz: 59eade90e032988902da80763e2d6a44d45ccf86
4
+ data.tar.gz: 5a47c89da03ec5a73003c44cbde2a2950da088ea
5
5
  SHA512:
6
- metadata.gz: db0cb0d37fcd362d5980c5ca050aacc9e74f6505849b2d4afb328ef0fb9cafdaaf5590ed5dcd28316a410c156522173e9094daef037788eaea0effb50d4dec22
7
- data.tar.gz: a99bab4ff80aa6a6a3be9d50ba5baa86c034fe9aeaa61f548c6f093d2e648923d7b0d0b76cfa317e2f55ceda0b515c6b415be9166f5223cd0e6421bff6ad8a17
6
+ metadata.gz: c249f94122a8cebaaf3696926c8180bfa7203c29dc3b32147ae7ad97552ee80390afd827ab0b9b918714a2a86d10cab9919fc60b9c413621b6ab6ba4146cb178
7
+ data.tar.gz: b6a3dde9e78042a5e2b57dc080c0908a77eed510845eeea0c1f7ba1e26c9c236a33ca2861b325a1886b00d69fc972ab0c82aed643cb7c85b0d6c473c166f966b
@@ -1,5 +1,4 @@
1
1
  rvm:
2
- - 1.9.3
3
2
  - 2.0.0
4
3
  branches:
5
4
  only:
@@ -1,3 +1,7 @@
1
+ ## 1.1.5
2
+ - Use slop version 4 or higher
3
+ - Fix --load option (thx @amacou)
4
+
1
5
  ## 1.1.4
2
6
  - Support slop version 4
3
7
 
data/README.md CHANGED
@@ -27,6 +27,7 @@ Handler provides various behaviors to your robot.
27
27
  * [ruboty-github](https://github.com/r7kamura/ruboty-github)
28
28
  * [ruboty-google_image](https://github.com/r7kamura/ruboty-google_image)
29
29
  * [ruboty-japan_weather](https://github.com/taiki45/ruboty-japan_weather)
30
+ * [ruboty-kokodeikku](https://github.com/r7kamura/ruboty-kokodeikku)
30
31
  * [ruboty-lgtm](https://github.com/negipo/ruboty-lgtm)
31
32
  * [ruboty-syoboi_calendar](https://github.com/r7kamura/ruboty-syoboi_calendar)
32
33
  * [ruboty-talk](https://github.com/r7kamura/ruboty-talk)
@@ -30,7 +30,7 @@ module Ruboty
30
30
  options.on("--dotenv", "Load .env before running.")
31
31
  options.on("-g", "--generate", "Generate a new chatterbot with ./ruboty/ directory if specified.")
32
32
  options.on("-h", "--help", "Display this help message.")
33
- options.on("-l", "--load=", "Load a ruby file before running.")
33
+ options.string("-l", "--load", "Load a ruby file before running.")
34
34
  end
35
35
  end
36
36
  memoize :options
@@ -26,7 +26,7 @@ module Ruboty
26
26
  end
27
27
 
28
28
  def valid?
29
- !File.exists?(destination_path)
29
+ !File.exist?(destination_path)
30
30
  end
31
31
  end
32
32
  end
@@ -1,7 +1,7 @@
1
1
  module Ruboty
2
2
  module Handlers
3
3
  class Help < Base
4
- on /help( me)?\z/i, name: "help", description: "Show this help message"
4
+ on(/help( me)?\z/i, name: "help", description: "Show this help message")
5
5
 
6
6
  def help(message)
7
7
  Ruboty::Actions::Help.new(message).call
@@ -1,7 +1,7 @@
1
1
  module Ruboty
2
2
  module Handlers
3
3
  class Ping < Base
4
- on /ping\z/i, name: "ping", description: "Return PONG to PING"
4
+ on(/ping\z/i, name: "ping", description: "Return PONG to PING")
5
5
 
6
6
  def ping(message)
7
7
  Ruboty::Actions::Ping.new(message).call
@@ -32,6 +32,7 @@ module Ruboty
32
32
  end
33
33
 
34
34
  # @return [true] Because it needs to tell that an action is matched.
35
+ undef :say
35
36
  def say(*args)
36
37
  adapter.say(*args)
37
38
  true
@@ -77,7 +78,7 @@ module Ruboty
77
78
  end
78
79
 
79
80
  def handlers
80
- Ruboty.handlers.map {|handler_class| handler_class.new(self) }
81
+ Ruboty.handlers.map { |handler_class| handler_class.new(self) }
81
82
  end
82
83
  memoize :handlers
83
84
 
@@ -1,3 +1,3 @@
1
1
  module Ruboty
2
- VERSION = "1.1.4"
2
+ VERSION = "1.1.5"
3
3
  end
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.add_dependency "bundler"
21
21
  spec.add_dependency "dotenv"
22
22
  spec.add_dependency "mem"
23
- spec.add_dependency "slop"
23
+ spec.add_dependency "slop", ">= 4.0.0"
24
24
  spec.add_development_dependency "codeclimate-test-reporter", ">= 0.3.0"
25
25
  spec.add_development_dependency "rake"
26
26
  spec.add_development_dependency "rspec", "2.14.1"
@@ -24,7 +24,7 @@ describe Ruboty::Adapters::Shell do
24
24
 
25
25
  context "with `quit`" do
26
26
  it "stops" do
27
- Readline.stub(readline: "exit")
27
+ Readline.stub(readline: "quit")
28
28
  adapter.should_receive(:stop).and_call_original
29
29
  adapter.run
30
30
  end
@@ -21,7 +21,7 @@ describe Ruboty::Commands::Generate do
21
21
  context "with normal condition" do
22
22
  it "generates ./ruboty/ directory from our templates" do
23
23
  call
24
- File.exists?("./ruboty/").should == true
24
+ File.exist?("./ruboty/").should == true
25
25
  end
26
26
  end
27
27
 
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.1.4
4
+ version: 1.1.5
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-12-31 00:00:00.000000000 Z
11
+ date: 2015-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: 4.0.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: 4.0.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: codeclimate-test-reporter
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  version: '0'
214
214
  requirements: []
215
215
  rubyforge_project:
216
- rubygems_version: 2.2.2
216
+ rubygems_version: 2.4.5
217
217
  signing_key:
218
218
  specification_version: 4
219
219
  summary: Ruby + Bot = Ruboty