client_side_validations 9.0.0 → 9.0.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b15deec1fb17531b940c270d8cda8c3bcd5a3a8
|
4
|
+
data.tar.gz: d2d7910b1e7242ee8215a2458dbd313d4d58b457
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4c2ae59deedd8e82854986703ea5277df8fb9e4be7fc57ded193396cce0158bbef2374d4f945f53f4add5d72d66861dbf14085aedb9fe33f65e690a0443a3bf
|
7
|
+
data.tar.gz: 07f71ec49d6148943f1a76e831105814354f2b342e7016bc57cae228edacdae1d423b7b6689ab877f51f30141870298c09166b5ff6cb3bd0dd6c34dcc9ccb74d
|
data/CHANGELOG.md
CHANGED
@@ -1,98 +1,105 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## 9.0.
|
3
|
+
## 9.0.1.master / Unreleased
|
4
4
|
|
5
|
-
|
5
|
+
## 9.0.1 / 2017-02-06
|
6
6
|
|
7
|
-
|
7
|
+
* [BUGFIX] Fix file fields ([#694](https://github.com/DavyJonesLocker/client_side_validations/issues/694))
|
8
|
+
* [ENHANCEMENT] Follow Vandamme's changelog conventions
|
8
9
|
|
9
|
-
|
10
|
-
* Update tests
|
10
|
+
## 9.0.0 / 2017-01-31
|
11
11
|
|
12
|
-
|
12
|
+
* [FEATURE] Unobtrusive JavaScript
|
13
13
|
|
14
|
-
|
15
|
-
* Include license in the gem
|
14
|
+
## 8.0.2 / 2017-01-31
|
16
15
|
|
17
|
-
|
16
|
+
* [ENHANCEMENT] Under the hood improvements
|
17
|
+
* [ENHANCEMENT] Update tests
|
18
18
|
|
19
|
-
|
19
|
+
## 8.0.1 / 2017-01-26
|
20
20
|
|
21
|
-
|
21
|
+
* [ENHANCEMENT] Under the hood improvements to the form helper
|
22
|
+
* [ENHANCEMENT] Include license in the gem
|
22
23
|
|
23
|
-
|
24
|
+
## 8.0.0 / 2017-01-22
|
24
25
|
|
25
|
-
|
26
|
+
* [PERFORMANCE] Change internals to get 4.0 score on Code Climate
|
26
27
|
|
27
|
-
|
28
|
-
* Update development dependencies
|
28
|
+
## 7.0.1 / 2017-01-22
|
29
29
|
|
30
|
-
|
30
|
+
* [BUGFIX] Fix `rails.validations` asset not found error
|
31
31
|
|
32
|
-
|
32
|
+
## 7.0.0 / 2017-01-22
|
33
33
|
|
34
|
-
|
34
|
+
* [SECURITY] Remove middleware for remote validations
|
35
|
+
* [ENHANCEMENT] Update development dependencies
|
35
36
|
|
36
|
-
|
37
|
-
* Test against jQuery from 1.7.2 to 3.1.1
|
38
|
-
* Drop Ruby 2.0.0 support
|
39
|
-
* Other minor changes
|
37
|
+
## 6.0.0 / 2017-01-20
|
40
38
|
|
41
|
-
|
39
|
+
* [FEATURE] Rails 5.0 compatibility
|
42
40
|
|
43
|
-
|
41
|
+
## 4.2.12 / 2017-01-19
|
44
42
|
|
45
|
-
|
43
|
+
* [FEATURE] Add Changelog ([#688](https://github.com/DavyJonesLocker/client_side_validations/issues/688))
|
44
|
+
* [FEATURE] Drop Ruby 2.0.0 support
|
45
|
+
* [ENHANCEMENT] Test against jQuery from 1.7.2 to 3.1.1
|
46
|
+
* [ENHANCEMENT] Minor changes
|
46
47
|
|
47
|
-
|
48
|
+
## 4.2.11 / 2016-12-08
|
48
49
|
|
49
|
-
|
50
|
+
* [BUGFIX] Fix conditional validators ([#686](https://github.com/DavyJonesLocker/client_side_validations/issues/686))
|
50
51
|
|
51
|
-
|
52
|
+
## 4.2.10 / 2016-11-16
|
52
53
|
|
53
|
-
|
54
|
+
* [BUGFIX] Fix dollar sign in regular expression ([#684](https://github.com/DavyJonesLocker/client_side_validations/issues/684))
|
54
55
|
|
55
|
-
|
56
|
+
## 4.2.9 / 2016-11-11
|
56
57
|
|
57
|
-
|
58
|
+
* [BUGFIX] Fix jQuery 3 compatibility
|
58
59
|
|
59
|
-
|
60
|
+
## 4.2.8 / 2016-11-11
|
60
61
|
|
61
|
-
|
62
|
+
* [BUGFIX] Fix numericality validator ([#679](https://github.com/DavyJonesLocker/client_side_validations/pull/679))
|
62
63
|
|
63
|
-
|
64
|
-
* Other minor changes
|
64
|
+
## 4.2.7 / 2016-10-08
|
65
65
|
|
66
|
-
|
66
|
+
* [BUGFIX] Prevent undesired `stopPropagation` on `focusout` event ([#675](https://github.com/DavyJonesLocker/client_side_validations/pull/675))
|
67
67
|
|
68
|
-
|
69
|
-
* Other minor changes
|
68
|
+
## 4.2.6 / 2016-09-10
|
70
69
|
|
71
|
-
|
70
|
+
* [ENHANCEMENT] Add some clarity to the `copy_assets` command ([#671](https://github.com/DavyJonesLocker/client_side_validations/pull/671))
|
71
|
+
* [ENHANCEMENT] Minor changes
|
72
72
|
|
73
|
-
|
74
|
-
* Drop Ruby 1.9 support
|
75
|
-
* Test against Ruby 2.1.10, 2.2.5 and 2.3.1
|
76
|
-
* Test against jQuery 1.12.4
|
73
|
+
## 4.2.5 / 2016-07-06
|
77
74
|
|
78
|
-
|
75
|
+
* [BUGFIX] Make helpers consistent with their Rails counterparts ([#665](https://github.com/DavyJonesLocker/client_side_validations/issues/665))
|
76
|
+
* [ENHANCEMENT] Minor changes
|
79
77
|
|
80
|
-
|
81
|
-
* Other minor changes
|
78
|
+
## 4.2.4 / 2016-06-14
|
82
79
|
|
83
|
-
|
80
|
+
* [FEATURE] Add Turbolinks 5 compatibility
|
81
|
+
* [FEATURE] Drop Ruby 1.9 support
|
82
|
+
* [ENHANCEMENT] Test against Ruby 2.1.10, 2.2.5 and 2.3.1
|
83
|
+
* [ENHANCEMENT] Test against jQuery 1.12.4
|
84
84
|
|
85
|
-
|
86
|
-
* Fix config.root_path to work in middleware ([#598](https://github.com/DavyJonesLocker/client_side_validations/pull/598))
|
87
|
-
* Other minor changes
|
85
|
+
## 4.2.3 / 2016-03-14
|
88
86
|
|
89
|
-
|
87
|
+
* [ENHANCEMENT] Test against jQuery 1.12.1
|
88
|
+
* [ENHANCEMENT] Minor changes
|
90
89
|
|
91
|
-
|
92
|
-
* Other minor changes
|
90
|
+
## 4.2.2 / 2016-02-28
|
93
91
|
|
94
|
-
|
92
|
+
* [SECURITY] Fix uniqueness validator data disclosure ([#648](https://github.com/DavyJonesLocker/client_side_validations/issues/648))
|
93
|
+
* [BUGFIX] Fix config.root_path to work in middleware ([#598](https://github.com/DavyJonesLocker/client_side_validations/pull/598))
|
94
|
+
* [ENHANCEMENT] Minor changes
|
95
95
|
|
96
|
-
|
96
|
+
## 4.2.1 / 2016-01-15
|
97
|
+
|
98
|
+
* [ENHANCEMENT] Test against jQuery 1.12.0
|
99
|
+
* [ENHANCEMENT] Minor changes
|
100
|
+
|
101
|
+
## 4.2.0 / 2016-01-07
|
102
|
+
|
103
|
+
* [FEATURE] First Rails 4.x compatible version
|
97
104
|
|
98
105
|
For older versions, please refer to [GitHub releases](https://github.com/DavyJonesLocker/client_side_validations/releases)
|
@@ -3,7 +3,7 @@ module ClientSideValidations
|
|
3
3
|
module Helpers
|
4
4
|
module FormBuilder
|
5
5
|
def self.prepended(base)
|
6
|
-
(base.field_helpers
|
6
|
+
(base.field_helpers - %i(label check_box radio_button fields_for hidden_field file_field)).each do |selector|
|
7
7
|
base.class_eval <<-RUBY_EVAL
|
8
8
|
def #{selector}(method, options = {})
|
9
9
|
build_validation_options(method, options)
|
@@ -90,6 +90,12 @@ module ClientSideValidations
|
|
90
90
|
super(method, priority_zones, options, html_options)
|
91
91
|
end
|
92
92
|
|
93
|
+
def file_field(method, options = {})
|
94
|
+
build_validation_options(method, options)
|
95
|
+
options.delete(:validate)
|
96
|
+
super(method, options)
|
97
|
+
end
|
98
|
+
|
93
99
|
private
|
94
100
|
|
95
101
|
def build_validation_options(method, options = {})
|
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
/*!
|
3
|
-
* Client Side Validations - v9.0.
|
3
|
+
* Client Side Validations - v9.0.1 (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
|
*/
|
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.0.
|
4
|
+
version: 9.0.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: 2017-
|
12
|
+
date: 2017-02-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|