ghi 0.9.0.20130318 → 0.9.0.20130422

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: 14eee860d481820411239fa03c923d1dad3e7298
4
- data.tar.gz: ba60d37372fd5a0e43ac309a38bb72639b8231a6
3
+ metadata.gz: 2afc90bcb903b674a1387122662bf77ce0ef9aad
4
+ data.tar.gz: 119bff64a1e37010ba3a2b27cf67185946310661
5
5
  SHA512:
6
- metadata.gz: 93bf1f57dd738e937a32dc00b216983569f90db31f297d05193e00dc37df2aa8ad151acff71a5b1ba054775f5a53ae97f065d46a27f2211accf46f1c86cf8449
7
- data.tar.gz: ff9b3f1f2313d65751b9113339b30ec71220e9c9a213638a65a26f5011b60c1ad70bd7ba5c037437d70dc033477626b61339a871560c9d3883ccfc52603f9372
6
+ metadata.gz: e271413be8d64cb72c658676749a660eb964cebe808dcae71e747e0fb36253e978d04c5393bea63f84d5657e7e4a575a02679a020c25cec97ac6cebb8eb14060
7
+ data.tar.gz: 572de01d388e55cd2caaaff010c1f722a4fe9244f24fedd0bbe55475edef50f9f8db8191745e9c12d619983eca514a8acfbe4efc3ed5268a6e84aa20ffaa9f5e
data/bin/ghi CHANGED
@@ -1,4 +1,16 @@
1
1
  #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'ghi' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
2
8
 
3
- autoload :GHI, 'ghi'
4
- GHI.execute ARGV
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('ghi', 'ghi')
@@ -4,7 +4,7 @@ module GHI
4
4
  MAJOR = 0
5
5
  MINOR = 9
6
6
  PATCH = 0
7
- PRE = 20130318
7
+ PRE = 20130422
8
8
 
9
9
  VERSION = [MAJOR, MINOR, PATCH, PRE].compact.join '.'
10
10
 
@@ -170,7 +170,7 @@ module GHI
170
170
  [
171
171
  " ",
172
172
  (i['repo'].to_s.rjust(rmax) if i['repo']),
173
- "#{bright { n.to_s.rjust nmax }}:",
173
+ format_number(n.to_s.rjust(nmax)),
174
174
  truncate(title, l),
175
175
  format_labels(labels),
176
176
  (fg('aaaaaa') { c } unless c == 0),
@@ -180,6 +180,10 @@ module GHI
180
180
  }
181
181
  end
182
182
 
183
+ def format_number n
184
+ colorize? ? "#{bright { n }}:" : "#{n} "
185
+ end
186
+
183
187
  # TODO: Show milestone, number of comments, pull request attached.
184
188
  def format_issue i, width = columns
185
189
  return unless i['created_at']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ghi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0.20130318
4
+ version: 0.9.0.20130422
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Celis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-18 00:00:00.000000000 Z
11
+ date: 2013-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake