lita-rally 0.2.1 → 0.2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d780a0de741a17478d4dbee907e0c24f7c0d9b88
4
- data.tar.gz: 64065f36265ca7dad91a4cdd56c327fd76b6a273
3
+ metadata.gz: 2dfdc303acd775a96c9bb0fe529735b06ae83661
4
+ data.tar.gz: 55cd90f45284fc4df321afb8369cc514d2b0904b
5
5
  SHA512:
6
- metadata.gz: 9eb2d8510a3f8d219b66f1cc409d082f90efb6aeac3628c5293864c19388f0f5f1c4a2a6aa249420b6374008891fe75c8075f3fd4d811355d5af75349b3f9912
7
- data.tar.gz: 6ce855bd5b3ca3bc950755b35b0d7dc0d3ed5ffa4f2e775fe3cbf2aaa51c3a8ce97ec71fa63dab18556f8794f88fd45b25346771ec5f771874c772b0ab64582a
6
+ metadata.gz: ce57e0724efc92e76ba599c0b541ca3e9e7d8eec18b2c739e5c4ff1409c53a610be030220a0fabc1511de66f3a4f774f4ab4bc9c6f84de45dd013322efac9707
7
+ data.tar.gz: 0823a5ca2f33e6da60879de6e6743dc32fc1bde7a4006839ff008b659c1857af38d3ace380dbe3f507fa43adf9ef80d7aee719eb6b63cd0ac227db62f629e2d4
@@ -193,14 +193,17 @@ module Lita
193
193
  )
194
194
  else
195
195
  out = result[0].read
196
- output = "#{link_to_item(out, @@key_map[type][:link_path])}\n" \
197
- "Owner: #{out['Owner']['_refObjectName']}\n" \
198
- "Project: #{out['Project']['_refObjectName']}\n"
196
+ output =
197
+ "#{link_to_item(out, @@key_map[type][:link_path])}\n" \
198
+ "Owner: #{out['Owner']['_refObjectName'] rescue 'none'}\n" \
199
+ "Project: #{out['Project']['_refObjectName']}\n"
199
200
  @@key_map[type][:extra_output].each do |field|
200
- output += "#{field}: #{out[field]}\n" if
201
- field.is_a?(String) && out[field]
202
- output += "#{field[0]}: #{out[field[0]][field[1]]}\n" if
203
- field.is_a?(Array) && out[field[0]]
201
+ if field.is_a?(String)
202
+ output += "#{field}: #{out[field] rescue 'none'}\n"
203
+ elsif field.is_a?(Array)
204
+ output +=
205
+ "#{field[0]}: #{out[field[0]][field[1]] rescue 'none'}\n"
206
+ end
204
207
  end
205
208
  output += "Description: #{strip_html(out['Description'])}\n"
206
209
  end
data/lita-rally.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-rally"
3
- spec.version = "0.2.1"
3
+ spec.version = "0.2.2"
4
4
  spec.authors = ['Richard Li']
5
5
  spec.email = ['evilcat@wisewolfsolutions.com']
6
6
  spec.description = %q{Rally plugin for lita bot}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-rally
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Li