relaxo-model 0.4.4 → 0.4.5

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: e37c4bdf8e7434134f7b4b4e0a8e28c0a677fadb
4
- data.tar.gz: 7cd780a667b5e298f242a6388a7d8c662ccd9732
3
+ metadata.gz: 92a8535e5648d4a2d20a84df232980f83441ec87
4
+ data.tar.gz: 418c66267aab38b39e1a489bec88e9b12db327fb
5
5
  SHA512:
6
- metadata.gz: bfb8e303f72fb22c760a2f60db729d3432ec70b43977d1fe6d87b9d2151ec346df0dc9e564ec02061a6f41bfee3d95ba2a984378fc73ea24ceca79dc9e6b8ce4
7
- data.tar.gz: 0cf6e81f2abac06015f0d91b2cd863874ada45c5fe759e3d79438e1c5f1a3cd1598a7f4ae1d9b864e197f0f139cf7940dd4786547463a2c0e952204fd8fea106
6
+ metadata.gz: 253b2e06a1ff6021b322a1b6a74fc6b2dfafc18faa6723e559922d70ba8c3d97a0c3b606398544f6f5be2441ae1034dec54efed5378f5893c2df7daf75e19bf1
7
+ data.tar.gz: 0878a90d0f64b5aefb8bc30593145a24d4f57fdaa59e1a6040565d40d32c8338c5b4cf8b7acd7c291fe3204ecffc8b04c8f9052c84fafdae9b68a6b8d7ab77c6
@@ -119,7 +119,7 @@ module Relaxo
119
119
  self.send(:define_method, "#{name}?") do
120
120
  value = self.send(name)
121
121
 
122
- if value.nil? or value == false
122
+ if value.nil? or !value
123
123
  false
124
124
  elsif value.respond_to? :empty?
125
125
  !value.empty?
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Relaxo
22
22
  module Model
23
- VERSION = "0.4.4"
23
+ VERSION = "0.4.5"
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.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams