client_side_validations 17.1.0 → 17.1.1

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: b4d7bd59af2deafbb9031ad8f8e9d8e4c697b98fc80667d86ef236e0fa6a3757
4
- data.tar.gz: 1d2f1f70cd509d862bec0a348410e40693c679989beac9c65b6741fd21110644
3
+ metadata.gz: 0ed3f9c3cf23a21d2e70435fd69b7cff1bbd01b6f988eed6320d465bbd2969bd
4
+ data.tar.gz: 2ff0d23eb4b2da3777e3e4dd1b36d3457daa6755cf2769b02ddcda7c092afb17
5
5
  SHA512:
6
- metadata.gz: efe3f62e8f2e51785e5ba1efa55680b363f19b65729514a8005b2262f786ac34821c8238524cd49854b4145bdc0f346eeb79e69c667ce975352a1c21a626e8e3
7
- data.tar.gz: da3145b2a0dcde3672e5be485fc165530380772d8b39dcb908f726d964b0025b906bad386300394d698af61adc147802d1af3a6df4c1cd0a5c5bd0f9b9824baf
6
+ metadata.gz: 35998c36fc8089a8324b4cc5f220ad16dc591ffa0420f87827ae416cc4421c7579c291398c214d0a2ed53cdb7662b4b3d49be3077328bf0f09da842fc2c3d2c2
7
+ data.tar.gz: d2da4f06025ea743078a19d77b42f4d68e6c6ea33e4cd24ff3ff5a8c18fa05e81c247ffaeadd0379b835f74d1937766017438e370a060b4eb4203c3519c1141c
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 17.1.1 / 2020-10-31
4
+
5
+ * [ENHANCEMENT] Minor code cleanup
6
+ * [ENHANCEMENT] Update development dependencies
7
+
3
8
  ## 17.1.0 / 2020-10-10
4
9
 
5
10
  * [FEATURE] Allow Ruby 3.0.0
@@ -28,9 +28,9 @@ module ClientSideValidations
28
28
  raise ArgumentError, 'Missing argument'
29
29
  end
30
30
  when String
31
- # rubocop:disable Security/Eval'
32
- l = eval("lambda { |value| #{conditional} }", binding, __FILE__, __LINE__)
33
- # rubocop:enable Security/Eval'
31
+ # rubocop:disable Security/Eval, Style/DocumentDynamicEvalDefinition
32
+ l = eval("->(value) { #{conditional} }", binding, __FILE__, __LINE__)
33
+ # rubocop:enable Security/Eval, Style/DocumentDynamicEvalDefinition
34
34
  instance_exec(nil, &l)
35
35
  when Symbol
36
36
  send conditional
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ClientSideValidations
4
- VERSION = '17.1.0'
4
+ VERSION = '17.1.1'
5
5
  end
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Client Side Validations JS - v0.1.4 (https://github.com/DavyJonesLocker/client_side_validations)
2
+ * Client Side Validations JS - v0.1.5 (https://github.com/DavyJonesLocker/client_side_validations)
3
3
  * Copyright (c) 2020 Geremia Taglialatela, Brian Cardarella
4
4
  * Licensed under MIT (https://opensource.org/licenses/mit-license.php)
5
5
  */
@@ -213,8 +213,8 @@
213
213
  },
214
214
  patterns: {
215
215
  numericality: {
216
- "default": new RegExp('^[-+]?[0-9]*\\.?[0-9]+([eE][-+]?[0-9]+)?$'),
217
- only_integer: new RegExp('^[+-]?\\d+$')
216
+ "default": /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/,
217
+ only_integer: /^[+-]?\d+$/
218
218
  }
219
219
  },
220
220
  selectors: {
@@ -584,7 +584,7 @@
584
584
  inputs: 'input'
585
585
  };
586
586
 
587
- var _loop = function _loop() {
587
+ var _loop = function _loop(selector) {
588
588
  var enablers = selectors[selector];
589
589
 
590
590
  _this.filter(ClientSideValidations.selectors[selector]).each(function () {
@@ -593,7 +593,7 @@
593
593
  };
594
594
 
595
595
  for (var selector in selectors) {
596
- _loop();
596
+ _loop(selector);
597
597
  }
598
598
 
599
599
  return this;
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: 17.1.0
4
+ version: 17.1.1
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: 2020-10-10 00:00:00.000000000 Z
12
+ date: 2020-10-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -149,14 +149,14 @@ dependencies:
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 0.93.0
152
+ version: 1.1.0
153
153
  type: :development
154
154
  prerelease: false
155
155
  version_requirements: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 0.93.0
159
+ version: 1.1.0
160
160
  - !ruby/object:Gem::Dependency
161
161
  name: rubocop-performance
162
162
  requirement: !ruby/object:Gem::Requirement
@@ -325,7 +325,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
325
325
  - !ruby/object:Gem::Version
326
326
  version: '0'
327
327
  requirements: []
328
- rubygems_version: 3.2.0.rc.1
328
+ rubygems_version: 3.0.8
329
329
  signing_key:
330
330
  specification_version: 4
331
331
  summary: Client Side Validations