overcommit 0.59.0 → 0.59.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/default.yml +1 -1
- data/lib/overcommit/subprocess.rb +1 -22
- data/lib/overcommit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cef58909a16cc684b9f11e232eb5329d093fc7ceeeb5a4d9434459d0169395c
|
4
|
+
data.tar.gz: e5839562da56c532ce493bf0582061ec41a873342a79c70f516302ee27e5b910
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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'
|
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,
|
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)
|
data/lib/overcommit/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2022-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: childprocess
|