shapeable 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shapeable.rb +2 -2
- data/lib/shapeable/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3165aabd763d034c800bb2e6517191209a3ad056
|
4
|
+
data.tar.gz: 11d8d116d10377c6935c2c64cb76db1836b119c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d51ffba78aa80a3d694a51c00ee2beb8c8ef8e79b2dd69da214514a2eec8685490ab53d2fe6ac6f27db21abebc60aab4607c4feba42230c92496508b9f6776cb
|
7
|
+
data.tar.gz: b3165394b678285a40d6eda49f11b9575ae88d86ee2a4942459242f6653106b3b7d358026d524026a142171e3dc44b67d3a2bc933db4522684d4530059fb1b79
|
data/lib/shapeable.rb
CHANGED
@@ -4,7 +4,7 @@ module Shapeable
|
|
4
4
|
|
5
5
|
def acts_as_shapeable(**opts)
|
6
6
|
|
7
|
-
|
7
|
+
normalize_shapeable_options(opts)
|
8
8
|
acts_as_shapeable_opts = opts || {}
|
9
9
|
|
10
10
|
define_method(:shape) do |opts|
|
@@ -32,7 +32,7 @@ module Shapeable
|
|
32
32
|
|
33
33
|
private
|
34
34
|
|
35
|
-
def
|
35
|
+
def normalize_shapeable_options(opts)
|
36
36
|
opts.keep_if do |k, _v|
|
37
37
|
[:path, :default_shape, :default_version].include?(k)
|
38
38
|
end
|
data/lib/shapeable/version.rb
CHANGED