spectifly 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/spectifly/version.rb +1 -1
- data/lib/tasks/spectifly.rake +5 -1
- metadata +1 -1
data/lib/spectifly/version.rb
CHANGED
data/lib/tasks/spectifly.rake
CHANGED
@@ -34,7 +34,11 @@ namespace :spectifly do
|
|
34
34
|
# just copy all the xsds over into each directory (naively assuming all directories are presenters), for easy zipping and whatnot
|
35
35
|
schema = Dir.glob(File.join(args[:destination_path], '*.xsd'))
|
36
36
|
Dir.glob(File.join(args[:destination_path], '*/')).each do |path|
|
37
|
-
|
37
|
+
next unless File.directory?(path)
|
38
|
+
schema.each do |file|
|
39
|
+
next if File.exist?(File.join(path, File.basename(file)))
|
40
|
+
FileUtils.cp file, path
|
41
|
+
end
|
38
42
|
end
|
39
43
|
end
|
40
44
|
|