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 +4 -4
- data/CHANGELOG +5 -1
- data/lib/rim/dirty_check.rb +9 -2
- data/lib/rim/file_helper.rb +0 -2
- data/lib/rim/version.rb +1 -1
- data/test/sync_helper_test.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07a1fbbfaea777a59dea664a3458cd05a8a875f9169f94cec9afe05c1bf7b146
|
4
|
+
data.tar.gz: 7cac49fee86369ee27616c2baff6a2fe3f5f8d07f90f12c7d4b7dce1dd58814b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/rim/dirty_check.rb
CHANGED
@@ -61,8 +61,15 @@ class DirtyCheck
|
|
61
61
|
files.delete("..")
|
62
62
|
# ignore the info file itself
|
63
63
|
files.delete(RimInfo::InfoFileName)
|
64
|
-
#
|
65
|
-
|
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!
|
data/lib/rim/file_helper.rb
CHANGED
data/lib/rim/version.rb
CHANGED
data/test/sync_helper_test.rb
CHANGED
@@ -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
|
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.
|
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:
|
11
|
+
date: 2019-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: subcommand
|