fish0 0.0.18 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3a92eb890fe96399b8cac64c71cc331cfcc7c8a
4
- data.tar.gz: 255f294586788edd53ac42f344357ebe5a8bbea3
3
+ metadata.gz: 48bc1b4bd2852aff70ff91e93731177c9fe20f65
4
+ data.tar.gz: 7955a5bb93f3a987e38164e3929e43a5760f4028
5
5
  SHA512:
6
- metadata.gz: 90ee304e16c7ab19a87ba1644fad131957a0fd616f1946b5786447e2afc5c07474c37773a732a6bfd993fb6e4e5accc013b56d898c85c5e627c29522fbe74774
7
- data.tar.gz: 0d5ea327f589351e9cdb5f50bd34a55260aff18f482a2e5a93474815a80bc49a186ee460da6bc0e05e965ef42e1761de15876d8afca31b5e727644ba6e95125b
6
+ metadata.gz: 748e2614a2d03c2ad399ebf140a59722d20d7ac771d86a40a83ce4dd9422d5adc9af43585c54bffe1f87e893b86891d0b1ce6c3fd72f9fe093ecfc3d4de70cf8
7
+ data.tar.gz: f2992adccd84cc42faab185dd19fae966a02fe383f3b213adcd14f1e1def1c5935294e0266f12c7d424f740420054ccc22679c869740b795b8d4cdf8e9550546
@@ -23,9 +23,14 @@ module Fish0
23
23
  include Concerns::Cacheable
24
24
  end
25
25
 
26
- def skip_coercion
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
@@ -4,5 +4,7 @@ module Fish0
4
4
  include Fish0::Concerns::Base
5
5
  include Fish0::Concerns::ViewModel
6
6
  include Fish0::Concerns::Equalable
7
+
8
+ skip_coercion
7
9
  end
8
10
  end
data/lib/fish0/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Fish0
2
- VERSION = '0.0.18'.freeze
2
+ VERSION = '0.1.0'.freeze
3
3
  end
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.18
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: 2016-12-02 00:00:00.000000000 Z
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 if updating from version prior 0.0.6 you need to
228
- change\n mongo configuration.\n Configure mongo using config/initializers/fish0.rb\n
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