lita-kintai 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: 348f5128d0cb518dc51f45824ede2d91e5f7b2e1
4
- data.tar.gz: 3bbc13945826f589dc0041423eb1be635b44b931
3
+ metadata.gz: 51757bc4893f7764ff3f18999e8ba68914117350
4
+ data.tar.gz: f7abc3e8386f957d371a48973967ecd709908fb9
5
5
  SHA512:
6
- metadata.gz: 6481e6aa3b2e772abcedf263a5cd0b54701b890de0e1d658c4cc3a1490a9bae308e5c89145aa90da1e5a58e992ed751f4d31940d9bc242fc34291faec3c058dd
7
- data.tar.gz: e50ce592ff826485b8908d976b060d01708b244afa457d0b505868df0f7213319ef1e7cab00c94a661bc051583c1fb090907d1daf590ca39562246c7bdd4d82e
6
+ metadata.gz: 8c346bd6552ecad1badb002777294497a4f347e84b9cb5395ecf0c1b3ae2a4ad4e73379320e4e3f580ecd3f57a2670852127febbf76b389be7671dc44dd7c36e
7
+ data.tar.gz: a3b1aee8c2db55041704a7d317d6541a7d1eb12032a931e2e70ea2eef389c9ebca606a6a148d57253842b4ff314ae352c399bafec286f07e44eefd301283d316
@@ -12,8 +12,8 @@ module Lita
12
12
  config :template_header, type: String, default: ''
13
13
  config :template_footer, type: String, default: ''
14
14
 
15
- route(/kintai/i, :kintai)
16
- route(/^code\s+(.+)/, :code)
15
+ route /kintai/i, :kintai, command: true
16
+ route /^code\s+(.+)/, :code, command: true
17
17
 
18
18
  OOB_URI = 'urn:ietf:wg:oauth:2.0:oob'
19
19
  APPLICATION_NAME = 'Lita Kintai'
data/lita-kintai.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-kintai"
3
- spec.version = "0.1.0"
3
+ spec.version = "0.1.1"
4
4
  spec.authors = ["Shoma SATO"]
5
5
  spec.email = ["noir.neo.04@gmail.com"]
6
6
  spec.description = "A lita handler for summarize attendance emails. Fuckin' legacy attendance management method by email!"
@@ -1,10 +1,10 @@
1
1
  require "spec_helper"
2
2
 
3
3
  describe Lita::Handlers::Kintai, lita_handler: true do
4
- it { is_expected.to route('kintai') }
5
- it { is_expected.to route('kintai').to(:kintai) }
6
- it { is_expected.to route('code 012abc') }
7
- it { is_expected.to route('code 012abc').to(:code) }
4
+ it { is_expected.to route_command('kintai') }
5
+ it { is_expected.to route_command('kintai').to(:kintai) }
6
+ it { is_expected.to route_command('code 012abc') }
7
+ it { is_expected.to route_command('code 012abc').to(:code) }
8
8
 
9
9
  describe '#kintai' do
10
10
  context 'when authenticated' do
@@ -23,7 +23,7 @@ describe Lita::Handlers::Kintai, lita_handler: true do
23
23
  end
24
24
 
25
25
  it 'returns kintai list' do
26
- send_message('kintai')
26
+ send_command('kintai')
27
27
  expect(replies.last).not_to be_nil
28
28
  end
29
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-kintai
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
  - Shoma SATO