activedocument 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -35,7 +35,7 @@ module ActiveDocument
35
35
  constraints = String.new
36
36
  @value_constraints.each do |key, value|
37
37
  constraints << <<-XML
38
- <constraint name="#{key}">
38
+ <constraint name="#{key.gsub(/\s/, '_')}">
39
39
  <value>
40
40
  <element ns="#{value["namespace"]}" name="#{value["element"]}"/>
41
41
  </value>
@@ -45,7 +45,7 @@ module ActiveDocument
45
45
 
46
46
  @word_constraints.each do |key, value|
47
47
  constraints << <<-XML
48
- <constraint name="#{key}">
48
+ <constraint name="#{key.gsub(/\s/, '_')}">
49
49
  <word>
50
50
  <element ns="#{value["namespace"]}" name="#{value["element"]}"/>
51
51
  </word>
@@ -55,7 +55,7 @@ module ActiveDocument
55
55
 
56
56
  @range_constraints.each do |key, value|
57
57
  constraints << <<-XML
58
- <constraint name="#{key}">
58
+ <constraint name="#{key.gsub(/\s/, '_')}">
59
59
  <range type="#{value["type"]}"
60
60
  XML
61
61
  if value.has_key?("collation")
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 1
9
- version: 0.2.1
8
+ - 2
9
+ version: 0.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Clark D. Richey, Jr.