uuidable 1.0.1 → 1.0.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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/uuidable/active_record.rb +1 -1
- data/lib/uuidable/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa4a74b0f2c720e55d414291fa36806fe58fc980c4f633e8986038b282519938
|
4
|
+
data.tar.gz: 5b94d93dad302eb9b5e1f1772db986077d1304ca8a1ae1c46411fc7044f2b541
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15a958b147645fc441dd5cc5acc6b0387493dc18ab047286dce11489d7c9d26f65db748506dbbb7892be4391b4144c35c676cb82a542d58213fc35148c557b4e
|
7
|
+
data.tar.gz: 4ca1ea2507acba4721a10309c2909e7fd4e1ced208d35200f21cabe286dcdc3f47efc764e7a43bbe72bdc1a4a30438687c7c9e02d734adc8a948993f0ead127c
|
data/Gemfile.lock
CHANGED
@@ -25,7 +25,7 @@ module Uuidable
|
|
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') &&
|
28
|
+
if conn_config[:adapter].include?('mysql') && connection.data_source_exists?(table_name)
|
29
29
|
begin
|
30
30
|
columns.select { |c| c.type == :binary && c.limit == 16 && c.name.include?('uuid') }.each do |column|
|
31
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.2
|
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-04-
|
11
|
+
date: 2024-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -177,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
177
177
|
- !ruby/object:Gem::Version
|
178
178
|
version: '0'
|
179
179
|
requirements: []
|
180
|
-
rubygems_version: 3.5.
|
180
|
+
rubygems_version: 3.5.9
|
181
181
|
signing_key:
|
182
182
|
specification_version: 4
|
183
183
|
summary: Helps using uuid everywhere in routes instead of id for ActiveRecord models.
|