overcommit 0.59.0 → 0.59.1

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
  SHA256:
3
- metadata.gz: 61c2ae9a910dd7a508c79a08564313b751646bb5bcdfdd1776b8eb5d58836f98
4
- data.tar.gz: c3c3d555ee1919b68a5fba95f7e0b8a614c97459e71be94501fd822f94cc75e0
3
+ metadata.gz: 7cef58909a16cc684b9f11e232eb5329d093fc7ceeeb5a4d9434459d0169395c
4
+ data.tar.gz: e5839562da56c532ce493bf0582061ec41a873342a79c70f516302ee27e5b910
5
5
  SHA512:
6
- metadata.gz: 3558b41b1158d11ee7d152119bfbd76cb3b205f4221f379d009e9e823c343cd56ceb109d04af2a464e4f4713d577fd1223572fdb8ddacd8641014f99cfa1dfa0
7
- data.tar.gz: 110d94b41040610061815119882b0ec4ddf67ebe218a410de3d91c3bf6a47a2f5f689828b5a1d477f5b4b2cd3f70f2057c49f6674afaf6c2d0cbedf6bae4bdc1
6
+ metadata.gz: d3c89be131243e7010236164d1b6ebd480e62865c63960d965c12a48c40c6ad726b2fba61c7daaf0732a0a865ac8f45a71486413b5c74c9d4bb91c190a02360d
7
+ data.tar.gz: 66996e68b9c3eee70c4d636071e23981537a2e0911c4fef6c519a23707c34252ed9a5ca6348fd796cd9f151138639d9f9667d497ea2fae816e98d4b305512bc6
data/config/default.yml CHANGED
@@ -703,7 +703,7 @@ PreCommit:
703
703
  enabled: false
704
704
  description: 'Analyze with RuboCop'
705
705
  required_executable: 'rubocop'
706
- flags: ['--format=emacs', '--force-exclusion', '--display-cop-names', '--disable-pending-cops']
706
+ flags: ['--format=emacs', '--force-exclusion', '--display-cop-names']
707
707
  install_command: 'gem install rubocop'
708
708
  include:
709
709
  - '**/*.gemspec'
@@ -52,7 +52,7 @@ module Overcommit
52
52
  err.rewind
53
53
  out.rewind
54
54
 
55
- Result.new(process.exit_code, to_utf8(out.read), to_utf8(err.read))
55
+ Result.new(process.exit_code, out.read, err.read)
56
56
  end
57
57
 
58
58
  # Spawns a new process in the background using the given array of
@@ -84,27 +84,6 @@ module Overcommit
84
84
  %w[cmd.exe /c] + [args.join(' ')]
85
85
  end
86
86
 
87
- # Convert string from current locale to utf-8
88
- #
89
- # When running commands under windows the command output is using
90
- # current system locale (depends on system lanuage) not UTF-8
91
- #
92
- # @param process [String]
93
- # @return [String]
94
- def to_utf8(string)
95
- # Our encoding code doesn't work on the GitHub Actions Windows
96
- # environment for unknown reasons, so just skip it in CI.
97
- return string if OS.windows? && ENV['GITHUB_ACTIONS']
98
-
99
- if Encoding.locale_charmap == 'UTF-8'
100
- return string
101
- end
102
-
103
- ec = Encoding::Converter.new(Encoding.locale_charmap, 'UTF-8')
104
- # Convert encoding, alternatively simple: string.scrub will suffice
105
- ec.convert(string)
106
- end
107
-
108
87
  # @param process [ChildProcess]
109
88
  # @return [Array<IO>]
110
89
  def assign_output_streams(process)
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Defines the gem version.
4
4
  module Overcommit
5
- VERSION = '0.59.0'
5
+ VERSION = '0.59.1'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: overcommit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.59.0
4
+ version: 0.59.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane da Silva
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-28 00:00:00.000000000 Z
11
+ date: 2022-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: childprocess