xmlregistry_objects 0.5.2 → 0.6.5
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/lib/xmlregistry_objects.rb +9 -3
- data.tar.gz.sig +0 -0
- metadata +6 -6
- metadata.gz.sig +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8646da44211ac3c23286f63d1c8bba49eff96fa
|
4
|
+
data.tar.gz: e5228e4ee77fecc2583c5bd0a2a81fbf26689556
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fb8ba88d8e3648697adac65e9415b6d6d08d3c72be62a8406470db95115e338edf38ca2dd1ca1b5f8f9708e910a66c1b67c90e82ac0952f0cb93039755b5221
|
7
|
+
data.tar.gz: 347bf329f67361e27b563de7b486a52b918164332ace9c1e038f62e31b45bc3c227ef039d1dd4f6d3be9016b3c42ff3e112ad723d11acf2a2a5b8087d22a81eb
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/xmlregistry_objects.rb
CHANGED
@@ -35,7 +35,7 @@ class XMLRegistryObjects
|
|
35
35
|
class_name = name.capitalize
|
36
36
|
klass = Object.const_set(class_name,Class.new)
|
37
37
|
|
38
|
-
|
38
|
+
base_methods = "
|
39
39
|
def initialize(reg)
|
40
40
|
@reg = reg
|
41
41
|
end
|
@@ -44,11 +44,17 @@ class XMLRegistryObjects
|
|
44
44
|
lm = @reg.get_key('#{path}').attributes[:last_modified]
|
45
45
|
Time.parse(lm) if lm
|
46
46
|
end
|
47
|
+
|
48
|
+
def set(h)
|
49
|
+
|
50
|
+
h.each {|key,value| self.method((key.to_s + '=').to_sym).call value }
|
51
|
+
|
52
|
+
end
|
47
53
|
"
|
48
54
|
|
49
55
|
s = if row.records.any? then
|
50
56
|
|
51
|
-
row.records.inject(
|
57
|
+
row.records.inject(base_methods) do |r, attr|
|
52
58
|
|
53
59
|
attr_name, subkey = attr.name, attr.subkeyname
|
54
60
|
key = path + '/' + subkey
|
@@ -62,7 +68,7 @@ class XMLRegistryObjects
|
|
62
68
|
|
63
69
|
a = reg.xpath("#{path}/*")
|
64
70
|
|
65
|
-
a.inject(
|
71
|
+
a.inject(base_methods) do |r, x|
|
66
72
|
|
67
73
|
methods_name = subkey = x.name
|
68
74
|
type = x.attributes[:class]
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xmlregistry_objects
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5
|
4
|
+
version: 0.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
wqxRKfbBOqXm+dGN+8ORUi9zTMOCo8Ga+cAbwYouf3Rzoq8gZMo6o1ZuAyEu1Vjl
|
32
32
|
u2W9v1mcGY4/Vw==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2015-04-
|
34
|
+
date: 2015-04-06 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: dws-registry
|
@@ -39,20 +39,20 @@ dependencies:
|
|
39
39
|
requirements:
|
40
40
|
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '0.
|
42
|
+
version: '0.3'
|
43
43
|
- - ">="
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 0.
|
45
|
+
version: 0.3.0
|
46
46
|
type: :runtime
|
47
47
|
prerelease: false
|
48
48
|
version_requirements: !ruby/object:Gem::Requirement
|
49
49
|
requirements:
|
50
50
|
- - "~>"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '0.
|
52
|
+
version: '0.3'
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0.
|
55
|
+
version: 0.3.0
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: polyrex
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
��~?2z��b�б�H��&��e!��=���o]����nߐ��H��
|
2
|
+
�?��؆����L!%�f�mM����H��3��"S��Y}S�'T�G�o#���th1k���^%���l/}z;.�������wwE������V>g�0�D/�`���OU�9���wɰ����w3D��Y1� �G�O�ށ�7˗Z`��JAHʭH��H��M��%Z�-?��VVc���=�m���D���Fo�1��pq���
|