spectifly 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Spectifly
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -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
- FileUtils.cp schema, path
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spectifly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: