hutch-xamplr 1.3.8 → 1.3.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/VERSION.yml +1 -1
- data/lib/xamplr/from-xml.rb +3 -3
- data/lib/xamplr/xampl-generator.rb +5 -4
- data/xamplr.gemspec +4 -4
- metadata +2 -2
data/Rakefile
CHANGED
@@ -11,7 +11,7 @@ begin
|
|
11
11
|
gem.authors = ["Bob Hutchison"]
|
12
12
|
gem.rubyforge_project = 'xampl'
|
13
13
|
|
14
|
-
gem.add_dependency('xamplr-pp', '>=1.
|
14
|
+
gem.add_dependency('hutch-xamplr-pp', '>=1.1.0')
|
15
15
|
gem.add_dependency('libxml-ruby', '>=1.1.3')
|
16
16
|
|
17
17
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
data/VERSION.yml
CHANGED
data/lib/xamplr/from-xml.rb
CHANGED
@@ -4,9 +4,9 @@ module Xampl
|
|
4
4
|
|
5
5
|
class FromXML
|
6
6
|
|
7
|
-
attr :checkWellFormed, false
|
8
|
-
attr :is_realising, false
|
9
|
-
attr :tokenise_content, false
|
7
|
+
attr :checkWellFormed #1.9.1 , false
|
8
|
+
attr :is_realising #1.9.1 , false
|
9
|
+
attr :tokenise_content #1.9.1 , false
|
10
10
|
|
11
11
|
@reader = nil
|
12
12
|
|
@@ -45,14 +45,14 @@ module XamplGenerator
|
|
45
45
|
"xamplr/templates/package.template",
|
46
46
|
]
|
47
47
|
|
48
|
-
def initialize(
|
48
|
+
def initialize(options_in = nil, *predefined_elements)
|
49
49
|
@elements_map = {}
|
50
50
|
@xpp = nil
|
51
51
|
@templates = nil
|
52
52
|
@generated_package_map = nil
|
53
53
|
|
54
|
-
if
|
55
|
-
@options =
|
54
|
+
if options_in then
|
55
|
+
@options = options_in
|
56
56
|
else
|
57
57
|
@options = Xampl.make(Options) do |options|
|
58
58
|
options.new_index_attribute("id")
|
@@ -366,7 +366,8 @@ module XamplGenerator
|
|
366
366
|
name.gsub!(/[A-Z]/, "_\\&")
|
367
367
|
name.gsub!(/__+/, "_")
|
368
368
|
class_name = ""
|
369
|
-
name.each("_") do |chunk|
|
369
|
+
#name.each("_") do |chunk|
|
370
|
+
name.split("_").each do |chunk|
|
370
371
|
class_name << chunk.capitalize
|
371
372
|
end
|
372
373
|
class_name.gsub!("_", "")
|
data/xamplr.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{xamplr}
|
5
|
-
s.version = "1.3.
|
5
|
+
s.version = "1.3.9"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Bob Hutchison"]
|
@@ -263,14 +263,14 @@ Gem::Specification.new do |s|
|
|
263
263
|
s.specification_version = 2
|
264
264
|
|
265
265
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
266
|
-
s.add_runtime_dependency(%q<xamplr-pp>, [">= 1.
|
266
|
+
s.add_runtime_dependency(%q<xamplr-pp>, [">= 1.1.0"])
|
267
267
|
s.add_runtime_dependency(%q<libxml-ruby>, [">= 1.1.3"])
|
268
268
|
else
|
269
|
-
s.add_dependency(%q<xamplr-pp>, [">= 1.
|
269
|
+
s.add_dependency(%q<xamplr-pp>, [">= 1.1.0"])
|
270
270
|
s.add_dependency(%q<libxml-ruby>, [">= 1.1.3"])
|
271
271
|
end
|
272
272
|
else
|
273
|
-
s.add_dependency(%q<xamplr-pp>, [">= 1.
|
273
|
+
s.add_dependency(%q<xamplr-pp>, [">= 1.1.0"])
|
274
274
|
s.add_dependency(%q<libxml-ruby>, [">= 1.1.3"])
|
275
275
|
end
|
276
276
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hutch-xamplr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Hutchison
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 1.
|
23
|
+
version: 1.1.0
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: libxml-ruby
|