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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ac8e043b355f3da81cb88546c8402d9535def365
4
- data.tar.gz: 1aeaccfe800b0640825cbb93354561fec3d5f987
2
+ SHA256:
3
+ metadata.gz: 20697544b14f4ef659e8fa495db789b6d1c5453ec0c2acb7189842b56a9cb325
4
+ data.tar.gz: 1fa4bf75f01df73f4baf32b13c7cff6067eac921ca09d753917a7f1a93040775
5
5
  SHA512:
6
- metadata.gz: 7a99adc59cec9961900f50ac1f06c1c6300f7a0ab497170e9d2cdb82207bdb3c2d1c1cecfd149bf0f5119f91e21ab6e9978385c3775f2dbafd2fe4f0fd4ebab9
7
- data.tar.gz: 2d73c40e2dc44bf70ce23fe69f8189fb5e194d70ad39d2c5a7284894d5aedcc86729a02b3e76728b3788dff76417e1ec317d78386a032199577d09b39285c986
6
+ metadata.gz: 965db5347d01214a679c731f18be086c1bad7bcb24581e918f21e144a74ecd1d95e0bd762b7046d1e867958727fd19b3593bab98a44dab3f90101d06367f0db2
7
+ data.tar.gz: cefb30d0589b9fc70129aefc6d061875539651de772e180b50c96fe2a22b9dddc9b8299e585ee9addc17a320638dbcdcee94379ce089fe9cca52bed2ca5fdc8f
data/.travis.yml CHANGED
@@ -1,7 +1,9 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.7.2
3
+ - 2.7.2
4
4
  git:
5
5
  depth: 10
6
6
  before_install:
7
- - gem update bundler
7
+ - rvm install ruby-2.7.2
8
+ - rvm use 2.7.2
9
+ - gem update bundler
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|
@@ -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('BUILD.bazel', :allow_empty => true)
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{zapwhite}
5
- s.version = '2.19.0'
5
+ s.version = '2.21.0'
6
6
  s.platform = Gem::Platform::RUBY
7
7
 
8
8
  s.authors = ['Peter Donald']
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.19.0
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: 2021-02-23 00:00:00.000000000 Z
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
- rubyforge_project:
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.