lita-onewheel-giphy 0.0.0 → 0.0.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: ea2ea7e2a2763093662e02bdd541abf30248b4fa
4
- data.tar.gz: 67aa14fd8fbf7a57d96418b2808a4d2a51043677
3
+ metadata.gz: 0d10d512ce69617b184b6d25b09ed9d0e33a293a
4
+ data.tar.gz: cb9cd263f423fd32bd470faee6e8031f3653b7bb
5
5
  SHA512:
6
- metadata.gz: 9a18e8d056fea4a9fb52daae01352ea77101bc174332de26da9a44f1f2c4c9cee08afc3e49eac6a7e99ff6632943f7f629b72a4dd57fc739169f7fce0311c72e
7
- data.tar.gz: 6bfdd63047921dca9a2af5795504b3f0e5cf12513c4308146ae5bbd587b377a23d0167659f4efcd2bd1edf5025e46c284f42f6bfbdc24051c8494ba2a2a09aca
6
+ metadata.gz: cf027904217afe14dfd87df72f11b0822f355fbfc4a4c888872bcfe1f64155d6d6600233d697a4d1863b100b2b876b4e0545a37746afd2d57c4df8f79442b018
7
+ data.tar.gz: 3974c76851f7c7c7c5edd64fa79cb4496a3974b0d102609f30b9d364a9492c95ac0f5c66047af44d8950bac133cba05686d40c31e7c49052eafafb59132d249a
@@ -1,4 +1,3 @@
1
- require 'pry'
2
1
  require 'rest-client'
3
2
 
4
3
  module Lita
@@ -16,7 +15,6 @@ module Lita
16
15
  keywords = response.matches[0][0]
17
16
  uri = get_search_uri(keywords)
18
17
  giphy_data = call_giphy(uri)
19
- # binding.pry
20
18
  image = get_first(giphy_data.body)
21
19
  response.reply image
22
20
  end
@@ -24,7 +22,6 @@ module Lita
24
22
  def random(response)
25
23
  uri = get_random_uri
26
24
  giphy_data = call_giphy(uri)
27
- # binding.pry
28
25
  image = get_image(giphy_data.body)
29
26
  response.reply image
30
27
  end
@@ -47,13 +44,11 @@ module Lita
47
44
 
48
45
  def get_first(data)
49
46
  image_data = JSON.parse(data)
50
- # binding.pry
51
47
  image_data['data'][0]['images']['original']['url']
52
48
  end
53
49
 
54
50
  def get_image(data)
55
51
  image_data = JSON.parse(data)
56
- # binding.pry
57
52
  image_data['data']['image_original_url']
58
53
  end
59
54
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-giphy'
3
- spec.version = '0.0.0'
3
+ spec.version = '0.0.1'
4
4
  spec.authors = ['Andrew Kreps']
5
5
  spec.email = ['andrew.kreps@gmail.com']
6
6
  spec.description = 'Lita chat interface to giphy api for MOAR GIFS'
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.add_runtime_dependency 'rest-client', '~> 1.6'
19
19
 
20
20
  spec.add_development_dependency 'bundler', '~> 1.3'
21
- spec.add_development_dependency 'pry-byebug', '~> 3.3'
21
+ # spec.add_development_dependency 'pry-byebug', '~> 3.3'
22
22
  spec.add_development_dependency 'rake', '~> 10.4'
23
23
  spec.add_development_dependency 'rack-test', '~> 0.6'
24
24
  spec.add_development_dependency 'rspec', '~> 3.4'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-giphy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
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
55
  - !ruby/object:Gem::Dependency
70
56
  name: rake
71
57
  requirement: !ruby/object:Gem::Requirement