client_side_validations 16.0.1 → 16.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dab4f0aff6e54241abb7e39756a3941d6def2802a3275ebd8a8ac023f35a5642
4
- data.tar.gz: c005612f39ac518411f999396ab4084bbbcab5c5c37519be76351488fc4ce31d
3
+ metadata.gz: 11a781942eb32f699c3409faa441c7f72b4a6d49c5050f6ed677bf9202f3320c
4
+ data.tar.gz: 88e915020768a159ecc2d2e85ae3577d5cfd73abe6d1e4dd9abee3d6554564fb
5
5
  SHA512:
6
- metadata.gz: 397c6916296676f34f66e0a0966c517c0b01100c80def06b6aede2444ef82fe12ffd1d8dd4f195ff0a9458f04beb5009742b8c5c735e008ac0ab74f4adec65e6
7
- data.tar.gz: 5bba610a6bc1e4636a8420522fec21160d89dd50895867bfb0f8ceccca870ac35018f24f3d1718add45b60320f44791dff116c968854aaf3545495ce0f6d7208
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 '@client-side-validations/client-side-validations' is imported
77
- **after** `Turbolinks.start()`, so ClientSideValidations can properly attach its
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
  # frozen_string_literal: true
2
2
 
3
3
  module ClientSideValidations
4
- VERSION = '16.0.1'
4
+ VERSION = '16.0.2'
5
5
  end
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Client Side Validations JS - v0.0.4 (https://github.com/DavyJonesLocker/client_side_validations)
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.1
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-08-24 00:00:00.000000000 Z
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.0
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.0
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.3
339
+ rubygems_version: 3.0.6
340
340
  signing_key:
341
341
  specification_version: 4
342
342
  summary: Client Side Validations