dws-registry 0.3.3 → 0.3.4
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/dws-registry.rb +4 -4
- data.tar.gz.sig +0 -0
- metadata +17 -17
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fcfd1a41f439a0f2d723a8dd6642ecbb451a7c2
|
4
|
+
data.tar.gz: 22c829b590de67d7407c0385f9f4baa70dabd321
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e8c83d0abb28dc422e28ef1038d88c669f5e5861ea7c853a0df0b3a42bfb60edf6029e599be8c60a408e5f881fabf4b9b0f2c3b7df15dda72218500a3d3c0b3
|
7
|
+
data.tar.gz: f95875272ce21815675d7419fd8245567bac2e587666cffccc2274c8bf0aeaf69d5620e2b3037e2380d0f89d66f810ccae5d97825d55ba0404b5ed717187872d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/dws-registry.rb
CHANGED
@@ -35,7 +35,7 @@ class DWSRegistry < XMLRegistry
|
|
35
35
|
|
36
36
|
return e unless auto_detect_type
|
37
37
|
|
38
|
-
raw_c = e.attributes[:
|
38
|
+
raw_c = e.attributes[:type]
|
39
39
|
c = raw_c.first if raw_c
|
40
40
|
s = e.text
|
41
41
|
|
@@ -76,8 +76,8 @@ class DWSRegistry < XMLRegistry
|
|
76
76
|
|
77
77
|
e = super(path, value)
|
78
78
|
|
79
|
-
type =
|
80
|
-
e.attributes[:
|
79
|
+
type = find_type value unless type
|
80
|
+
e.attributes[:type] = [type] if type
|
81
81
|
e.parent.attributes[:last_modified] = Time.now
|
82
82
|
|
83
83
|
save() if @autosave
|
@@ -118,7 +118,7 @@ class DWSRegistry < XMLRegistry
|
|
118
118
|
return e
|
119
119
|
end
|
120
120
|
|
121
|
-
def
|
121
|
+
def find_type(v)
|
122
122
|
|
123
123
|
if v[/^\d+$/] and v.to_i.to_s.length == v.length then :number
|
124
124
|
elsif v[/^\d+\.\d+$/] and v.to_f.to_s.length == v.length then :number
|
data.tar.gz.sig
CHANGED
Binary file
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -12,26 +12,26 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
14
14
|
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
15
|
-
|
15
|
+
8ixkARkWAmV1MB4XDTE2MDQyNjEzMTUwNVoXDTE3MDQyNjEzMTUwNVowSDESMBAG
|
16
16
|
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
|
17
17
|
EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
18
|
+
ggEBAN+Jp/sZJYci+TxuCaf4J9xa9omjnBGD2HqM2YI8cjGe0Bz+mURFIyV9ep0o
|
19
|
+
xw55IVbBri5M/pM0pcDHpM9wpmD6YGDnJ9q0ygehJn6QvJNssfkxNBq4CLOxuU0a
|
20
|
+
Si6n51yDIwLh/EiUtzYS6ZusdWvC3KG70FPSIPss9tOHKigQcVRbw3w4ax4c7bXj
|
21
|
+
Vru6XxUT+FFsZafOZJWpKOJzoFUzQHGgTODX1IR/hOJLz14N3NdWURMZ5wUGq/RH
|
22
|
+
OD86bLB9NGEGTT1wWUgEeP5NvpC4hk24zj9vZdSMxzwB80wlXlBXJzQyUndowB7U
|
23
|
+
QC3ivnne0/5LlvC53MUG4Xq4InECAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
|
24
|
+
DwQEAwIEsDAdBgNVHQ4EFgQUJwScWNkViwfp7Y31Otm9VePKtVUwJgYDVR0RBB8w
|
25
25
|
HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
26
|
+
c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAjvoe3dc6
|
27
|
+
O8km55DDDEJZhHrU4kuIAouyoBTykliN+csSzne1OImjNVanlAJ4acUexRARTDt8
|
28
|
+
0zYSlxXX/EPssx2Vgpo72eklUcYvw/qfmpynh7wb9aRHClRhFMITFI7JYGp+h+w3
|
29
|
+
ggutQLQjFjix3/H/HCxJF61XF2FYnkV5MPwnyJI6aFnToFKQxy/7jJs579ADIjyq
|
30
|
+
nFk+6jmdOK7V4PCM0SGigUElJiCye0Hf87088TSTn07AZLn8F1It+c19eG46BywG
|
31
|
+
0XzGUxkjm5R0yWtmQkbts5hIsUzYrePQYdEBps7HWS5oSLGYtc9tytqbTDLsm/CZ
|
32
|
+
UZ5W/bLquEICmw==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
34
|
+
date: 2016-04-26 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: xml-registry
|
metadata.gz.sig
CHANGED
Binary file
|