uuidable 1.0.0 → 1.0.1
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 +4 -4
- data/Gemfile.lock +25 -11
- data/lib/uuidable/active_record.rb +2 -1
- data/lib/uuidable/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8f43acd04287f3d03ac22b80038131e2c28a8f1550f25d70aa16154eb163a364
|
|
4
|
+
data.tar.gz: e95a275d8d777f319791c7ce0e4001ab3024bd41f5b7c39276dac528eac492f3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 98e8c6c2b5473183245bea43c8b3cc250f015db15726634c0aa0a184079ec5b8207c95c09145d7b527c78dde67e164463b21d170f50a0dd711d3a77c37e34d93
|
|
7
|
+
data.tar.gz: 55af82b9f9431d1ec3f4fe821954e05a342f4c23ae3e5827634245a745023350a507096c28f7bfa28acf725d14adc23509b53932c51790d80e4dde9bb100f317
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
uuidable (1.0.
|
|
4
|
+
uuidable (1.0.1)
|
|
5
5
|
activerecord (>= 4.2, < 7.2)
|
|
6
6
|
mysql-binuuid-rails (>= 1.3, < 2)
|
|
7
7
|
uuidtools (>= 2.1, < 3)
|
|
@@ -9,22 +9,33 @@ PATH
|
|
|
9
9
|
GEM
|
|
10
10
|
remote: https://rubygems.org/
|
|
11
11
|
specs:
|
|
12
|
-
activemodel (7.
|
|
13
|
-
activesupport (= 7.
|
|
14
|
-
activerecord (7.
|
|
15
|
-
activemodel (= 7.
|
|
16
|
-
activesupport (= 7.
|
|
17
|
-
|
|
12
|
+
activemodel (7.1.3.2)
|
|
13
|
+
activesupport (= 7.1.3.2)
|
|
14
|
+
activerecord (7.1.3.2)
|
|
15
|
+
activemodel (= 7.1.3.2)
|
|
16
|
+
activesupport (= 7.1.3.2)
|
|
17
|
+
timeout (>= 0.4.0)
|
|
18
|
+
activesupport (7.1.3.2)
|
|
19
|
+
base64
|
|
20
|
+
bigdecimal
|
|
18
21
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
22
|
+
connection_pool (>= 2.2.5)
|
|
23
|
+
drb
|
|
19
24
|
i18n (>= 1.6, < 2)
|
|
20
25
|
minitest (>= 5.1)
|
|
26
|
+
mutex_m
|
|
21
27
|
tzinfo (~> 2.0)
|
|
22
28
|
addressable (2.8.0)
|
|
23
29
|
public_suffix (>= 2.0.2, < 5.0)
|
|
24
30
|
ast (2.4.2)
|
|
25
31
|
backports (3.6.8)
|
|
26
|
-
|
|
32
|
+
base64 (0.2.0)
|
|
33
|
+
bigdecimal (3.1.6)
|
|
34
|
+
concurrent-ruby (1.2.3)
|
|
35
|
+
connection_pool (2.4.1)
|
|
27
36
|
diff-lcs (1.5.0)
|
|
37
|
+
drb (2.2.0)
|
|
38
|
+
ruby2_keywords
|
|
28
39
|
ethon (0.8.1)
|
|
29
40
|
ffi (>= 1.3.0)
|
|
30
41
|
faraday (0.9.2)
|
|
@@ -40,14 +51,15 @@ GEM
|
|
|
40
51
|
net-http-persistent (>= 2.7)
|
|
41
52
|
net-http-pipeline
|
|
42
53
|
highline (1.7.8)
|
|
43
|
-
i18n (1.
|
|
54
|
+
i18n (1.14.1)
|
|
44
55
|
concurrent-ruby (~> 1.0)
|
|
45
56
|
json (2.3.1)
|
|
46
57
|
launchy (2.4.3)
|
|
47
58
|
addressable (~> 2.3)
|
|
48
|
-
minitest (5.
|
|
59
|
+
minitest (5.22.2)
|
|
49
60
|
multi_json (1.11.2)
|
|
50
61
|
multipart-post (2.0.0)
|
|
62
|
+
mutex_m (0.2.0)
|
|
51
63
|
mysql-binuuid-rails (1.3.0)
|
|
52
64
|
activerecord (>= 5)
|
|
53
65
|
net-http-persistent (2.9.4)
|
|
@@ -89,6 +101,8 @@ GEM
|
|
|
89
101
|
rubocop-ast (1.19.1)
|
|
90
102
|
parser (>= 3.1.1.0)
|
|
91
103
|
ruby-progressbar (1.11.0)
|
|
104
|
+
ruby2_keywords (0.0.5)
|
|
105
|
+
timeout (0.4.1)
|
|
92
106
|
travis (1.8.2)
|
|
93
107
|
backports
|
|
94
108
|
faraday (~> 0.9)
|
|
@@ -100,7 +114,7 @@ GEM
|
|
|
100
114
|
typhoeus (~> 0.6, >= 0.6.8)
|
|
101
115
|
typhoeus (0.8.0)
|
|
102
116
|
ethon (>= 0.8.0)
|
|
103
|
-
tzinfo (2.0.
|
|
117
|
+
tzinfo (2.0.6)
|
|
104
118
|
concurrent-ruby (~> 1.0)
|
|
105
119
|
unicode-display_width (2.2.0)
|
|
106
120
|
uuidtools (2.2.0)
|
|
@@ -24,7 +24,8 @@ module Uuidable
|
|
|
24
24
|
def uuidable(as_param: true) # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
|
25
25
|
# Configure all uuid columns for MySQL. Database may not be connected (i.e. on assets precompile), so we must supress errors.
|
|
26
26
|
conn_config = respond_to?(:connection_db_config) ? connection_db_config.configuration_hash : connection_config
|
|
27
|
-
|
|
27
|
+
|
|
28
|
+
if conn_config[:adapter].include?('mysql') && schema_loaded?
|
|
28
29
|
begin
|
|
29
30
|
columns.select { |c| c.type == :binary && c.limit == 16 && c.name.include?('uuid') }.each do |column|
|
|
30
31
|
attribute column.name.to_sym, MySQLBinUUID::Type.new
|
data/lib/uuidable/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: uuidable
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sergey Gnuskov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-04-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|