hu 1.3.14 → 1.3.15

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b906843b32e1d95b6ae8788f1154afa90816cfb3
4
- data.tar.gz: d3449107c25f6adba451b75d9f24c5aba5a986ca
3
+ metadata.gz: f206706e97dfcffb6c50fd34b3cc64b9d9f0818f
4
+ data.tar.gz: 2e8d214e887cfc97f290e9200179ef540a618ff0
5
5
  SHA512:
6
- metadata.gz: 82f77a2b6c3307dd4fbf009de5abc3153965aecc3415862088b8cdaa724b0cfbf04ec2d7605a0b8dcedf287f33f95176a478cdabbe32aac0e453ecd5b74a513f
7
- data.tar.gz: 969874e1ab7a24346200d884e71beca29f3a197a80d26f91e74543e2f0744838abeccc7c9965d3571e98f911fe5b3398c5f3b3bb5b6e42d824898b979be55f88
6
+ metadata.gz: aaee4fdfd3501ac1b9722f7ea47116dd5672a89c793eef7f74b509c65579f7d83e2efc2eff0d51934e119d8e5801eeb943adcad791f41f380e668e977b322525
7
+ data.tar.gz: c67a6edd450f1def4b6877b5393fd05b70616f4be705823d6cad92255e688462adb9ae4a37215faa32cfabe2d6aff9117b0567d9d56730684700f1b79f14937e
@@ -5,7 +5,7 @@ Metrics/AbcSize:
5
5
  # Offense count: 2
6
6
  # Configuration parameters: CountComments.
7
7
  Metrics/ClassLength:
8
- Max: 651
8
+ Max: 657
9
9
 
10
10
  # Offense count: 6
11
11
  Metrics/CyclomaticComplexity:
@@ -20,7 +20,7 @@ Metrics/LineLength:
20
20
  # Offense count: 14
21
21
  # Configuration parameters: CountComments.
22
22
  Metrics/MethodLength:
23
- Max: 230
23
+ Max: 232
24
24
 
25
25
  # Offense count: 4
26
26
  Metrics/PerceivedComplexity:
@@ -54,3 +54,10 @@ Style/GlobalVars:
54
54
  Style/Semicolon:
55
55
  Exclude:
56
56
  - 'lib/hu/deploy.rb'
57
+
58
+ # Offense count: 1
59
+ # Cop supports --auto-correct.
60
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
61
+ # SupportedStyles: use_perl_names, use_english_names
62
+ Style/SpecialGlobalVars:
63
+ Enabled: false
@@ -277,7 +277,8 @@ module Hu
277
277
  puts
278
278
  exit 1
279
279
  end
280
- ENV['EDITOR'] = ENV['GIT_EDITOR'] = old_editor
280
+ ENV['EDITOR'] = old_editor
281
+ ENV['GIT_EDITOR'] = old_git_editor
281
282
  anykey
282
283
  when :push_to_staging
283
284
  run_each <<-EOS.strip_heredoc
@@ -488,9 +489,10 @@ module Hu
488
489
  @minispin_last_char = Time.now
489
490
  end
490
491
  end
491
- rescue => e
492
- puts "Oops: #{e}".color(:red)
493
- sleep 5
492
+ rescue Errno::EIO
493
+ # Linux raises EIO on EOF, cf.
494
+ # https://github.com/ruby/ruby/blob/57fb2199059cb55b632d093c2e64c8a3c60acfbb/ext/pty/pty.c#L519
495
+ nil
494
496
  end
495
497
 
496
498
  _pid, status = Process.wait2(pid)
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Hu
3
- VERSION = '1.3.14'
3
+ VERSION = '1.3.15'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.14
4
+ version: 1.3.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - moe