uuid_attribute 0.9.5 → 0.9.8

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: fc9118e99f6728490f980bb1d663176967ece8441284105ffaebbf97080cdc5d
4
- data.tar.gz: d176cfba5c243044291303c78871edc4b6fdc4e20c61d17fa78aa485ac4809bd
3
+ metadata.gz: 44593bb99af63c1047fa1f2e088395e723db8263abe9b8456b6a27a0504a435e
4
+ data.tar.gz: cb68b8a4926951dd59636dfd78e3aa301833fe62143e7ffe01051048bfbcd6bf
5
5
  SHA512:
6
- metadata.gz: 0e37a29ff8818a72a9471a0045d54c554c306412e367f95186ddc890dd9f2d8657e418de50dc3d165af1cac7c1190a7adccd794a289cf183a01abeb76a380f12
7
- data.tar.gz: ed4222f2b3cbfaedbd32f7a1440e89f02c423bdff51ffff67bf74a1321443898d925d15633f1821438ffc9f8f6e6dd286fd7d89a42f06e1da8424bc2d2088df9
6
+ metadata.gz: '0848b2ecd6ca98cb4bfbeab1fcb92cf3d73cf7e8323ca502379779ba374868ac0e88dc8356549e187f9908719030c2846aa6359ecb300b9afd8cd56356b44247'
7
+ data.tar.gz: 93f0f9a5d1e4d086f5755fc0b343a53988e3c1c7110896e4858cb09726f978c693e577c9cfe74be1143eae1c8122cd3605c5a79aa03213d3a83ff5b697e06b33
@@ -57,12 +57,11 @@ module UuidAttribute
57
57
  end
58
58
  end
59
59
 
60
- config.after_initialize do
61
- puts "ARGV: #{ARGV.inspect}"
62
- unless ARGV.include? "assets:precompile"
60
+ config.to_prepare do
61
+ unless ARGV.join(" ").include? "assets:"
63
62
  ActiveRecord::Type.register(:uuid, ::UuidAttribute::UUID)
64
63
 
65
- configure_binary_ids if UuidAttribute.auto_detect_binary_ids
64
+ ::UuidAttribute::Railtie::configure_binary_ids if UuidAttribute.auto_detect_binary_ids
66
65
 
67
66
  if UuidAttribute.default_primary_id
68
67
  # Configure UUID as Default Primary Key
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UuidAttribute
4
- VERSION = "0.9.5"
4
+ VERSION = "0.9.8"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uuid_attribute
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Negri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-20 00:00:00.000000000 Z
11
+ date: 2023-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel