lita-onewheel-election-cnn 4.0.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3cfd9312eff26cc858a1dd7e850107f1429ee034
4
- data.tar.gz: 5bab20aed3c54282affaeedbf0c9a7a549ef8414
3
+ metadata.gz: 81a458455ba80ce25bc718f79e5c8cab3d43c0f8
4
+ data.tar.gz: 8bed484304b946d059aca91831e7da22cb836b0a
5
5
  SHA512:
6
- metadata.gz: 965381dc7d4017543ad543022469fb5698098507aeb69e57a718d458e499f0843e03d03f1ab3d0eea666e03616107805294c1c23f60905a0698b04d8adae744e
7
- data.tar.gz: 3329e9110c6fbab09dbb46f94d6e5782d9d603022d93849163ea2336327a2f4f810244718a92d2f533ca7a015d64b6c289bc0eed6d37c96335373dae7a134284
6
+ metadata.gz: e8b3a5d9d38cc311594f28d19da86c8044d085eacda468f00957de31dd9c71130ed610929dd35b7bed965957183218345ca5bf7c0260dbe80a4f9cbb57607b00
7
+ data.tar.gz: 17cc214ccfba1b752c09017becf62836250912adfb87def2eef561367d72e28d9664962719b094c43b5c39e5b5e6acc1e42151ebaa2d6f2a93cb647c23cf3f00
@@ -57,7 +57,7 @@ module Lita
57
57
  (50 - bluecount - redcount).times { blueredstr += '-' }
58
58
  blueredstr += "\x0304"
59
59
  redcount.times { blueredstr += '█' }
60
- response.reply "Clinton #{votes['blue']['percentage']}% #{votes['blue']['popular']} |#{blueredstr}| Trump #{votes['blue']['percentage']}% #{votes['blue']['popular']}"
60
+ response.reply "Clinton #{votes['blue']['percentage']}% #{votes['blue']['popular']} |#{blueredstr}\x0300| Trump #{votes['blue']['percentage']}% #{votes['blue']['popular']}"
61
61
  end
62
62
 
63
63
  def election_by_state(response)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-election-cnn'
3
- spec.version = '4.0.0'
3
+ spec.version = '4.0.1'
4
4
  spec.authors = ['Andrew Kreps']
5
5
  spec.email = ['andrew.kreps@gmail.com']
6
6
  spec.description = %q{Lita interface to CNN's 2016 Presidential Election JSON.}
@@ -12,7 +12,7 @@ describe Lita::Handlers::OnewheelElectionCnn, lita_handler: true do
12
12
  allow(RestClient).to receive(:get) { mock }
13
13
  send_command 'election'
14
14
  expect(replies[0]).to eq("United States 2016 Presidential Election, 1% reporting.")
15
- expect(replies[1]).to eq("Clinton 0.0% 0 |\u000312\u000300--------------------------------------------------\u000304| Trump 0.0% 0")
15
+ expect(replies[1]).to eq("Clinton 0.0% 0 |\u000312\u000300--------------------------------------------------\u000304\u000300| Trump 0.0% 0")
16
16
  end
17
17
 
18
18
  it 'shows a winner' do
@@ -20,7 +20,7 @@ describe Lita::Handlers::OnewheelElectionCnn, lita_handler: true do
20
20
  allow(RestClient).to receive(:get) { mock }
21
21
  send_command 'election'
22
22
  expect(replies[0]).to eq("United States 2016 Presidential Election, 1% reporting.")
23
- expect(replies[1]).to eq("Clinton 0.0% 0 |\u000312\u000300--------------------------------------------------\u000304| Trump 0.0% 0")
23
+ expect(replies[1]).to eq("Clinton 0.0% 0 |\u000312\u000300--------------------------------------------------\u000304\u000300| Trump 0.0% 0")
24
24
  end
25
25
 
26
26
  it 'shows by state' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-election-cnn
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps