lita-onewheel-twitter-photo 0.1.2 → 0.2.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
  SHA1:
3
- metadata.gz: 26d1ee76f37d142256f3dc8af6725a5261736012
4
- data.tar.gz: '09c50fb5d9fe3c066969b1d61b2ba2a18c200402'
3
+ metadata.gz: 3995a9ec01ab27dae74245a0f77a289757afe717
4
+ data.tar.gz: ba3e3763dbd8c8bbae1777be3b8586a201f8e02a
5
5
  SHA512:
6
- metadata.gz: ff9c2e0ac213ea263fe7b0cd61b53884ac14b39a6737813d35a3cbe714c87b2192659bc326fcdb9f78c260d98566b44c18936b145a917c37fbebdceb26141c23
7
- data.tar.gz: 85b900758bad81bbd552f98a8742aea5fae6782833d795af96fecc6e540d02fd2798640e5ae9742d317659618e426f9eed837ec6ec74acf8e57c05f7930af3ac
6
+ metadata.gz: 50f6c0358aef257c6c26c994b15a734544100291e0fd6a9a35b769f7476b1cf9ea9278745cb50157064c6b259bd4bb0b7e8344f3608fde989e8232b19f59cc98
7
+ data.tar.gz: a692bcfccaa4bf589a69f6eb70fd3e40d6ff721b8a39b662ce44847c045894d44101e90840251222a2bc7a43abd20ef258a6b7979bf21f96f241f1e10ff5b8c7
@@ -32,6 +32,7 @@ module Lita
32
32
  title = noko_doc.xpath('//title').text.to_s
33
33
  Lita.logger.debug title
34
34
  response.reply title
35
+ get_twitter_photo(response)
35
36
  end
36
37
  end
37
38
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-twitter-photo'
3
- spec.version = '0.1.2'
3
+ spec.version = '0.2.0'
4
4
  spec.authors = ['Andrew Kreps']
5
5
  spec.email = ['andrew.kreps@gmail.com']
6
6
  spec.description = %q{Lita interface to post links to twitter photos.}
@@ -13,7 +13,8 @@ describe Lita::Handlers::OnewheelTwitterPhoto, lita_handler: true do
13
13
  # end
14
14
  it 'gets text' do
15
15
  mock_fixture('sample')
16
- send_message ('https://twitter.com/th3fallen/status/689501399084855297')
17
- expect(replies.last).to eq('Gavin Joyce on Twitter: "It sounds crazy, but disabling npm\'s progress bar yields a 2x npm install speed improvement for me https://t.co/ChXxSepCBK"')
16
+ send_message('https://twitter.com/th3fallen/status/689501399084855297')
17
+ expect(replies[0]).to eq('Gavin Joyce on Twitter: "It sounds crazy, but disabling npm\'s progress bar yields a 2x npm install speed improvement for me https://t.co/ChXxSepCBK"')
18
+ expect(replies[1]).to eq('https://pbs.twimg.com/media/CZmsv0SWYAAaO1N.png')
18
19
  end
19
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-twitter-photo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.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: 2017-09-23 00:00:00.000000000 Z
11
+ date: 2017-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita