lita-your-weather 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/lita/handlers/your_weather.rb +3 -3
- data/lita-your-weather.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6d96a35d92d2d0a9a584223af41a051d580c575
|
4
|
+
data.tar.gz: 56922aef152490923fb6273b7a539e8b81a5a14a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51e74f8fd77a1b39040b970a2cdf6802db17c9a83267b5550ba317daf9316a72c5055787a95dde51b7bad47fe4e173542c68386fe8dbfb06d393080f3a3260db
|
7
|
+
data.tar.gz: 087a23df19e6deb7f180f0fcfb45020323ebc30398e4aa80a14a361119849cbd8a7f2c4463d8810c4121ca3ae1fd14832427994ee00651d4a8ef1de4ae795e2c
|
data/README.md
CHANGED
@@ -26,11 +26,11 @@ config.handlers.your_weather.api_key = 'www.apixu.com Api Key'
|
|
26
26
|
Commands include:
|
27
27
|
|
28
28
|
<!-- For current weather of default location -->
|
29
|
-
$ weather or $ weather c
|
29
|
+
$ lita weather or $ lita weather c
|
30
30
|
<!-- For current weather of specified location-->
|
31
|
-
$ weather c Your_Location,Your_State,Your_Country
|
31
|
+
$ lita weather c Your_Location,Your_State,Your_Country
|
32
32
|
|
33
33
|
<!-- For weather forecast of default location-->
|
34
|
-
$ weather f
|
34
|
+
$ lita weather f
|
35
35
|
<!-- For weather forecast of specified location-->
|
36
|
-
$ weather f Your_Location,Your_State,Your_Country
|
36
|
+
$ lita weather f Your_Location,Your_State,Your_Country
|
@@ -11,9 +11,9 @@ module Lita
|
|
11
11
|
config :api_key, type: String, required: true
|
12
12
|
|
13
13
|
# Routes
|
14
|
-
route(/^weather\s{1}*(.*)/, :weather_current, command:
|
15
|
-
route(/^weather\s{1}c\s*(.*)/, :weather_current, command:
|
16
|
-
route(/^weather\s{1}f\s*(.*)/, :weather_forecast, command:
|
14
|
+
route(/^weather\s{1}*(.*)/, :weather_current, command: true, help: { "weather CITY/STATE,COUNTRY" => "Responds with the specified city's current weather." })
|
15
|
+
route(/^weather\s{1}c\s*(.*)/, :weather_current, command: true, help: { "weather c CITY/STATE,COUNTRY" => "Responds with the specified city's current weather." })
|
16
|
+
route(/^weather\s{1}f\s*(.*)/, :weather_forecast, command: true, help: { "weather f CITY/STATE,COUNTRY" => "Responds with the specified city's 7 day forecast." })
|
17
17
|
|
18
18
|
# Current Weather
|
19
19
|
def weather_current(response)
|
data/lita-your-weather.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "lita-your-weather"
|
3
|
-
spec.version = "0.0.
|
3
|
+
spec.version = "0.0.3"
|
4
4
|
spec.authors = ["Zoie Carnegie"]
|
5
5
|
spec.email = ["zoie.carnegie@gmail.com"]
|
6
6
|
spec.description = "lita-your-weather provides the ability to ask for the current weather conditions or for a 7 day forecast."
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-your-weather
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zoie Carnegie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|