uuid_attribute 0.9.1 → 0.9.3

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: e716f18577f556aa807d4ad19aa1f6cd62900f7ea5faab4ea3f88fb4cc8e3d5a
4
- data.tar.gz: 22161c78f0e24c4117306db0c6d70b27665f911385ade24748d09619acefc657
3
+ metadata.gz: 774e0a7f8718a8ddebac22f16361b0810ab4b5c8fd3e26673a9c4a33ccdd8457
4
+ data.tar.gz: 706e1a5a27bfb7ea5aac225e7a54d0fad184a03820db52aafb24e05b387d7e85
5
5
  SHA512:
6
- metadata.gz: 90698cabeeb889fc28c07ab0001e53575db198b611707dc0fb640348b32c2d9712f3c861ccfdbcfa3aceb56d8f85cb6255c3cae6a591697792b135140824ee7c
7
- data.tar.gz: ef6d0daa754d19d805367b00646789b1813ea9db391bad35129ca9e06d67a165c3779047d1e227110b857a808b8a2499e767081316c381e92ff7e6e6befc5ce0
6
+ metadata.gz: 434c3f61c16c9ccc072df2bc579a78dc4135e50b626e325277f22c323a75572d573aae5e310c1f8e2d50d2782fe1fbc84cd8d0d036be4f534f4e31c0fdc95e5d
7
+ data.tar.gz: 7fbd5c029acfeeb56ca7f87b5456d8b75d9a05142aaf8c7c43ff8a2f31498e0b39ad02830802a38e12f2d9f2d55d425c92648f19cacc8bf351f6f5fedd151a57
@@ -51,24 +51,23 @@ module UuidAttribute
51
51
  end
52
52
  end
53
53
  rescue ActiveRecord::NoDatabaseError
54
- puts "NO DATABASE"
55
54
  false
56
55
  else
57
- puts "CONFIGURE BINARY"
58
56
  true
59
57
  end
60
58
  end
61
59
 
62
60
  config.after_initialize do
63
- puts "REGISTERING UUID"
64
- ActiveRecord::Type.register(:uuid, ::UuidAttribute::UUID)
61
+ unless ARGV.include? "assets:precompile"
62
+ ActiveRecord::Type.register(:uuid, ::UuidAttribute::UUID)
65
63
 
66
- configure_binary_ids if UuidAttribute.auto_detect_binary_ids
64
+ configure_binary_ids if UuidAttribute.auto_detect_binary_ids
67
65
 
68
- if UuidAttribute.default_primary_id
69
- # Configure UUID as Default Primary Key
70
- Rails&.application&.config&.generators do |g|
71
- g.orm :active_record, primary_key_type: "binary, limit: 16"
66
+ if UuidAttribute.default_primary_id
67
+ # Configure UUID as Default Primary Key
68
+ Rails&.application&.config&.generators do |g|
69
+ g.orm :active_record, primary_key_type: "binary, limit: 16"
70
+ end
72
71
  end
73
72
  end
74
73
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UuidAttribute
4
- VERSION = "0.9.1"
4
+ VERSION = "0.9.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uuid_attribute
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Negri