lita-onewheel-amazon-product 0.4.0 → 0.4.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: ab88f848d78f7700fb32c6b7b85a1511eca6d354
4
- data.tar.gz: 8cf86eea3f9beb0733750018400e0a283f5c19b0
3
+ metadata.gz: 1f61eaa052020577d4a018b888ec8533e0d26c9c
4
+ data.tar.gz: 62d85c52e19acf37d1ce99e40c4268c61f2d7c19
5
5
  SHA512:
6
- metadata.gz: 0612546d206ddead7ef777a3283960dba8eba36aa5b6ffdb8562b25197075074e418050230b94184a19445adc3b39479f2f8cac4a04cc5d9e5e2672272f9da68
7
- data.tar.gz: c2f56a0edfac2234ab54883d46839f15406e51069e4fdf7bf3eb1d1bbf0ca59527ab780689111cd5cebd7b37a6a540f7c248ee0ba8ae14750ea59d227a5cd9d1
6
+ metadata.gz: 1269e67dc65affc554d38d38072caffd8137fbd167a836d69722ff06a14154c30ac4349caafd3f3b09992aaa110b0bd49b719534d0403baaee342da4ad795e28
7
+ data.tar.gz: 08f9e9312026132a424c727fb05e99bc6f6e89ea370bc8a25f33cae3f3707e5b61efe5e9f96bf1124b603744a831219a038fb1972ab4e67b38b028bffcf22bff
@@ -4,7 +4,7 @@ require 'rest-client'
4
4
  module Lita
5
5
  module Handlers
6
6
  class OnewheelAmazonProduct < Handler
7
- route /(http.*amazon.com\/.*\/dp\/.*)\?*/i, :get_amazon_product
7
+ route /(http.*amazon.com\/.*\/*dp\/.*)\?*/i, :get_amazon_product
8
8
 
9
9
  def get_amazon_product(response)
10
10
  description = ''
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-amazon-product'
3
- spec.version = '0.4.0'
3
+ spec.version = '0.4.1'
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.}
@@ -41,4 +41,10 @@ describe Lita::Handlers::OnewheelAmazonProduct, lita_handler: true do
41
41
  send_message ('http://www.amazon.com/Nasco-Infant-Circumcision-Trainer-White/dp/B0083Y0W26')
42
42
  expect(replies.last).to eq('$192.00 Infant Circumcision Trainer, White ')
43
43
  end
44
+
45
+ it 'triggers w/o the leading slug' do
46
+ mock_fixture('infant_circumcision_price')
47
+ send_message ('http://www.amazon.com/dp/B0154LAIQU?psc=1')
48
+ expect(replies.last).to eq('$192.00 Infant Circumcision Trainer, White ')
49
+ end
44
50
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-amazon-product
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-08 00:00:00.000000000 Z
11
+ date: 2016-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  version: '0'
181
181
  requirements: []
182
182
  rubyforge_project:
183
- rubygems_version: 2.5.1
183
+ rubygems_version: 2.4.5.1
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: See above.