zapwhite 2.13.0 → 2.18.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
2
  SHA1:
3
- metadata.gz: 8435f3678c780c9f8c20c3f01fb6e10593589090
4
- data.tar.gz: 51ec2d14cba5a0d3b52e41a7c2115cd68ddfdef8
3
+ metadata.gz: 66e20308b9554a3cb739cc4b6e10ed0599839a98
4
+ data.tar.gz: e587dfb1999833bf41136f365754d45aaad5fb38
5
5
  SHA512:
6
- metadata.gz: a250a0c649f15cac854399eb8ee4a53a8a750065d2f2bbe79a2ad99d285d3e21ecbe66a1d3a350255f99aca653d2675db3d454e070652118381624827a117a2e
7
- data.tar.gz: 63566b1ce95451e78a39cbcb1ba33f550dc231f22c12802e6d817d456ffc1c5ec00d8f51f9577d5312a05c2c34226460d2da026aa7dcae6f4c01bdfe9b6db1d2
6
+ metadata.gz: e219f4abba9eaf85248d45a117a144eb0c5cc2188d977d83ad64532b81e4e3f5e406dde417f6d14137f49d57248bf997fafa4ce4eb64170e5c50bb8db7fdc4f1
7
+ data.tar.gz: 731a5a2f305b5df51d3adabbed01a85cccebb2fb6d697385dd72b59bbf8d0b2700bcea8afedf4b388d4e0cb05674a9edf1dc6a12c65727eab2e651357a5e7b2b
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # zapwhite
2
2
 
3
- [![Build Status](https://secure.travis-ci.org/realityforge/zapwhite.svg?branch=master)](http://travis-ci.org/realityforge/zapwhite)
3
+ [![Build Status](https://api.travis-ci.com/realityforge/zapwhite.svg?branch=master)](http://travis-ci.com/realityforge/zapwhite)
4
4
 
5
5
  A simple tool to normalize whitespace in git repositories. The tool:
6
6
 
@@ -21,7 +21,8 @@ module Reality
21
21
  def initialize(base_directory)
22
22
  @base_directory = base_directory
23
23
  @attributes = Reality::Git::Attributes.parse(@base_directory)
24
- @exclude_patterns = %w(vendor/.* node_modules/.*) + load_braid_mirrors
24
+ # .ijwb is Bazel-IDEA directory while .idea is IDEAs normal directory structure.
25
+ @exclude_patterns = %w(vendor/.* node_modules/.* .ijwb/.* .idea/.*) + load_braid_mirrors
25
26
  @check_only = false
26
27
  @additional_gitattribute_rules = []
27
28
  end
@@ -212,6 +213,7 @@ module Reality
212
213
  attributes.text_rule('BUILD', :allow_empty => true)
213
214
  attributes.text_rule('BUILD.bazel', :allow_empty => true)
214
215
  attributes.text_rule('*.bzl')
216
+ attributes.text_rule('.bazelversion')
215
217
 
216
218
  # Ruby defaults
217
219
  attributes.text_rule('Gemfile')
@@ -249,6 +251,8 @@ module Reality
249
251
  attributes.text_rule('*.xsl')
250
252
  attributes.text_rule('*.wsdl')
251
253
  attributes.text_rule('*.toml')
254
+ attributes.text_rule('*.idl')
255
+ attributes.text_rule('*.webidl')
252
256
 
253
257
  # Build system defaults
254
258
  attributes.text_rule('buildfile')
@@ -270,6 +274,7 @@ module Reality
270
274
  attributes.text_rule('*.sass')
271
275
  attributes.text_rule('*.scss')
272
276
  attributes.text_rule('*.less')
277
+ attributes.text_rule('*.gss')
273
278
  attributes.text_rule('*.sql')
274
279
  attributes.text_rule('*.java')
275
280
  attributes.text_rule('*.jsp')
@@ -25,6 +25,8 @@ module Reality
25
25
 
26
26
  include Test::Unit::Assertions
27
27
 
28
+ @@fail_occurred = false
29
+
28
30
  def setup
29
31
  self.setup_working_dir
30
32
  end
@@ -43,8 +45,13 @@ module Reality
43
45
  def teardown_working_dir
44
46
  Dir.chdir(@cwd)
45
47
  if passed?
46
- FileUtils.rm_rf self.working_dir if File.exist?(self.working_dir)
48
+ if @@fail_occurred
49
+ FileUtils.rm_rf self.working_dir if File.exist?(self.working_dir)
50
+ else
51
+ FileUtils.rm_rf self.workspace_dir if File.exist?(self.workspace_dir)
52
+ end
47
53
  else
54
+ @@fail_occurred = true
48
55
  $stderr.puts "Test #{self.class.name}.#{name} Failed. Leaving working directory #{self.working_dir}"
49
56
  end
50
57
  end
@@ -207,6 +207,8 @@ Additional .gitattribute rules:
207
207
  Exclude patterns:
208
208
  * vendor/.*
209
209
  * node_modules/.*
210
+ * .ijwb/.*
211
+ * .idea/.*
210
212
  Fixing: .gitattributes
211
213
  OUTPUT
212
214
  end
@@ -267,6 +269,8 @@ Additional .gitattribute rules:
267
269
  Exclude patterns:
268
270
  * vendor/.*
269
271
  * node_modules/.*
272
+ * .ijwb/.*
273
+ * .idea/.*
270
274
  * vendor/docs/way_of_stock
271
275
  * vendor/tools/buildr_plus
272
276
  * vendor/tools/dbt
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{zapwhite}
5
- s.version = '2.13.0'
5
+ s.version = '2.18.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.13.0
4
+ version: 2.18.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: 2019-04-04 00:00:00.000000000 Z
11
+ date: 2020-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gitattributes