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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ad1ed5d7e6d72ee1c8469e1ef8ca5ba602fbcfa
4
- data.tar.gz: 796e498c41ea17b423fdd1a911ed52118ed138d3
3
+ metadata.gz: 282d35026c5807140e755bfde58f24fb2e20f219
4
+ data.tar.gz: 683990357a5488baf07fb2cb05489cd011b89701
5
5
  SHA512:
6
- metadata.gz: d510ec7b346315a7860b0c22104afe8c33485414a65ae035fb1c4af68bb747c12d0c0a062f2018000871ce13c514a64e3f3ffa5673919d37eee01956515b9351
7
- data.tar.gz: c8a2d80a571863ac9f2f1ca3f84580163eb4877e4c26acc39b9d503325291d702479687d7d29a89ab30245d0bdada211c581b56ad90fd9ce90a379a81f2be3a9
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.0-yellow.svg)
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
@@ -1,3 +1,3 @@
1
1
  module GhIssues
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gh_issues
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Uğur Özyılmazel