client_side_validations-simple_form 11.2.0 → 12.0.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 +4 -4
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +1 -1
- data/README.md +4 -4
- data/lib/client_side_validations/simple_form/form_builder.rb +11 -1
- data/lib/client_side_validations/simple_form/version.rb +1 -1
- data/vendor/assets/javascripts/rails.validations.simple_form.bootstrap4.js +1 -1
- data/vendor/assets/javascripts/rails.validations.simple_form.js +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 962757fc1cdb24db1b505e7e04c72a2e7627bafd2092a054a0a9b5240a1099f4
|
|
4
|
+
data.tar.gz: b30265716f3db5b7e548c128cd3c91d74094891755a177adae32a71ff3cfb00d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 03615b151c62342bb23df56263cace820ad77fce37cf6dc8c8050d124c58432909fcd8ffc4693539a60db75f1c53999af607188b6fae8239ec3bd5f751d288ae
|
|
7
|
+
data.tar.gz: 496ad919e62d772820113f2b7e433106700e32beb27bb73fefc6fc276f29067051b0003afebe398c370ed02b531365d7cbb9cc5533d22bc0f7abdd10f3f25e72
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 12.0.0 / 2020-01-23
|
|
4
|
+
|
|
5
|
+
* [FEATURE] Allow nested `:error` component [#111](https://github.com/DavyJonesLocker/client_side_validations-simple_form/pull/111) **POSSIBLE BREAKING CHANGE!**
|
|
6
|
+
* [ENHANCEMENT] Default branch is now `main` **POSSIBLE BREAKING CHANGE!**
|
|
7
|
+
* [ENHANCEMENT] Update QUnit to 2.14.0
|
|
8
|
+
* [ENHANCEMENT] Update development dependencies
|
|
9
|
+
|
|
3
10
|
## 11.2.0 / 2020-12-21
|
|
4
11
|
|
|
5
12
|
* [FEATURE] Allow Ruby 3.0.0 (really)
|
data/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2021 Geremia Taglialatela, Brian Cardarella
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/README.md
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
[](https://badge.fury.io/rb/client_side_validations-simple_form)
|
|
4
4
|
[](https://badge.fury.io/js/%40client-side-validations%2Fsimple-form)
|
|
5
5
|
[](https://dependabot.com/compatibility-score.html?dependency-name=client_side_validations-simple_form&package-manager=bundler&version-scheme=semver)
|
|
6
|
-
[](https://travis-ci.org/DavyJonesLocker/client_side_validations-simple_form)
|
|
7
7
|
[](https://codeclimate.com/github/DavyJonesLocker/client_side_validations-simple_form/maintainability)
|
|
8
|
-
[](https://coveralls.io/github/DavyJonesLocker/client_side_validations-simple_form?branch=main)
|
|
9
9
|
|
|
10
10
|
[Simple Form](https://github.com/plataformatec/simple_form) plugin for [ClientSideValidations](https://github.com/DavyJonesLocker/client_side_validations)
|
|
11
11
|
|
|
@@ -111,12 +111,12 @@ This gem follows [Semantic Versioning](https://semver.org)
|
|
|
111
111
|
## Want to help? ##
|
|
112
112
|
|
|
113
113
|
Please do! We are always looking to improve this gem. Please see our
|
|
114
|
-
[Contribution Guidelines](https://github.com/DavyJonesLocker/client_side_validations-simple_form/blob/
|
|
114
|
+
[Contribution Guidelines](https://github.com/DavyJonesLocker/client_side_validations-simple_form/blob/main/CONTRIBUTING.md)
|
|
115
115
|
on how to properly submit issues and pull requests.
|
|
116
116
|
|
|
117
117
|
## Legal ##
|
|
118
118
|
|
|
119
|
-
[DockYard](https://dockyard.com/), LLC © 2012-
|
|
119
|
+
[DockYard](https://dockyard.com/), LLC © 2012-2021
|
|
120
120
|
|
|
121
121
|
[@dockyard](https://twitter.com/dockyard)
|
|
122
122
|
|
|
@@ -28,12 +28,22 @@ module ClientSideValidations
|
|
|
28
28
|
private
|
|
29
29
|
|
|
30
30
|
def wrapper_error_component
|
|
31
|
-
if
|
|
31
|
+
if namespace_present?(wrapper, :error)
|
|
32
32
|
wrapper.find(:error)
|
|
33
33
|
else
|
|
34
34
|
wrapper.find(:full_error)
|
|
35
35
|
end
|
|
36
36
|
end
|
|
37
|
+
|
|
38
|
+
def namespace_present?(component, namespace)
|
|
39
|
+
return true if component.namespace == namespace
|
|
40
|
+
|
|
41
|
+
component.try(:components)&.each do |child_component|
|
|
42
|
+
return true if namespace_present?(child_component, namespace)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
false
|
|
46
|
+
end
|
|
37
47
|
end
|
|
38
48
|
end
|
|
39
49
|
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Client Side Validations Simple Form JS (Bootstrap 4) - v0.1.3 (https://github.com/DavyJonesLocker/client_side_validations-simple_form)
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2021 Geremia Taglialatela, Brian Cardarella
|
|
4
4
|
* Licensed under MIT (https://opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Client Side Validations Simple Form JS (Default) - v0.1.3 (https://github.com/DavyJonesLocker/client_side_validations-simple_form)
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2021 Geremia Taglialatela, Brian Cardarella
|
|
4
4
|
* Licensed under MIT (https://opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
6
6
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: client_side_validations-simple_form
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 12.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Geremia Taglialatela
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2021-01-23 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: client_side_validations
|
|
@@ -79,14 +79,14 @@ dependencies:
|
|
|
79
79
|
requirements:
|
|
80
80
|
- - "~>"
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: 0.
|
|
82
|
+
version: 0.20.0
|
|
83
83
|
type: :development
|
|
84
84
|
prerelease: false
|
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
|
86
86
|
requirements:
|
|
87
87
|
- - "~>"
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: 0.
|
|
89
|
+
version: 0.20.0
|
|
90
90
|
- !ruby/object:Gem::Dependency
|
|
91
91
|
name: m
|
|
92
92
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -149,28 +149,28 @@ dependencies:
|
|
|
149
149
|
requirements:
|
|
150
150
|
- - "~>"
|
|
151
151
|
- !ruby/object:Gem::Version
|
|
152
|
-
version: '1.
|
|
152
|
+
version: '1.8'
|
|
153
153
|
type: :development
|
|
154
154
|
prerelease: false
|
|
155
155
|
version_requirements: !ruby/object:Gem::Requirement
|
|
156
156
|
requirements:
|
|
157
157
|
- - "~>"
|
|
158
158
|
- !ruby/object:Gem::Version
|
|
159
|
-
version: '1.
|
|
159
|
+
version: '1.8'
|
|
160
160
|
- !ruby/object:Gem::Dependency
|
|
161
161
|
name: rubocop-minitest
|
|
162
162
|
requirement: !ruby/object:Gem::Requirement
|
|
163
163
|
requirements:
|
|
164
164
|
- - "~>"
|
|
165
165
|
- !ruby/object:Gem::Version
|
|
166
|
-
version: 0.10.
|
|
166
|
+
version: 0.10.3
|
|
167
167
|
type: :development
|
|
168
168
|
prerelease: false
|
|
169
169
|
version_requirements: !ruby/object:Gem::Requirement
|
|
170
170
|
requirements:
|
|
171
171
|
- - "~>"
|
|
172
172
|
- !ruby/object:Gem::Version
|
|
173
|
-
version: 0.10.
|
|
173
|
+
version: 0.10.3
|
|
174
174
|
- !ruby/object:Gem::Dependency
|
|
175
175
|
name: rubocop-performance
|
|
176
176
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -222,7 +222,7 @@ dependencies:
|
|
|
222
222
|
version: 0.18.5
|
|
223
223
|
- - "<"
|
|
224
224
|
- !ruby/object:Gem::Version
|
|
225
|
-
version: '0.
|
|
225
|
+
version: '0.22'
|
|
226
226
|
type: :development
|
|
227
227
|
prerelease: false
|
|
228
228
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -232,7 +232,7 @@ dependencies:
|
|
|
232
232
|
version: 0.18.5
|
|
233
233
|
- - "<"
|
|
234
234
|
- !ruby/object:Gem::Version
|
|
235
|
-
version: '0.
|
|
235
|
+
version: '0.22'
|
|
236
236
|
- !ruby/object:Gem::Dependency
|
|
237
237
|
name: shotgun
|
|
238
238
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -298,7 +298,7 @@ licenses:
|
|
|
298
298
|
- MIT
|
|
299
299
|
metadata:
|
|
300
300
|
bug_tracker_uri: https://github.com/DavyJonesLocker/client_side_validations-simple_form/issues
|
|
301
|
-
changelog_uri: https://github.com/DavyJonesLocker/client_side_validations-simple_form/blob/
|
|
301
|
+
changelog_uri: https://github.com/DavyJonesLocker/client_side_validations-simple_form/blob/main/CHANGELOG.md
|
|
302
302
|
source_code_uri: https://github.com/DavyJonesLocker/client_side_validations-simple_form
|
|
303
303
|
post_install_message:
|
|
304
304
|
rdoc_options: []
|