openpull 0.0.1 → 0.0.2
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_decorator.rb +3 -3
- data/lib/openpull/pull_request_fetcher.rb +2 -2
- data/lib/openpull/version.rb +1 -1
- data/lib/openpull.rb +2 -0
- 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: 8805b0adc9336593b34fb81345d7f91924a37473
|
4
|
+
data.tar.gz: ba5b4921df7425d899a61a20f3da0f66ae288dd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 219a9659bda7c5337885b478750b7bb321a91b8b165217cf34f4fdcc7c5249aa5f4c3bb3280e87156008c124d7aec5d92b24d7ea66a3034676cc953398b4fd93
|
7
|
+
data.tar.gz: 27f5944fc86864c3ea6ae1470fc295497c3e0270b2fdd7f7bdf29d746b399d4077a67d0829a71a5a1cfe059ab7cf7d992f6af7c7f23e97c532e7996f0b7dbb53
|
@@ -11,7 +11,7 @@ module OpenPull
|
|
11
11
|
def fetch
|
12
12
|
client.org_repos(organisation).map do |repository|
|
13
13
|
Thread.new { fetch_pull_requests(repository) }
|
14
|
-
end.map(&:value)
|
14
|
+
end.map(&:value).reject { |v| v.nil? || v.empty? }
|
15
15
|
end
|
16
16
|
|
17
17
|
private
|
@@ -33,7 +33,7 @@ module OpenPull
|
|
33
33
|
|
34
34
|
deco_pr = OpenPull::PullRequestDecorator.new(pr.rels[:self].get.data)
|
35
35
|
|
36
|
-
[deco_pr.title, deco_pr.user, deco_pr.labels,
|
36
|
+
[deco_pr.title, deco_pr.user(username), deco_pr.labels,
|
37
37
|
deco_pr.status, deco_pr.mergeable, deco_pr.html_url,
|
38
38
|
deco_pr.updated_at]
|
39
39
|
end
|
data/lib/openpull/version.rb
CHANGED
data/lib/openpull.rb
CHANGED