normalizr 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6df1b6a2804509540eacc96b2df9fd1a35ef129f64e88d672bdad2361dd92513
4
- data.tar.gz: 46d9326603da3d5741c9174e7a579c1cc994463cdbafaeeabd13fd4bff6002d4
3
+ metadata.gz: 4ad46e009a59073eae3f65cfd60449c60fbc1570c5dde582de56f04a449416fa
4
+ data.tar.gz: 4b83cf27a15fcf5b1d2087dbada0ecad50a4d807be26e2fb6a2c91c6705adef6
5
5
  SHA512:
6
- metadata.gz: b01d5e605d9b743a6763d68f00a14e61f70314c7f666ddc628cb1930c49acabf5faf85c2f0cccb8f5652b706f9dc6a158723e027352c792ced274338e7f946cb
7
- data.tar.gz: 2a2501d6aca9ea1b4afdfd5b1d976b1c16cae4e285bf2f6d8cd2b143a69619d680a7b48e2c3b958810e8f057316718c91b5493d13a2fee89b1958e6202efa5e5
6
+ metadata.gz: 76b3b482de58da7f8af729c3d8392f0ef074ae9a7a05bbea55e3cd19d02c4297c6fa1bf01e924ec14aaa9666ad8689c1d91076e5588647b77341a39554e106d9
7
+ data.tar.gz: 1e8a7051bf44e55fbc1a81459670c4ec6b4d463adaa04b5a5179a40727cc17a3365c222c0bd8a657562d0f3d133ab442464a95787d0dc49ef1b877d02d6365d2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### 0.6.0 / 2021-07-29
2
+
3
+ * Use on_load hook for integration with ActiveRecord (@sikachu)
4
+ * Use update instead of update_attributes (@sikachu)
5
+
1
6
  ### 0.5.0 / 2020-07-27
2
7
 
3
8
  * Add ability to use default and custom normalizers together (@subbbotin)
@@ -1 +1,3 @@
1
- ActiveRecord::Base.send(:include, Normalizr::Concern)
1
+ ActiveSupport.on_load(:active_record) do
2
+ include Normalizr::Concern
3
+ end
@@ -1,3 +1,3 @@
1
1
  module Normalizr
2
- VERSION = '0.5.0'
2
+ VERSION = '0.6.0'
3
3
  end
data/normalizr.gemspec CHANGED
@@ -5,7 +5,7 @@ require 'normalizr/version'
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'normalizr'
7
7
  spec.version = Normalizr::VERSION
8
- spec.authors = ['Dimko']
8
+ spec.authors = ['Dmitriy Meremyanin']
9
9
  spec.email = ['deemox@gmail.com']
10
10
  spec.description = 'Writer methods parameters normalization'
11
11
  spec.summary = 'Writer methods parameters normalization'
@@ -21,7 +21,7 @@ describe Article do
21
21
  before do
22
22
  @article = Article.create!(title: 'Original Title')
23
23
  @article2 = Article.find(@article.id)
24
- @article2.update_attributes(title: 'New Title')
24
+ @article2.update(title: 'New Title')
25
25
  end
26
26
 
27
27
  it "should reflect the change when the record is reloaded" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: normalizr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
- - Dimko
8
- autorequire:
7
+ - Dmitriy Meremyanin
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-27 00:00:00.000000000 Z
11
+ date: 2021-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -195,7 +195,7 @@ homepage: https://github.com/dmeremyanin/normalizr
195
195
  licenses:
196
196
  - MIT
197
197
  metadata: {}
198
- post_install_message:
198
+ post_install_message:
199
199
  rdoc_options: []
200
200
  require_paths:
201
201
  - lib
@@ -210,8 +210,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  - !ruby/object:Gem::Version
211
211
  version: '0'
212
212
  requirements: []
213
- rubygems_version: 3.0.8
214
- signing_key:
213
+ rubygems_version: 3.1.6
214
+ signing_key:
215
215
  specification_version: 4
216
216
  summary: Writer methods parameters normalization
217
217
  test_files: