spectifly 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
|