lita-onewheel-giphy 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +19 -0
- data/.travis.yml +8 -0
- data/Gemfile +3 -0
- data/README.rst +32 -0
- data/Rakefile +6 -0
- data/lib/lita/handlers/onewheel_giphy.rb +67 -0
- data/lib/lita-onewheel-giphy.rb +12 -0
- data/lita-onewheel-giphy.gemspec +27 -0
- data/spec/fixtures/random_good.json +31 -0
- data/spec/fixtures/search_good.json +135 -0
- data/spec/lita/handlers/onewheel_giphy_spec.rb +32 -0
- data/spec/spec_helper.rb +14 -0
- metadata +187 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ea2ea7e2a2763093662e02bdd541abf30248b4fa
|
4
|
+
data.tar.gz: 67aa14fd8fbf7a57d96418b2808a4d2a51043677
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9a18e8d056fea4a9fb52daae01352ea77101bc174332de26da9a44f1f2c4c9cee08afc3e49eac6a7e99ff6632943f7f629b72a4dd57fc739169f7fce0311c72e
|
7
|
+
data.tar.gz: 6bfdd63047921dca9a2af5795504b3f0e5cf12513c4308146ae5bbd587b377a23d0167659f4efcd2bd1edf5025e46c284f42f6bfbdc24051c8494ba2a2a09aca
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/README.rst
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# lita-onewheel-giphy
|
2
|
+
|
3
|
+
[![Build Status](https://travis-ci.org/onewheelskyward/lita-onewheel-giphy.png?branch=master)](https://travis-ci.org/onewheelskyward/lita-onewheel-giphy)
|
4
|
+
[![Coverage Status](https://coveralls.io/repos/onewheelskyward/lita-onewheel-giphy/badge.png)](https://coveralls.io/r/onewheelskyward/lita-onewheel-giphy)
|
5
|
+
|
6
|
+
Description
|
7
|
+
----
|
8
|
+
Aims to be a complete implementation of the Giphy api. https://github.com/giphy/GiphyAPI
|
9
|
+
|
10
|
+
Installation
|
11
|
+
----
|
12
|
+
Add lita-onewheel-giphy to your Lita instance's Gemfile:
|
13
|
+
|
14
|
+
``gem 'lita-onewheel-giphy'``
|
15
|
+
|
16
|
+
Configuration
|
17
|
+
----
|
18
|
+
api_url: The url of the giphy api (default: http://api.giphy.com/)
|
19
|
+
api_key: The auth key for the API. Check the giphy docs for the open beta key.
|
20
|
+
rating: Limit your results to a specific MPAA-style rating e.g.
|
21
|
+
Usage
|
22
|
+
----
|
23
|
+
Implementation list:
|
24
|
+
- search NOPE
|
25
|
+
- GIF by id NOPE
|
26
|
+
- GIFs by id NOPE
|
27
|
+
- translate NOPE
|
28
|
+
- random NOPE
|
29
|
+
- trending NOPE
|
30
|
+
- stickers (search, translate, random, trending) NOPE NOPE NOPE NOPE
|
31
|
+
|
32
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
require 'pry'
|
2
|
+
require 'rest-client'
|
3
|
+
|
4
|
+
module Lita
|
5
|
+
module Handlers
|
6
|
+
class OnewheelGiphy < Handler
|
7
|
+
config :api_key, required: true
|
8
|
+
config :api_uri, required: true
|
9
|
+
config :rating, default: nil
|
10
|
+
config :limit, default: 25
|
11
|
+
|
12
|
+
route /^giphy$/, :random, command: true
|
13
|
+
route /^giphy\s+(.*)$/, :search, command: true
|
14
|
+
|
15
|
+
def search(response)
|
16
|
+
keywords = response.matches[0][0]
|
17
|
+
uri = get_search_uri(keywords)
|
18
|
+
giphy_data = call_giphy(uri)
|
19
|
+
# binding.pry
|
20
|
+
image = get_first(giphy_data.body)
|
21
|
+
response.reply image
|
22
|
+
end
|
23
|
+
|
24
|
+
def random(response)
|
25
|
+
uri = get_random_uri
|
26
|
+
giphy_data = call_giphy(uri)
|
27
|
+
# binding.pry
|
28
|
+
image = get_image(giphy_data.body)
|
29
|
+
response.reply image
|
30
|
+
end
|
31
|
+
|
32
|
+
def get_search_uri(keywords)
|
33
|
+
# q - search query term or phrase
|
34
|
+
# limit - (optional) number of results to return, maximum 100. Default 25.
|
35
|
+
# offset - (optional) results offset, defaults to 0.
|
36
|
+
# rating - limit results to those rated (y,g, pg, pg-13 or r).
|
37
|
+
# fmt - (optional) return results in html or json format (useful for viewing responses as GIFs to debug/test)
|
38
|
+
config.api_uri + 'search?q=' + URI.encode(keywords) + '&'
|
39
|
+
end
|
40
|
+
|
41
|
+
def get_random_uri()
|
42
|
+
# tag - the GIF tag to limit randomness by
|
43
|
+
# rating - limit results to those rated (y,g, pg, pg-13 or r).
|
44
|
+
# fmt - (optional) return results in html or json format (useful for viewing responses as GIFs to debug/test)
|
45
|
+
config.api_uri + 'random?' #?q=' + URI.encode(keywords)
|
46
|
+
end
|
47
|
+
|
48
|
+
def get_first(data)
|
49
|
+
image_data = JSON.parse(data)
|
50
|
+
# binding.pry
|
51
|
+
image_data['data'][0]['images']['original']['url']
|
52
|
+
end
|
53
|
+
|
54
|
+
def get_image(data)
|
55
|
+
image_data = JSON.parse(data)
|
56
|
+
# binding.pry
|
57
|
+
image_data['data']['image_original_url']
|
58
|
+
end
|
59
|
+
|
60
|
+
def call_giphy(uri)
|
61
|
+
RestClient.get uri + 'api_key=' + config.api_key
|
62
|
+
end
|
63
|
+
|
64
|
+
Lita.register_handler(self)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'lita'
|
2
|
+
|
3
|
+
Lita.load_locales Dir[File.expand_path(
|
4
|
+
File.join('..', '..', 'locales', '*.yml'), __FILE__
|
5
|
+
)]
|
6
|
+
|
7
|
+
require 'lita/handlers/onewheel_giphy'
|
8
|
+
|
9
|
+
Lita::Handlers::OnewheelGiphy.template_root File.expand_path(
|
10
|
+
File.join('..', '..', 'templates'),
|
11
|
+
__FILE__
|
12
|
+
)
|
@@ -0,0 +1,27 @@
|
|
1
|
+
Gem::Specification.new do |spec|
|
2
|
+
spec.name = 'lita-onewheel-giphy'
|
3
|
+
spec.version = '0.0.0'
|
4
|
+
spec.authors = ['Andrew Kreps']
|
5
|
+
spec.email = ['andrew.kreps@gmail.com']
|
6
|
+
spec.description = 'Lita chat interface to giphy api for MOAR GIFS'
|
7
|
+
spec.summary = 'Aims to be a complete implementation of the Giphy api. https://github.com/giphy/GiphyAPI'
|
8
|
+
spec.homepage = 'https://github.com/onewheelskyward/lita-onewheel-giphy'
|
9
|
+
spec.license = 'MIT'
|
10
|
+
spec.metadata = { 'lita_plugin_type' => 'handler' }
|
11
|
+
|
12
|
+
spec.files = `git ls-files`.split($/)
|
13
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
14
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
15
|
+
spec.require_paths = ['lib']
|
16
|
+
|
17
|
+
spec.add_runtime_dependency 'lita', '~> 4.7'
|
18
|
+
spec.add_runtime_dependency 'rest-client', '~> 1.6'
|
19
|
+
|
20
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
21
|
+
spec.add_development_dependency 'pry-byebug', '~> 3.3'
|
22
|
+
spec.add_development_dependency 'rake', '~> 10.4'
|
23
|
+
spec.add_development_dependency 'rack-test', '~> 0.6'
|
24
|
+
spec.add_development_dependency 'rspec', '~> 3.4'
|
25
|
+
spec.add_development_dependency 'simplecov', '~> 0.11'
|
26
|
+
spec.add_development_dependency 'coveralls', '~> 0.8'
|
27
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
{
|
2
|
+
"data": {
|
3
|
+
"type": "gif",
|
4
|
+
"id": "Ggjwvmqktuvf2",
|
5
|
+
"url": "http://giphy.com/gifs/american-psycho-christian-bale-Ggjwvmqktuvf2",
|
6
|
+
"image_original_url": "http://s3.amazonaws.com/giphygifs/media/Ggjwvmqktuvf2/giphy.gif",
|
7
|
+
"image_url": "http://s3.amazonaws.com/giphygifs/media/Ggjwvmqktuvf2/giphy.gif",
|
8
|
+
"image_mp4_url": "http://s3.amazonaws.com/giphygifs/media/Ggjwvmqktuvf2/giphy.mp4",
|
9
|
+
"image_frames": "11",
|
10
|
+
"image_width": "500",
|
11
|
+
"image_height": "256",
|
12
|
+
"fixed_height_downsampled_url": "http://s3.amazonaws.com/giphygifs/media/Ggjwvmqktuvf2/200_d.gif",
|
13
|
+
"fixed_height_downsampled_width": "391",
|
14
|
+
"fixed_height_downsampled_height": "200",
|
15
|
+
"fixed_width_downsampled_url": "http://s3.amazonaws.com/giphygifs/media/Ggjwvmqktuvf2/200w_d.gif",
|
16
|
+
"fixed_width_downsampled_width": "200",
|
17
|
+
"fixed_width_downsampled_height": "102",
|
18
|
+
"fixed_height_small_url": "http://s3.amazonaws.com/giphygifs/media/Ggjwvmqktuvf2/100.gif",
|
19
|
+
"fixed_height_small_still_url": "http://s3.amazonaws.com/giphygifs/media/Ggjwvmqktuvf2/100_s.gif",
|
20
|
+
"fixed_height_small_width": "195",
|
21
|
+
"fixed_height_small_height": "100",
|
22
|
+
"fixed_width_small_url": "http://s3.amazonaws.com/giphygifs/media/Ggjwvmqktuvf2/100w.gif",
|
23
|
+
"fixed_width_small_still_url": "http://s3.amazonaws.com/giphygifs/media/Ggjwvmqktuvf2/100w_s.gif",
|
24
|
+
"fixed_width_small_width": "100",
|
25
|
+
"fixed_width_small_height": "51"
|
26
|
+
},
|
27
|
+
"meta": {
|
28
|
+
"status": 200,
|
29
|
+
"msg": "OK"
|
30
|
+
}
|
31
|
+
}
|
@@ -0,0 +1,135 @@
|
|
1
|
+
{
|
2
|
+
"data": [
|
3
|
+
{
|
4
|
+
"type": "gif",
|
5
|
+
"id": "FiGiRei2ICzzG",
|
6
|
+
"url": "http://giphy.com/gifs/funny-cat-FiGiRei2ICzzG",
|
7
|
+
"bitly_gif_url": "http://gph.is/1fIdLOl",
|
8
|
+
"bitly_url": "http://gph.is/1fIdLOl",
|
9
|
+
"embed_url": "http://giphy.com/embed/FiGiRei2ICzzG",
|
10
|
+
"username": "",
|
11
|
+
"source": "http://tumblr.com",
|
12
|
+
"rating": "g",
|
13
|
+
"caption": "",
|
14
|
+
"content_url": "",
|
15
|
+
"import_datetime": "2014-01-18 09:14:20",
|
16
|
+
"trending_datetime": "1970-01-01 00:00:00",
|
17
|
+
"images": {
|
18
|
+
"fixed_height": {
|
19
|
+
"url": "http://media2.giphy.com/media/FiGiRei2ICzzG/200.gif",
|
20
|
+
"width": "568",
|
21
|
+
"height": "200",
|
22
|
+
"size": "460622",
|
23
|
+
"mp4": "http://media2.giphy.com/media/FiGiRei2ICzzG/200.mp4",
|
24
|
+
"mp4_size": "13866",
|
25
|
+
"webp": "http://media2.giphy.com/media/FiGiRei2ICzzG/200.webp",
|
26
|
+
"webp_size": "367786"
|
27
|
+
},
|
28
|
+
"fixed_height_still": {
|
29
|
+
"url": "http://media2.giphy.com/media/FiGiRei2ICzzG/200_s.gif",
|
30
|
+
"width": "568",
|
31
|
+
"height": "200"
|
32
|
+
},
|
33
|
+
"fixed_height_downsampled": {
|
34
|
+
"url": "http://media2.giphy.com/media/FiGiRei2ICzzG/200_d.gif",
|
35
|
+
"width": "568",
|
36
|
+
"height": "200",
|
37
|
+
"size": "476276",
|
38
|
+
"webp": "http://media2.giphy.com/media/FiGiRei2ICzzG/200_d.webp",
|
39
|
+
"webp_size": "100890"
|
40
|
+
},
|
41
|
+
"fixed_width": {
|
42
|
+
"url": "http://media2.giphy.com/media/FiGiRei2ICzzG/200w.gif",
|
43
|
+
"width": "200",
|
44
|
+
"height": "70",
|
45
|
+
"size": "90483",
|
46
|
+
"mp4": "http://media2.giphy.com/media/FiGiRei2ICzzG/200w.mp4",
|
47
|
+
"mp4_size": "14238",
|
48
|
+
"webp": "http://media2.giphy.com/media/FiGiRei2ICzzG/200w.webp",
|
49
|
+
"webp_size": "47302"
|
50
|
+
},
|
51
|
+
"fixed_width_still": {
|
52
|
+
"url": "http://media2.giphy.com/media/FiGiRei2ICzzG/200w_s.gif",
|
53
|
+
"width": "200",
|
54
|
+
"height": "70"
|
55
|
+
},
|
56
|
+
"fixed_width_downsampled": {
|
57
|
+
"url": "http://media2.giphy.com/media/FiGiRei2ICzzG/200w_d.gif",
|
58
|
+
"width": "200",
|
59
|
+
"height": "70",
|
60
|
+
"size": "71069",
|
61
|
+
"webp": "http://media2.giphy.com/media/FiGiRei2ICzzG/200w_d.webp",
|
62
|
+
"webp_size": "13186"
|
63
|
+
},
|
64
|
+
"fixed_height_small": {
|
65
|
+
"url": "http://media2.giphy.com/media/FiGiRei2ICzzG/100.gif",
|
66
|
+
"width": "284",
|
67
|
+
"height": "100",
|
68
|
+
"size": "460622",
|
69
|
+
"webp": "http://media2.giphy.com/media/FiGiRei2ICzzG/100.webp",
|
70
|
+
"webp_size": "72748"
|
71
|
+
},
|
72
|
+
"fixed_height_small_still": {
|
73
|
+
"url": "http://media2.giphy.com/media/FiGiRei2ICzzG/100_s.gif",
|
74
|
+
"width": "284",
|
75
|
+
"height": "100"
|
76
|
+
},
|
77
|
+
"fixed_width_small": {
|
78
|
+
"url": "http://media2.giphy.com/media/FiGiRei2ICzzG/100w.gif",
|
79
|
+
"width": "100",
|
80
|
+
"height": "35",
|
81
|
+
"size": "90483",
|
82
|
+
"webp": "http://media2.giphy.com/media/FiGiRei2ICzzG/100w.webp",
|
83
|
+
"webp_size": "18298"
|
84
|
+
},
|
85
|
+
"fixed_width_small_still": {
|
86
|
+
"url": "http://media2.giphy.com/media/FiGiRei2ICzzG/100w_s.gif",
|
87
|
+
"width": "100",
|
88
|
+
"height": "35"
|
89
|
+
},
|
90
|
+
"downsized": {
|
91
|
+
"url": "http://media2.giphy.com/media/FiGiRei2ICzzG/giphy.gif",
|
92
|
+
"width": "500",
|
93
|
+
"height": "176",
|
94
|
+
"size": "426811"
|
95
|
+
},
|
96
|
+
"downsized_still": {
|
97
|
+
"url": "http://media2.giphy.com/media/FiGiRei2ICzzG/giphy_s.gif",
|
98
|
+
"width": "500",
|
99
|
+
"height": "176"
|
100
|
+
},
|
101
|
+
"downsized_large": {
|
102
|
+
"url": "http://media2.giphy.com/media/FiGiRei2ICzzG/giphy.gif",
|
103
|
+
"width": "500",
|
104
|
+
"height": "176",
|
105
|
+
"size": "426811"
|
106
|
+
},
|
107
|
+
"original": {
|
108
|
+
"url": "http://media2.giphy.com/media/FiGiRei2ICzzG/giphy.gif",
|
109
|
+
"width": "500",
|
110
|
+
"height": "176",
|
111
|
+
"size": "426811",
|
112
|
+
"frames": "22",
|
113
|
+
"mp4": "http://media2.giphy.com/media/FiGiRei2ICzzG/giphy.mp4",
|
114
|
+
"mp4_size": "51432",
|
115
|
+
"webp": "http://media2.giphy.com/media/FiGiRei2ICzzG/giphy.webp",
|
116
|
+
"webp_size": "291616"
|
117
|
+
},
|
118
|
+
"original_still": {
|
119
|
+
"url": "http://media2.giphy.com/media/FiGiRei2ICzzG/giphy_s.gif",
|
120
|
+
"width": "500",
|
121
|
+
"height": "176"
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
125
|
+
],
|
126
|
+
"meta": {
|
127
|
+
"status": 200,
|
128
|
+
"msg": "OK"
|
129
|
+
},
|
130
|
+
"pagination": {
|
131
|
+
"total_count": 1947,
|
132
|
+
"count": 25,
|
133
|
+
"offset": 0
|
134
|
+
}
|
135
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Lita::Handlers::OnewheelGiphy, lita_handler: true do
|
4
|
+
|
5
|
+
before(:each) do
|
6
|
+
registry.configure do |config|
|
7
|
+
config.handlers.onewheel_giphy.api_uri = ''
|
8
|
+
config.handlers.onewheel_giphy.api_key = ''
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
it { is_expected.to route_command('giphy') }
|
13
|
+
|
14
|
+
it 'gets a giphy by string keywords' do
|
15
|
+
mock_fixture('search_good')
|
16
|
+
send_command 'giphy wat'
|
17
|
+
expect(replies.last).to eq('http://media2.giphy.com/media/FiGiRei2ICzzG/giphy.gif')
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'gets a random giphy' do
|
21
|
+
mock_fixture('random_good')
|
22
|
+
send_command 'giphy'
|
23
|
+
expect(replies.last).to eq('http://s3.amazonaws.com/giphygifs/media/Ggjwvmqktuvf2/giphy.gif')
|
24
|
+
end
|
25
|
+
|
26
|
+
def mock_fixture(fixture)
|
27
|
+
mock_json = File.open("spec/fixtures/#{fixture}.json").read
|
28
|
+
response = double
|
29
|
+
allow(response).to receive(:body).and_return(mock_json)
|
30
|
+
allow(RestClient).to receive(:get) { response }
|
31
|
+
end
|
32
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'simplecov'
|
2
|
+
require 'coveralls'
|
3
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
4
|
+
SimpleCov::Formatter::HTMLFormatter,
|
5
|
+
Coveralls::SimpleCov::Formatter
|
6
|
+
]
|
7
|
+
SimpleCov.start { add_filter '/spec/' }
|
8
|
+
|
9
|
+
require 'lita-onewheel-giphy'
|
10
|
+
require 'lita/rspec'
|
11
|
+
|
12
|
+
# A compatibility mode is provided for older plugins upgrading from Lita 3. Since this plugin
|
13
|
+
# was generated with Lita 4, the compatibility mode should be left disabled.
|
14
|
+
Lita.version_3_compatibility_mode = false
|
metadata
ADDED
@@ -0,0 +1,187 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lita-onewheel-giphy
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Andrew Kreps
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-01-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: lita
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.7'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.7'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rest-client
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.6'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.6'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.3'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.3'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry-byebug
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.3'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.3'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '10.4'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '10.4'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rack-test
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.6'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.6'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.4'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '3.4'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: simplecov
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.11'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.11'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: coveralls
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0.8'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0.8'
|
139
|
+
description: Lita chat interface to giphy api for MOAR GIFS
|
140
|
+
email:
|
141
|
+
- andrew.kreps@gmail.com
|
142
|
+
executables: []
|
143
|
+
extensions: []
|
144
|
+
extra_rdoc_files: []
|
145
|
+
files:
|
146
|
+
- ".gitignore"
|
147
|
+
- ".travis.yml"
|
148
|
+
- Gemfile
|
149
|
+
- README.rst
|
150
|
+
- Rakefile
|
151
|
+
- lib/lita-onewheel-giphy.rb
|
152
|
+
- lib/lita/handlers/onewheel_giphy.rb
|
153
|
+
- lita-onewheel-giphy.gemspec
|
154
|
+
- spec/fixtures/random_good.json
|
155
|
+
- spec/fixtures/search_good.json
|
156
|
+
- spec/lita/handlers/onewheel_giphy_spec.rb
|
157
|
+
- spec/spec_helper.rb
|
158
|
+
homepage: https://github.com/onewheelskyward/lita-onewheel-giphy
|
159
|
+
licenses:
|
160
|
+
- MIT
|
161
|
+
metadata:
|
162
|
+
lita_plugin_type: handler
|
163
|
+
post_install_message:
|
164
|
+
rdoc_options: []
|
165
|
+
require_paths:
|
166
|
+
- lib
|
167
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
168
|
+
requirements:
|
169
|
+
- - ">="
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
version: '0'
|
172
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
173
|
+
requirements:
|
174
|
+
- - ">="
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: '0'
|
177
|
+
requirements: []
|
178
|
+
rubyforge_project:
|
179
|
+
rubygems_version: 2.4.5.1
|
180
|
+
signing_key:
|
181
|
+
specification_version: 4
|
182
|
+
summary: Aims to be a complete implementation of the Giphy api. https://github.com/giphy/GiphyAPI
|
183
|
+
test_files:
|
184
|
+
- spec/fixtures/random_good.json
|
185
|
+
- spec/fixtures/search_good.json
|
186
|
+
- spec/lita/handlers/onewheel_giphy_spec.rb
|
187
|
+
- spec/spec_helper.rb
|