lita-onewheel-freds-sound-of-music 0.1.2 → 0.1.3

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: c33f6661a07b36d1f4cf5d17ec785cdbda69f8c0
4
- data.tar.gz: c5b883de1487189af5d3968b33c723916ca743f6
3
+ metadata.gz: f1a8e84c31d94f7802a0193da28b8a1a2d9b7021
4
+ data.tar.gz: 40ce461d383c0c68d5a387a4473844ae86625b8e
5
5
  SHA512:
6
- metadata.gz: 83399d82f65c73ace3ab935a3fe133ef98edb0edd628850e16d6bf08e7163bbb6743787aafef4dfb1528ab954673325c303d6a8b9c12d754c0f84baf7d1718c1
7
- data.tar.gz: 824a8ee4b1c02fe390d221d5b38d2c938da09cb8848df15c3023297d3d5cbc551193b3b186e77836baa7d5ccab59d5d184745a70643e147f87f0aac2c9b20264
6
+ metadata.gz: 5fb4cd76d4101f807b6632cde68d0b80d63c0fee8ff968158ee23bd789ba563939c831c9adb00ca445b72e2c0420bdd128cd60f748ae23a322b53c9a53885a63
7
+ data.tar.gz: f38c6f972b7569468f283b6946860244564446afe11f4d126598c3c52c159d3d18382418a257b0f358d501a2c51f51b1fe4c0ac946e1316dd0a184ecd878a63d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lita-onewheel-freds-sound-of-music (0.1.2)
4
+ lita-onewheel-freds-sound-of-music (0.1.3)
5
5
  lita (~> 4)
6
6
  nokogiri (~> 1)
7
7
  rest-client (~> 1)
@@ -55,7 +55,7 @@ module Lita
55
55
  def format_output(response, records)
56
56
  records.each do |rec|
57
57
  query = "#{rec[:brand]} #{rec[:model]}".gsub /\s+/, '+'
58
- reply = "#{rec[:brand]} #{rec[:model]} was $#{rec[:was_new]}, now $#{rec[:price]} https://google.com/?q=#{query}"
58
+ reply = "#{rec[:brand]} #{rec[:model]} was $#{rec[:was_new]}, now $#{rec[:price]} https://www.google.com/#q=#{query}"
59
59
  Lita.logger.info "Responding with: #{reply}"
60
60
  response.reply reply
61
61
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-freds-sound-of-music'
3
- spec.version = '0.1.2'
3
+ spec.version = '0.1.3'
4
4
  spec.authors = ['Andrew Kreps']
5
5
  spec.email = ['andrew.kreps@gmail.com']
6
6
  spec.description = %q{Lita interface to Fred's sound of music used listings.}
@@ -4,7 +4,7 @@ describe Lita::Handlers::OnewheelFredsSoundOfMusic, lita_handler: true do
4
4
  it 'will list the items' do
5
5
  mock_fixture('freds')
6
6
  send_command 'freds '
7
- expect(replies.last).to eq('Yamaha CT-1010 was $385.00, now $299.95 https://google.com/?q=Yamaha+CT-1010')
7
+ expect(replies.last).to eq('Yamaha CT-1010 was $385.00, now $299.95 https://www.google.com/#q=Yamaha+CT-1010')
8
8
  expect(replies.length).to eq(176)
9
9
  end
10
10
 
@@ -12,15 +12,15 @@ describe Lita::Handlers::OnewheelFredsSoundOfMusic, lita_handler: true do
12
12
  mock_fixture('freds')
13
13
  send_command 'freds mx130'
14
14
  expect(replies.length).to eq(1)
15
- expect(replies.last).to eq('Mcintosh MX130 was $4800.00, now $999.95 https://google.com/?q=Mcintosh+MX130')
15
+ expect(replies.last).to eq('Mcintosh MX130 was $4800.00, now $999.95 https://www.google.com/#q=Mcintosh+MX130')
16
16
  end
17
17
 
18
18
  it 'will search for an item by brand' do
19
19
  mock_fixture('freds')
20
20
  send_command 'freds mci'
21
21
  expect(replies.length).to eq(3)
22
- expect(replies[0]).to eq('Mcintosh MX130 was $4800.00, now $999.95 https://google.com/?q=Mcintosh+MX130')
23
- expect(replies[1]).to eq('Mcintosh MC502 was $1200.00, now $895.00 https://google.com/?q=Mcintosh+MC502')
24
- expect(replies.last).to eq('Mcintosh MR80 was $2499.00, now $1295.00 https://google.com/?q=Mcintosh+MR80')
22
+ expect(replies[0]).to eq('Mcintosh MX130 was $4800.00, now $999.95 https://www.google.com/#q=Mcintosh+MX130')
23
+ expect(replies[1]).to eq('Mcintosh MC502 was $1200.00, now $895.00 https://www.google.com/#q=Mcintosh+MC502')
24
+ expect(replies.last).to eq('Mcintosh MR80 was $2499.00, now $1295.00 https://www.google.com/#q=Mcintosh+MR80')
25
25
  end
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-freds-sound-of-music
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps