zapwhite 2.14.0 → 2.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/reality/zapwhite.rb +2 -1
- data/test/helper.rb +8 -1
- data/test/reality/test_zapwhite.rb +4 -0
- data/zapwhite.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5db41fc018046a7a903d42d3e72cb271b0f97611
|
4
|
+
data.tar.gz: 263ff2f9129217a16aa8a164dc362c6b05aa00a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ec3e3ce82474f5e99cc42e4702695a20b2d58ee83f6391bf4a3f8f8f3edacf476c225f24169c65d3d0422d2f418a37ddd09b36295d2b322e43db400def8447f
|
7
|
+
data.tar.gz: c51a73320d15c30a5a790e4f908e790bea895e158ee167ea96a1ee33a3d46040d067a8cb841e5a86b1fca4d7ea8d8a36ee8d7f012b76c972909eb9fe8d6dfbc5
|
data/lib/reality/zapwhite.rb
CHANGED
@@ -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
|
-
|
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
|
data/test/helper.rb
CHANGED
@@ -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
|
-
|
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
|
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.15.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-
|
11
|
+
date: 2019-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gitattributes
|