schematic 0.1.5 → 0.1.6

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.
@@ -4,15 +4,30 @@ module Schematic
4
4
  "This class does not include ActiveModel. You cannot generate an XSD from it."
5
5
  end
6
6
  end
7
+ module Generator
8
+ autoload :Xsd, 'schematic/generator/xsd'
9
+ autoload :Names, 'schematic/generator/names'
10
+ autoload :Namespaces, 'schematic/generator/namespaces'
11
+ autoload :Column, 'schematic/generator/column'
12
+ autoload :Types, 'schematic/generator/types'
13
+
14
+ module Restrictions
15
+ autoload :Base, 'schematic/generator/restrictions/base'
16
+ autoload :Custom, 'schematic/generator/restrictions/custom'
17
+ autoload :Enumeration, 'schematic/generator/restrictions/enumeration'
18
+ autoload :Length, 'schematic/generator/restrictions/length'
19
+ autoload :Pattern, 'schematic/generator/restrictions/pattern'
20
+ end
21
+ end
22
+ module Serializers
23
+ autoload :Xsd, 'schematic/serializers/xsd'
24
+ end
25
+
26
+ autoload :Version, 'schematic/version'
7
27
  end
8
28
 
9
29
  require "builder"
10
-
11
30
  require 'active_support/inflector/inflections'
12
31
  require 'active_support/inflections'
13
32
 
14
- Dir[File.join(File.dirname(__FILE__), "schematic/**/*.rb")].each do |file|
15
- require file.gsub(/\/.rb$/,'')
16
- end
17
-
18
33
  ActiveRecord::Base.send(:extend, Schematic::Serializers::Xsd)
@@ -1,3 +1,3 @@
1
1
  module Schematic
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: schematic
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.5
5
+ version: 0.1.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Case Commons, LLC
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-12 00:00:00 Z
13
+ date: 2011-05-13 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord