expansions 0.4.28 → 0.4.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/expansions/expansion.rb +4 -4
- data/lib/expansions/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a57ddf75d06beed6bb228e8e3c8b873a24a5b866
|
4
|
+
data.tar.gz: 80ea35ffbb984504982cfe5a24d0684a6760952c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e5d7f035f332c36730d32a1aeb17ced90575170d3497dc1b6c3dcf9d3b1e03f3947fe074fed7d44e465204146c40e53f36cd80d7c4076bb968ed93201caad30
|
7
|
+
data.tar.gz: b0fed1960ba755cb28cf57fe3929d1efbac09bdc22747b5f29bdeb5655f12b7822528a8e8b8a6c08020aa3e70c50317704d80a49461d511da009434353aa2f82
|
data/lib/expansions/expansion.rb
CHANGED
@@ -39,8 +39,8 @@ module Expansions
|
|
39
39
|
super
|
40
40
|
initialize_hashes :files_to_merge,:copies
|
41
41
|
|
42
|
-
@globber = Proc.new do |path|
|
43
|
-
glob(path)
|
42
|
+
@globber = Proc.new do |path, exclude|
|
43
|
+
glob(path, exclude)
|
44
44
|
end
|
45
45
|
|
46
46
|
end
|
@@ -60,9 +60,9 @@ module Expansions
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def look_for_templates_in(path, options=Hash.new(nil))
|
63
|
-
|
63
|
+
exclude = options.fetch(:exclude, -> (file) { false })
|
64
64
|
|
65
|
-
globber.call(path,
|
65
|
+
globber.call(path, exclude).process_all_items_using(TemplateVisitor.instance)
|
66
66
|
end
|
67
67
|
|
68
68
|
def cleanup(&block)
|
data/lib/expansions/version.rb
CHANGED