lita-onewheel-election-cnn 3.4.7 → 3.4.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6207ffe93036c086b5bc21b01d157e4b7d19dee
|
4
|
+
data.tar.gz: 80fcf5114853b09285d3bdf604484fb962edb67c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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.
|
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
|
59
|
+
expect(replies.last).to eq("Clinton 0 |\u000312\u000300-------------------------👽----------------------------\u000304█\u000300| Trump 19")
|
60
60
|
end
|
61
61
|
end
|