rxsd 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,24 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ .rbx
7
+ Gemfile.lock
8
+ InstalledFiles
9
+ .DS_Store
10
+ _yardoc
11
+ coverage
12
+ doc/
13
+ lib/bundler/man
14
+ pkg
15
+ rdoc
16
+ spec/reports
17
+ test/tmp
18
+ test/version_tmp
19
+ tmp
20
+ certificates/*.*
21
+ log/*.*
22
+ *.swp
23
+ *.swo
24
+ *~
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color --tty -c -fd
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/Rakefile CHANGED
@@ -3,48 +3,16 @@
3
3
  # Copyright (C) 2010 Mohammed Morsi <movitto@yahoo.com>
4
4
  # Licensed under the LGPLv3+ http://www.gnu.org/licenses/lgpl.txt
5
5
 
6
- require 'rake/rdoctask'
7
- require 'spec/rake/spectask'
8
- require 'rake/gempackagetask'
9
-
10
-
11
- GEM_NAME="rxsd"
12
- PKG_VERSION='0.5.1'
6
+ require 'rdoc/task'
7
+ require "rspec/core/rake_task"
13
8
 
14
9
  desc "Run all specs"
15
- Spec::Rake::SpecTask.new('spec') do |t|
16
- t.spec_files = FileList['spec/**/*_spec.rb']
10
+ RSpec::Core::RakeTask.new('rspec') do |t|
11
+ t.pattern = 'spec/**/*_spec.rb'
17
12
  end
18
13
 
19
14
  Rake::RDocTask.new do |rd|
20
- rd.main = "README.rdoc"
21
- rd.rdoc_dir = "doc/site/api"
22
- rd.rdoc_files.include("README.rdoc", "lib/**/*.rb")
23
- end
24
-
25
- PKG_FILES = FileList['lib/**/*.rb', 'COPYING', 'LICENSE', 'Rakefile', 'README.rdoc', 'spec/**/*.rb' ]
26
-
27
- SPEC = Gem::Specification.new do |s|
28
- s.name = GEM_NAME
29
- s.version = PKG_VERSION
30
- s.files = PKG_FILES
31
- s.executables << 'xsd_to_ruby' << 'rxsd_test'
32
-
33
- s.required_ruby_version = '>= 1.8.1'
34
- s.required_rubygems_version = Gem::Requirement.new(">= 1.3.3")
35
-
36
- s.add_dependency('libxml-ruby', '~> 1.1.4')
37
- s.add_development_dependency('rspec', '~> 1.3.0')
38
-
39
- s.author = "Mo Morsi"
40
- s.email = "mo@morsi.org"
41
- s.date = %q{2011-04-10}
42
- s.description = %q{A library to translate xsd schemas and xml implementations into ruby classes/objects}
43
- s.summary = %q{A library to translate xsd schemas and xml implementations into ruby classes/objects}
44
- s.homepage = %q{http://morsi.org/projects/RXSD}
45
- end
46
-
47
- Rake::GemPackageTask.new(SPEC) do |pkg|
48
- pkg.need_tar = true
49
- pkg.need_zip = true
15
+ rd.main = "README.rdoc"
16
+ rd.rdoc_dir = "doc/site/api"
17
+ rd.rdoc_files.include("README.rdoc", "lib/**/*.rb")
50
18
  end
data/TODO ADDED
@@ -0,0 +1,12 @@
1
+ Task list
2
+
3
+ * Support for missing XSD constructs (complete w/ tests):
4
+ - all / annotation / any / anyAttribute / appInfo / documentation / field /
5
+ import / include / key / keyref / notation / redefine / selector / union / unique
6
+ - add restrictions semantics
7
+ - add remote uri support to Loader, use in conjunction w/ import/include
8
+ * Complete builtin / native type support
9
+ * integration testing, test rxsd against many various actual xsd specs / xml impls
10
+ * more exceptions, logging, tests, bugfixes, enhancements
11
+ * Additional builder support
12
+ * Support for ruby class/obj -> xsd/xml
@@ -4,7 +4,7 @@
4
4
  # See COPYING for the License of this software
5
5
 
6
6
  # we make use of the activesupport inflector
7
- require 'active_support'
7
+ require 'active_support/inflector'
8
8
 
9
9
  # logger support
10
10
  require 'logger'
@@ -0,0 +1,23 @@
1
+ GEM_NAME="rxsd"
2
+ PKG_VERSION='0.5.2'
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = GEM_NAME
6
+ s.version = PKG_VERSION
7
+ s.files = `git ls-files`.split($/)
8
+ s.executables << 'xsd_to_ruby' << 'rxsd_test'
9
+
10
+ s.required_ruby_version = '>= 1.8.1'
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.3.3")
12
+
13
+ s.add_dependency('libxml-ruby', '~> 2.4.0')
14
+ s.add_dependency('activesupport', '~> 3.2.11')
15
+ s.add_development_dependency('rspec', '~> 2.12.0')
16
+
17
+ s.author = "Mo Morsi"
18
+ s.email = "mo@morsi.org"
19
+ s.date = Date.today.to_s
20
+ s.description = %q{A library to translate xsd schemas and xml implementations into ruby classes/objects}
21
+ s.summary = %q{A library to translate xsd schemas and xml implementations into ruby classes/objects}
22
+ s.homepage = %q{http://morsi.org/projects/RXSD}
23
+ end
@@ -3,8 +3,7 @@
3
3
  # Copyright (C) 2010 Mohammed Morsi <movitto@yahoo.com>
4
4
  # Licensed under the AGPLv3+ http://www.gnu.org/licenses/agpl.txt
5
5
 
6
- require 'rubygems'
7
- require 'spec'
6
+ require 'rspec'
8
7
 
9
8
  CURRENT_DIR=File.dirname(__FILE__)
10
9
  $: << File.expand_path(CURRENT_DIR + "/../lib")
metadata CHANGED
@@ -1,144 +1,143 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rxsd
3
- version: !ruby/object:Gem::Version
4
- hash: 9
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 5
9
- - 1
10
- version: 0.5.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.2
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Mo Morsi
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-04-10 00:00:00 -04:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2013-01-24 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: libxml-ruby
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 2.4.0
22
+ type: :runtime
23
23
  prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 2.4.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: activesupport
32
+ requirement: !ruby/object:Gem::Requirement
25
33
  none: false
26
- requirements:
34
+ requirements:
27
35
  - - ~>
28
- - !ruby/object:Gem::Version
29
- hash: 27
30
- segments:
31
- - 1
32
- - 1
33
- - 4
34
- version: 1.1.4
36
+ - !ruby/object:Gem::Version
37
+ version: 3.2.11
35
38
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: rspec
39
39
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 3.2.11
46
+ - !ruby/object:Gem::Dependency
47
+ name: rspec
48
+ requirement: !ruby/object:Gem::Requirement
41
49
  none: false
42
- requirements:
50
+ requirements:
43
51
  - - ~>
44
- - !ruby/object:Gem::Version
45
- hash: 27
46
- segments:
47
- - 1
48
- - 3
49
- - 0
50
- version: 1.3.0
52
+ - !ruby/object:Gem::Version
53
+ version: 2.12.0
51
54
  type: :development
52
- version_requirements: *id002
53
- description: A library to translate xsd schemas and xml implementations into ruby classes/objects
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 2.12.0
62
+ description: A library to translate xsd schemas and xml implementations into ruby
63
+ classes/objects
54
64
  email: mo@morsi.org
55
- executables:
65
+ executables:
56
66
  - xsd_to_ruby
57
67
  - rxsd_test
58
68
  extensions: []
59
-
60
69
  extra_rdoc_files: []
61
-
62
- files:
70
+ files:
71
+ - .gitignore
72
+ - .rspec
73
+ - COPYING
74
+ - Gemfile
75
+ - LICENSE
76
+ - README.rdoc
77
+ - Rakefile
78
+ - TODO
79
+ - bin/rxsd_test
80
+ - bin/xsd_to_ruby
63
81
  - lib/rxsd.rb
64
- - lib/rxsd/xml.rb
65
- - lib/rxsd/resolver.rb
82
+ - lib/rxsd/builder.rb
83
+ - lib/rxsd/builders/ruby_class.rb
84
+ - lib/rxsd/builders/ruby_definition.rb
85
+ - lib/rxsd/builders/ruby_object.rb
86
+ - lib/rxsd/builtin_types.rb
66
87
  - lib/rxsd/common.rb
67
- - lib/rxsd/xsd/group.rb
68
- - lib/rxsd/xsd/attribute_group.rb
69
- - lib/rxsd/xsd/simple_content.rb
70
- - lib/rxsd/xsd/list.rb
88
+ - lib/rxsd/exceptions.rb
89
+ - lib/rxsd/libxml_adapter.rb
90
+ - lib/rxsd/loader.rb
91
+ - lib/rxsd/parser.rb
92
+ - lib/rxsd/resolver.rb
93
+ - lib/rxsd/translator.rb
94
+ - lib/rxsd/xml.rb
71
95
  - lib/rxsd/xsd/attribute.rb
72
- - lib/rxsd/xsd/restriction.rb
96
+ - lib/rxsd/xsd/attribute_group.rb
73
97
  - lib/rxsd/xsd/choice.rb
74
- - lib/rxsd/xsd/element.rb
75
- - lib/rxsd/xsd/complex_type.rb
76
98
  - lib/rxsd/xsd/complex_content.rb
99
+ - lib/rxsd/xsd/complex_type.rb
100
+ - lib/rxsd/xsd/element.rb
77
101
  - lib/rxsd/xsd/extension.rb
102
+ - lib/rxsd/xsd/group.rb
103
+ - lib/rxsd/xsd/list.rb
104
+ - lib/rxsd/xsd/restriction.rb
78
105
  - lib/rxsd/xsd/schema.rb
79
- - lib/rxsd/xsd/simple_type.rb
80
106
  - lib/rxsd/xsd/sequence.rb
81
- - lib/rxsd/translator.rb
82
- - lib/rxsd/loader.rb
83
- - lib/rxsd/parser.rb
84
- - lib/rxsd/libxml_adapter.rb
85
- - lib/rxsd/builtin_types.rb
86
- - lib/rxsd/builders/ruby_object.rb
87
- - lib/rxsd/builders/ruby_definition.rb
88
- - lib/rxsd/builders/ruby_class.rb
89
- - lib/rxsd/exceptions.rb
90
- - lib/rxsd/builder.rb
91
- - COPYING
92
- - LICENSE
93
- - Rakefile
94
- - README.rdoc
107
+ - lib/rxsd/xsd/simple_content.rb
108
+ - lib/rxsd/xsd/simple_type.rb
109
+ - rxsd.gemspec
110
+ - spec/builder_spec.rb
111
+ - spec/loader_spec.rb
112
+ - spec/parser_spec.rb
113
+ - spec/resolver_spec.rb
95
114
  - spec/spec_helper.rb
96
115
  - spec/translator_spec.rb
97
- - spec/resolver_spec.rb
98
- - spec/parser_spec.rb
99
116
  - spec/types_spec.rb
100
- - spec/loader_spec.rb
101
117
  - spec/xml_spec.rb
102
- - spec/builder_spec.rb
103
- - bin/xsd_to_ruby
104
- - bin/rxsd_test
105
- has_rdoc: true
106
118
  homepage: http://morsi.org/projects/RXSD
107
119
  licenses: []
108
-
109
120
  post_install_message:
110
121
  rdoc_options: []
111
-
112
- require_paths:
122
+ require_paths:
113
123
  - lib
114
- required_ruby_version: !ruby/object:Gem::Requirement
124
+ required_ruby_version: !ruby/object:Gem::Requirement
115
125
  none: false
116
- requirements:
117
- - - ">="
118
- - !ruby/object:Gem::Version
119
- hash: 53
120
- segments:
121
- - 1
122
- - 8
123
- - 1
126
+ requirements:
127
+ - - ! '>='
128
+ - !ruby/object:Gem::Version
124
129
  version: 1.8.1
125
- required_rubygems_version: !ruby/object:Gem::Requirement
130
+ required_rubygems_version: !ruby/object:Gem::Requirement
126
131
  none: false
127
- requirements:
128
- - - ">="
129
- - !ruby/object:Gem::Version
130
- hash: 29
131
- segments:
132
- - 1
133
- - 3
134
- - 3
132
+ requirements:
133
+ - - ! '>='
134
+ - !ruby/object:Gem::Version
135
135
  version: 1.3.3
136
136
  requirements: []
137
-
138
137
  rubyforge_project:
139
- rubygems_version: 1.3.7
138
+ rubygems_version: 1.8.24
140
139
  signing_key:
141
140
  specification_version: 3
142
141
  summary: A library to translate xsd schemas and xml implementations into ruby classes/objects
143
142
  test_files: []
144
-
143
+ has_rdoc: