lita-onewheel-duckduckgo 0.0.3 → 0.0.4

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
- SHA1:
3
- metadata.gz: ef6ce837c854cc9f942c752aba43873ae289ad42
4
- data.tar.gz: b5412c082c44f1ed56b100dbbed06b2957e48f41
2
+ SHA256:
3
+ metadata.gz: 40b28be713ad1ab41bcc3dc12ed8cd890e9776c7be42d219142183c9fbf7e02d
4
+ data.tar.gz: 7646e32e0269bf82254aae92ffab9708e1ecdd213ae02e9791c09cf89d520bed
5
5
  SHA512:
6
- metadata.gz: 2e0632ffabcc66af4257f174197740f5a0f490ed437b0597e98de82fa78eb818f27dcef3c0186ecfa93b3c80365cc5656bb1e25ed4ca9cf94ef87c43399731be
7
- data.tar.gz: d55126cd628a5bc1b51c4f274597de390698922e6154c918c68b98b87ccdd6468f0d32196e7da752cd969ec32e183081b24ad30be8875e6c3efd8de4014c3821
6
+ metadata.gz: b8cb8d2d80445508bc19af4ab11c6e94affe3672b70013dcbd9a6275956b6e35effce3e560ade5557ec9b30a7d4b1fa37c3a7fe3cfb2026b5254bb48ab5ddec9
7
+ data.tar.gz: 496333a7a9756c67c4106ec959a0bd1f360752ae8c9c30874ce1a346aa16fba7a0c8fa9a20382753a2f11f8a474b98f69d54efc53b62e06e55476402063ff2e2
@@ -4,6 +4,9 @@ module Lita
4
4
  module Handlers
5
5
  class OnewheelDuckDuckGo < Handler
6
6
  route /^duck\s+(.*)$/, :search, command: true
7
+ route /^quack\s+(.*)$/, :search, command: true
8
+ route /^ddg\s+(.*)$/, :search, command: true
9
+ route /^fuck\s+(.*)$/, :search, command: true
7
10
 
8
11
  def search(response)
9
12
  query = response.matches[0][0]
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-duckduckgo'
3
- spec.version = '0.0.3'
3
+ spec.version = '0.0.4'
4
4
  spec.authors = ['Andrew Kreps']
5
5
  spec.email = ['andrew.kreps@gmail.com']
6
6
  spec.description = 'Lita handler for Duck Duck Go\'s answers engine.'
@@ -12,6 +12,8 @@ describe Lita::Handlers::OnewheelDuckDuckGo, lita_handler: true do
12
12
  end
13
13
 
14
14
  it { is_expected.to route_command('duck something') }
15
+ it { is_expected.to route_command('quack something') }
16
+ it { is_expected.to route_command('ddg something') }
15
17
 
16
18
  it 'does neat ducky things' do
17
19
  mock('mock_result')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-duckduckgo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-16 00:00:00.000000000 Z
11
+ date: 2018-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita
@@ -163,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
163
  version: '0'
164
164
  requirements: []
165
165
  rubyforge_project:
166
- rubygems_version: 2.5.2
166
+ rubygems_version: 2.7.6
167
167
  signing_key:
168
168
  specification_version: 4
169
169
  summary: Duck Duck Goose