client_side_validations 11.0.0 → 11.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/lib/client_side_validations/action_view/form_builder.rb +2 -2
- data/lib/client_side_validations/active_model/conditionals.rb +1 -1
- data/lib/client_side_validations/version.rb +1 -1
- data/vendor/assets/javascripts/rails.validations.js +2 -2
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b77f89ee672faa4271cf1a614822a579e6e04d75892830e52cdac63cf15218f2
|
4
|
+
data.tar.gz: 92f66d7e69220221bbe2a46b3b0926cd1e56c5ad3b75460fcf273eb44a7e312f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cae55380d0420d3a9fce634c42878ef37c33b47bada9a60e0c40dcc3383908854cd6b60e58ae6d87468e32ffb3dadd9b53f8d14a22c7e0adef829e3d32406253
|
7
|
+
data.tar.gz: 922fb5f338fd08f8caa6124639f65ce5a0c8f765e97273e7a077b232c62830432042b94eaa627273b0731f5a55ca5307d5e10f3072cc168a8d783b9df741ab0e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 11.1.0 / 2018-02-02
|
4
|
+
|
5
|
+
* [FEATURE] Rails 5.2 support
|
6
|
+
* [ENHANCEMENT] Test against Ruby 2.2.9, 2.3.6, 2.4.3, and 2.5.0
|
7
|
+
* [ENHANCEMENT] Test against jQuery 3.3.1
|
8
|
+
* [ENHANCEMENT] Update development dependencies
|
9
|
+
|
3
10
|
## 11.0.0 / 2017-11-29
|
4
11
|
|
5
12
|
* [BUGFIX] Fix association validations (potential breaking change) ([#712](https://github.com/DavyJonesLocker/client_side_validations/issues/712))
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
[](http://badge.fury.io/rb/client_side_validations)
|
4
4
|
[](https://travis-ci.org/DavyJonesLocker/client_side_validations)
|
5
5
|
[](https://gemnasium.com/github.com/DavyJonesLocker/client_side_validations)
|
6
|
-
[](https://codeclimate.com/github/DavyJonesLocker/client_side_validations/maintainability)
|
7
7
|
[](https://coveralls.io/github/DavyJonesLocker/client_side_validations?branch=master)
|
8
8
|
|
9
9
|
`ClientSideValidations` made easy for your Rails 5 applications!
|
@@ -6,7 +6,7 @@ module ClientSideValidations
|
|
6
6
|
module FormBuilder
|
7
7
|
def self.prepended(base)
|
8
8
|
(base.field_helpers - %i[label check_box radio_button fields_for hidden_field file_field]).each do |selector|
|
9
|
-
base.class_eval <<-RUBY_EVAL
|
9
|
+
base.class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1
|
10
10
|
def #{selector}(method, options = {})
|
11
11
|
build_validation_options(method, options)
|
12
12
|
options.delete(:validate)
|
@@ -32,7 +32,7 @@ module ClientSideValidations
|
|
32
32
|
|
33
33
|
def validate(*attrs)
|
34
34
|
options = attrs.pop if attrs.last.is_a?(Hash)
|
35
|
-
(attrs.
|
35
|
+
(attrs.presence || @object._validators.keys).each do |attr|
|
36
36
|
build_validation_options(attr, validate: options)
|
37
37
|
end
|
38
38
|
nil
|
@@ -29,7 +29,7 @@ module ClientSideValidations
|
|
29
29
|
end
|
30
30
|
when String
|
31
31
|
# rubocop:disable Security/Eval'
|
32
|
-
l = eval
|
32
|
+
l = eval("lambda { |value| #{conditional} }", binding, __FILE__, __LINE__)
|
33
33
|
# rubocop:enable Security/Eval'
|
34
34
|
instance_exec(nil, &l)
|
35
35
|
when Symbol
|
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
/*!
|
3
|
-
* Client Side Validations - v11.
|
4
|
-
* Copyright (c)
|
3
|
+
* Client Side Validations - v11.1.0 (https://github.com/DavyJonesLocker/client_side_validations)
|
4
|
+
* Copyright (c) 2018 Geremia Taglialatela, Brian Cardarella
|
5
5
|
* Licensed under MIT (http://opensource.org/licenses/mit-license.php)
|
6
6
|
*/
|
7
7
|
|
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: 11.
|
4
|
+
version: 11.1.0
|
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:
|
12
|
+
date: 2018-02-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
version: 5.0.0.1
|
21
21
|
- - "<="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version:
|
23
|
+
version: '6.0'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
version: 5.0.0.1
|
31
31
|
- - "<="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: '6.0'
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: jquery-rails
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -79,14 +79,14 @@ dependencies:
|
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '10.0'
|
83
83
|
type: :development
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '10.0'
|
90
90
|
- !ruby/object:Gem::Dependency
|
91
91
|
name: coveralls_reborn
|
92
92
|
requirement: !ruby/object:Gem::Requirement
|
@@ -121,14 +121,14 @@ dependencies:
|
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '5.
|
124
|
+
version: '5.11'
|
125
125
|
type: :development
|
126
126
|
prerelease: false
|
127
127
|
version_requirements: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '5.
|
131
|
+
version: '5.11'
|
132
132
|
- !ruby/object:Gem::Dependency
|
133
133
|
name: mocha
|
134
134
|
requirement: !ruby/object:Gem::Requirement
|
@@ -163,14 +163,14 @@ dependencies:
|
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.
|
166
|
+
version: 0.52.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.
|
173
|
+
version: 0.52.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.
|
319
|
+
rubygems_version: 2.7.3
|
320
320
|
signing_key:
|
321
321
|
specification_version: 4
|
322
322
|
summary: Client Side Validations
|