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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c17fd4d5c73064214f1007dfa1961972b132447
4
- data.tar.gz: e220fc292b54eb3aba9cebcf70d620bf64e663a8
3
+ metadata.gz: a353f14c43f8264fb73734b7a233f0b35c08856b
4
+ data.tar.gz: 6815b80d19d019e4d8ce6e882d6c348b715d9958
5
5
  SHA512:
6
- metadata.gz: 7235e9a6e47498e3402dba680c34a782a99af5bc03656c8e2fcdfbdb29eb2a36bea73829db48003fda6513693a2932cf42c964e6e171885793e670f41ab445cc
7
- data.tar.gz: 364d59fac04a223bc6e54819e0991f26e877615bdd7772caa4680e655bf1e4a6fe3270eca75bebba87505a1f167cdf41026419ceabcbaf234c06baa429d79e46
6
+ metadata.gz: 817077bf1e86ecc36915b5bb04ca95300cde6a0c6d84618a8998abf6dcb7b877df532f0db2c99901582e9b6f609eb0a413d4b8fd8abfd34b5063f0a6da98e74f
7
+ data.tar.gz: f75f9fe2a055d8bdc3e7d1a818f1eae681ee6a362d3c65b22e5968aa6323ea296f8a8b05cf28ab8dd8bb63aa60bc4b8690ccea0fbf1b22ec7a8429daab533671
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- clintegracon (0.8.0)
4
+ clintegracon (0.8.1)
5
5
  colored (~> 1.2)
6
6
  diffy
7
7
 
@@ -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
- Dir.glob("**/*", context.include_hidden_files? ? File::FNM_DOTMATCH : 0).sort.map do |p|
224
- Pathname(p)
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.fnmatch(pattern, path)
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
@@ -1,3 +1,3 @@
1
1
  module CLIntegracon
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
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.0
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-17 00:00:00.000000000 Z
11
+ date: 2015-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler