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 +4 -4
- data/lib/fire_watch/runner.rb +8 -1
- data/lib/fire_watch/version.rb +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: 57d4b71fc02d5213dc2c7c00b3414e6c665d1c6e
|
4
|
+
data.tar.gz: 8ce7dc1d897de21d5a257dd548a4f7639f81422e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e58dc096455a3439ce557214e7b997ef17cbdae2db3ae15aeef2024d55b434a59e18657eb0ede0386cb2926146adb65cebd9e1782ad41dbf1894bef50ce6e3ba
|
7
|
+
data.tar.gz: 09ab2ebaeb8c6fc79ff04190571f4e765c97873b8516b209d5f14c9c0efbacf177c30884a7ccdcde60634b65c430b4cb11425b13990cacdabb22fe6d784ca12d
|
data/lib/fire_watch/runner.rb
CHANGED
@@ -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
|
data/lib/fire_watch/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: harvested
|