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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7752123bb5ab4b719dc176d9491bbb8d3a9c9d3
4
- data.tar.gz: 8f7fd4514dedef958466edd5ae99fddf1f79572a
3
+ metadata.gz: 7fcfd1a41f439a0f2d723a8dd6642ecbb451a7c2
4
+ data.tar.gz: 22c829b590de67d7407c0385f9f4baa70dabd321
5
5
  SHA512:
6
- metadata.gz: 94d6ef81acf25ce78b01300070c8335a74acb51718da181fce6fbae0d1c3e6276fd5b18b1e3926b8fb5e44b9b96e4e513bce57cdf4e72e341d5e55e66b9a19de
7
- data.tar.gz: 7d4b7d32bf226e3ad8f8455a929c0f89070b4b75d75be1860889a51c5ec2a24c162d1071bd10361620465289e9ea354dad75ca57147d65064a58ab056b437206
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[:class]
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 = find_class value unless type
80
- e.attributes[:class] = [type] if type
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 find_class(v)
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.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
- 8ixkARkWAmV1MB4XDTE1MDMwMzIxNDAwMFoXDTE2MDMwMjIxNDAwMFowSDESMBAG
15
+ 8ixkARkWAmV1MB4XDTE2MDQyNjEzMTUwNVoXDTE3MDQyNjEzMTUwNVowSDESMBAG
16
16
  A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
17
  EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
- ggEBALszpwE6T5UFBeAIAU6PyNVwN4jdklP90gKge1fydOifXoAkh+O4tPB2r4gz
19
- p6Cul8c4i0jl83MD/RUd+4juS5BbQSgnLIB4sF+qSeg2bDkMbUE92Ku2WIhW8HIV
20
- sU7mJWQJu29VISrFtodEhqFnVSTcCUBuEMdw4t7kfaHoQ6PqhkEL2nFOz7xuG8aH
21
- 3CcU9D4pwolGCXNGOvCw/FIYvaM2dC7UyFxqHE+wnTU8WupgKShr2a+nNM8qf9r5
22
- CcJjwbxu462BekNEp3wjYX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Ln8ihGSvb/MmH
31
- PGZIlz7FJwJ4++0ZB4E5454Xa7aPv5k3PP+urajaDnG0vSBYhI76SWHkG0+PBDau
32
- 8P/40FmSZqbOtg==
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: 2015-09-04 00:00:00.000000000 Z
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