lita-onewheel-moonphase 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lita/handlers/onewheel_moonphase.rb +16 -16
- data/lita-onewheel-moonphase.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5a55264f90bf8b1b60123c5459ce1334a9526d5a0e2ca0413e92c0aacf0f469
|
4
|
+
data.tar.gz: 1aada30e221b985517665c552126ab25e8c2c958997ed7792056b806c643d2cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fbd2419cfd843b6155e6827273a9179532b51cb8727b2143c46b5966fc7c6226d656317650f87e84857dbf6b5b8067ae0c04142bb3a250ad9207aaef71f2928
|
7
|
+
data.tar.gz: 2b2e9ee9467a90b939caaf41c036741d8b5421f370cda07aba8a3acffb2858bf2e135700507dd77ebbac8c9979d8a00606c6e1322bf8bb65cf48cf499d898610
|
@@ -16,23 +16,23 @@ module Lita
|
|
16
16
|
# 🌑🌛
|
17
17
|
|
18
18
|
def mars(response)
|
19
|
-
api_resp = RestClient.get 'https://api.maas2.
|
19
|
+
api_resp = RestClient.get 'https://api.maas2.apollorion.com'
|
20
20
|
data = JSON.parse(api_resp)
|
21
|
-
{
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
}
|
21
|
+
# {
|
22
|
+
# "status": 200,
|
23
|
+
# "id": 198,
|
24
|
+
# "sol": 2108,
|
25
|
+
# "season": "Month 7",
|
26
|
+
# "min_temp": -65,
|
27
|
+
# "max_temp": -24,
|
28
|
+
# "atmo_opacity": "Sunny",
|
29
|
+
# "sunrise": "05:19",
|
30
|
+
# "sunset": "17:27",
|
31
|
+
# "min_gts_temp": -58,
|
32
|
+
# "max_gts_temp": -15,
|
33
|
+
# "unitOfMeasure": "Celsius",
|
34
|
+
# "TZ_Data": "America/Port_of_Spain"
|
35
|
+
# }
|
36
36
|
|
37
37
|
resp = "Sol #{data['sol']}, #{data['season']}, A #{data['atmo_opacity']} day with a min temp of #{data['min_temp']} and a high of #{data['max_temp']} #{data['unitOfMeasure']}. Sunrise is at #{data['sunrise']} and sunset occurs at #{data['sunset']}."
|
38
38
|
response.reply resp
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'lita-onewheel-moonphase'
|
3
|
-
spec.version = '2.2.
|
3
|
+
spec.version = '2.2.1'
|
4
4
|
spec.authors = ['Andrew Kreps']
|
5
5
|
spec.email = ['andrew.kreps@gmail.com']
|
6
6
|
spec.description = %q{Lita interface to a lambda representing Moon phase data. With a dash of Mars.}
|