lita-talk 0.1.0 → 0.1.1

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: eb568b171531d5c5039bab11ae8ac2b7077a41c6
4
- data.tar.gz: d1bb0bb1d8d215c52f7e0ca149562fc856477920
3
+ metadata.gz: 2dbad491d64f14caccd1d51a3a926548c334dab8
4
+ data.tar.gz: 584310954d12b7451309a093ce6c09e6c3269bed
5
5
  SHA512:
6
- metadata.gz: e44aa45be00837cf6147857fed67f109c837c1a6645921477cdeb90bd8f25f18cfe0347ec7ab60ee200c74f49eec29318d095df2c92a777cda0688a5183dc6c3
7
- data.tar.gz: 46c210ed7511c11038c6460d444c5b2563bc5e2c385ad04dbcad8a1edf024abf7dd37a85494b8eac3116ece755c24ca95fe6d3a70f76320abcc50e15491673e6
6
+ metadata.gz: 8c0c668925d4a9f7461d635905cabf9120cd7fafb376f2f7a3908746006263bd654b1aa9d498093ad9059bd2a953130f7bd8df6769378fa26b316eda0918e0d5
7
+ data.tar.gz: e793654aa186ccebdea8805ba0811410b04489a70edcbb2a9dfdca81e25829ac67755e833124854f3001a9325a5208c7d5c844bab4151ef71d416bf094c9d315
data/README.md CHANGED
@@ -19,13 +19,13 @@ gem "lita-talk"
19
19
  Lita.configure do |config|
20
20
  ...
21
21
  # required
22
- Lita.config.handlers.talk.docomo_api_key = 'xxx'
22
+ config.handlers.talk.docomo_api_key = 'xxx'
23
23
 
24
24
  # optional (https://dev.smt.docomo.ne.jp/?p=docs.api.page&api_name=dialogue&p_name=api_1#tag01)
25
25
  # 20 : 関西弁キャラ
26
26
  # 30 : 赤ちゃんキャラ
27
27
  # 指定なし : デフォルトキャラ
28
- Lita.config.handlers.talk.docomo_character_id = 20
28
+ config.handlers.talk.docomo_character_id = 20
29
29
  end
30
30
  ```
31
31
 
@@ -15,8 +15,7 @@ module Lita
15
15
  next nil unless handler.respond_to?(:routes)
16
16
  handler.routes
17
17
  end.flatten.compact.each do |route|
18
- next unless route.command
19
- return if response.message.body.match(route.pattern)
18
+ return if response.matches.flatten[0].match(route.pattern)
20
19
  end
21
20
 
22
21
  context = Lita.redis.get context_key(response)
data/lita-talk.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-talk"
3
- spec.version = "0.1.0"
3
+ spec.version = "0.1.1"
4
4
  spec.authors = ["fukayatsu"]
5
5
  spec.email = ["fukayatsu@gmail.com"]
6
6
  spec.description = "Talk with you if given message didn't match any other handlers."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-talk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - fukayatsu