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: 2814c3e8e47cf46a9418974c2cf94a415a5b607cbf77ce794b3aa7fe3d947c44
4
- data.tar.gz: e0fd3b7974fa316ae2436116e405ad53b415884211bb13ac986bda0dc2be6aa8
3
+ metadata.gz: 6d3d7f72371714e3b64c6bbbac4ad8a2fcb38bd44a9113a4b483b5b422e3d7f4
4
+ data.tar.gz: ee4bb3abb3135e12ff93b713310364327b81dcd3f535a9be7db1e59f0201e53c
5
5
  SHA512:
6
- metadata.gz: 00c9db5b1d80737509678f76b14cf90238ed1ead0f065f96251c410dda5e359660a84c74f88e7c175869572acdb245e403ac88050453831b678c006a2af85948
7
- data.tar.gz: d21f2bd80335c5f20f387a3aa2a8cdb9991a76bee16b04d5c1186112b768daf7cb8b68761b970b505fe3a1690d55b980d68f3e1c087357066b6723a797e165e9
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,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ClientSideValidations
4
- VERSION = '11.1.1'.freeze
4
+ VERSION = '11.1.2'.freeze
5
5
  end
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*!
3
- * Client Side Validations - v11.1.1 (https://github.com/DavyJonesLocker/client_side_validations)
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.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-03-19 00:00:00.000000000 Z
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.3'
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.3'
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.53.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.53.0
173
+ version: 0.54.0
174
174
  - !ruby/object:Gem::Dependency
175
175
  name: simplecov
176
176
  requirement: !ruby/object:Gem::Requirement