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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b4ba5fcb34b0aee21b83c1668e0deffe6a1119d
4
- data.tar.gz: 445a599e783823b24a8ce2e746dafc87e38378a2
3
+ metadata.gz: 72a2b0fd80475817b3bddc6d60f9e28f88111416
4
+ data.tar.gz: 5146cd3be237c61485ca3f4ce1b6776d74c63a71
5
5
  SHA512:
6
- metadata.gz: 06d0b1bcda16b66b55ff5e54b89525a7c826c2409680096c6fa6cb7d33338c451bb909bc233b91f093284f296ed8c2ab5db74e38cdd874e9620a274d94929d6d
7
- data.tar.gz: afffd91652fbd6b915b9ba4c8593b8109549aad39b911442ae7f43fc6b19ae60dc30999708502361a10af88fc1e28c03d5fe5e19551a8e89c5e9e4ead64f8535
6
+ metadata.gz: 51f607ae609339e52ac4769406ee04d81cc0cf095148f9e766b4ee4566d0672b976224496f0949af605d000a2cfbe67dd99da031ba3f209b45bc56aa2dc77faf
7
+ data.tar.gz: 5788b9b82cd0a472bd06528c30176e75b1163c6d98c93015b64f326ff2755063dc2242d9160de5f8abe8aa878f29133916e916520306d3416cee618cb4eef796
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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.to_s : 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.7.3
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-03-14 00:00:00.000000000 Z
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