bank 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bank/serialize.rb +3 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d03efb19732b41b52f5cb6ffab196b6f0f77120a
|
4
|
+
data.tar.gz: cd2277b27bd298d7c4c4f579bcef6b3db4b3afff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8898aff4bd1866df4205bd34779847a5b24de400ef78996118dfe51acbad6372ec26b28253c6deb24e8ef78aa642635835df225989123c9b8f6886f1d309777
|
7
|
+
data.tar.gz: 394c8790b5691dc54bf371098af30d736b2b1b0f06af4e9a5475b9c59fad2a0431e38ef60e8d8d7d8e8a177192bc4d8055cbba24a645a87adcded9d890f179c2
|
data/lib/bank/serialize.rb
CHANGED
@@ -29,7 +29,9 @@ module Bank
|
|
29
29
|
|
30
30
|
PackBooleans = ->(attrs, config) do
|
31
31
|
config.columns_of_type(:boolean).each { |column, opts|
|
32
|
-
|
32
|
+
false_values = [false, nil, 0, 'false', 'nil', '0']
|
33
|
+
value = !false_values.include?(attrs[column])
|
34
|
+
attrs[column] = value ? 1 : 0
|
33
35
|
}
|
34
36
|
end
|
35
37
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bank
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Pratt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sequel
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
126
|
rubyforge_project:
|
127
|
-
rubygems_version: 2.
|
127
|
+
rubygems_version: 2.4.8
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: simple interface for persistence built on Sequel
|