client_side_validations 16.0.1 → 16.0.2
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 +6 -0
- data/README.md +7 -3
- data/lib/client_side_validations/version.rb +1 -1
- data/vendor/assets/javascripts/rails.validations.js +5 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11a781942eb32f699c3409faa441c7f72b4a6d49c5050f6ed677bf9202f3320c
|
4
|
+
data.tar.gz: 88e915020768a159ecc2d2e85ae3577d5cfd73abe6d1e4dd9abee3d6554564fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8327b3bd03f91b7114488dff342c42de349321ff8bd1d2992bfd1fdbc0f26996be91d76a5529aa5ecc5216c34aec3d1ee01d80fbb8592f4664a7ecbe1f80438a
|
7
|
+
data.tar.gz: 481e25e87b9ff63897312328dd948953b1d9cf4b3991f1b271cda8d5c6b3dac81d18a3c2e9596a708467073b2b072c1af91067cd62d3a4ab918ba77ff1a93751
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 16.0.2 / 2019-09-21
|
4
|
+
|
5
|
+
* [BUGFIX] Guard against prototype extended arrays ([#769](https://github.com/DavyJonesLocker/client_side_validations/pull/769))
|
6
|
+
* [ENHANCEMENT] Test against latest Ruby versions
|
7
|
+
* [ENHANCEMENT] Update development dependencies
|
8
|
+
|
3
9
|
## 16.0.1 / 2019-08-24
|
4
10
|
|
5
11
|
* [BUGFIX] Fix default export (JS)
|
data/README.md
CHANGED
@@ -69,13 +69,17 @@ yarn add @client-side-validations/client-side-validations
|
|
69
69
|
Then add the following line to your `app/javascript/packs/application.js` pack:
|
70
70
|
|
71
71
|
```js
|
72
|
+
// If you are using `import` syntax
|
72
73
|
import '@client-side-validations/client-side-validations'
|
74
|
+
|
75
|
+
// If you are using `require` syntax
|
76
|
+
require('@client-side-validations/client-side-validations')
|
73
77
|
```
|
74
78
|
|
75
79
|
If you are using [Turbolinks](https://github.com/turbolinks/turbolinks),
|
76
|
-
make sure that
|
77
|
-
**after** `Turbolinks.start()`, so ClientSideValidations can
|
78
|
-
event handlers.
|
80
|
+
make sure that `@client-side-validations/client-side-validations` is imported
|
81
|
+
(or required) **after** `Turbolinks.start()`, so ClientSideValidations can
|
82
|
+
properly attach its event handlers.
|
79
83
|
|
80
84
|
#### When using Sprockets ####
|
81
85
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Client Side Validations JS - v0.0.
|
2
|
+
* Client Side Validations JS - v0.0.5 (https://github.com/DavyJonesLocker/client_side_validations)
|
3
3
|
* Copyright (c) 2019 Geremia Taglialatela, Brian Cardarella
|
4
4
|
* Licensed under MIT (https://opensource.org/licenses/mit-license.php)
|
5
5
|
*/
|
@@ -682,6 +682,10 @@
|
|
682
682
|
|
683
683
|
var executeValidator = function executeValidator(validatorFunctions, validatorFunction, validatorOptions, element) {
|
684
684
|
for (var validatorOption in validatorOptions) {
|
685
|
+
if (!validatorOptions[validatorOption]) {
|
686
|
+
continue;
|
687
|
+
}
|
688
|
+
|
685
689
|
var message = validatorFunction.call(validatorFunctions, element, validatorOptions[validatorOption]);
|
686
690
|
|
687
691
|
if (message) {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: client_side_validations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 16.0.
|
4
|
+
version: 16.0.2
|
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: 2019-
|
12
|
+
date: 2019-09-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -211,14 +211,14 @@ dependencies:
|
|
211
211
|
requirements:
|
212
212
|
- - "~>"
|
213
213
|
- !ruby/object:Gem::Version
|
214
|
-
version: 0.17.
|
214
|
+
version: 0.17.1
|
215
215
|
type: :development
|
216
216
|
prerelease: false
|
217
217
|
version_requirements: !ruby/object:Gem::Requirement
|
218
218
|
requirements:
|
219
219
|
- - "~>"
|
220
220
|
- !ruby/object:Gem::Version
|
221
|
-
version: 0.17.
|
221
|
+
version: 0.17.1
|
222
222
|
- !ruby/object:Gem::Dependency
|
223
223
|
name: sqlite3
|
224
224
|
requirement: !ruby/object:Gem::Requirement
|
@@ -336,7 +336,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
336
336
|
- !ruby/object:Gem::Version
|
337
337
|
version: '0'
|
338
338
|
requirements: []
|
339
|
-
rubygems_version: 3.0.
|
339
|
+
rubygems_version: 3.0.6
|
340
340
|
signing_key:
|
341
341
|
specification_version: 4
|
342
342
|
summary: Client Side Validations
|