fantasy_identifiable 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: f9923121efcfb26fcf47d17e50f3db7edeccd9009cdc8adf9284e6091efed39c
4
- data.tar.gz: 2e2eee73b9cc452a185120711f7f9a9cea47e362c3905114c2a18cfe4d95559a
3
+ metadata.gz: 79160e3561f69682c23f0d57666059f92cb6dc73e7b77ef570e58049670870ba
4
+ data.tar.gz: e3fdca79ea636c78ca8f12660984d58f5f77846401c61d1c189f5c76532c0365
5
5
  SHA512:
6
- metadata.gz: f4ebd83bd2e33efe00388bc6e350c18db54d8a3d5200f35fccf9b0cc75cadabdb53cecd4ab8a92ffaf047efce7b6c4a31bd333513656c8733e3e68feca7309b0
7
- data.tar.gz: 8dc4f700d59ace50348e14051b2cefc264b855057031ee09aa2075a327e224b34338c49b3b9b0ffbd6dc95aa7e6e4ee3b515dcc00b22b1740fe70694aca0ccf0
6
+ metadata.gz: cb7214f408f6a8258c46cb08d571bc740ff1fc93885985084641be378518a71e3c88d81964d4dcaf87bcc1a519bd956c78525627ddb5693ec30cf81f0de84593
7
+ data.tar.gz: 02b3578457201c8aebe985f61a158818f51b7fcffe65fd9fc1c91a5db120ff24d720361edb5b298244e98ef22cbfb08dce9518de50015e289b43d5f5fadfb1ac
@@ -1,3 +1,3 @@
1
1
  module FantasyIdentifiable
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -14,6 +14,8 @@ module FantasyIdentifiable
14
14
 
15
15
  def generate_identifiers
16
16
  self.class.identifier_fields.each do |field_name, field_type|
17
+ next if self.identifier.present?
18
+
17
19
  case field_type
18
20
  when :friendly
19
21
  set_friendly_identifier field_name
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fantasy_identifiable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Rusa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-01 00:00:00.000000000 Z
11
+ date: 2023-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  requirements: []
147
- rubygems_version: 3.1.4
147
+ rubygems_version: 3.3.26
148
148
  signing_key:
149
149
  specification_version: 4
150
150
  summary: Create unique fantasy names as identifier for your activerecord objects