lita-apod 0.4.0 → 0.5.0
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/apod.rb +16 -0
- data/lita-apod.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: 5eecc97875ec54fdf071667a1abc29ea599a1fd6
|
4
|
+
data.tar.gz: ca8f9f1472f53da32e3bd3cb336e8fca6901bcfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6a5186f53fe43f10a2ded09a297f7db9c7798933a1b61da822be8f7e88ddb129b58953b2e4c1cfe949f867f61389615fda1095fa9910c83d9e8441429f68608
|
7
|
+
data.tar.gz: 142a2f9d1e6824cae1b3530ee4b1121af42afb288fdbcced71e90e70bac5417dd03abb4b68048a93ce2973969806226dc72756cc63b0f0f2bd669151ca2be272
|
data/lib/lita/handlers/apod.rb
CHANGED
@@ -16,6 +16,14 @@ module Lita
|
|
16
16
|
|
17
17
|
object = MultiJson.load(res.body)
|
18
18
|
|
19
|
+
messageBody << object['title'] + "\n"
|
20
|
+
|
21
|
+
if !object['copyright'].nil?
|
22
|
+
messageBody << "Image Credit: " + object['copyright']
|
23
|
+
end
|
24
|
+
|
25
|
+
messageBody << "\n\n"
|
26
|
+
|
19
27
|
messageBody << object['hdurl'] + "\n"
|
20
28
|
messageBody << object['explanation']
|
21
29
|
|
@@ -33,6 +41,14 @@ module Lita
|
|
33
41
|
|
34
42
|
object = MultiJson.load(res.body)
|
35
43
|
|
44
|
+
messageBody << object['title']
|
45
|
+
|
46
|
+
if !object['copyright'].nil?
|
47
|
+
messageBody << "Image Credit: " + object['copyright']
|
48
|
+
end
|
49
|
+
|
50
|
+
messageBody << "\n\n"
|
51
|
+
|
36
52
|
messageBody << object['hdurl'] + "\n"
|
37
53
|
messageBody << object['explanation']
|
38
54
|
|
data/lita-apod.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "lita-apod"
|
3
|
-
spec.version = "0.
|
3
|
+
spec.version = "0.5.0"
|
4
4
|
spec.authors = "John Celoria"
|
5
5
|
spec.email = "jceloria@gmail.com"
|
6
6
|
spec.description = "Pulls a picture using the NASA APOD (astronomy picture of the day) API endpoint"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-apod
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Celoria
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|