ghi 1.0.2 → 1.0.3

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: 696fce57a7e89cb7685529b9e6bbabcefde0ee2d
4
- data.tar.gz: 19a171ad807242aabe60dc72142a6fdf877f2685
3
+ metadata.gz: e1f8c07c7af8eaf79bcfd3d107ca24e362028816
4
+ data.tar.gz: 5929cb101707905eba0acdc990a529a83e1dc158
5
5
  SHA512:
6
- metadata.gz: 8f9a475b4713a41828414f000d4e6da666dc75c0e43df5430041e776f73ff81d2b6f0383aeec8e38cabff04a03e0aeffe2bf2f4b11f58b1b4684af0e7854f828
7
- data.tar.gz: dc0a1c4930f0a4445bcefac59501d58a2930462e06fe2c88b594699b85003d6e67545db7cc187c1c9477cf7bccdb7d32fa6820466eda3be96aec6917743d261e
6
+ metadata.gz: 19b2be758e4d3a70dd1e36b30823ea249ea9ff5c0694a605aa50abad58fedae9be5c88f6e933f9848b84f19a5f1dde7cbfcbcf090bb9c00dab5f711818b1b1a8
7
+ data.tar.gz: edaf7667152f197e5b6dfb2419b3fe2cf89cffbe651d3acdec36544457f665e439d887be4e31f60f229d19cb1208ae11b137b6d2d2a17c43103ae4c7993501a3
@@ -19,7 +19,9 @@ EOF
19
19
  end
20
20
 
21
21
  def execute
22
+ # TODO: Investigate whether or not this variable is needed
22
23
  global = true
24
+
23
25
  options.parse! args.empty? ? %w(-h) : args
24
26
 
25
27
  if action == 'auth'
@@ -3,7 +3,7 @@ module GHI
3
3
  module Version
4
4
  MAJOR = 1
5
5
  MINOR = 0
6
- PATCH = 2
6
+ PATCH = 3
7
7
  PRE = nil
8
8
 
9
9
  VERSION = [MAJOR, MINOR, PATCH, PRE].compact.join '.'
@@ -183,7 +183,7 @@ module GHI
183
183
  l = 9 + nmax + rmax + no_color { format_labels labels }.to_s.length
184
184
  a = i['assignee'] && i['assignee']['login'] == Authorization.username
185
185
  l += 2 if a
186
- p = i['pull_request']['html_url'] and l += 2
186
+ p = i['pull_request']['html_url'] and l += 2 if i['pull_request']
187
187
  c = i['comments']
188
188
  l += c.to_s.length + 1 unless c == 0
189
189
  m = i['milestone']
@@ -366,7 +366,6 @@ EOF
366
366
  def format_editor issue = nil
367
367
  message = ERB.new(<<EOF).result binding
368
368
 
369
-
370
369
  Please explain the issue. The first line will become the title. Trailing
371
370
  lines starting with '#' (like these) will be ignored, and empty messages will
372
371
  not be submitted. Issues are formatted with GitHub Flavored Markdown (GFM):
@@ -379,10 +378,10 @@ On <%= repo %>
379
378
  EOF
380
379
  message.rstrip!
381
380
  message.gsub!(/(?!\A)^.*$/) { |line|
382
- # unless line.empty?
383
381
  "# #{line}".rstrip
384
- # end
385
382
  }
383
+ # Adding an extra newline for formatting
384
+ message.insert 0, "\n"
386
385
  message.insert 0, [
387
386
  issue['title'] || issue[:title], issue['body'] || issue[:body]
388
387
  ].compact.join("\n\n") if issue
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: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Celis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-17 00:00:00.000000000 Z
11
+ date: 2015-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake