client_side_validations 14.1.0 → 15.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +5 -5
- data/lib/client_side_validations/version.rb +1 -1
- data/vendor/assets/javascripts/rails.validations.js +2 -2
- metadata +20 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9aae7b42d20afe874b89eacfb409b8f7e0730b58d6d3ddd56f7f3b4fd47573db
|
4
|
+
data.tar.gz: 0327e5e5af1b22a18a986e51d2471aaf7dfe0407dc61f2dab632456027b7c9a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0be68614eb80ba98162abe631d7535380146394ff2473f59fae3669199d33deb1ecb3bc835dfdb64f56985d8c964c0d9962b69d5ac33f583625ef9ec42d92ad
|
7
|
+
data.tar.gz: 849c0989043371872d6626b208120a2ef8a96d31b63501545343a54e91f1c699899c14ea7dd026dd4b3f216c57923fe1d0029309d34d65151c9da8e63333dd3b
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# ClientSideValidations #
|
2
2
|
|
3
|
-
[![Gem Version](https://badge.fury.io/rb/client_side_validations.svg)](
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/client_side_validations.svg)](https://badge.fury.io/rb/client_side_validations)
|
4
4
|
[![Build Status](https://secure.travis-ci.org/DavyJonesLocker/client_side_validations.svg?branch=master)](https://travis-ci.org/DavyJonesLocker/client_side_validations)
|
5
5
|
[![Maintainability](https://api.codeclimate.com/v1/badges/9f9e8bb6edc92615f34e/maintainability)](https://codeclimate.com/github/DavyJonesLocker/client_side_validations/maintainability)
|
6
6
|
[![Coverage Status](https://coveralls.io/repos/github/DavyJonesLocker/client_side_validations/badge.svg?branch=master)](https://coveralls.io/github/DavyJonesLocker/client_side_validations?branch=master)
|
7
7
|
|
8
|
-
`ClientSideValidations` made easy for your Rails 5 applications!
|
8
|
+
`ClientSideValidations` made easy for your Rails 5.x / Rails 6 applications!
|
9
9
|
|
10
10
|
## Project Goals ##
|
11
11
|
|
12
|
-
1. Follow the best practices for client side validations developed by [Luke Wroblewski](
|
12
|
+
1. Follow the best practices for client side validations developed by [Luke Wroblewski](https://alistapart.com/article/inline-validation-in-web-forms)
|
13
13
|
2. Automatically extract and apply validation rules defined on the
|
14
14
|
server to the client.
|
15
15
|
3. In the cases where a server-side validation rule would not work on
|
@@ -143,7 +143,7 @@ individual validators:
|
|
143
143
|
|
144
144
|
In the above case only the `presence` validator will be passed to the client.
|
145
145
|
|
146
|
-
This is also the case with [other supported conditional validations](
|
146
|
+
This is also the case with [other supported conditional validations](https://guides.rubyonrails.org/v5.2.3/active_record_validations.html#conditional-validation) (such as Procs, Arrays or Strings).
|
147
147
|
|
148
148
|
**NOTE:** when `:if` conditional includes a symbol or a string with
|
149
149
|
`changed?` in it or start with `will_save_change_to`, validator will forced automatically.
|
@@ -460,7 +460,7 @@ $('#myInputField').trigger('focusout');
|
|
460
460
|
|
461
461
|
## Versioning ##
|
462
462
|
|
463
|
-
This gem follows [Semantic Versioning](
|
463
|
+
This gem follows [Semantic Versioning](https://semver.org)
|
464
464
|
|
465
465
|
## Want to help? ##
|
466
466
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
|
2
2
|
/*!
|
3
|
-
* Client Side Validations -
|
3
|
+
* Client Side Validations - v15.0.0 (https://github.com/DavyJonesLocker/client_side_validations)
|
4
4
|
* Copyright (c) 2019 Geremia Taglialatela, Brian Cardarella
|
5
|
-
* Licensed under MIT (
|
5
|
+
* Licensed under MIT (https://opensource.org/licenses/mit-license.php)
|
6
6
|
*/
|
7
7
|
|
8
8
|
(function() {
|
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:
|
4
|
+
version: 15.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: 2019-
|
12
|
+
date: 2019-05-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -169,14 +169,28 @@ dependencies:
|
|
169
169
|
requirements:
|
170
170
|
- - "~>"
|
171
171
|
- !ruby/object:Gem::Version
|
172
|
-
version: 0.
|
172
|
+
version: 0.69.0
|
173
173
|
type: :development
|
174
174
|
prerelease: false
|
175
175
|
version_requirements: !ruby/object:Gem::Requirement
|
176
176
|
requirements:
|
177
177
|
- - "~>"
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version: 0.
|
179
|
+
version: 0.69.0
|
180
|
+
- !ruby/object:Gem::Dependency
|
181
|
+
name: rubocop-performance
|
182
|
+
requirement: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - "~>"
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '1.3'
|
187
|
+
type: :development
|
188
|
+
prerelease: false
|
189
|
+
version_requirements: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - "~>"
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: '1.3'
|
180
194
|
- !ruby/object:Gem::Dependency
|
181
195
|
name: simplecov
|
182
196
|
requirement: !ruby/object:Gem::Requirement
|
@@ -313,9 +327,9 @@ require_paths:
|
|
313
327
|
- lib
|
314
328
|
required_ruby_version: !ruby/object:Gem::Requirement
|
315
329
|
requirements:
|
316
|
-
- - "
|
330
|
+
- - "~>"
|
317
331
|
- !ruby/object:Gem::Version
|
318
|
-
version: '
|
332
|
+
version: '2.3'
|
319
333
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
320
334
|
requirements:
|
321
335
|
- - ">="
|