remote_dwsregistry 0.4.0 → 0.4.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.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/remote_dwsregistry.rb +8 -4
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: d321c2015f60cd8908834f1ada4ed1d93c65f579
|
|
4
|
+
data.tar.gz: 8b7c2dea91e852126dc3d5ea910689dff6c266fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7e3b9ed4580d99e0fb0ca0c71362bd0223cc0b630974acd174331f54a75a880d2e2f623be3bcb5c1937638884bd95308e5086d7b8eecd0dc2ef8de0e427b1582
|
|
7
|
+
data.tar.gz: b7f890351c68c3f604bb24caa1c7c3173e02a21c0631029730b5d29b41c0c1ce05213214bd15bf74e6cfb766c00392895ce3f48ae28709f7fc53de1c2928896e
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/remote_dwsregistry.rb
CHANGED
|
@@ -81,20 +81,24 @@ class RemoteDwsRegistry
|
|
|
81
81
|
|
|
82
82
|
doc = Rexle.new(r.body)
|
|
83
83
|
e = doc.root
|
|
84
|
-
|
|
84
|
+
c = e.attributes[:type]
|
|
85
85
|
|
|
86
|
-
if auto_detect_type == false then
|
|
86
|
+
if auto_detect_type == false or e.attributes[:type].nil? then
|
|
87
|
+
|
|
88
|
+
def e.to_h()
|
|
89
|
+
self.elements.inject({}) {|r,x| r.merge(x.name => x.text.to_s) }
|
|
90
|
+
end
|
|
87
91
|
|
|
88
92
|
def e.to_os()
|
|
89
93
|
OpenStruct.new self.elements.inject({}) \
|
|
90
|
-
{|r,x| r.merge(x.name => x.text) }
|
|
94
|
+
{|r,x| r.merge(x.name => x.text.to_s) }
|
|
91
95
|
end
|
|
92
96
|
|
|
93
97
|
return e
|
|
94
98
|
end
|
|
95
99
|
|
|
96
100
|
|
|
97
|
-
|
|
101
|
+
|
|
98
102
|
s = e.text
|
|
99
103
|
|
|
100
104
|
return e if e.elements.length > 0 or s.nil?
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: remote_dwsregistry
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
|
35
35
|
lf+G3rBrUndsAjdu7IIfrTdKusuBHZGgcr6+IrbQcX+O1Uw4tFUitV5FA9VK69Hs
|
|
36
36
|
zKfjberrEXRarMwv+AQWg2Ca
|
|
37
37
|
-----END CERTIFICATE-----
|
|
38
|
-
date:
|
|
38
|
+
date: 2019-03-17 00:00:00.000000000 Z
|
|
39
39
|
dependencies:
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: rexle
|
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
124
124
|
version: '0'
|
|
125
125
|
requirements: []
|
|
126
126
|
rubyforge_project:
|
|
127
|
-
rubygems_version: 2.
|
|
127
|
+
rubygems_version: 2.5.2.1
|
|
128
128
|
signing_key:
|
|
129
129
|
specification_version: 4
|
|
130
130
|
summary: Used in conjunction with the rack_dwsregistry gem to remotely get and set
|
metadata.gz.sig
CHANGED
|
Binary file
|