dependent_option_checker 0.1.0 → 0.2.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74e8ebec75de9484bfcb06b5bcbc61e5d35823b59990bb624e913d2091f929ea
|
4
|
+
data.tar.gz: 22c6a0f8768888c9afbabe3d218d84ba75d99b79d01db5c4d10c2ca615cc7d86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02ad2b767b358a78c4e64a1fd0db948d64def03a7b3a6e128d41241bdcd85c25e8ac5d12c77ce4e7f1b28dac70ce4db291cf232b617676f03f28abbb63b5ed46
|
7
|
+
data.tar.gz: 5d7914b4574f180dccfc217146ad0ebe7e8d80d5b4bf429c89f362efb5cdf7f352d0874b9883190476378df073aa1db395e7a52410aabbe67582b7c6ddfff2b3
|
@@ -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 "#
|
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|
|
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.
|
4
|
+
version: 0.2.0
|
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-
|
11
|
+
date: 2025-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|