acts_as_identifier 1.2.0 → 1.3.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: 0f85e5ea4c8ff461ea96969666a1db7dc34faa5ac4b3511e804657d2791401e8
4
- data.tar.gz: e8473cad55d9d1afc38ffb5206a41be4eed61a9513cc676c0c153e9d42b82255
3
+ metadata.gz: f7d37c44af7c9196ea7fa5f5ec7b68dc3dcc95347ba4826eb4fab7bf466d3f98
4
+ data.tar.gz: b34c12b45f466b3f6bd3128374efb4c468a407f0df785b2008220a9bd8eb45cd
5
5
  SHA512:
6
- metadata.gz: b816f50da7fd540b38f126475d24bff59cbfdf60b45fbf3a2da7688742182a563b9fa5902645ce7604e9343678a78e378c89a9ab926c09da4320b76a839cfaaf
7
- data.tar.gz: b74edf03c4100bf85bc447691692dda80745d17af042ba4d800b719f2095d76b0b1f4e056a2e8d5ad292c2f4de6adf87d0c3f9d21430d9cf392a4db105982ffb
6
+ metadata.gz: 13462dd9829c0f19c3baac3adb30e029f3ee821bcab99058579fd730eceaadc7c2b9cce57c198c905544ac5d0388c2258b619c13cb885918398f0e842e726d41
7
+ data.tar.gz: b0b55716bc29d0bf8963b8cf78f420ba2518e7dd4a019249f8155dc8f32ab39a44a106e1451f80881642f858f7e4eede5a9f6ba9df64fc6fa7efd35077fabd4a
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActsAsIdentifier
4
- VERSION = '1.2.0'
4
+ VERSION = '1.3.0'
5
5
  end
@@ -56,7 +56,7 @@ module ActsAsIdentifier
56
56
  update_column attr, self.class.send("encode_#{attr}", send(id_column))
57
57
  end
58
58
 
59
- before_commit :"acts_as_identifier__update_#{attr}", if: -> { previous_changes.key?(id_column.to_s) && !destroyed? }
59
+ after_save :"acts_as_identifier__update_#{attr}", if: -> { previous_changes.key?(id_column.to_s) && !destroyed? }
60
60
  end
61
61
  end
62
62
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_identifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - xiaohui
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-27 00:00:00.000000000 Z
11
+ date: 2022-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xencoder
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  requirements: []
85
- rubygems_version: 3.3.3
85
+ rubygems_version: 3.3.7
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Auto-generate unique identifier value for Active Record