ar-sqlite-uuid 0.0.1 → 0.0.2

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: dd9777a74422f412ef2b7b8599e025b3180751679ebb1d6dbe7592d8dcfe168f
4
- data.tar.gz: eb024c88139ebc3149996bc02031eb26413940f11d4e2a5648ab5059c8625fc3
3
+ metadata.gz: 51750bea9584599048865ea67b0d57e2fd07b7a540e7308f52595567daff3f18
4
+ data.tar.gz: 7b70fb93ab00bd8193f3c047676208bf9a135a88c538592e4b54c3efddf050ca
5
5
  SHA512:
6
- metadata.gz: b8f1528283c3a842b0a0d85be695c6f2edddf1be578649151ffc34030a57c32cb4c0598773e8a4c905bb7fa5497f982b5d99c234423d4fc1569ff5b3c86babff
7
- data.tar.gz: ccd4cead75edfd63f2002a7859636e9f6616931edc448aefc260fc4e7e6b25955254871a7516db482ef6c91435c0394db0957446e1129d817d81ad1e633f1288
6
+ metadata.gz: 30537f31769ca395a90228fd4b4f8f8eaec19c27e4fb7356e5f37e3113eb07696b1794902352e0f1fce76fd068cb729a9c47431d68349101d508ae1b6d4338aa
7
+ data.tar.gz: d1494531a298705c68645dd82b6024246c597fed04396028701a82c473371c48044f3c797afb4fe8ae659c1dc86b6b31a7429dc3bcc05170879b9971fdf0e349
data/CHANGELOG.md CHANGED
@@ -11,6 +11,10 @@ Prefix your message with one of the following:
11
11
  - [Security] in case of vulnerabilities.
12
12
  -->
13
13
 
14
+ ## v0.0.2 (2024-12-09)
15
+
16
+ - [Fixed] Don't do more than setting the primary key's type.
17
+
14
18
  ## v0.0.1 (2024-12-06)
15
19
 
16
20
  - Initial release.
@@ -21,7 +21,6 @@ Gem::Specification.new do |spec|
21
21
  spec.license = "MIT"
22
22
  spec.required_ruby_version = Gem::Requirement.new(">= 3.2.0")
23
23
  spec.metadata["rubygems_mfa_required"] = "true"
24
- p spec.metadata
25
24
 
26
25
  spec.files = `git ls-files -z`
27
26
  .split("\x0")
@@ -5,17 +5,8 @@ module AR
5
5
  module TableDefinition
6
6
  def self.included(base)
7
7
  base.class_eval do
8
- references = instance_method(: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(*, **)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module AR
4
4
  module UUID
5
- VERSION = "0.0.1"
5
+ VERSION = "0.0.2"
6
6
  end
7
7
  end
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.1
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-06 00:00:00.000000000 Z
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.1
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: