lita-onewheel-election-cnn 3.4.7 → 3.4.8

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: 0aebb53955ae6639a964bee0a4611a97e73a2769
4
- data.tar.gz: 107d838b7d193cf5cf698c65b1fc78cb46a5bd0c
3
+ metadata.gz: a6207ffe93036c086b5bc21b01d157e4b7d19dee
4
+ data.tar.gz: 80fcf5114853b09285d3bdf604484fb962edb67c
5
5
  SHA512:
6
- metadata.gz: 5914027dfa1aaabeeecc33443c67bb5a75fa5ac21d8094ea451fa9d2cb1977ce8877846f5e994abc92af20c1f12a47d157a28d894ca5c30492340728b0f36a89
7
- data.tar.gz: b48e0cbabdf6a4983b0040f83b14fbddaed3085564c79a2d9f7f507c2ab4019a5399a419d7ae6d468da5481c1cabf621b4b7ae1410cd9528a52e7041beb8dc00
6
+ metadata.gz: 3a836b39bd76fdba23ecd7a4ae7f8a00c8034330d0d3a5f9545028941914c3e1e1fd65b82a058af07a150741e90d01bf281a57bdf48f65c62dfff75d72d69f45
7
+ data.tar.gz: db94b775f819fd92a21e4abef0ec15cfd6211c6422069d8d2c3efed5321a3bb7f927c9a2d30ae7dd799f2d1b177c77aa91de66bb59adbe15a35dcdd46886336a
@@ -143,7 +143,7 @@ module Lita
143
143
  end
144
144
  end
145
145
 
146
- reply = "Clinton #{blues} |"
146
+ reply = ''
147
147
  extras = 54 - (blues / 10) - (reds / 10)
148
148
  reply += "\x0312"
149
149
  (blues / 10).times { reply += '█' }
@@ -151,9 +151,11 @@ module Lita
151
151
  extras.times { reply += '-'}
152
152
  reply += "\x0304"
153
153
  (reds / 10).times { reply += '█' }
154
- reply += "\x0300| Trump #{reds}"
155
154
 
156
155
  reply.insert(reply.length / 2, "👽")
156
+
157
+ reply = "Clinton #{blues} |" + reply + "\x0300| Trump #{reds}"
158
+
157
159
  response.reply reply
158
160
  end
159
161
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-election-cnn'
3
- spec.version = '3.4.7'
3
+ spec.version = '3.4.8'
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.}
@@ -56,6 +56,6 @@ describe Lita::Handlers::OnewheelElectionCnn, lita_handler: true do
56
56
  mock = File.open('spec/fixtures/election.json').read
57
57
  allow(RestClient).to receive(:get) { mock }
58
58
  send_command 'ansielection'
59
- expect(replies.last).to eq("Clinton 0 |\u000312\u000300--------------------------👽---------------------------\u000304█\u000300| Trump 19")
59
+ expect(replies.last).to eq("Clinton 0 |\u000312\u000300-------------------------👽----------------------------\u000304█\u000300| Trump 19")
60
60
  end
61
61
  end
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: 3.4.7
4
+ version: 3.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps