openpull 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/openpull/pull_request_fetcher.rb +14 -4
- data/lib/openpull/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4be083cf16d42a2a0a87676af1d910ace880cd1
|
4
|
+
data.tar.gz: 4fcb96cfc828411d7601f3079b006a662c2c9c4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dfe1646a104bf3f3603d21c68ecc62ec602b458a095172d33d2c46294f66d792adde9cd305881dcc399a798e3ca7a2a2733b94c00efffa2e0f261f3774a35b3
|
7
|
+
data.tar.gz: 44b6f4cb27c8efae9bf737ab62f81cf701e40691a1809607f07d471b212af3203f778b3c2b38e6d2d937c9b94c49bc9ef826f19484fc8953be95c186c8b06dc7
|
@@ -25,7 +25,11 @@ module OpenPull
|
|
25
25
|
header = ["#{repository.name} (#{pull_requests.size})".blue.bold]
|
26
26
|
header += [''] * (OpenPull::Table::HEADINGS.size - 1)
|
27
27
|
|
28
|
-
|
28
|
+
results = pull_requests.map do |pr|
|
29
|
+
Thread.new { row(pr) }
|
30
|
+
end.map(&:value)
|
31
|
+
|
32
|
+
[header] + results
|
29
33
|
end
|
30
34
|
|
31
35
|
def row(pr)
|
@@ -33,9 +37,15 @@ module OpenPull
|
|
33
37
|
|
34
38
|
deco_pr = OpenPull::PullRequestDecorator.new(pr.rels[:self].get.data)
|
35
39
|
|
36
|
-
[
|
37
|
-
|
38
|
-
|
40
|
+
[
|
41
|
+
deco_pr.title,
|
42
|
+
deco_pr.user(username),
|
43
|
+
deco_pr.labels,
|
44
|
+
deco_pr.status,
|
45
|
+
deco_pr.mergeable,
|
46
|
+
deco_pr.html_url,
|
47
|
+
deco_pr.updated_at
|
48
|
+
]
|
39
49
|
end
|
40
50
|
end
|
41
51
|
end
|
data/lib/openpull/version.rb
CHANGED