fire_watch 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: 9181b99002955ef9a8c9d4e56eeb5aa6432206d5
4
- data.tar.gz: 6b6e13468e656bbc87cc39b2075e23b2cc355251
3
+ metadata.gz: c10958730b0604bf19eb118057f0fcbb76c4ce57
4
+ data.tar.gz: 7cd1aa358e9a603618ba9fe8da6bdd0edda4112b
5
5
  SHA512:
6
- metadata.gz: facf09f47782f56bdfd347d9150190885545bb012822fa6e61c46ba4becb96276a7f1aabf2d792cd01cfeffe207f889ba6fdab0ae5cb565b5754d21510ef954c
7
- data.tar.gz: 72dd038d15c50e16f96913e36fb5006b7c948c1ad629c33198280c1783abfc64556e4296d6a5f516f55cc7bda621251087712197d46e1c76f607ca2dda14aad3
6
+ metadata.gz: 49cef67e5a8fee87166be6f19ad0dae5d73750472b00b6f70cf8d7d4ab862fafca56b66f64d1c4d5cc2e440998a851a3387ce04aaaf928dc6414d370cecfb912
7
+ data.tar.gz: 88e854b61aa0af82e67a29e2d617be79281b2df4e8659aa73e44b845353fae2904458868a486864f50a4f0f26e846e1dc3130b986625c66c651fdc2774e584c5
@@ -134,7 +134,7 @@ module FireWatch
134
134
  issue.title,
135
135
  "",
136
136
  "",
137
- issue.labels.nil? || issue.labels.find{|l| l.name.include?"size:"}.nil? ? "" : issue.labels.find{|l| l.name.include?"size:"}.name,
137
+ !issue.labels.nil? && !issue.labels.find{|l| l.name.include?"size:"}.nil? ? issue.labels.find{|l| l.name.include?"size:"}.name : "",
138
138
  "",
139
139
  issue.state,
140
140
  "",
@@ -150,7 +150,7 @@ module FireWatch
150
150
  issue.title,
151
151
  projects.select{|p| user_time_entries.map(&:project_id).uniq.include? p.id}.map(&:name).join(', '),
152
152
  "#{user.first_name} #{user.last_name}", # Who
153
- issue.labels.nil? ? "" : issue.labels.find{|l| l.name.include?"size:"}.name,
153
+ !issue.labels.nil? && !issue.labels.find{|l| l.name.include?"size:"}.nil? ? issue.labels.find{|l| l.name.include?"size:"}.name : "",
154
154
  user_time_entries.inject(0){|sum, e| sum + e.hours },
155
155
  issue.state,
156
156
  "",
@@ -177,7 +177,7 @@ module FireWatch
177
177
  pr.title,
178
178
  "",
179
179
  "",
180
- pr.labels.nil? ? "" : pr.labels.find{|l| l.name.include?"size:"}.name,
180
+ !pr.labels.nil? && !pr.labels.find{|l| l.name.include?"size:"}.nil? ? pr.labels.find{|l| l.name.include?"size:"}.name : "",
181
181
  "",
182
182
  pr.state,
183
183
  pr.merged ? "Y" : "N",
@@ -193,7 +193,7 @@ module FireWatch
193
193
  pr.title,
194
194
  projects.select{|p| user_time_entries.map(&:project_id).uniq.include? p.id}.map(&:name).join(', '),
195
195
  "#{user.first_name} #{user.last_name}", # Who
196
- pr.labels.nil? ? "" : issue.labels.find{|l| l.name.include?"size:"}.name,
196
+ !pr.labels.nil? && !pr.labels.find{|l| l.name.include?"size:"}.nil? ? pr.labels.find{|l| l.name.include?"size:"}.name : "",
197
197
  user_time_entries.inject(0){|sum, e| sum + e.hours },
198
198
  pr.state,
199
199
  pr.merged ? "Y" : "N",
@@ -1,3 +1,3 @@
1
1
  module FireWatch
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fire_watch
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
  - Joe Weakley