relaxo-model 0.5.0 → 0.5.1

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: 56a701fe1088f00dc69085a1154b0b45352547b6
4
- data.tar.gz: 4ce43da9ec5e84a1418807d88584e985bbb54c20
3
+ metadata.gz: 9f93d72c130b887bf10c8e60ed09ab2bc506e6aa
4
+ data.tar.gz: 166daf641e55a51bb1d35a202565da55a2b34b5f
5
5
  SHA512:
6
- metadata.gz: 310cc9f5dd9ba88794bc951062cdb8f5fc370d5565da7ce61ac75f5594e798238aa60bf460a49904e241cb5e6bedb7423656074942a473427974c4363836971d
7
- data.tar.gz: 47ad2959c406eebcc08e3bfd86bf12fc1b3a8bfe2b8d095c79a757902d8e3fe99dd7abb93590789a0ff6c36747b28264fe249b80c1bb0a7b7ce2fb6384feb3b5
6
+ metadata.gz: e2df342a27fe0036e569a546c75c2abf090342d0cf1039c3de9194f92bdaa07c6472ab25d298233218626f5c2ce0aef0f1cc1a2bb1a93194eb7cc8341b0706be
7
+ data.tar.gz: 9fb5e00b0509388b99345233a76efbdb9f67263ceff30de36ee6eeb954877be0db959def3574e21e95a8553582ca60b4590ee7d3a4ba08b8a4e3522fa167050c
@@ -184,7 +184,7 @@ module Relaxo
184
184
 
185
185
  # Equality is done only on id
186
186
  def <=> other
187
- self.id <=> other.id
187
+ self.id <=> other.id if other
188
188
  end
189
189
 
190
190
  def empty?
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Relaxo
22
22
  module Model
23
- VERSION = "0.5.0"
23
+ VERSION = "0.5.1"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaxo-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams