lita-onewheel-images 0.5.0 → 0.6.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41fb0f3c41ea2c793e32fb450b67c7a14aa411f7d376cd3b989bdfc760d93c12
|
4
|
+
data.tar.gz: 13c0a3829c18733c99894a5a6d63ff4cbf62284fe24fcc4bfc2e107452ec8028
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa7c4ac99144f8c0ef6b6bf7203feaf15ace994de608f84c4059846ceff1b0fc649ed4e6383890e481f643ea2c73d71d60b6fd8b3d7f8df3ff0cc6c448253b5a
|
7
|
+
data.tar.gz: 765864e993601d61b8dae6da2bd1d56f119c267d93b7e935dfb40bac2c1754574f97e3daf7a6d8fa367b4b6c4a160f1b89471996bff487fb5d4c83dd76c02fba
|
@@ -12,7 +12,7 @@ module Lita
|
|
12
12
|
route /^image\s+(.*)$/i, :image, command: true
|
13
13
|
route /^img\s+(.*)$/i, :image, command: true
|
14
14
|
route /^giphy\s+(.*)$/i, :giphy, command: true
|
15
|
-
route /^
|
15
|
+
route /^gi(f|t)\s+(.*)$/i, :giphy, command: true
|
16
16
|
|
17
17
|
def image(response)
|
18
18
|
query = response.matches[0][0]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'lita-onewheel-images'
|
3
|
-
spec.version = '0.
|
3
|
+
spec.version = '0.6.0'
|
4
4
|
spec.authors = ['Andrew Kreps']
|
5
5
|
spec.email = ['andrew.kreps@gmail.com']
|
6
6
|
spec.description = 'An implementation of Google Custom Search Engine for image searches in chat.'
|
@@ -17,6 +17,8 @@ describe Lita::Handlers::OnewheelImages, lita_handler: true do
|
|
17
17
|
|
18
18
|
it { is_expected.to route_command('image something') }
|
19
19
|
it { is_expected.to route_command('giphy something') }
|
20
|
+
it { is_expected.to route_command('gif something') }
|
21
|
+
it { is_expected.to route_command('git something') }
|
20
22
|
|
21
23
|
it 'does neat imagey things' do
|
22
24
|
mock_it_up('mock_result')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-onewheel-images
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kreps
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
- !ruby/object:Gem::Version
|
165
165
|
version: '0'
|
166
166
|
requirements: []
|
167
|
-
rubygems_version: 3.
|
167
|
+
rubygems_version: 3.1.2
|
168
168
|
signing_key:
|
169
169
|
specification_version: 4
|
170
170
|
summary: CSE Details to follow
|