fire_watch 0.4.2 → 0.4.3

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: 42866a6f16766334f9250fb64271d64061b72459
4
- data.tar.gz: 3db62951a2d47609bab3ad27330214fd5b7d483e
3
+ metadata.gz: 57d4b71fc02d5213dc2c7c00b3414e6c665d1c6e
4
+ data.tar.gz: 8ce7dc1d897de21d5a257dd548a4f7639f81422e
5
5
  SHA512:
6
- metadata.gz: 485a5ca08ec72aa301dedb9bf8a762ba733ae89d433c71dc92b8455b28816b29ac7d6a448b87e26784862bc8e1b745ed72b61c01c8e8671043a1d15ea46c5f84
7
- data.tar.gz: a0022133f742d01da81dfd99612491bf20170551cc374b7f5ddceccce1c2e7e36e33150749ee46faa0dff9d96569e8d967841954e66f056005eb1855b75939e8
6
+ metadata.gz: e58dc096455a3439ce557214e7b997ef17cbdae2db3ae15aeef2024d55b434a59e18657eb0ede0386cb2926146adb65cebd9e1782ad41dbf1894bef50ce6e3ba
7
+ data.tar.gz: 09ab2ebaeb8c6fc79ff04190571f4e765c97873b8516b209d5f14c9c0efbacf177c30884a7ccdcde60634b65c430b4cb11425b13990cacdabb22fe6d784ca12d
@@ -135,7 +135,7 @@ module FireWatch
135
135
  pull_requests = pull_request_issues.map do |i|
136
136
  @github_client.pull_requests.get(user: 'wildland', repo: selected_repo.name, number: i.number).body
137
137
  end
138
-
138
+
139
139
  issues.each do |issue|
140
140
  relevant_time_entries, time_entries = time_entries.partition do |entry|
141
141
  entry.notes.nil? ? false : entry.notes.scan(ISSUE_REGEX).flatten.any?{|m| m.eql? issue.number.to_s }
@@ -172,6 +172,9 @@ module FireWatch
172
172
  issue.labels.nil? ? "" : issue.labels.map{|l| l.name}.join(', ')
173
173
  ]
174
174
  end
175
+ time_entries.concat relevant_time_entries.select { |entry|
176
+ entry.notes.nil? ? false : entry.notes.scan(ISSUE_REGEX).flatten.count > 1
177
+ }
175
178
  end
176
179
  progressbar.increment
177
180
  end
@@ -180,6 +183,7 @@ module FireWatch
180
183
  relevant_time_entries, time_entries = time_entries.partition do |entry|
181
184
  entry.notes.nil? ? false : entry.notes.scan(ISSUE_REGEX).flatten.any?{|m| m.eql? pr.number.to_s }
182
185
  end
186
+
183
187
  if relevant_time_entries.empty?
184
188
  csv << [
185
189
  selected_repo.name,
@@ -211,6 +215,9 @@ module FireWatch
211
215
  pr.labels.nil? ? "" : issue.labels.map{|l| l.name}.join(', ')
212
216
  ]
213
217
  end
218
+ time_entries.concat relevant_time_entries.select { |entry|
219
+ entry.notes.nil? ? false : entry.notes.scan(ISSUE_REGEX).flatten.count > 1
220
+ }
214
221
  end
215
222
  progressbar.increment
216
223
  end
@@ -1,3 +1,3 @@
1
1
  module FireWatch
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fire_watch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Weakley
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-18 00:00:00.000000000 Z
11
+ date: 2017-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: harvested