ar-sqlite-uuid 0.0.1 → 0.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/CHANGELOG.md +4 -0
- data/ar-sqlite-uuid.gemspec +0 -1
- data/lib/ar/uuid/table_definition.rb +2 -11
- data/lib/ar/uuid/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: 51750bea9584599048865ea67b0d57e2fd07b7a540e7308f52595567daff3f18
|
|
4
|
+
data.tar.gz: 7b70fb93ab00bd8193f3c047676208bf9a135a88c538592e4b54c3efddf050ca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 30537f31769ca395a90228fd4b4f8f8eaec19c27e4fb7356e5f37e3113eb07696b1794902352e0f1fce76fd068cb729a9c47431d68349101d508ae1b6d4338aa
|
|
7
|
+
data.tar.gz: d1494531a298705c68645dd82b6024246c597fed04396028701a82c473371c48044f3c797afb4fe8ae659c1dc86b6b31a7429dc3bcc05170879b9971fdf0e349
|
data/CHANGELOG.md
CHANGED
data/ar-sqlite-uuid.gemspec
CHANGED
|
@@ -5,17 +5,8 @@ module AR
|
|
|
5
5
|
module TableDefinition
|
|
6
6
|
def self.included(base)
|
|
7
7
|
base.class_eval do
|
|
8
|
-
references
|
|
9
|
-
|
|
10
|
-
define_method :references do |*args, **options|
|
|
11
|
-
options[:type] = :text unless options.include?(:type)
|
|
12
|
-
|
|
13
|
-
return if options.include?(:null)
|
|
14
|
-
|
|
15
|
-
options[:null] =
|
|
16
|
-
!ActiveRecord::Base.belongs_to_required_by_default
|
|
17
|
-
|
|
18
|
-
references.bind_call(self, *args, **options)
|
|
8
|
+
def references(*args, **options)
|
|
9
|
+
super(*args, **options, type: options.fetch(:type, :text))
|
|
19
10
|
end
|
|
20
11
|
|
|
21
12
|
def belongs_to(*, **)
|
data/lib/ar/uuid/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ar-sqlite-uuid
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nando Vieira
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-12-
|
|
11
|
+
date: 2024-12-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -176,7 +176,7 @@ licenses:
|
|
|
176
176
|
metadata:
|
|
177
177
|
bug_tracker_uri: https://github.com/fnando/ar-sqlite-uuid/issues
|
|
178
178
|
changelog_uri: https://github.com/fnando/ar-sqlite-uuid/tree/main/CHANGELOG.md
|
|
179
|
-
source_code_uri: https://github.com/fnando/ar-sqlite-uuid/tree/v0.0.
|
|
179
|
+
source_code_uri: https://github.com/fnando/ar-sqlite-uuid/tree/v0.0.2
|
|
180
180
|
funding_uri: https://github.com/sponsors/fnando
|
|
181
181
|
rubygems_mfa_required: 'true'
|
|
182
182
|
post_install_message:
|