lita-giphy 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lita/handlers/giphy.rb +1 -1
- data/lita-giphy.gemspec +1 -1
- data/spec/lita/handlers/giphy_spec.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca91f13646615c843504240c79c10449700ef453
|
4
|
+
data.tar.gz: 10515c2901da5f8e59c5b7c712df2d4b4b1a0bd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 372fe2b01a12837fcfefc14f8d2f012bbb61833f0f9fab0492ec29ac5f92182414ff453f456435fffa6ba01a9f09f9b8b668852ba8a11a7b88703ed7187d5b51
|
7
|
+
data.tar.gz: b6710ad411e3c3dae908591c6be4da3e832b6880f3e4e46a4947c24d2e711a5a321f3e938d22fbb2611bc6dbee312cf0e71b5ed937b2e17bc98c5c575b541717
|
data/lib/lita/handlers/giphy.rb
CHANGED
@@ -4,7 +4,7 @@ module Lita
|
|
4
4
|
class Giphy < Handler
|
5
5
|
URL = "http://api.giphy.com/v1/gifs/search"
|
6
6
|
|
7
|
-
route(/(?:giphy)(?:\s+me)?\s+(.+)/i, :giphy, command: true, help: {
|
7
|
+
route(/(?:giphy|gif|animate)(?:\s+me)?\s+(.+)/i, :giphy, command: true, help: {
|
8
8
|
"giphy QUERY" => "Grabs a gif tagged with QUERY."
|
9
9
|
})
|
10
10
|
|
data/lita-giphy.gemspec
CHANGED
@@ -2,6 +2,8 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe Lita::Handlers::Giphy, lita_handler: true do
|
4
4
|
it { routes_command("giphy swanson dance").to :giphy }
|
5
|
+
it { routes_command("gif swanson dance").to :giphy }
|
6
|
+
it { routes_command("animate swanson dance").to :giphy }
|
5
7
|
|
6
8
|
it "sets the Giphy API key to nil by default" do
|
7
9
|
expect(Lita.config.handlers.giphy.api_key).to be_nil
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-giphy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordan Killpack
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|