zapwhite 2.19.0 → 2.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +4 -2
- data/bin/zapwhite +8 -1
- data/lib/reality/zapwhite.rb +1 -1
- data/test/reality/test_zapwhite.rb +2 -0
- data/zapwhite.gemspec +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 20697544b14f4ef659e8fa495db789b6d1c5453ec0c2acb7189842b56a9cb325
|
4
|
+
data.tar.gz: 1fa4bf75f01df73f4baf32b13c7cff6067eac921ca09d753917a7f1a93040775
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 965db5347d01214a679c731f18be086c1bad7bcb24581e918f21e144a74ecd1d95e0bd762b7046d1e867958727fd19b3593bab98a44dab3f90101d06367f0db2
|
7
|
+
data.tar.gz: cefb30d0589b9fc70129aefc6d061875539651de772e180b50c96fe2a22b9dddc9b8299e585ee9addc17a320638dbcdcee94379ce089fe9cca52bed2ca5fdc8f
|
data/.travis.yml
CHANGED
data/bin/zapwhite
CHANGED
@@ -10,6 +10,7 @@ require 'reality/zapwhite'
|
|
10
10
|
@check_only = false
|
11
11
|
@generate_gitattributes = true
|
12
12
|
@exclude_patterns = []
|
13
|
+
@omit_default_excludes = false
|
13
14
|
@rules = []
|
14
15
|
@base_directory = Dir.pwd
|
15
16
|
OptionParser.new do |opts|
|
@@ -27,6 +28,10 @@ OptionParser.new do |opts|
|
|
27
28
|
@base_directory = base_directory
|
28
29
|
end
|
29
30
|
|
31
|
+
opts.on('--omit-default-excludes', 'Do not add the default excludes.') do |pattern|
|
32
|
+
@omit_default_excludes = true
|
33
|
+
end
|
34
|
+
|
30
35
|
opts.on('-e', '--exclude-pattern PATTERN', 'Replace default exclude patterns with pattern(s) specified.') do |pattern|
|
31
36
|
@exclude_patterns << pattern
|
32
37
|
end
|
@@ -49,8 +54,9 @@ runner = Reality::Zapwhite.new(File.expand_path(@base_directory))
|
|
49
54
|
runner.check_only = @check_only
|
50
55
|
runner.generate_gitattributes = @generate_gitattributes
|
51
56
|
runner.additional_gitattribute_rules = @rules
|
57
|
+
runner.exclude_patterns.clear if @omit_default_excludes
|
58
|
+
|
52
59
|
unless @exclude_patterns.empty?
|
53
|
-
runner.exclude_patterns.clear
|
54
60
|
@exclude_patterns.each do |exclude_pattern|
|
55
61
|
runner.exclude_patterns << exclude_pattern
|
56
62
|
end
|
@@ -66,6 +72,7 @@ if @verbose
|
|
66
72
|
puts " * #{rule}"
|
67
73
|
end
|
68
74
|
end
|
75
|
+
puts "Omit default excludes?: #{@omit_default_excludes}"
|
69
76
|
unless runner.exclude_patterns.empty?
|
70
77
|
puts 'Exclude patterns:'
|
71
78
|
runner.exclude_patterns.each do |pattern|
|
data/lib/reality/zapwhite.rb
CHANGED
@@ -211,7 +211,7 @@ module Reality
|
|
211
211
|
attributes.text_rule('.bazelrc')
|
212
212
|
attributes.text_rule('WORKSPACE')
|
213
213
|
attributes.text_rule('BUILD', :allow_empty => true)
|
214
|
-
attributes.text_rule('
|
214
|
+
attributes.text_rule('*.bazel', :allow_empty => true)
|
215
215
|
attributes.text_rule('*.bzl')
|
216
216
|
attributes.text_rule('.bazelversion')
|
217
217
|
|
@@ -204,6 +204,7 @@ Generate .gitattributes file?: true
|
|
204
204
|
Additional .gitattribute rules:
|
205
205
|
* *.bin -diff
|
206
206
|
* *.rxt text
|
207
|
+
Omit default excludes?: false
|
207
208
|
Exclude patterns:
|
208
209
|
* vendor/.*
|
209
210
|
* node_modules/.*
|
@@ -266,6 +267,7 @@ Generate .gitattributes file?: true
|
|
266
267
|
Additional .gitattribute rules:
|
267
268
|
* *.bin -diff
|
268
269
|
* *.rxt text
|
270
|
+
Omit default excludes?: false
|
269
271
|
Exclude patterns:
|
270
272
|
* vendor/.*
|
271
273
|
* node_modules/.*
|
data/zapwhite.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zapwhite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.21.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Donald
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gitattributes
|
@@ -99,8 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
99
|
- !ruby/object:Gem::Version
|
100
100
|
version: '0'
|
101
101
|
requirements: []
|
102
|
-
|
103
|
-
rubygems_version: 2.5.1
|
102
|
+
rubygems_version: 3.1.4
|
104
103
|
signing_key:
|
105
104
|
specification_version: 4
|
106
105
|
summary: A simple tool to normalize whitespace in git repositories.
|