lita-destiny 0.2.4 → 0.2.5
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/README.md +2 -0
- data/lib/lita/handlers/destiny.rb +8 -6
- data/lita-destiny.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: 379117bdf869e819defb1cda97f232df4e654ff4
|
4
|
+
data.tar.gz: d5ca28ff5223494731e70049376469ac837332d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba55221dd28762704b10ed29b5de1b4670e587675316e4816f88b73835059e09fb4fa8dcf111652dc0cc6ca2568e6d9c4ad1b3acc2b612b5749a6c93bbb0d0d5
|
7
|
+
data.tar.gz: 4e158472e031d1fc82e8adf41c65a185c210233fb9ff96fafbe34851a12d1cf82347cd7ba2daf70ebf097874bcc8b13b4c3fd7a0a95ae06daaa887ca510c0fe0
|
data/README.md
CHANGED
@@ -14,20 +14,20 @@ module Lita
|
|
14
14
|
include Destiny
|
15
15
|
|
16
16
|
# Nightfall Route
|
17
|
-
route(
|
17
|
+
route(/^(nightfall)/i, :nightfall , help: { "!nightfall" => "Get this weeks nightfall description and skulls" })
|
18
18
|
|
19
19
|
# Weekly Strike Route
|
20
|
-
route(
|
20
|
+
route(/^(weekly)/i, :weekly , help: { "!weekly" => "Get this weeks nightfall description and skulls" })
|
21
21
|
|
22
22
|
# Xur Route
|
23
|
-
route(
|
23
|
+
route(/^(xur)/i, :xur , help: { "!xur" => "Get Xur's inventory when availible" })
|
24
24
|
|
25
25
|
# PoE Routes
|
26
|
-
route(
|
26
|
+
route(/^(poe32)/i, :poe_32, help: { "!32" => "Get this weeks level 32 Prison of Elders information." })
|
27
27
|
|
28
|
-
route(
|
28
|
+
route(/^(poe34)/i, :poe_34, help: { "!34" => "Get this weeks level 34 Prison of Elders information." })
|
29
29
|
|
30
|
-
route(
|
30
|
+
route(/^(poe35)/i, :poe_35, help: { "!35" => "Get this weeks level 35 Prison of Elders information." })
|
31
31
|
|
32
32
|
# Nightfall Activity Method
|
33
33
|
#
|
@@ -102,6 +102,8 @@ module Lita
|
|
102
102
|
def build_activity_message(activity, response, color, thumb_url)
|
103
103
|
skull_fields = []
|
104
104
|
activity[:skulls].each do |skull|
|
105
|
+
# Remove _ in symbol names
|
106
|
+
skull.to_s.split(/ |\_/).map(&:capitalize).join(" ")
|
105
107
|
skull_hash = {
|
106
108
|
title: skull,
|
107
109
|
value: "",
|
data/lita-destiny.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-destiny
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PDaily
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|