client_side_validations 4.2.6 → 4.2.7

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: f7660a074d8f678e3b6841b647e68e0db66ca655
4
- data.tar.gz: dc56ed98df933905d380193059870fd8ff799e3e
3
+ metadata.gz: 62bf43fd892af5457d2e2a57159d164e5e2e10f6
4
+ data.tar.gz: ffe87613143abc5121c9624d4d041e238e112be8
5
5
  SHA512:
6
- metadata.gz: aee1e36ce0851501683651b6809435c8c5f05d44ab5dbdba105d32ffbb8f7194a702c6d5a0fae1219455e266784a9f292749943d8721e03bfaad5c261bd28452
7
- data.tar.gz: 915a17d9edf26f307c543b47860ab1712c08f06b138096a4b5fe1cc5106ccaacb324fc716d7b4b9a2fc3e7c66fec632b8afd1454a201dda5111d6cbfa4914637
6
+ metadata.gz: fdc896e471ba0637379b19684c4a1641675a5803b5bb48736804752c3e88651f766dbe41971d24f306211ef40a8b9b6f4f0e70c6446b73a27d526945e796ed0e
7
+ data.tar.gz: c32356a8bcee1732e3e69cf034e04bf52ba7613ecb1be7d0a34abc8782cdbe07ccd4f42108115cb887a3e9fb5031fc1b87ac368ec1fe41096a6599d6997ae742
data/HISTORY.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  ## Version 4.2
4
4
 
5
+ * [v4.2.7](https://github.com/DavyJonesLocker/client_side_validations/compare/v4.2.6...v4.2.7)
5
6
  * [v4.2.6](https://github.com/DavyJonesLocker/client_side_validations/compare/v4.2.5...v4.2.6)
6
7
  * [v4.2.5](https://github.com/DavyJonesLocker/client_side_validations/compare/v4.2.4...v4.2.5)
7
8
  * [v4.2.4](https://github.com/DavyJonesLocker/client_side_validations/compare/v4.2.3...v4.2.4)
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ClientSideValidations
3
- VERSION = '4.2.6'.freeze
3
+ VERSION = '4.2.7'.freeze
4
4
  end
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*!
3
- * Client Side Validations - v4.2.6 (https://github.com/DavyJonesLocker/client_side_validations)
3
+ * Client Side Validations - v4.2.7 (https://github.com/DavyJonesLocker/client_side_validations)
4
4
  * Copyright (c) 2016 Geremia Taglialatela, Brian Cardarella
5
5
  * Licensed under MIT (http://opensource.org/licenses/mit-license.php)
6
6
  */
@@ -191,25 +191,25 @@
191
191
  'submit.ClientSideValidations': function(eventData) {
192
192
  if (!$form.isValid(form.ClientSideValidations.settings.validators)) {
193
193
  eventData.preventDefault();
194
- return eventData.stopImmediatePropagation();
194
+ eventData.stopImmediatePropagation();
195
195
  }
196
196
  },
197
197
  'ajax:beforeSend.ClientSideValidations': function(eventData) {
198
198
  if (eventData.target === this) {
199
- return $form.isValid(form.ClientSideValidations.settings.validators);
199
+ $form.isValid(form.ClientSideValidations.settings.validators);
200
200
  }
201
201
  },
202
202
  'form:validate:after.ClientSideValidations': function(eventData) {
203
- return ClientSideValidations.callbacks.form.after($form, eventData);
203
+ ClientSideValidations.callbacks.form.after($form, eventData);
204
204
  },
205
205
  'form:validate:before.ClientSideValidations': function(eventData) {
206
- return ClientSideValidations.callbacks.form.before($form, eventData);
206
+ ClientSideValidations.callbacks.form.before($form, eventData);
207
207
  },
208
208
  'form:validate:fail.ClientSideValidations': function(eventData) {
209
- return ClientSideValidations.callbacks.form.fail($form, eventData);
209
+ ClientSideValidations.callbacks.form.fail($form, eventData);
210
210
  },
211
211
  'form:validate:pass.ClientSideValidations': function(eventData) {
212
- return ClientSideValidations.callbacks.form.pass($form, eventData);
212
+ ClientSideValidations.callbacks.form.pass($form, eventData);
213
213
  }
214
214
  };
215
215
  for (event in ref) {
@@ -227,28 +227,28 @@
227
227
  $form = $(form);
228
228
  ref = {
229
229
  'focusout.ClientSideValidations': function() {
230
- return $(this).isValid(form.ClientSideValidations.settings.validators);
230
+ $(this).isValid(form.ClientSideValidations.settings.validators);
231
231
  },
232
232
  'change.ClientSideValidations': function() {
233
- return $(this).data('changed', true);
233
+ $(this).data('changed', true);
234
234
  },
235
235
  'element:validate:after.ClientSideValidations': function(eventData) {
236
- return ClientSideValidations.callbacks.element.after($(this), eventData);
236
+ ClientSideValidations.callbacks.element.after($(this), eventData);
237
237
  },
238
238
  'element:validate:before.ClientSideValidations': function(eventData) {
239
- return ClientSideValidations.callbacks.element.before($(this), eventData);
239
+ ClientSideValidations.callbacks.element.before($(this), eventData);
240
240
  },
241
241
  'element:validate:fail.ClientSideValidations': function(eventData, message) {
242
242
  var element;
243
243
  element = $(this);
244
- return ClientSideValidations.callbacks.element.fail(element, message, function() {
244
+ ClientSideValidations.callbacks.element.fail(element, message, function() {
245
245
  return form.ClientSideValidations.addError(element, message);
246
246
  }, eventData);
247
247
  },
248
248
  'element:validate:pass.ClientSideValidations': function(eventData) {
249
249
  var element;
250
250
  element = $(this);
251
- return ClientSideValidations.callbacks.element.pass(element, function() {
251
+ ClientSideValidations.callbacks.element.pass(element, function() {
252
252
  return form.ClientSideValidations.removeError(element);
253
253
  }, eventData);
254
254
  }
@@ -260,7 +260,7 @@
260
260
  }).on(event, binding);
261
261
  }
262
262
  $input.filter(':checkbox').on('change.ClientSideValidations', function() {
263
- return $(this).isValid(form.ClientSideValidations.settings.validators);
263
+ $(this).isValid(form.ClientSideValidations.settings.validators);
264
264
  });
265
265
  return $input.filter('[id$=_confirmation]').each(function() {
266
266
  var confirmationElement, element, ref1, results;
@@ -269,10 +269,10 @@
269
269
  if (element[0]) {
270
270
  ref1 = {
271
271
  'focusout.ClientSideValidations': function() {
272
- return element.data('changed', true).isValid(form.ClientSideValidations.settings.validators);
272
+ element.data('changed', true).isValid(form.ClientSideValidations.settings.validators);
273
273
  },
274
274
  'keyup.ClientSideValidations': function() {
275
- return element.data('changed', true).isValid(form.ClientSideValidations.settings.validators);
275
+ element.data('changed', true).isValid(form.ClientSideValidations.settings.validators);
276
276
  }
277
277
  };
278
278
  results = [];
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.2.6
4
+ version: 4.2.7
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: 2016-09-10 00:00:00.000000000 Z
12
+ date: 2016-10-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -167,28 +167,28 @@ dependencies:
167
167
  requirements:
168
168
  - - "~>"
169
169
  - !ruby/object:Gem::Version
170
- version: '11.2'
170
+ version: '11.3'
171
171
  type: :development
172
172
  prerelease: false
173
173
  version_requirements: !ruby/object:Gem::Requirement
174
174
  requirements:
175
175
  - - "~>"
176
176
  - !ruby/object:Gem::Version
177
- version: '11.2'
177
+ version: '11.3'
178
178
  - !ruby/object:Gem::Dependency
179
179
  name: rubocop
180
180
  requirement: !ruby/object:Gem::Requirement
181
181
  requirements:
182
182
  - - "~>"
183
183
  - !ruby/object:Gem::Version
184
- version: 0.42.0
184
+ version: 0.43.0
185
185
  type: :development
186
186
  prerelease: false
187
187
  version_requirements: !ruby/object:Gem::Requirement
188
188
  requirements:
189
189
  - - "~>"
190
190
  - !ruby/object:Gem::Version
191
- version: 0.42.0
191
+ version: 0.43.0
192
192
  - !ruby/object:Gem::Dependency
193
193
  name: simplecov
194
194
  requirement: !ruby/object:Gem::Requirement
@@ -237,14 +237,14 @@ dependencies:
237
237
  requirements:
238
238
  - - "~>"
239
239
  - !ruby/object:Gem::Version
240
- version: 0.9.1
240
+ version: 0.9.2
241
241
  type: :development
242
242
  prerelease: false
243
243
  version_requirements: !ruby/object:Gem::Requirement
244
244
  requirements:
245
245
  - - "~>"
246
246
  - !ruby/object:Gem::Version
247
- version: 0.9.1
247
+ version: 0.9.2
248
248
  - !ruby/object:Gem::Dependency
249
249
  name: thin
250
250
  requirement: !ruby/object:Gem::Requirement