storext 1.1.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/storext/class_methods.rb +4 -2
- data/lib/storext/instance_methods.rb +1 -0
- data/lib/storext/version.rb +1 -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: ca085424efbe14372b13c5acdc2f6d224e73f511
|
4
|
+
data.tar.gz: 5f81e8c9d8f45e351dbd54d06ecc8360aa775d56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23ac6df88a5e6fbe459ceb3bffa71a579560f1f3747b6ff879278e47bf9e6f07a09c16400f0075588fe8761bb02e6301eab75a0ee6134f839ba5f3e61a2fd682
|
7
|
+
data.tar.gz: 27f76b0e0a7f476ce2efcfd2efaa53c74c97acb838fd7c42f676e1d00f6018027e4d3a1a085770e74fab0c32469e6013a2c4af988f560a60d480bcfc5a86eb72
|
@@ -3,9 +3,11 @@ module Storext
|
|
3
3
|
|
4
4
|
def storext_define_writer(column, attr)
|
5
5
|
define_method "#{attr}=" do |value|
|
6
|
+
coerced_value = storext_cast_proxy.send("#{attr}=", value)
|
7
|
+
|
6
8
|
send("#{column}=", send(column) || {})
|
7
|
-
write_store_attribute column, attr,
|
8
|
-
send(column)[attr.to_s] =
|
9
|
+
write_store_attribute column, attr, coerced_value
|
10
|
+
send(column)[attr.to_s] = coerced_value
|
9
11
|
end
|
10
12
|
end
|
11
13
|
|
data/lib/storext/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: storext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- G5
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-05-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
121
|
rubyforge_project:
|
122
|
-
rubygems_version: 2.4.
|
122
|
+
rubygems_version: 2.4.6
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: Extends ActiveRecord::Store.store_accessor
|