lita-onewheel-giphy 0.3.0 → 0.3.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: 97010ddbf7de2d19b3c68120fcdf2147426bc36a
4
- data.tar.gz: 4cd35820d62d6cb8385d05325d6f780e5bb6bc44
3
+ metadata.gz: 10653c1b73e0d351e8a0f2e9520ed1d4f3dcee6a
4
+ data.tar.gz: c673eefe628b7155a6ef2ab70a6327f6b7e9f043
5
5
  SHA512:
6
- metadata.gz: 3a7b6c8500029e148686aafbd65212385e1d5178a1f0e80a5b48650a501c9c36e3090a75fe7c4b8a1792d2089954363c48869e7488e036c370f2147c02edfdf3
7
- data.tar.gz: 3f2868ba00fbcb4701ab7ed65547e96abdced176e674dde3e83517f98b531200d4d963346ad305d606ea9d2f01fc8ebdffd34d0eba8bbe50053099163530b86c
6
+ metadata.gz: 1ec7f04143af9db13afbff26087a37063234cde85bdb4523846e3530c6ce780c6085001890a369865d3556560525e2a7fde9a92eaf495e6bf202a798f54cc7db
7
+ data.tar.gz: d16f5a1811338aabfba7f05ea2b815041dd0db3042df62f8949593d75bfbedcf2a5e375ccabe1e24cc53b1e945bcbb2be24318ad9dd5576ffcd2a3da7e73f87c
@@ -104,7 +104,7 @@ module Lita
104
104
 
105
105
  def get_translate_image(data)
106
106
  image_data = JSON.parse(data)
107
- image_data['data']['url']
107
+ image_data['data']['images']['original']['url']
108
108
  end
109
109
 
110
110
  def call_giphy(uri)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-giphy'
3
- spec.version = '0.3.0'
3
+ spec.version = '0.3.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'
@@ -35,7 +35,7 @@ describe Lita::Handlers::OnewheelGiphy, lita_handler: true do
35
35
  it 'gets a translate giphy' do
36
36
  mock_fixture('translate_good')
37
37
  send_command 'giphytranslate boom'
38
- expect(replies.last).to eq('http://giphy.com/gifs/superman-santa-chandler-bing-wWAIKcFASEFz2')
38
+ expect(replies.last).to eq('http://media0.giphy.com/media/wWAIKcFASEFz2/giphy.gif')
39
39
  end
40
40
 
41
41
  def mock_fixture(fixture)
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.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps