clintegracon 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/CLIntegracon/file_tree_spec.rb +4 -3
- data/lib/CLIntegracon/file_tree_spec_context.rb +3 -1
- data/lib/CLIntegracon/version.rb +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: a353f14c43f8264fb73734b7a233f0b35c08856b
|
4
|
+
data.tar.gz: 6815b80d19d019e4d8ce6e882d6c348b715d9958
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 817077bf1e86ecc36915b5bb04ca95300cde6a0c6d84618a8998abf6dcb7b877df532f0db2c99901582e9b6f609eb0a413d4b8fd8abfd34b5063f0a6da98e74f
|
7
|
+
data.tar.gz: f75f9fe2a055d8bdc3e7d1a818f1eae681ee6a362d3c65b22e5968aa6323ea296f8a8b05cf28ab8dd8bb63aa60bc4b8690ccea0fbf1b22ec7a8429daab533671
|
data/Gemfile.lock
CHANGED
@@ -205,8 +205,9 @@ module CLIntegracon
|
|
205
205
|
def transform_paths!
|
206
206
|
glob_all.each do |path|
|
207
207
|
context.transformers_for(path).each do |transformer|
|
208
|
-
transformer.call(path)
|
208
|
+
transformer.call(path) if path.exist?
|
209
209
|
end
|
210
|
+
path.rmtree if context.ignores?(path) && path.exist?
|
210
211
|
end
|
211
212
|
end
|
212
213
|
|
@@ -220,8 +221,8 @@ module CLIntegracon
|
|
220
221
|
#
|
221
222
|
def glob_all(path=nil)
|
222
223
|
Dir.chdir path || '.' do
|
223
|
-
|
224
|
-
|
224
|
+
Pathname.glob("**/*", context.include_hidden_files? ? File::FNM_DOTMATCH : 0).sort.reject do |p|
|
225
|
+
%w(. ..).include?(p.basename.to_s)
|
225
226
|
end
|
226
227
|
end
|
227
228
|
end
|
@@ -233,7 +233,9 @@ module CLIntegracon
|
|
233
233
|
if pattern.is_a?(Regexp)
|
234
234
|
path.to_s.match(pattern)
|
235
235
|
else
|
236
|
-
File
|
236
|
+
flags = File::FNM_PATHNAME
|
237
|
+
flags |= File::FNM_DOTMATCH if include_hidden_files?
|
238
|
+
File.fnmatch(pattern, path, flags)
|
237
239
|
end
|
238
240
|
end
|
239
241
|
end
|
data/lib/CLIntegracon/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clintegracon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marius Rackwitz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|