fish0 0.0.18 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fish0/concerns/base.rb +6 -1
- data/lib/fish0/model.rb +2 -0
- data/lib/fish0/version.rb +1 -1
- metadata +4 -7
- data/spec/dummy/log/development.log +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48bc1b4bd2852aff70ff91e93731177c9fe20f65
|
4
|
+
data.tar.gz: 7955a5bb93f3a987e38164e3929e43a5760f4028
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 748e2614a2d03c2ad399ebf140a59722d20d7ac771d86a40a83ce4dd9422d5adc9af43585c54bffe1f87e893b86891d0b1ce6c3fd72f9fe093ecfc3d4de70cf8
|
7
|
+
data.tar.gz: f2992adccd84cc42faab185dd19fae966a02fe383f3b213adcd14f1e1def1c5935294e0266f12c7d424f740420054ccc22679c869740b795b8d4cdf8e9550546
|
data/lib/fish0/concerns/base.rb
CHANGED
@@ -23,9 +23,14 @@ module Fish0
|
|
23
23
|
include Concerns::Cacheable
|
24
24
|
end
|
25
25
|
|
26
|
-
def
|
26
|
+
def disable_coercion
|
27
27
|
include Virtus.model(coerce: false)
|
28
28
|
end
|
29
|
+
alias_method :skip_coercion, :disable_coercion # DEPRECATED
|
30
|
+
|
31
|
+
def enable_coercion
|
32
|
+
include Virtus.model(coerce: true)
|
33
|
+
end
|
29
34
|
|
30
35
|
def scope(name, body)
|
31
36
|
scopes << [name, body]
|
data/lib/fish0/model.rb
CHANGED
data/lib/fish0/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fish0
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Zuev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -207,7 +207,6 @@ files:
|
|
207
207
|
- spec/dummy/config/mongo.yml
|
208
208
|
- spec/dummy/config/routes.rb
|
209
209
|
- spec/dummy/config/secrets.yml
|
210
|
-
- spec/dummy/log/development.log
|
211
210
|
- spec/dummy/log/test.log
|
212
211
|
- spec/dummy/public/404.html
|
213
212
|
- spec/dummy/public/422.html
|
@@ -224,9 +223,8 @@ homepage: https://github.com/rambler-digital-solutions/fish0
|
|
224
223
|
licenses:
|
225
224
|
- MIT
|
226
225
|
metadata: {}
|
227
|
-
post_install_message: "\n WARNING
|
228
|
-
|
229
|
-
\ Read examples in README.md\n "
|
226
|
+
post_install_message: "\n WARNING starting from 0.1.0 coercion is disabled for Fish0::Model
|
227
|
+
by default\n "
|
230
228
|
rdoc_options: []
|
231
229
|
require_paths:
|
232
230
|
- lib
|
@@ -276,7 +274,6 @@ test_files:
|
|
276
274
|
- spec/dummy/config/routes.rb
|
277
275
|
- spec/dummy/config/secrets.yml
|
278
276
|
- spec/dummy/config.ru
|
279
|
-
- spec/dummy/log/development.log
|
280
277
|
- spec/dummy/log/test.log
|
281
278
|
- spec/dummy/public/404.html
|
282
279
|
- spec/dummy/public/422.html
|
File without changes
|