xml-registry 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6668ee4223ab3eb56ff77361829c1d2ecb57465b
4
- data.tar.gz: 0b2199c68a5b72f805a44c26553a6b8abbd48dae
3
+ metadata.gz: 0753fdd623948a2ba3aff9b481c228ca0df4214c
4
+ data.tar.gz: 55306cb50439364ed2d6c1248fb6e61a4e71b23f
5
5
  SHA512:
6
- metadata.gz: 237bb8a4b1a17d0852ae380e0479d8ac7e2c4891edb099cafa7bac4e1a225037a01baff8fdecab645feb9f8879fa621526a054b5740867986ee44f21aa496361
7
- data.tar.gz: 2ef578860139ff673cd15f5e006bf1d4b6aec7116dc64aa082b1110f6f492a5ea3dbb3ada7ebcfe651eb0f49e37a5825e9fc24f44e0c100dd9a6440d3515bbc0
6
+ metadata.gz: '091c681b07467b59251d9ee4bf4f4fa2088931bf117476495d885b0c6b1e671de8e3ff911514d4592022044e56859d88cfdb43c50efc8c9734bcaa420797ffe6'
7
+ data.tar.gz: 3abb17788161ddec6aa4739009358b6e18e03b2e5f345f1fdd398524a14ee2643c21c4a60524e362b4135b4499f8b992d99a5211e8304d5b5930f8356c826ce5
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/xml-registry.rb CHANGED
@@ -68,7 +68,7 @@ class XMLRegistry
68
68
  # returns the value as a Rexle::Element
69
69
  #
70
70
  def get_key(path)
71
- puts 'inside get_key'
71
+
72
72
  key = @doc.root.element path
73
73
  raise ("xml-registry: key %s not found" % path) unless key
74
74
 
@@ -95,6 +95,10 @@ class XMLRegistry
95
95
  def to_kvx()
96
96
  Kvx.new(to_h(self), attributes: {key: @path})
97
97
  end
98
+
99
+ def to_os()
100
+ OpenStruct.new(to_h(self).first.last)
101
+ end
98
102
  }
99
103
 
100
104
  key
@@ -255,4 +259,4 @@ class XMLRegistry
255
259
  out
256
260
  end
257
261
 
258
- end
262
+ end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xml-registry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  8NnTRE6giDgOSmiS3cUBa4NDAOa0G4FP3jSUGMylDswvYepLYk5XYONr9/0NQ66a
32
32
  dQHXSvg1fTpm2Q==
33
33
  -----END CERTIFICATE-----
34
- date: 2017-01-03 00:00:00.000000000 Z
34
+ date: 2017-03-08 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: simple-config
metadata.gz.sig CHANGED
Binary file