bitmasker 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bitmasker/model.rb +2 -2
- data/lib/bitmasker/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: f8e18e40165c1a709f4d8c17576fd36584f53bf5
|
4
|
+
data.tar.gz: 2d93c535a39aaa6d580d2fb99568e54ac92948bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a24fbbac996502ed2bf30641d2497e290db8da3d80a05c6e43ef7be8a1171f40b82111bc85f3a207b9fa73f5320a6b8febfd35750119d5982ae86e67344c1345
|
7
|
+
data.tar.gz: 892fc1cde3deda78f16dc566d5f2aeaa1ea93f24a5b2f8b78ac4ac0645b1632758e8632e1f15ed0500310315d2c4754804a4627f03d704aaf136d0feaf2ea7e3
|
data/lib/bitmasker/model.rb
CHANGED
@@ -8,8 +8,8 @@ module Bitmasker
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def value_to_boolean(value)
|
11
|
-
if defined? ::ActiveRecord::ConnectionAdapters::Column
|
12
|
-
::ActiveRecord::ConnectionAdapters::Column.
|
11
|
+
if defined? ::ActiveRecord::ConnectionAdapters::Column::TRUE_VALUES
|
12
|
+
::ActiveRecord::ConnectionAdapters::Column::TRUE_VALUES.include? value
|
13
13
|
else
|
14
14
|
['1', 1, 't', 'true', true].include? value
|
15
15
|
end
|
data/lib/bitmasker/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitmasker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amiel Martin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bitmask
|