lita-onewheel-forecast-io 1.14.6 → 1.14.7
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 +4 -4
- data/lib/lita/handlers/forecasts.rb +10 -6
- data/lib/lita/handlers/utils.rb +10 -6
- data/lita-onewheel-forecast-io.gemspec +1 -1
- data/spec/fixtures/ansifog.json +1660 -0
- data/spec/lita/handlers/forecast_io_spec.rb +8 -0
- metadata +5 -3
@@ -550,4 +550,12 @@ describe Lita::Handlers::OnewheelForecastIo, lita_handler: true do
|
|
550
550
|
# cstr = Lita::Handlers::ForecastIo.get_colored_string([{:key => 1}], :key, 'x', {1 => :blue})
|
551
551
|
# expect(cstr).to equal('x')
|
552
552
|
# end
|
553
|
+
|
554
|
+
it '!ansifog' do
|
555
|
+
mock_up 'ansifog'
|
556
|
+
send_command 'ansifog'
|
557
|
+
expect(replies.last).to eq('Portland, OR, USA 24h fog report |▅▅▃____________________| visibility 9.12 km - 16 km')
|
558
|
+
end
|
559
|
+
|
560
|
+
|
553
561
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-onewheel-forecast-io
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.14.
|
4
|
+
version: 1.14.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kreps
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|
@@ -206,6 +206,7 @@ files:
|
|
206
206
|
- lita_config_sample.rb
|
207
207
|
- locales/en.yml
|
208
208
|
- spec/fixtures/28000000000004percent.json
|
209
|
+
- spec/fixtures/ansifog.json
|
209
210
|
- spec/fixtures/heavy_rain.json
|
210
211
|
- spec/fixtures/mock_weather.json
|
211
212
|
- spec/fixtures/mock_weather_no_minute.json
|
@@ -234,12 +235,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
235
|
- !ruby/object:Gem::Version
|
235
236
|
version: '0'
|
236
237
|
requirements: []
|
237
|
-
rubygems_version: 3.0.
|
238
|
+
rubygems_version: 3.0.3
|
238
239
|
signing_key:
|
239
240
|
specification_version: 4
|
240
241
|
summary: A text-based interactive query engine for http://forecast.io's api.
|
241
242
|
test_files:
|
242
243
|
- spec/fixtures/28000000000004percent.json
|
244
|
+
- spec/fixtures/ansifog.json
|
243
245
|
- spec/fixtures/heavy_rain.json
|
244
246
|
- spec/fixtures/mock_weather.json
|
245
247
|
- spec/fixtures/mock_weather_no_minute.json
|