lita-onewheel-amazon-product 0.4.1 → 0.4.2

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: 1f61eaa052020577d4a018b888ec8533e0d26c9c
4
- data.tar.gz: 62d85c52e19acf37d1ce99e40c4268c61f2d7c19
3
+ metadata.gz: e5da8ba0eac25f53bba9f98aaade8629399d59c3
4
+ data.tar.gz: d72144f2cfcea759719014c2d1f01d7f63fe9087
5
5
  SHA512:
6
- metadata.gz: 1269e67dc65affc554d38d38072caffd8137fbd167a836d69722ff06a14154c30ac4349caafd3f3b09992aaa110b0bd49b719534d0403baaee342da4ad795e28
7
- data.tar.gz: 08f9e9312026132a424c727fb05e99bc6f6e89ea370bc8a25f33cae3f3707e5b61efe5e9f96bf1124b603744a831219a038fb1972ab4e67b38b028bffcf22bff
6
+ metadata.gz: b8f62adc62955a72fa75e451cafb3ed90e0921b3b3f7989d30ee6b754e6839e4cffd5ea5096e02f85aa68e57372cf4df34dd70ef6fbefa0d5aadf29c1dd56c49
7
+ data.tar.gz: a77d25e321e357205df661101f0d39bd34358888b65cf2d2969d80ed368243185f124f3ea3287d475f4f6c8ba631944de76da8b967fd9ad9b6208dd9d1a54ff1
@@ -21,7 +21,7 @@ module Lita
21
21
  end
22
22
  end
23
23
 
24
- if description.nil?
24
+ if description.empty?
25
25
  Lita.logger.error "lita-onewheel-amazon-product: Processing of #{uri} failed."
26
26
  return
27
27
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-amazon-product'
3
- spec.version = '0.4.1'
3
+ spec.version = '0.4.2'
4
4
  spec.authors = ['Andrew Kreps']
5
5
  spec.email = ['andrew.kreps@gmail.com']
6
6
  spec.description = %q{Lita interface to post information about amazon products.}
@@ -47,4 +47,10 @@ describe Lita::Handlers::OnewheelAmazonProduct, lita_handler: true do
47
47
  send_message ('http://www.amazon.com/dp/B0154LAIQU?psc=1')
48
48
  expect(replies.last).to eq('$192.00 Infant Circumcision Trainer, White ')
49
49
  end
50
+
51
+ it 'bails on no data' do
52
+ allow(RestClient).to receive(:get) { }
53
+ send_message('http://www.amazon.com/dp/B0154LAIQU?psc=1')
54
+ expect(replies.last).to eq nil
55
+ end
50
56
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-amazon-product
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps