client_side_validations 11.1.1 → 11.1.2
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: 6d3d7f72371714e3b64c6bbbac4ad8a2fcb38bd44a9113a4b483b5b422e3d7f4
|
4
|
+
data.tar.gz: ee4bb3abb3135e12ff93b713310364327b81dcd3f535a9be7db1e59f0201e53c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 653662cb6a0a310257daba62d84b164505a82360866a59d837784a07f2309777bffb4905a6991b27104d4db5a357c1ab507a7d4d93aab2c5e824d3a7ad386e10
|
7
|
+
data.tar.gz: 590523b6b8043ac6b51d3efccc10df7b41d4e656da5efb012e04a0c250f4ea3741ea8e739d0ff83e2125ab360bb584eeae124b09018a55c8f022926d877a0ef0
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 11.1.2 / 2018-04-08
|
4
|
+
|
5
|
+
* [BUGFIX] Fix support for allow_nil option ([#737](https://github.com/DavyJonesLocker/client_side_validations/issues/737))
|
6
|
+
* [ENHANCEMENT] Test against Ruby 2.2.10, 2.3.7, 2.4.4, and 2.5.1
|
7
|
+
|
3
8
|
## 11.1.1 / 2018-03-19
|
4
9
|
|
5
10
|
* [ENHANCEMENT] Update dependencies
|
@@ -27,7 +27,7 @@ module ClientSideValidations
|
|
27
27
|
def options_hash(options)
|
28
28
|
hash = { messages: {} }
|
29
29
|
hash[:js_tokenizer] = options[:js_tokenizer] if options[:js_tokenizer]
|
30
|
-
hash[:allow_blank] = true if options[:allow_blank]
|
30
|
+
hash[:allow_blank] = true if options[:allow_nil] || options[:allow_blank]
|
31
31
|
hash
|
32
32
|
end
|
33
33
|
end
|
@@ -8,7 +8,7 @@ module ClientSideValidations
|
|
8
8
|
hash[:message] = model.errors.generate_message(attribute, message_type, options.except(:scope))
|
9
9
|
hash[:case_sensitive] = options[:case_sensitive]
|
10
10
|
hash[:id] = model.id unless model.new_record?
|
11
|
-
hash[:allow_blank] = true if options[:allow_blank]
|
11
|
+
hash[:allow_blank] = true if options[:allow_nil] || options[:allow_blank]
|
12
12
|
|
13
13
|
apply_class_option! hash, model
|
14
14
|
apply_scope_option! hash, model
|
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
/*!
|
3
|
-
* Client Side Validations - v11.1.
|
3
|
+
* Client Side Validations - v11.1.2 (https://github.com/DavyJonesLocker/client_side_validations)
|
4
4
|
* Copyright (c) 2018 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: 11.1.
|
4
|
+
version: 11.1.2
|
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: 2018-
|
12
|
+
date: 2018-04-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -135,14 +135,14 @@ dependencies:
|
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '1.
|
138
|
+
version: '1.5'
|
139
139
|
type: :development
|
140
140
|
prerelease: false
|
141
141
|
version_requirements: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '1.
|
145
|
+
version: '1.5'
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
147
|
name: rake
|
148
148
|
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.54.0
|
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.54.0
|
174
174
|
- !ruby/object:Gem::Dependency
|
175
175
|
name: simplecov
|
176
176
|
requirement: !ruby/object:Gem::Requirement
|