dws-registry 0.2.5 → 0.3.0
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 +12 -1
- metadata +3 -3
- 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: aa96556e425c161cabf190f99d4f1e4534059649
|
4
|
+
data.tar.gz: 5c8336435fc5f98763912084508a6f6c187c18ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 758ce74e486d1f0784b6d7f3763f2ce1c204982c4850107bb5247f47c937e45ec549d49c93d624c2066da62683c2d750f369fe3166a26af504a315a572d01516
|
7
|
+
data.tar.gz: af79b54077ecb32ff31132602336bf647a8dae4481a4baf5f865ad62fa1852b9a3de81307eb6cb28b9dd35ecdd5be05efb49c8424e85f8b3130eabc976320a76
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/dws-registry.rb
CHANGED
@@ -4,6 +4,8 @@
|
|
4
4
|
|
5
5
|
require 'time'
|
6
6
|
require 'xml-registry'
|
7
|
+
require 'rscript'
|
8
|
+
|
7
9
|
|
8
10
|
class DWSRegistry < XMLRegistry
|
9
11
|
|
@@ -27,8 +29,9 @@ class DWSRegistry < XMLRegistry
|
|
27
29
|
end
|
28
30
|
|
29
31
|
def get_key(path)
|
30
|
-
|
32
|
+
|
31
33
|
e = super path
|
34
|
+
|
32
35
|
raw_c = e.attributes[:class]
|
33
36
|
c = raw_c.first if raw_c
|
34
37
|
s = e.text
|
@@ -73,6 +76,13 @@ class DWSRegistry < XMLRegistry
|
|
73
76
|
e.parent.attributes[:last_modified] = Time.now
|
74
77
|
|
75
78
|
save() if @autosave
|
79
|
+
|
80
|
+
onchange = e.attributes[:onchange]
|
81
|
+
|
82
|
+
if onchange then
|
83
|
+
RScript.new.run onchange.sub('$value', value).split
|
84
|
+
end
|
85
|
+
|
76
86
|
e
|
77
87
|
end
|
78
88
|
|
@@ -113,4 +123,5 @@ class DWSRegistry < XMLRegistry
|
|
113
123
|
end
|
114
124
|
end
|
115
125
|
|
126
|
+
|
116
127
|
end
|
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.
|
4
|
+
version: 0.3.0
|
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-
|
34
|
+
date: 2015-04-04 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: xml-registry
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|
82
82
|
rubyforge_project:
|
83
|
-
rubygems_version: 2.
|
83
|
+
rubygems_version: 2.4.6
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: dws-registry
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
B��
|
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���7�1}��5B}��}]���(ڞ���+{����"5��o��Z��?B�l��
|