esr-rim 1.4.2 → 1.4.3

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
  SHA256:
3
- metadata.gz: bdd17c24fa16f44fb9d746f559792de236d441f42a9a49174a87edfcea479395
4
- data.tar.gz: e789260532bade62c2bc64dbc88eae3ed532f32c7989858bfa50a7931ebeef5f
3
+ metadata.gz: 07a1fbbfaea777a59dea664a3458cd05a8a875f9169f94cec9afe05c1bf7b146
4
+ data.tar.gz: 7cac49fee86369ee27616c2baff6a2fe3f5f8d07f90f12c7d4b7dce1dd58814b
5
5
  SHA512:
6
- metadata.gz: f9e463d07bea078b84c3c36a5c18248996fe7e9bcd74a9482790c1173ce0b2b9abd65eb6c14abdb31b4a218dcef54b149c9827de21da15bac9703ac84fb37365
7
- data.tar.gz: b073b89e8afd986decc656f00ad3b8d8431317548d6c9bdfc9df16f6bf9cceaa7bbed093497ed5fe5c2d3a8fd9b084c29ec8a551a5a5a6b64d76c9a1ec60578e
6
+ metadata.gz: 8c7bac0172d50bade9adca66d71919d7e28c2f1b4395ed0f9b51b3bea915976a2aa4eb942f19a0aa12a7bec9b74689615ebfe67903355bc1ec70c7f3a681cc8b
7
+ data.tar.gz: 233832de324ee2ac314ce6e495dc2accbdb1777ea893af6b87001c27bc1d8bd843eca9faa4bba442645914014d1df3f7d6b73d09e75639528e2ef217a0695adb
data/CHANGELOG CHANGED
@@ -134,4 +134,8 @@
134
134
 
135
135
  # 1.4.2
136
136
 
137
- * Fixed temporary-folder-generation on Windows, which could e.g. break the dirty check
137
+ * Fixed temporary-folder-generation on Windows, which could e.g. break the dirty check
138
+
139
+ # 1.4.3
140
+
141
+ * Fixed ignore-filter which could break if temporary files are created and deleted in parallel processes
@@ -61,8 +61,15 @@ class DirtyCheck
61
61
  files.delete("..")
62
62
  # ignore the info file itself
63
63
  files.delete(RimInfo::InfoFileName)
64
- # ignores defined by user
65
- files -= FileHelper.find_matching_files(dir, false, mi.ignores)
64
+ # ignore all other files
65
+ # (note: in esr-rim <= 1.42 this was realized by Dir::glob, but this breaks if "dir" is
66
+ # changed during the check, e.g. by parallel unittest builds
67
+ # fnIgn is calculated like find_matching_files did it before to avoid problems
68
+ dirpath = Pathname.new(dir)
69
+ fnIgn = FileHelper.normalize_patterns(mi.ignores).map do |m|
70
+ Pathname.new(File.join(dir, m)).relative_path_from(dirpath).to_s
71
+ end
72
+ files.delete_if { |f| fnIgn.any?{|m| File.fnmatch(m, f, File::FNM_PATHNAME)} }
66
73
  # order of files makes a difference
67
74
  # sort to eliminate platform specific glob behavior
68
75
  files.sort!
@@ -40,8 +40,6 @@ class FileHelper
40
40
  FileUtils.mkdir_p(dir)
41
41
  end
42
42
 
43
- private
44
-
45
43
  def self.normalize_patterns(patterns = [])
46
44
  if patterns.is_a?(String)
47
45
  return patterns.split(",").each do |p|
@@ -2,7 +2,7 @@ module RIM
2
2
 
3
3
  module Version
4
4
 
5
- Version = "1.4.2"
5
+ Version = "1.4.3"
6
6
 
7
7
  end
8
8
 
@@ -171,7 +171,7 @@ class SyncHelperTest < Minitest::Test
171
171
  cut.sync
172
172
  RIM::git_session(@ws_dir) do |s|
173
173
  s.execute("git rebase rim/testbr")
174
- out = s.execute("git show --name-only")
174
+ out = s.execute("git show")
175
175
  assert out.include?("readme.txt")
176
176
  assert out.include?("Readme.txt")
177
177
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esr-rim
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ESR Labs AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-22 00:00:00.000000000 Z
11
+ date: 2019-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: subcommand