omf_common 6.0.8.pre.5 → 6.1.0
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.
|
@@ -249,17 +249,19 @@ class XML
|
|
|
249
249
|
when Hash
|
|
250
250
|
[].tap do |array|
|
|
251
251
|
value.each_pair do |k, v|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
c_node.
|
|
259
|
-
|
|
260
|
-
|
|
252
|
+
unless v.nil?
|
|
253
|
+
k = escape_key(k)
|
|
254
|
+
n = Niceogiri::XML::Node.new(k, nil, OMF_NAMESPACE)
|
|
255
|
+
n.write_attr('type', ruby_type_2_prop_type(v.class))
|
|
256
|
+
|
|
257
|
+
c_node = value_node_set(v, k)
|
|
258
|
+
if c_node.class == Array
|
|
259
|
+
c_node.each { |c_n| n.add_child(c_n) }
|
|
260
|
+
else
|
|
261
|
+
n.add_child(c_node)
|
|
262
|
+
end
|
|
263
|
+
array << n
|
|
261
264
|
end
|
|
262
|
-
array << n
|
|
263
265
|
end
|
|
264
266
|
end
|
|
265
267
|
when Array
|
data/lib/omf_common/version.rb
CHANGED
|
@@ -9,7 +9,7 @@ module OmfCommon
|
|
|
9
9
|
def self.version_of(name)
|
|
10
10
|
git_tag = `git describe --tags 2> /dev/null`
|
|
11
11
|
gem_v = Gem.loaded_specs[name].version.to_s rescue '0.0.0'
|
|
12
|
-
git_tag.empty? ? gem_v : git_tag.gsub(/-/, '.')
|
|
12
|
+
git_tag.empty? ? gem_v : git_tag.gsub(/-/, '.').chomp
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
VERSION = version_of('omf_common')
|
metadata
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omf_common
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.0
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 6.1.0
|
|
5
|
+
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- NICTA
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-02-
|
|
12
|
+
date: 2014-02-19 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: minitest
|
|
@@ -342,12 +342,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
342
342
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
343
343
|
none: false
|
|
344
344
|
requirements:
|
|
345
|
-
- - ! '
|
|
345
|
+
- - ! '>='
|
|
346
346
|
- !ruby/object:Gem::Version
|
|
347
|
-
version:
|
|
347
|
+
version: '0'
|
|
348
348
|
requirements: []
|
|
349
349
|
rubyforge_project: omf_common
|
|
350
|
-
rubygems_version: 1.8.
|
|
350
|
+
rubygems_version: 1.8.23
|
|
351
351
|
signing_key:
|
|
352
352
|
specification_version: 3
|
|
353
353
|
summary: Common library of OMF
|