gh_issues 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -1
- data/lib/gh_issues/cli.rb +1 -2
- data/lib/gh_issues/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 282d35026c5807140e755bfde58f24fb2e20f219
|
4
|
+
data.tar.gz: 683990357a5488baf07fb2cb05489cd011b89701
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc14538af73b1f6a7f98f61a04e9cf278fafcf46ea4cfdf4d5b901fcfa42f6cfd1b09a05589e0f8356821b9f0b49a6ce4569ebed21b9ce9997f0b011047b0c94
|
7
|
+
data.tar.gz: e7d5ae6ba64050a587e3745c03518c9b3a70b1112c7ade8256b32ef8f3d66ded1bbdeeb0d175563c9fb78fa5f8d2b27b6a7b8917ed88849324b364492aabd28f
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
[![Build Status](https://travis-ci.org/vigo/gh-issues.svg?branch=master)](https://travis-ci.org/vigo/gh-issues)
|
2
|
-
![Version](https://img.shields.io/badge/version-0.4.
|
2
|
+
![Version](https://img.shields.io/badge/version-0.4.1-yellow.svg)
|
3
3
|
|
4
4
|
# GitHub Issues
|
5
5
|
|
@@ -206,6 +206,20 @@ Result:
|
|
206
206
|
| | [screen shot 2015-05-07 at 11 19 31 pm ]-[link] |
|
207
207
|
+------------+--------------------------------------------------------------------------------+
|
208
208
|
|
209
|
+
Also, if the selected issue has comment(s):
|
210
|
+
|
211
|
+
+------------+---------------------------------------------------------+
|
212
|
+
| Comments (2) |
|
213
|
+
+------------+---------------------------------------------------------+
|
214
|
+
| vigo | Comment 1 |
|
215
|
+
| | --- |
|
216
|
+
| | 03 September 2016, 17:09, Saturday (1 day ago) |
|
217
|
+
+------------+---------------------------------------------------------+
|
218
|
+
| vigo | Comment 2 |
|
219
|
+
| | --- |
|
220
|
+
| | 03 September 2016, 17:09, Saturday (1 day ago) |
|
221
|
+
+------------+---------------------------------------------------------+
|
222
|
+
|
209
223
|
|
210
224
|
## Development
|
211
225
|
|
data/lib/gh_issues/cli.rb
CHANGED
@@ -147,13 +147,12 @@ module GhIssues
|
|
147
147
|
if issue[:comments].length > 0
|
148
148
|
t.add_separator
|
149
149
|
t.add_row [{value: "#{colorize(pluralize('Comment', 'Comments', issue[:comments].length), :yellow)} (#{issue[:comments].length})", colspan: 2, alignment: :center}]
|
150
|
-
t.add_separator
|
151
150
|
issue[:comments].each do |comment|
|
151
|
+
t.add_separator
|
152
152
|
comment_created_at = comment[:created_at].strftime(DEFAULT_DATE_FORMAT)
|
153
153
|
comment_created_at_diff = TimeDifference.between(now, comment[:created_at]).in_days.to_i
|
154
154
|
comment_text = "#{markdown.render(comment[:body])}\n---\n#{comment_created_at} (#{comment_created_at_diff} #{pluralize("day", "days", comment_created_at_diff)} ago)"
|
155
155
|
t.add_row [colorize(comment[:user], :green), wrap(comment_text, WRAP_TEXT_AT)]
|
156
|
-
t.add_separator
|
157
156
|
end
|
158
157
|
end
|
159
158
|
end
|
data/lib/gh_issues/version.rb
CHANGED