ncs_mdes 0.8.0 → 0.8.1

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.
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  NCS Navigator MDES Module history
2
2
  =================================
3
3
 
4
+ 0.8.1
5
+ ------
6
+
7
+ - Ensure that options are passed through all constructor methods to the leaves.
8
+ (#17)
9
+ - Accept options on the `NcsNavigator::Mdes(version)` shortcut method. (#18)
10
+
4
11
  0.8.0
5
12
  -----
6
13
 
@@ -74,7 +74,7 @@ module NcsNavigator::Mdes
74
74
  when 'minLength'
75
75
  vt.min_length = elt['value'].to_i
76
76
  when 'enumeration'
77
- (vt.code_list ||= CodeList.new) << CodeListEntry.from_xsd_enumeration(elt)
77
+ (vt.code_list ||= CodeList.new) << CodeListEntry.from_xsd_enumeration(elt, options)
78
78
  if elt['desc'] =~ /\S/
79
79
  if vt.code_list.description.nil?
80
80
  vt.code_list.description = elt['desc']
@@ -1,5 +1,5 @@
1
1
  module NcsNavigator
2
2
  module Mdes
3
- VERSION = '0.8.0'
3
+ VERSION = '0.8.1'
4
4
  end
5
5
  end
@@ -22,8 +22,8 @@ module NcsNavigator
22
22
 
23
23
  ##
24
24
  # @return [Mdes::Specification] a new {Mdes::Specification} for the given
25
- # version.
26
- def self.Mdes(version)
27
- Mdes::Specification.new(version)
25
+ # version. See {Specification#initialize} for accepted options.
26
+ def self.Mdes(version, options={})
27
+ Mdes::Specification.new(version, options)
28
28
  end
29
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ncs_mdes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
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: 2012-09-05 00:00:00.000000000 Z
12
+ date: 2012-09-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -163,18 +163,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
163
163
  - - ! '>='
164
164
  - !ruby/object:Gem::Version
165
165
  version: '0'
166
- segments:
167
- - 0
168
- hash: -3892920611688872605
169
166
  required_rubygems_version: !ruby/object:Gem::Requirement
170
167
  none: false
171
168
  requirements:
172
169
  - - ! '>='
173
170
  - !ruby/object:Gem::Version
174
171
  version: '0'
175
- segments:
176
- - 0
177
- hash: -3892920611688872605
178
172
  requirements: []
179
173
  rubyforge_project:
180
174
  rubygems_version: 1.8.24