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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 207aa77c006daac2c0831c7ead8bb11404acb2bd
4
- data.tar.gz: a8cc9c6f2363a0bb325f047958548a6439a8f89e
3
+ metadata.gz: 5db41fc018046a7a903d42d3e72cb271b0f97611
4
+ data.tar.gz: 263ff2f9129217a16aa8a164dc362c6b05aa00a1
5
5
  SHA512:
6
- metadata.gz: 476a53eb4b300190ba7e7915f6b92e84d2f92cdfbfb235e9b7fe7eeaf75cab8fd3858153966c365d646e5838bb4b520e1b01ca390e3f72226b91f32c64537370
7
- data.tar.gz: 257943317ee61b548ea3b0a47c54e3e252b822f67e5f7d571c98fa2a566d786e5480a24afc2c1ae3426e9ba5d19546cafaead13cfe481418c29298daddefe601
6
+ metadata.gz: 8ec3e3ce82474f5e99cc42e4702695a20b2d58ee83f6391bf4a3f8f8f3edacf476c225f24169c65d3d0422d2f418a37ddd09b36295d2b322e43db400def8447f
7
+ data.tar.gz: c51a73320d15c30a5a790e4f908e790bea895e158ee167ea96a1ee33a3d46040d067a8cb841e5a86b1fca4d7ea8d8a36ee8d7f012b76c972909eb9fe8d6dfbc5
@@ -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
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
- 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
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.14.0'
5
+ s.version = '2.15.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.14.0
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-04-24 00:00:00.000000000 Z
11
+ date: 2019-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gitattributes