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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ecf40b364895fca334369ab6b6af6a4df9e147e
4
- data.tar.gz: f1f47927be8e0184eef8de9931a74ee55813d7bd
3
+ metadata.gz: aa96556e425c161cabf190f99d4f1e4534059649
4
+ data.tar.gz: 5c8336435fc5f98763912084508a6f6c187c18ff
5
5
  SHA512:
6
- metadata.gz: 4cbe4d748dbe8c0138a2c7c0ed8d54d5c82d800b9cd46c573b0fed9fc245e76f1eff31173bc961a8acd513c3fa1b6576a386e55ec1a00a60dfc09f806ad85689
7
- data.tar.gz: f8e4f81ef70b290599751fe4b00550b2690466f9ff6e7c08e6a4511ffcf8a302d96486b55a5688e157463de0a8aaaf27f55886a23e411f26f1d6c888a9a2ad78
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.2.5
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-03-09 00:00:00.000000000 Z
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.2.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
- d��a̐luNc�>a�aI��?�U�\��gNz��f��(����KM���c��Z���R9hZ���(Y,K��
2
- B��V�&)?�]�p��+nu�qM�
1
+ ��K��j�-g$n�����DI��ly�~�&��p[6��M�G5L��,����>�@�dR?�K*������j���8fQc��;��E#'H��1'k����iQ����1���6 l���_Ai8o�wd$�2������2�������Q-�
2
+ +�Sv���O+"hvӖRc��ɬi+�v��� al]��3�o���7�1}��5B}��}]���(ڞ���+{����"5��o��Z��?B�l��