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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ed3f9c3cf23a21d2e70435fd69b7cff1bbd01b6f988eed6320d465bbd2969bd
|
4
|
+
data.tar.gz: 2ff0d23eb4b2da3777e3e4dd1b36d3457daa6755cf2769b02ddcda7c092afb17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35998c36fc8089a8324b4cc5f220ad16dc591ffa0420f87827ae416cc4421c7579c291398c214d0a2ed53cdb7662b4b3d49be3077328bf0f09da842fc2c3d2c2
|
7
|
+
data.tar.gz: d2da4f06025ea743078a19d77b42f4d68e6c6ea33e4cd24ff3ff5a8c18fa05e81c247ffaeadd0379b835f74d1937766017438e370a060b4eb4203c3519c1141c
|
data/CHANGELOG.md
CHANGED
@@ -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("
|
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
|
/*!
|
2
|
-
* Client Side Validations JS - v0.1.
|
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":
|
217
|
-
only_integer:
|
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.
|
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-
|
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:
|
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:
|
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.
|
328
|
+
rubygems_version: 3.0.8
|
329
329
|
signing_key:
|
330
330
|
specification_version: 4
|
331
331
|
summary: Client Side Validations
|