dws-registry 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/dws-registry.rb +5 -3
- metadata +2 -2
- metadata.gz.sig +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5bf2df6d7f3e5e48d65c3a1990ae4ac55f95bf84
|
4
|
+
data.tar.gz: b8763c62926e4fad3eb06ff257110ad7215d6503
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e92e85a95abd55616879088b9bb7dac9acd5eed22266e91fbd30cc3dd4f9560398a6b2fa539ebfc5ab427d93f0dc1c364191ac66411c5a7fb67cced3fccdefb3
|
7
|
+
data.tar.gz: 155aff3c366405e7fb492b089578994c625f5244159635e4469e5734b871095cf34e79dfe39393140d20f5d42d0a4673c7790e85866de53ded4b5591556cb7c9
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/dws-registry.rb
CHANGED
@@ -28,10 +28,12 @@ class DWSRegistry < XMLRegistry
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
-
def get_key(path)
|
31
|
+
def get_key(path, auto_detect_type: false)
|
32
32
|
|
33
33
|
e = super path
|
34
34
|
|
35
|
+
return e unless auto_detect_type
|
36
|
+
|
35
37
|
raw_c = e.attributes[:class]
|
36
38
|
c = raw_c.first if raw_c
|
37
39
|
s = e.text
|
@@ -54,7 +56,7 @@ class DWSRegistry < XMLRegistry
|
|
54
56
|
time: ->(x) {Time.parse x}
|
55
57
|
}
|
56
58
|
|
57
|
-
h[c.to_sym].call s
|
59
|
+
h[c.to_sym].call s
|
58
60
|
|
59
61
|
end
|
60
62
|
|
@@ -76,7 +78,7 @@ class DWSRegistry < XMLRegistry
|
|
76
78
|
e.parent.attributes[:last_modified] = Time.now
|
77
79
|
|
78
80
|
save() if @autosave
|
79
|
-
|
81
|
+
|
80
82
|
onchange = e.attributes[:onchange]
|
81
83
|
|
82
84
|
if onchange then
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dws-registry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
PGZIlz7FJwJ4++0ZB4E5454Xa7aPv5k3PP+urajaDnG0vSBYhI76SWHkG0+PBDau
|
32
32
|
8P/40FmSZqbOtg==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2015-04-
|
34
|
+
date: 2015-04-18 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: xml-registry
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
*rY*�O���PG8%�
|
2
|
+
C_��3��y��٬wc�6h9M��4��$����A�)9�AY*�����5c�'q̤D�z�_�g�! ���3 .���mXu۩q����4��nβ�Y�`�g�@�������C&�;�4��s$�_Kd`�-����M<�H !N�������x) /e��N������}�\>���&a�LN��@���6!bZ�o�9�� �e�n;��'��;�����B�Z.����$=�`~
|