client_side_validations 9.3.2 → 9.3.3

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
  SHA1:
3
- metadata.gz: '085d927f6cd362d153c95852a27881354ea8fe36'
4
- data.tar.gz: 492fd383d7b67e71ea5c101ac7f9bf152aab0487
3
+ metadata.gz: e7d041ab065c1bf76d5821f53c555f1a2613c346
4
+ data.tar.gz: d80356d958759a8ede9f4edaf56f69bc5eebd182
5
5
  SHA512:
6
- metadata.gz: 81c0da54712c67a288a0093ab5db950400fe9e538356dbc5110670730548fcdea50a26ba39b2d358895cd607c037aa93e944cfc5157becb69691add57080da1f
7
- data.tar.gz: b9ef28274e7896337fd78ec1163ec13ff103b013011f942d89770914fecba061e7327bca5651949057489f22ab0c269b65468880f99aa0391a9eaf6f3dde70d5
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
  [![Gem Version](https://badge.fury.io/rb/client_side_validations.svg)](http://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
- [![Dependency Status](https://gemnasium.com/DavyJonesLocker/client_side_validations.svg)](https://gemnasium.com/DavyJonesLocker/client_side_validations)
5
+ [![Dependency Status](https://gemnasium.com/badges/github.com/DavyJonesLocker/client_side_validations.svg)](https://gemnasium.com/github.com/DavyJonesLocker/client_side_validations)
6
6
  [![Code Climate](https://codeclimate.com/github/DavyJonesLocker/client_side_validations/badges/gpa.svg)](https://codeclimate.com/github/DavyJonesLocker/client_side_validations)
7
7
  [![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)
8
8
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ClientSideValidations
4
- VERSION = '9.3.2'.freeze
4
+ VERSION = '9.3.3'.freeze
5
5
  end
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*!
3
- * Client Side Validations - v9.3.2 (https://github.com/DavyJonesLocker/client_side_validations)
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 regex;
506
- regex = new RegExp("^" + (element.val()) + "$", options.case_sensitive ? '' : 'i');
507
- if (!regex.test($("#" + (element.attr('id')) + "_confirmation").val())) {
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.2
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-05-26 00:00:00.000000000 Z
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.0
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.0
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.11
319
+ rubygems_version: 2.6.12
320
320
  signing_key:
321
321
  specification_version: 4
322
322
  summary: Client Side Validations