lita-onewheel-filmplot 0.1.0 → 0.1.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
  SHA256:
3
- metadata.gz: 015d87a547242abace2df04bc11022d8868cc56226bab10022be706bc8935265
4
- data.tar.gz: 34999c17449f39b45c5eb4fde6ab1a278786f1443f4eded6d1b209e2da8c3067
3
+ metadata.gz: 7ba14487281b43baae4fa6e02968b21a12399f835319fd3f59af4298b821d7d2
4
+ data.tar.gz: f65af2e6b2ced681951692fc4e06165022826ca0e869e521ec5bf43d037d7dda
5
5
  SHA512:
6
- metadata.gz: c9b12ae6a0f005f998b5a79c3a952d5b73a16e310ea0a3e6c6a53c6a31202173a2a40026d862e6badb2dfc3913ecb371e702a3941b0d37c76aa7912c592dd0f0
7
- data.tar.gz: 384e83cc3d05214d546647b80a5fe42e1538bbdcd7ee143c3ca06c0c3ff19668a6666291838e1d281af9233384fdddc7c5e13c414676eb2fb24026d7d9969717
6
+ metadata.gz: 5d8cf506c0f88ddd96f72d8b7ec4ef531be56f646303db3095c27eac2aef3be16beb7e75e4a120d62319f4171cfa4580bfcb0577ca22357ba6978fbb05100865
7
+ data.tar.gz: f30a7f490d352c9bb985899c6c198bb6f6c1f1c3acd22c38849b688fd77ef888f13e7570f2ee0987c32ef00c07d6e39b78b78cc3cf9d7e13a53a24d1d6071d6f
@@ -41,6 +41,11 @@ module Lita
41
41
  Lita.logger.debug("Getting #{get_url}")
42
42
  end
43
43
 
44
+ unless get_url
45
+ response.reply "#{title} not found, did you try typing it in as it was at the theatres? e.g. 'Blade Runner'"
46
+ return
47
+ end
48
+
44
49
  begin
45
50
  r = RestClient.get(get_url)
46
51
  noko_doc = Nokogiri::HTML(r)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-filmplot'
3
- spec.version = '0.1.0'
3
+ spec.version = '0.1.1'
4
4
  spec.authors = ['Andrew Kreps']
5
5
  spec.email = ['andrew.kreps@gmail.com']
6
6
  spec.description = 'Film plot retrieval bot.'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-filmplot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps