dependent_option_checker 0.1.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e03c96889e5fc45953006a43fd53e44293774a8843aaeedb44dcbe00ef06c434
4
- data.tar.gz: 83d1adf802a900300caf508526299c5090a800dca52ad12acc3bda30ab539180
3
+ metadata.gz: 21a226c451294364e4f267387d638e3f501cab87d95702fb687fa7a9926ff903
4
+ data.tar.gz: 42c407d7059ede3c0dca833e31859d813e1a2769881750e6fbd587b54f5d96c3
5
5
  SHA512:
6
- metadata.gz: 854c450ac46eb74d7463202b0eedd7662261d919bf5403692962e22e10e3cfd9070fd1c52e50227bf5b5369fefb49b2efad99618f3c75722294cda9550ff428f
7
- data.tar.gz: 6bce7b79d4f319c1c0bf77d40aba16d5066ea17b75c057d6a31784e179951c4837f5830864871ebadbe4a1caa5db5b4ba7265f1b45d9d2bc8958c9a11e39f92c
6
+ metadata.gz: e7533efc6645db6f0b891dc891378b7168843495e3dfa957433fac1dbd11af8b920adb64db89e1687d01c8afdad17bf56b4f924b114e087435d770a760a78691
7
+ data.tar.gz: 47d212a5cbf9bee7cb220942e5915ab1bbba52eb12c5cc52e2d90a49f2f0660dbb991ab5173adc4f64a382ae2801915ae99f7bc4467cde7c06a21f73309d5882
@@ -32,7 +32,7 @@ module DependentOptionChecker
32
32
 
33
33
  next if unspecified.empty? && undeclared.empty?
34
34
 
35
- acc << result.new(table_name: model.table_name, unspecified:, undeclared:)
35
+ acc << result.new(model_name: model.name, table_name: model.table_name, unspecified:, undeclared:)
36
36
  end
37
37
  end
38
38
 
@@ -55,7 +55,7 @@ module DependentOptionChecker
55
55
  end
56
56
 
57
57
  def result
58
- @result ||= Data.define(:table_name, :unspecified, :undeclared)
58
+ @result ||= Data.define(:model_name, :table_name, :unspecified, :undeclared)
59
59
  end
60
60
  end
61
61
  end
@@ -12,7 +12,7 @@ namespace :dependent_option_checker do
12
12
  puts
13
13
 
14
14
  data.each do |d|
15
- puts "# Model: \e[32m#{d.table_name.classify}\e[0m"
15
+ puts "# \e[32m#{d.model_name} (table: #{d.table_name})\e[0m"
16
16
 
17
17
  puts ' * dependent option omission' if d.unspecified.size.positive?
18
18
  d.unspecified.each do |relation_name|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DependentOptionChecker
4
- VERSION = '0.1.0'
4
+ VERSION = '0.2.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependent_option_checker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - muryoimpl
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-04-02 00:00:00.000000000 Z
11
+ date: 2025-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  requirements: []
86
- rubygems_version: 3.4.19
86
+ rubygems_version: 3.5.22
87
87
  signing_key:
88
88
  specification_version: 4
89
89
  summary: ActiveRecord has_many/has_one dependent option checker