ghi 0.9.0.20130318 → 0.9.0.20130422
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/ghi +14 -2
- data/lib/ghi/commands/version.rb +1 -1
- data/lib/ghi/formatting.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2afc90bcb903b674a1387122662bf77ce0ef9aad
|
4
|
+
data.tar.gz: 119bff64a1e37010ba3a2b27cf67185946310661
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
4
|
-
|
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')
|
data/lib/ghi/commands/version.rb
CHANGED
data/lib/ghi/formatting.rb
CHANGED
@@ -170,7 +170,7 @@ module GHI
|
|
170
170
|
[
|
171
171
|
" ",
|
172
172
|
(i['repo'].to_s.rjust(rmax) if i['repo']),
|
173
|
-
|
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.
|
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-
|
11
|
+
date: 2013-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|