routengn-client 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/routengn_client/models/uri_matcher.rb +7 -7
- data/lib/routengn_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d440fe0471ec64b21c653e023a770d2d7b5a78c4
|
4
|
+
data.tar.gz: 459aae2bddd500edccaff715b736d798c9cae7b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d26bf0b2c71faa5d21c9a1e45c84f226246d2bde53045ca46e8b714141faeddcdfe73837db6bca408214bd2b8424aeff522a54056646c651f386618aed11390e
|
7
|
+
data.tar.gz: 045adadb54a71f08f8aa6659f7bb18b86ab478fd74aca5a0dad5309bd55da5aa57c421a6a2df32ff2e19334a79ca54ea319155bddc67237a57190927fc26f54a
|
@@ -7,10 +7,10 @@ module RouteNGNClient
|
|
7
7
|
belongs_to :allow_list
|
8
8
|
|
9
9
|
def <=>(other)
|
10
|
-
if
|
11
|
-
case (
|
10
|
+
if @attributes.header == other.attributes.header
|
11
|
+
case (@attributes.weight <=> other.attributes.weight)
|
12
12
|
when 0
|
13
|
-
|
13
|
+
@attributes.id.to_s <=> other.attributes.id.to_s
|
14
14
|
when 1 #self.weight is higher
|
15
15
|
-1
|
16
16
|
when -1 #self.weight is lower
|
@@ -19,10 +19,10 @@ module RouteNGNClient
|
|
19
19
|
0
|
20
20
|
end
|
21
21
|
else
|
22
|
-
return 0 if !HEADER_ORDER.include?(
|
23
|
-
return -1 if !HEADER_ORDER.include?(
|
24
|
-
return 1 if !HEADER_ORDER.include?(other.header)
|
25
|
-
return (HEADER_ORDER.index(
|
22
|
+
return 0 if !HEADER_ORDER.include?(@attributes.header) && !HEADER_ORDER.include?(other.attributes.header)
|
23
|
+
return -1 if !HEADER_ORDER.include?(@attributes.header)
|
24
|
+
return 1 if !HEADER_ORDER.include?(other.attributes.header)
|
25
|
+
return (HEADER_ORDER.index(@attributes.header) <=> HEADER_ORDER.index(other.attributes.header))
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: routengn-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keith Larrimore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|