lita-destiny 0.2.4 → 0.2.5

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: 30e3e1ec53692f7f643f2c4672be2915d78910ed
4
- data.tar.gz: 5c54e9bacc87cf1537bd93a8023e74eefaf7c305
3
+ metadata.gz: 379117bdf869e819defb1cda97f232df4e654ff4
4
+ data.tar.gz: d5ca28ff5223494731e70049376469ac837332d6
5
5
  SHA512:
6
- metadata.gz: 5913b40de4df443986d3dd2449f020c3f459edfcc7b2b04f63e96ef3355d33035c97d864ee6da50e970492092906f2e33a4d7caa944c00013a42bda4f32b6ce6
7
- data.tar.gz: 09b30af63b70bec2463df59938318125ac7271bb24bdc007bb59420f68dee6d224406ef5c1b4943b74c59a79c92e23b073c2a0d714955ef1b5bf47508dfac0f2
6
+ metadata.gz: ba55221dd28762704b10ed29b5de1b4670e587675316e4816f88b73835059e09fb4fa8dcf111652dc0cc6ca2568e6d9c4ad1b3acc2b612b5749a6c93bbb0d0d5
7
+ data.tar.gz: 4e158472e031d1fc82e8adf41c65a185c210233fb9ff96fafbe34851a12d1cf82347cd7ba2daf70ebf097874bcc8b13b4c3fd7a0a95ae06daaa887ca510c0fe0
data/README.md CHANGED
@@ -21,3 +21,5 @@ Add the config to your lita config file with your Bungie API key:
21
21
  ``` ruby
22
22
  config.handlers.destiny_handler.api_key = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
23
23
  ```
24
+
25
+ I suggest adding ```config.robot.alias = "!"``` to your config file!
@@ -14,20 +14,20 @@ module Lita
14
14
  include Destiny
15
15
 
16
16
  # Nightfall Route
17
- route(/^!(nightfall)/i, :nightfall , help: { "!nightfall" => "Get this weeks nightfall description and skulls" })
17
+ route(/^(nightfall)/i, :nightfall , help: { "!nightfall" => "Get this weeks nightfall description and skulls" })
18
18
 
19
19
  # Weekly Strike Route
20
- route(/^!(weekly)/i, :weekly , help: { "!weekly" => "Get this weeks nightfall description and skulls" })
20
+ route(/^(weekly)/i, :weekly , help: { "!weekly" => "Get this weeks nightfall description and skulls" })
21
21
 
22
22
  # Xur Route
23
- route(/^!(xur)/i, :xur , help: { "!xur" => "Get Xur's inventory when availible" })
23
+ route(/^(xur)/i, :xur , help: { "!xur" => "Get Xur's inventory when availible" })
24
24
 
25
25
  # PoE Routes
26
- route(/^!(poe32)/i, :poe_32, help: { "!32" => "Get this weeks level 32 Prison of Elders information." })
26
+ route(/^(poe32)/i, :poe_32, help: { "!32" => "Get this weeks level 32 Prison of Elders information." })
27
27
 
28
- route(/^!(poe34)/i, :poe_34, help: { "!34" => "Get this weeks level 34 Prison of Elders information." })
28
+ route(/^(poe34)/i, :poe_34, help: { "!34" => "Get this weeks level 34 Prison of Elders information." })
29
29
 
30
- route(/^!(poe35)/i, :poe_35, help: { "!35" => "Get this weeks level 35 Prison of Elders information." })
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-destiny"
3
- spec.version = "0.2.4"
3
+ spec.version = "0.2.5"
4
4
  spec.authors = ["PDaily"]
5
5
  spec.email = ["pat.irwin4@gmail.com"]
6
6
  spec.description = "Small lita.io handler for interacting with the Destiny API"
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
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-01 00:00:00.000000000 Z
11
+ date: 2015-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita