validation_hints 7.0.0 → 7.13.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 +4 -4
- data/.ruby-version +1 -0
- data/CHANGELOG.md +28 -0
- data/Gemfile.lock +22 -20
- data/README.md +5 -5
- data/lib/validation_hints/version.rb +1 -1
- data/test/validation_hints_test.rb +1 -1
- data/validation_hints.gemspec +4 -4
- metadata +16 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f75c151788fa7e1a0c1c87ef2dac2e199bfa2011f8a1ec1280c43100b90436cd
|
|
4
|
+
data.tar.gz: b307b253df0470da91d75b2f6c72b2eb20bc6ff7161588f097bbe023513a12ef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5a84d067123e00240bc9468b9ac9135424878e4e0c804242e3edc65251f75c41d46ca7a44dae01ec62f3419679e24de7798651bf65a44c7748363878320a600f
|
|
7
|
+
data.tar.gz: 6437a3effe6e66c604916431f14dc264e8134c90290a00315e3765fc43da641fbe40a394d7bcc6552b0980ef32adb35c3eac63790b791284980c2f8e50b0cd76
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ruby-4.0.4
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project are documented here.
|
|
4
4
|
|
|
5
|
+
## 7.13.1
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- **Version numbering:** aligned with **inline_forms** / **inline_forms_installer** **7.13.1** (companion release; no API changes in this gem).
|
|
10
|
+
|
|
11
|
+
## 7.13.0
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- **Version numbering:** aligned with **inline_forms** / **inline_forms_installer** **7.13.0** (Track B companion release; no API changes in this gem).
|
|
16
|
+
|
|
17
|
+
### Verified
|
|
18
|
+
|
|
19
|
+
- **`bundle exec rake test`** — green on Rails 7.2 / Ruby 4.0.
|
|
20
|
+
|
|
21
|
+
## 7.12.0
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- **Rails 7.2:** runtime `activerecord` `>= 7.2.3.1`, `< 7.3` (was 7.1.x).
|
|
26
|
+
- **Ruby 4.0:** `required_ruby_version >= 4.0.0`.
|
|
27
|
+
- **Version numbering:** aligned with **inline_forms** / **inline_forms_installer** **7.12.0**.
|
|
28
|
+
|
|
29
|
+
### Verified
|
|
30
|
+
|
|
31
|
+
- **`bundle exec rake test`** — **24 runs, 50 assertions, 0 failures** on Rails 7.2 / Ruby 4.0.
|
|
32
|
+
|
|
5
33
|
## 7.0.0
|
|
6
34
|
|
|
7
35
|
### Changed
|
data/Gemfile.lock
CHANGED
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
validation_hints (7.
|
|
5
|
-
activerecord (>= 7.1
|
|
4
|
+
validation_hints (7.13.1)
|
|
5
|
+
activerecord (>= 7.2.3.1, < 7.3)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
activemodel (7.1
|
|
11
|
-
activesupport (= 7.1
|
|
12
|
-
activerecord (7.1
|
|
13
|
-
activemodel (= 7.1
|
|
14
|
-
activesupport (= 7.1
|
|
10
|
+
activemodel (7.2.3.1)
|
|
11
|
+
activesupport (= 7.2.3.1)
|
|
12
|
+
activerecord (7.2.3.1)
|
|
13
|
+
activemodel (= 7.2.3.1)
|
|
14
|
+
activesupport (= 7.2.3.1)
|
|
15
15
|
timeout (>= 0.4.0)
|
|
16
|
-
activesupport (7.1
|
|
16
|
+
activesupport (7.2.3.1)
|
|
17
17
|
base64
|
|
18
18
|
benchmark (>= 0.3)
|
|
19
19
|
bigdecimal
|
|
20
|
-
concurrent-ruby (~> 1.0, >= 1.
|
|
20
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
21
21
|
connection_pool (>= 2.2.5)
|
|
22
22
|
drb
|
|
23
23
|
i18n (>= 1.6, < 2)
|
|
24
24
|
logger (>= 1.4.2)
|
|
25
|
-
minitest (>= 5.1)
|
|
26
|
-
mutex_m
|
|
25
|
+
minitest (>= 5.1, < 6)
|
|
27
26
|
securerandom (>= 0.3)
|
|
28
|
-
tzinfo (~> 2.0)
|
|
27
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
29
28
|
base64 (0.3.0)
|
|
30
29
|
benchmark (0.5.0)
|
|
31
30
|
bigdecimal (4.1.2)
|
|
@@ -35,10 +34,12 @@ GEM
|
|
|
35
34
|
i18n (1.14.8)
|
|
36
35
|
concurrent-ruby (~> 1.0)
|
|
37
36
|
logger (1.7.0)
|
|
37
|
+
mini_portile2 (2.8.9)
|
|
38
38
|
minitest (5.27.0)
|
|
39
|
-
mutex_m (0.3.0)
|
|
40
39
|
rake (13.4.2)
|
|
41
40
|
securerandom (0.4.1)
|
|
41
|
+
sqlite3 (1.7.3)
|
|
42
|
+
mini_portile2 (~> 2.8.0)
|
|
42
43
|
sqlite3 (1.7.3-aarch64-linux)
|
|
43
44
|
sqlite3 (1.7.3-arm-linux)
|
|
44
45
|
sqlite3 (1.7.3-arm64-darwin)
|
|
@@ -61,8 +62,8 @@ PLATFORMS
|
|
|
61
62
|
x86_64-linux-musl
|
|
62
63
|
|
|
63
64
|
DEPENDENCIES
|
|
64
|
-
activemodel (>= 7.1
|
|
65
|
-
activerecord (>= 7.1
|
|
65
|
+
activemodel (>= 7.2.3.1, < 7.3)
|
|
66
|
+
activerecord (>= 7.2.3.1, < 7.3)
|
|
66
67
|
bundler (>= 2.0)
|
|
67
68
|
minitest (~> 5.0)
|
|
68
69
|
rake (~> 13.0)
|
|
@@ -70,9 +71,9 @@ DEPENDENCIES
|
|
|
70
71
|
validation_hints!
|
|
71
72
|
|
|
72
73
|
CHECKSUMS
|
|
73
|
-
activemodel (7.1
|
|
74
|
-
activerecord (7.1
|
|
75
|
-
activesupport (7.1
|
|
74
|
+
activemodel (7.2.3.1) sha256=39e1869b85e7a0b64a8ccddf19f3fb0c44261b329785384bb88f878eab51c0d0
|
|
75
|
+
activerecord (7.2.3.1) sha256=b89513e275da5b34183c5f2a497c154b02dcc7c811d399ab557e67e36170a05d
|
|
76
|
+
activesupport (7.2.3.1) sha256=11ebed516a43a0bb47346227a35ebae4d9427465a7c9eb197a03d5c8d283cb34
|
|
76
77
|
base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
|
|
77
78
|
benchmark (0.5.0) sha256=465df122341aedcb81a2a24b4d3bd19b6c67c1530713fd533f3ff034e419236c
|
|
78
79
|
bigdecimal (4.1.2) sha256=53d217666027eab4280346fba98e7d5b66baaae1b9c3c1c0ffe89d48188a3fbd
|
|
@@ -82,10 +83,11 @@ CHECKSUMS
|
|
|
82
83
|
drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
|
|
83
84
|
i18n (1.14.8) sha256=285778639134865c5e0f6269e0b818256017e8cde89993fdfcbfb64d088824a5
|
|
84
85
|
logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
|
|
86
|
+
mini_portile2 (2.8.9) sha256=0cd7c7f824e010c072e33f68bc02d85a00aeb6fce05bb4819c03dfd3c140c289
|
|
85
87
|
minitest (5.27.0) sha256=2d3b17f8a36fe7801c1adcffdbc38233b938eb0b4966e97a6739055a45fa77d5
|
|
86
|
-
mutex_m (0.3.0) sha256=cfcb04ac16b69c4813777022fdceda24e9f798e48092a2b817eb4c0a782b0751
|
|
87
88
|
rake (13.4.2) sha256=cb825b2bd5f1f8e91ca37bddb4b9aaf345551b4731da62949be002fa89283701
|
|
88
89
|
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
|
|
90
|
+
sqlite3 (1.7.3) sha256=fa77f63c709548f46d4e9b6bb45cda52aa3881aa12cc85991132758e8968701c
|
|
89
91
|
sqlite3 (1.7.3-aarch64-linux) sha256=0ccb8c001cd2617f4801a2c816142d3c9bc299e3f3e0f49e03812f3610b0891c
|
|
90
92
|
sqlite3 (1.7.3-arm-linux) sha256=eb653026d44f8502b74564e585245485a5667d72f8888854e53c561f816541b0
|
|
91
93
|
sqlite3 (1.7.3-arm64-darwin) sha256=b956160cc882d2568f332f915c9fe27cae9a4521b202d6e7ea540171c88e4600
|
|
@@ -93,7 +95,7 @@ CHECKSUMS
|
|
|
93
95
|
sqlite3 (1.7.3-x86_64-linux) sha256=522a3285660dec8253465880c97980e873db0d79060900be8d14194217a3ee73
|
|
94
96
|
timeout (0.6.1) sha256=78f57368a7e7bbadec56971f78a3f5ecbcfb59b7fcbb0a3ed6ddc08a5094accb
|
|
95
97
|
tzinfo (2.0.6) sha256=8daf828cc77bcf7d63b0e3bdb6caa47e2272dcfaf4fbfe46f8c3a9df087a829b
|
|
96
|
-
validation_hints (7.
|
|
98
|
+
validation_hints (7.13.1)
|
|
97
99
|
|
|
98
100
|
BUNDLED WITH
|
|
99
101
|
4.0.11
|
data/README.md
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Proactive validation hints derived from model validators — complementary to Rails `errors` (which react after `valid?` fails).
|
|
4
4
|
|
|
5
|
-
**Requirements:** Ruby >=
|
|
5
|
+
**Requirements:** Ruby >= 4.0, Rails / Active Record 7.2.x (`>= 7.2.3.1`, `< 7.3`). Used by [inline_forms](https://github.com/acesuares/inline_forms) 7.x for label tooltips on validated fields.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```ruby
|
|
10
10
|
# Gemfile
|
|
11
|
-
gem "validation_hints", "~>
|
|
11
|
+
gem "validation_hints", "~> 7.13"
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
Rails apps load the gem via `ValidationHints::Railtie` (no manual `require`).
|
|
@@ -117,7 +117,7 @@ en:
|
|
|
117
117
|
|
|
118
118
|
## Security
|
|
119
119
|
|
|
120
|
-
Runtime dependency is **Active Record 7.
|
|
120
|
+
Runtime dependency is **Active Record 7.2.x** only (no Action View / Active Storage in the gem).
|
|
121
121
|
|
|
122
122
|
Dev dependencies were slimmed from full `rails` to `activerecord` + `activemodel` to reduce audit noise. Run:
|
|
123
123
|
|
|
@@ -125,7 +125,7 @@ Dev dependencies were slimmed from full `rails` to `activerecord` + `activemodel
|
|
|
125
125
|
bundler-audit check --update
|
|
126
126
|
```
|
|
127
127
|
|
|
128
|
-
Rails **7.
|
|
128
|
+
Rails **7.2.x** advisories: run `bundle exec bundler-audit` in your app; bump patch releases as needed.
|
|
129
129
|
|
|
130
130
|
## Tests
|
|
131
131
|
|
|
@@ -136,7 +136,7 @@ bundle install
|
|
|
136
136
|
bundle exec rake test
|
|
137
137
|
```
|
|
138
138
|
|
|
139
|
-
Runs Minitest against an in-memory SQLite Active Record 7.
|
|
139
|
+
Runs Minitest against an in-memory SQLite Active Record 7.2 app (`test/test_helper.rb`).
|
|
140
140
|
|
|
141
141
|
## History
|
|
142
142
|
|
data/validation_hints.gemspec
CHANGED
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
|
12
12
|
s.summary = "Proactive validation hints derived from model validators"
|
|
13
13
|
s.description = "Shows what a field expects before validation fails — complementary to ActiveModel errors."
|
|
14
14
|
s.license = "MIT"
|
|
15
|
-
s.required_ruby_version = ">=
|
|
15
|
+
s.required_ruby_version = ">= 4.0.0"
|
|
16
16
|
|
|
17
17
|
if File.directory?(File.join(__dir__, ".git"))
|
|
18
18
|
s.files = `git ls-files`.split("\n")
|
|
@@ -28,10 +28,10 @@ Gem::Specification.new do |s|
|
|
|
28
28
|
|
|
29
29
|
s.require_paths = ["lib"]
|
|
30
30
|
|
|
31
|
-
s.add_dependency "activerecord", ">= 7.1
|
|
31
|
+
s.add_dependency "activerecord", ">= 7.2.3.1", "< 7.3"
|
|
32
32
|
|
|
33
|
-
s.add_development_dependency "activerecord", ">= 7.1
|
|
34
|
-
s.add_development_dependency "activemodel", ">= 7.1
|
|
33
|
+
s.add_development_dependency "activerecord", ">= 7.2.3.1", "< 7.3"
|
|
34
|
+
s.add_development_dependency "activemodel", ">= 7.2.3.1", "< 7.3"
|
|
35
35
|
s.add_development_dependency "sqlite3", "~> 1.4"
|
|
36
36
|
s.add_development_dependency "minitest", "~> 5.0"
|
|
37
37
|
s.add_development_dependency "rake", "~> 13.0"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: validation_hints
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.
|
|
4
|
+
version: 7.13.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ace Suares
|
|
@@ -15,60 +15,60 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - ">="
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 7.1
|
|
18
|
+
version: 7.2.3.1
|
|
19
19
|
- - "<"
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: '7.
|
|
21
|
+
version: '7.3'
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
25
|
requirements:
|
|
26
26
|
- - ">="
|
|
27
27
|
- !ruby/object:Gem::Version
|
|
28
|
-
version: 7.1
|
|
28
|
+
version: 7.2.3.1
|
|
29
29
|
- - "<"
|
|
30
30
|
- !ruby/object:Gem::Version
|
|
31
|
-
version: '7.
|
|
31
|
+
version: '7.3'
|
|
32
32
|
- !ruby/object:Gem::Dependency
|
|
33
33
|
name: activerecord
|
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|
|
35
35
|
requirements:
|
|
36
36
|
- - ">="
|
|
37
37
|
- !ruby/object:Gem::Version
|
|
38
|
-
version: 7.1
|
|
38
|
+
version: 7.2.3.1
|
|
39
39
|
- - "<"
|
|
40
40
|
- !ruby/object:Gem::Version
|
|
41
|
-
version: '7.
|
|
41
|
+
version: '7.3'
|
|
42
42
|
type: :development
|
|
43
43
|
prerelease: false
|
|
44
44
|
version_requirements: !ruby/object:Gem::Requirement
|
|
45
45
|
requirements:
|
|
46
46
|
- - ">="
|
|
47
47
|
- !ruby/object:Gem::Version
|
|
48
|
-
version: 7.1
|
|
48
|
+
version: 7.2.3.1
|
|
49
49
|
- - "<"
|
|
50
50
|
- !ruby/object:Gem::Version
|
|
51
|
-
version: '7.
|
|
51
|
+
version: '7.3'
|
|
52
52
|
- !ruby/object:Gem::Dependency
|
|
53
53
|
name: activemodel
|
|
54
54
|
requirement: !ruby/object:Gem::Requirement
|
|
55
55
|
requirements:
|
|
56
56
|
- - ">="
|
|
57
57
|
- !ruby/object:Gem::Version
|
|
58
|
-
version: 7.1
|
|
58
|
+
version: 7.2.3.1
|
|
59
59
|
- - "<"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '7.
|
|
61
|
+
version: '7.3'
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
66
|
- - ">="
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: 7.1
|
|
68
|
+
version: 7.2.3.1
|
|
69
69
|
- - "<"
|
|
70
70
|
- !ruby/object:Gem::Version
|
|
71
|
-
version: '7.
|
|
71
|
+
version: '7.3'
|
|
72
72
|
- !ruby/object:Gem::Dependency
|
|
73
73
|
name: sqlite3
|
|
74
74
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -135,6 +135,7 @@ extra_rdoc_files: []
|
|
|
135
135
|
files:
|
|
136
136
|
- ".document"
|
|
137
137
|
- ".gitignore"
|
|
138
|
+
- ".ruby-version"
|
|
138
139
|
- CHANGELOG.md
|
|
139
140
|
- Gemfile
|
|
140
141
|
- Gemfile.lock
|
|
@@ -163,14 +164,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
163
164
|
requirements:
|
|
164
165
|
- - ">="
|
|
165
166
|
- !ruby/object:Gem::Version
|
|
166
|
-
version:
|
|
167
|
+
version: 4.0.0
|
|
167
168
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
169
|
requirements:
|
|
169
170
|
- - ">="
|
|
170
171
|
- !ruby/object:Gem::Version
|
|
171
172
|
version: '0'
|
|
172
173
|
requirements: []
|
|
173
|
-
rubygems_version:
|
|
174
|
+
rubygems_version: 4.0.10
|
|
174
175
|
specification_version: 4
|
|
175
176
|
summary: Proactive validation hints derived from model validators
|
|
176
177
|
test_files: []
|