routengn-client 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 806113a37cf70dcb69d16ae7855f7d0bb002aa17
4
- data.tar.gz: 4e958c370005c926a951c4f6618b0a07421d209f
3
+ metadata.gz: d440fe0471ec64b21c653e023a770d2d7b5a78c4
4
+ data.tar.gz: 459aae2bddd500edccaff715b736d798c9cae7b5
5
5
  SHA512:
6
- metadata.gz: 1ff754329b66454609e84401e491a934b8a790d35aab88a68be7f74dc01b3fd21384e9fcf64b0f22516933020a7358da2189cc935b85664f1c0448dccd52f09c
7
- data.tar.gz: 025fb4be299d2efc8055934a7941da4b9aa85808d2eb67e49f1d573803c68f3e397cda6c85ad02165b511142439f2057751fbe70174a1178bc8f3d27cccc5e84
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 self.header == other.header
11
- case (self.weight <=> other.weight)
10
+ if @attributes.header == other.attributes.header
11
+ case (@attributes.weight <=> other.attributes.weight)
12
12
  when 0
13
- self.id.to_s <=> other.id.to_s
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?(self.header) && !HEADER_ORDER.include?(other.header)
23
- return -1 if !HEADER_ORDER.include?(self.header)
24
- return 1 if !HEADER_ORDER.include?(other.header)
25
- return (HEADER_ORDER.index(self.header) <=> HEADER_ORDER.index(other.header))
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
 
@@ -1,3 +1,3 @@
1
1
  module RouteNGNClient
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
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
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-01-20 00:00:00.000000000 Z
11
+ date: 2014-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler