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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 853da9a4e5b9bc69a1aae46bc0870ac0cd124d59
4
- data.tar.gz: 6ae1b77721ebaf077126b77da269042d8f4ab12f
3
+ metadata.gz: 5eecc97875ec54fdf071667a1abc29ea599a1fd6
4
+ data.tar.gz: ca8f9f1472f53da32e3bd3cb336e8fca6901bcfb
5
5
  SHA512:
6
- metadata.gz: 92fab9582d42e42c8b9d2f38887a03c2502b3825a16fccad14538c6b2c3d423ecd85c305a5eda1444526a8f91dfbb9f2f5edf9f28c3a88c27778334582227b2a
7
- data.tar.gz: c7ca11907516053b5bab0d00743f4fc6648f5352cd4da2c06096f8f6af6910e752ba6cff544852057846a8248faf9ed442ce6f3e71daa38f6a759e8d8e7a54b7
6
+ metadata.gz: f6a5186f53fe43f10a2ded09a297f7db9c7798933a1b61da822be8f7e88ddb129b58953b2e4c1cfe949f867f61389615fda1095fa9910c83d9e8441429f68608
7
+ data.tar.gz: 142a2f9d1e6824cae1b3530ee4b1121af42afb288fdbcced71e90e70bac5417dd03abb4b68048a93ce2973969806226dc72756cc63b0f0f2bd669151ca2be272
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-apod"
3
- spec.version = "0.4.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.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-23 00:00:00.000000000 Z
11
+ date: 2018-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita