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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8805b0adc9336593b34fb81345d7f91924a37473
4
- data.tar.gz: ba5b4921df7425d899a61a20f3da0f66ae288dd5
3
+ metadata.gz: b4be083cf16d42a2a0a87676af1d910ace880cd1
4
+ data.tar.gz: 4fcb96cfc828411d7601f3079b006a662c2c9c4e
5
5
  SHA512:
6
- metadata.gz: 219a9659bda7c5337885b478750b7bb321a91b8b165217cf34f4fdcc7c5249aa5f4c3bb3280e87156008c124d7aec5d92b24d7ea66a3034676cc953398b4fd93
7
- data.tar.gz: 27f5944fc86864c3ea6ae1470fc295497c3e0270b2fdd7f7bdf29d746b399d4077a67d0829a71a5a1cfe059ab7cf7d992f6af7c7f23e97c532e7996f0b7dbb53
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
- [header] + pull_requests.map { |pr| row(pr) }
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
- [deco_pr.title, deco_pr.user(username), deco_pr.labels,
37
- deco_pr.status, deco_pr.mergeable, deco_pr.html_url,
38
- deco_pr.updated_at]
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
@@ -1,3 +1,3 @@
1
1
  module OpenPull
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openpull
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mads Ohm Larsen