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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa96556e425c161cabf190f99d4f1e4534059649
4
- data.tar.gz: 5c8336435fc5f98763912084508a6f6c187c18ff
3
+ metadata.gz: 5bf2df6d7f3e5e48d65c3a1990ae4ac55f95bf84
4
+ data.tar.gz: b8763c62926e4fad3eb06ff257110ad7215d6503
5
5
  SHA512:
6
- metadata.gz: 758ce74e486d1f0784b6d7f3763f2ce1c204982c4850107bb5247f47c937e45ec549d49c93d624c2066da62683c2d750f369fe3166a26af504a315a572d01516
7
- data.tar.gz: af79b54077ecb32ff31132602336bf647a8dae4481a4baf5f865ad62fa1852b9a3de81307eb6cb28b9dd35ecdd5be05efb49c8424e85f8b3130eabc976320a76
6
+ metadata.gz: e92e85a95abd55616879088b9bb7dac9acd5eed22266e91fbd30cc3dd4f9560398a6b2fa539ebfc5ab427d93f0dc1c364191ac66411c5a7fb67cced3fccdefb3
7
+ data.tar.gz: 155aff3c366405e7fb492b089578994c625f5244159635e4469e5734b871095cf34e79dfe39393140d20f5d42d0a4673c7790e85866de53ded4b5591556cb7c9
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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.0
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-04 00:00:00.000000000 Z
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
- ��K��j�-g$n�����DI��ly�~�&��p[6��M�G5�L��,����>�@�dR?�K*������j���8fQc��;��E#'H��1'k����iQ����1���6 l���_Ai8�o�wd$�2������2�������Q-�
2
- +�Sv���O+"hvӖRc��ɬi+�v��� al]��3�o���71}��5B}��}]���(ڞ���+{����"5��o��Z��?B�l��
1
+ *rY*�O���PG8%�
2
+ C_��3��y��٬wc6h9M��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.����$=�`~