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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93ef34492341aa8d9560668e6cf02eff1eb110ad
4
- data.tar.gz: 7993a4091e4edf11698736791a37b676eaaafee1
3
+ metadata.gz: 8805b0adc9336593b34fb81345d7f91924a37473
4
+ data.tar.gz: ba5b4921df7425d899a61a20f3da0f66ae288dd5
5
5
  SHA512:
6
- metadata.gz: fbd989668b099cc0d7adc89743bb552c57cd49b11546fe76634a4499f6d09910767c2011188b63f00d07d03bf3d0209e843885f9ebc9c8530a4332ec7530b0ef
7
- data.tar.gz: 5a881fc40f80e416b5d56267f0fcd2d64fb50a6f18e1d9d248ed15e385559d2e10e3fb00351d5fad9027db3f240435441fe5480da6c447ae7a2f90845e8b02a5
6
+ metadata.gz: 219a9659bda7c5337885b478750b7bb321a91b8b165217cf34f4fdcc7c5249aa5f4c3bb3280e87156008c124d7aec5d92b24d7ea66a3034676cc953398b4fd93
7
+ data.tar.gz: 27f5944fc86864c3ea6ae1470fc295497c3e0270b2fdd7f7bdf29d746b399d4077a67d0829a71a5a1cfe059ab7cf7d992f6af7c7f23e97c532e7996f0b7dbb53
@@ -7,9 +7,9 @@ module OpenPull
7
7
  title[0, 80] + '...'
8
8
  end
9
9
 
10
- def user
11
- user = super.login
12
- user == __getobj__.username ? user.blue : user
10
+ def user(other)
11
+ user = super().login
12
+ user == other ? user.blue : user
13
13
  end
14
14
 
15
15
  def labels
@@ -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
@@ -1,3 +1,3 @@
1
1
  module OpenPull
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
data/lib/openpull.rb CHANGED
@@ -9,5 +9,7 @@ require 'openpull/pull_request_decorator'
9
9
  require 'openpull/pull_request_fetcher'
10
10
  require 'openpull/table'
11
11
 
12
+ require 'openpull/version'
13
+
12
14
  module OpenPull
13
15
  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.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mads Ohm Larsen