rexleparser 0.7.3 → 0.8.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/rexleparser.rb +21 -1
- metadata +2 -2
- 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: 72a2b0fd80475817b3bddc6d60f9e28f88111416
|
4
|
+
data.tar.gz: 5146cd3be237c61485ca3f4ce1b6776d74c63a71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51f607ae609339e52ac4769406ee04d81cc0cf095148f9e766b4ee4566d0672b976224496f0949af605d000a2cfbe67dd99da031ba3f209b45bc56aa2dc77faf
|
7
|
+
data.tar.gz: 5788b9b82cd0a472bd06528c30176e75b1163c6d98c93015b64f326ff2755063dc2242d9160de5f8abe8aa878f29133916e916520306d3416cee618cb4eef796
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rexleparser.rb
CHANGED
@@ -6,8 +6,28 @@
|
|
6
6
|
|
7
7
|
class Attributes < Hash
|
8
8
|
|
9
|
+
class Value < String
|
10
|
+
|
11
|
+
def initialize(value)
|
12
|
+
super(value)
|
13
|
+
end
|
14
|
+
|
15
|
+
def <(val2)
|
16
|
+
self.to_f < val2.to_f
|
17
|
+
end
|
18
|
+
|
19
|
+
def >(val2)
|
20
|
+
self.to_f > val2.to_f
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
9
24
|
def []=(k,v)
|
10
|
-
super(k, k != :class ? v
|
25
|
+
super(k, k != :class ? Value.new(v) : v)
|
26
|
+
end
|
27
|
+
|
28
|
+
def merge(h)
|
29
|
+
super h.inject({}) {|r, kv| k, v = kv; r.merge(k => Value.new(v)) }
|
30
|
+
|
11
31
|
end
|
12
32
|
end
|
13
33
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rexleparser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
ybOh4VahEZAk5VvZl/+nYpXIrz4a5iJo7D11Ru8Uob/OHuv43P87YdPyN45BfA+/
|
32
32
|
bRHA589NQFGSiw==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2016-
|
34
|
+
date: 2016-05-07 00:00:00.000000000 Z
|
35
35
|
dependencies: []
|
36
36
|
description:
|
37
37
|
email: james@r0bertson.co.uk
|
metadata.gz.sig
CHANGED
Binary file
|