spectifly 0.0.3 → 0.0.4

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.
@@ -1,3 +1,3 @@
1
1
  module Spectifly
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -30,16 +30,15 @@ namespace :spectifly do
30
30
  end
31
31
  end
32
32
 
33
- Spectifly::Task.new('ensure_presenter_validity', [:destination_path]) do |spectifly, args|
34
- # just copy all the xsds over into each presenter directory, for easy zipping and whatnot
33
+ Spectifly::Task.new('package_presenter_schemas', [:destination_path]) do |spectifly, args|
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
- directories = (Dir.glob(File.join(args[:destination_path], "*")) - schema)
37
- directories.each do |path|
36
+ Dir.glob(File.join(args[:destination_path], '*/')).each do |path|
38
37
  FileUtils.cp schema, path
39
38
  end
40
39
  end
41
40
 
42
41
  desc 'Generate all XSDs for the configured entity directory, including extended type definitions'
43
- task :generate_all, [:destination_path] => [:generate_from_entities, :generate_extended_types, :ensure_presenter_validity]
42
+ task :generate_all, [:destination_path] => [:generate_from_entities, :generate_extended_types, :package_presenter_schemas]
44
43
  end
45
44
  end
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.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-31 00:00:00.000000000 Z
12
+ date: 2013-08-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: builder
@@ -207,18 +207,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
207
207
  - - ! '>='
208
208
  - !ruby/object:Gem::Version
209
209
  version: '0'
210
- segments:
211
- - 0
212
- hash: -3903166964616575918
213
210
  required_rubygems_version: !ruby/object:Gem::Requirement
214
211
  none: false
215
212
  requirements:
216
213
  - - ! '>='
217
214
  - !ruby/object:Gem::Version
218
215
  version: '0'
219
- segments:
220
- - 0
221
- hash: -3903166964616575918
222
216
  requirements: []
223
217
  rubyforge_project:
224
218
  rubygems_version: 1.8.23
@@ -254,3 +248,4 @@ test_files:
254
248
  - spec/spectifly/xsd/field_spec.rb
255
249
  - spec/spectifly/xsd/types_spec.rb
256
250
  - spec/support/path_helper.rb
251
+ has_rdoc: