lita-onewheel-twitter-photo 0.2.1 → 0.3.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
  SHA256:
3
- metadata.gz: d696c079a4d826954b0f1a64c76c464df46456cc367ffe03d41044184340fed7
4
- data.tar.gz: d658bdcfc55fce6aea30a1e23a5e9ed779b7ef8daf343f818855a8cfd0e84cb6
3
+ metadata.gz: 48c2489e52a478d236b2b5f90936102b3b563352313ea4a458027826b73660a8
4
+ data.tar.gz: 402aaff25da3bedc53d36b2c7b46e89aeef48f22e11e4529758506fb1efc6f0d
5
5
  SHA512:
6
- metadata.gz: c09e0fd6dba5f95a73f60a88add9b08dd82577ba79238155ed2b661fea8f4af81724248bbc0d6bd82ba98ea4d37c90867836372757475295cd7c5cd1a9d381a0
7
- data.tar.gz: 24f337645100c2df2b38df1ec45ca6b97ad7c1e10e4ce0efd0b5f276e62ebfae2cdda97c3d087df0912514639c795f5b3a71d59c3f095069d0aee66a03af2e65
6
+ metadata.gz: b4e382e1f96741c3a8cfb2937a4e5e5b8ce9be28af8a368cc6235ab083f8248ca01ec5e6f4532180b80911d99d235df43efdf32399a76a4905e145b9432743ed
7
+ data.tar.gz: 5e847b4158f8c2d10bb7a6faab79bde24d48074ca8eb68652819a3c92ae3944054896bd0eeea17c5830df076c61625a88c8fc3528b3d2b4388f9881d2f46846c
@@ -28,12 +28,15 @@ module Lita
28
28
  if response.message.source.room == config.room
29
29
  uri = response.matches[0][0]
30
30
  uri.sub! /mobile\./, ''
31
+ Lita.logger.debug "Getting #{uri}"
31
32
  doc = RestClient.get uri
32
33
  noko_doc = Nokogiri::HTML doc
33
34
  title = noko_doc.xpath('//title').text.to_s
34
35
  Lita.logger.debug title
35
36
  response.reply title
36
37
  get_twitter_photo(response)
38
+ else
39
+ Lita.logger.debug "#{response.message.source.room} !== #{config.room}"
37
40
  end
38
41
  end
39
42
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-twitter-photo'
3
- spec.version = '0.2.1'
3
+ spec.version = '0.3.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.}
@@ -14,8 +14,8 @@ Gem::Specification.new do |spec|
14
14
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
15
15
  spec.require_paths = ['lib']
16
16
 
17
- spec.add_runtime_dependency 'lita', '~> 4'
18
- spec.add_runtime_dependency 'rest-client', '~> 1'
17
+ spec.add_runtime_dependency 'lita', '~> 4.4'
18
+ spec.add_runtime_dependency 'rest-client', '~> 2'
19
19
  spec.add_runtime_dependency 'nokogiri', '~> 1'
20
20
 
21
21
  spec.add_development_dependency 'bundler', '~> 1'
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.2.1
4
+ version: 0.3.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: 2018-08-28 00:00:00.000000000 Z
11
+ date: 2019-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4'
19
+ version: '4.4'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4'
26
+ version: '4.4'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rest-client
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1'
33
+ version: '2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1'
40
+ version: '2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: nokogiri
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -175,8 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  - !ruby/object:Gem::Version
176
176
  version: '0'
177
177
  requirements: []
178
- rubyforge_project:
179
- rubygems_version: 2.7.6
178
+ rubygems_version: 3.0.1
180
179
  signing_key:
181
180
  specification_version: 4
182
181
  summary: See above.