openpull 0.0.4 → 0.0.5

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: 4d9f4bdf1fa1c21ed9f640511a7f34c0f781d56e
4
- data.tar.gz: d5e88c87bdacef6d50b91c793a1ab75b6bf2aa36
3
+ metadata.gz: a18f9336b198849cd6a43e88e54ea7df8d48e219
4
+ data.tar.gz: 3e06ef21e0af46ca5f563bb20f5d9a060f2dbe3c
5
5
  SHA512:
6
- metadata.gz: d66eb8c9a83010b6b6c6a18d1cfe0eb91870c31f78f4e1363ca377c81d65e807a2a7224e8eb266f027415b4d2cd6fa56909a4035fa9ff71947882a153232b3fb
7
- data.tar.gz: 96efa30ce9638de93d486910734c705ab83e617c923a775cc97011bae72671bbd9dae225c4a2f93fc4787cb44b9530cc3f4189b3816849f059669b31d0f86ed5
6
+ metadata.gz: 9b9e22a28506ac7915e22e870c8a19b2ae8d1c415907ac57cea89c17b84210447a2746634e4792b73568a4871f9e954743db7443831f685d47259876bc1882e9
7
+ data.tar.gz: 9e8a514a77cc057a0ab0672a7dcce096889b7939dd9f656aad343755e714ac9857acc3c088353ccdec1b91ba35ba2080025bd9665f7939538d85e63c798145ca
data/bin/openpull CHANGED
@@ -1,5 +1,3 @@
1
1
  #!/usr/bin/env ruby
2
- require 'optparse'
3
2
  require 'openpull'
4
-
5
3
  OpenPull::Runner.new(ARGV).run
data/lib/openpull.rb CHANGED
@@ -11,6 +11,3 @@ require 'openpull/pull_request_fetcher'
11
11
  require 'openpull/table'
12
12
 
13
13
  require 'openpull/version'
14
-
15
- module OpenPull
16
- end
@@ -28,7 +28,7 @@ module OpenPull
28
28
  when 'pending'
29
29
  state.yellow
30
30
  else
31
- '--'.red
31
+ (state || '--').red
32
32
  end
33
33
  end
34
34
 
@@ -24,7 +24,7 @@ module OpenPull
24
24
 
25
25
  headers = ["#{repository.name} (#{pull_requests.size})"]
26
26
  headers << (repository.private ? 'private' : 'public')
27
- headers += [''] * 3
27
+ headers += ['', '', '']
28
28
  headers << repository.html_url
29
29
  headers << ''
30
30
  headers.map! { |h| h.blue.bold }
@@ -39,7 +39,8 @@ module OpenPull
39
39
  def row(pr)
40
40
  print '.'.yellow
41
41
 
42
- deco_pr = OpenPull::PullRequestDecorator.new(pr.rels[:self].get.data)
42
+ pr_data = pr.rels[:self].get.data
43
+ deco_pr = OpenPull::PullRequestDecorator.new(pr_data)
43
44
 
44
45
  [
45
46
  deco_pr.title,
@@ -1,3 +1,3 @@
1
1
  module OpenPull
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openpull
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mads Ohm Larsen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-19 00:00:00.000000000 Z
11
+ date: 2015-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit