client_side_validations 9.3.2 → 9.3.3
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 +5 -0
- data/README.md +1 -1
- data/lib/client_side_validations/version.rb +1 -1
- data/vendor/assets/javascripts/rails.validations.js +9 -4
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7d041ab065c1bf76d5821f53c555f1a2613c346
|
4
|
+
data.tar.gz: d80356d958759a8ede9f4edaf56f69bc5eebd182
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 142b5125281e09a757aca7fc7368b2d4ee85db85dfb2f62e53486f2fd23da10f50f45be2d20aea0b77e55d30170a6ea701ded1aed4dbdfd8467c2a5969af7ad4
|
7
|
+
data.tar.gz: 6e8824481312c213980ba2264f59b0ec3e59a0e78183dd767e16d01534a40a1659c86a1031cf9a23589ab15b35baf7c21a4b2603895c517cf6a483efe5337a47
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 9.3.3 / 2017-06-01
|
4
|
+
|
5
|
+
* [BUGFIX] Fix JavaScript confirmation validator ([#706](https://github.com/DavyJonesLocker/client_side_validations/issues/706))
|
6
|
+
* [ENHANCEMENT] Update development dependencies
|
7
|
+
|
3
8
|
## 9.3.2 / 2017-05-27
|
4
9
|
|
5
10
|
* [BUGFIX] Fix a regression in fields_for ([#680](https://github.com/DavyJonesLocker/client_side_validations/issues/680))
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[](http://badge.fury.io/rb/client_side_validations)
|
4
4
|
[](https://travis-ci.org/DavyJonesLocker/client_side_validations)
|
5
|
-
[](https://gemnasium.com/DavyJonesLocker/client_side_validations)
|
5
|
+
[](https://gemnasium.com/github.com/DavyJonesLocker/client_side_validations)
|
6
6
|
[](https://codeclimate.com/github/DavyJonesLocker/client_side_validations)
|
7
7
|
[](https://coveralls.io/github/DavyJonesLocker/client_side_validations?branch=master)
|
8
8
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
/*!
|
3
|
-
* Client Side Validations - v9.3.
|
3
|
+
* Client Side Validations - v9.3.3 (https://github.com/DavyJonesLocker/client_side_validations)
|
4
4
|
* Copyright (c) 2017 Geremia Taglialatela, Brian Cardarella
|
5
5
|
* Licensed under MIT (http://opensource.org/licenses/mit-license.php)
|
6
6
|
*/
|
@@ -502,9 +502,14 @@
|
|
502
502
|
}
|
503
503
|
},
|
504
504
|
confirmation: function(element, options) {
|
505
|
-
var
|
506
|
-
|
507
|
-
|
505
|
+
var confirmation_value, value;
|
506
|
+
value = element.val();
|
507
|
+
confirmation_value = $("#" + (element.attr('id')) + "_confirmation").val();
|
508
|
+
if (!options.case_sensitive) {
|
509
|
+
value = value.toLowerCase();
|
510
|
+
confirmation_value = confirmation_value.toLowerCase();
|
511
|
+
}
|
512
|
+
if (value !== confirmation_value) {
|
508
513
|
return options.message;
|
509
514
|
}
|
510
515
|
},
|
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: 9.3.
|
4
|
+
version: 9.3.3
|
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: 2017-
|
12
|
+
date: 2017-06-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -163,14 +163,14 @@ dependencies:
|
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.49.
|
166
|
+
version: 0.49.1
|
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.49.
|
173
|
+
version: 0.49.1
|
174
174
|
- !ruby/object:Gem::Dependency
|
175
175
|
name: simplecov
|
176
176
|
requirement: !ruby/object:Gem::Requirement
|
@@ -316,7 +316,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
316
316
|
version: '0'
|
317
317
|
requirements: []
|
318
318
|
rubyforge_project:
|
319
|
-
rubygems_version: 2.6.
|
319
|
+
rubygems_version: 2.6.12
|
320
320
|
signing_key:
|
321
321
|
specification_version: 4
|
322
322
|
summary: Client Side Validations
|