client_side_validations 9.3.1 → 9.3.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
  SHA1:
3
- metadata.gz: a1a6835fffc483158f74d77bd15c069c14c8b872
4
- data.tar.gz: 2bd4020cf0ec33b0fd90bc7033125ddb5f2de045
3
+ metadata.gz: '085d927f6cd362d153c95852a27881354ea8fe36'
4
+ data.tar.gz: 492fd383d7b67e71ea5c101ac7f9bf152aab0487
5
5
  SHA512:
6
- metadata.gz: d7d944c7f76866adffe579792dbbba988b5ded93701c70d69a9074e947f4b9ef926452fb4112f881ce59859e2afa029131666025ef08a71f1d46da2e4391f2b9
7
- data.tar.gz: 8881ef53a3b3cffb62524a75bce92d2df8e73d03174099118a358d46f70193add75c2066639dcd7b91b3877266c88d622b8395a49f2cd9541b65a55092d27aa0
6
+ metadata.gz: 81c0da54712c67a288a0093ab5db950400fe9e538356dbc5110670730548fcdea50a26ba39b2d358895cd607c037aa93e944cfc5157becb69691add57080da1f
7
+ data.tar.gz: b9ef28274e7896337fd78ec1163ec13ff103b013011f942d89770914fecba061e7327bca5651949057489f22ab0c269b65468880f99aa0391a9eaf6f3dde70d5
@@ -1,8 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 9.3.2 / 2017-05-27
4
+
5
+ * [BUGFIX] Fix a regression in fields_for ([#680](https://github.com/DavyJonesLocker/client_side_validations/issues/680))
6
+ * [ENHANCEMENT] Update development dependencies
7
+
3
8
  ## 9.3.1 / 2017-05-04
4
9
 
5
- * [FIX] Fix a regression in validates_with validators ([#702](https://github.com/DavyJonesLocker/client_side_validations/pull/702))
10
+ * [BUGFIX] Fix a regression in validates_with validators ([#702](https://github.com/DavyJonesLocker/client_side_validations/pull/702))
6
11
 
7
12
  ## 9.3.0 / 2017-04-24
8
13
 
@@ -44,6 +44,11 @@ module ClientSideValidations
44
44
  end
45
45
 
46
46
  def fields_for(record_name, record_object = nil, fields_options = {}, &block)
47
+ if record_object.is_a?(Hash) && record_object.extractable_options?
48
+ fields_options = record_object
49
+ record_object = nil
50
+ end
51
+
47
52
  fields_options[:validate] ||= @options[:validate] if @options[:validate] && !fields_options.key?(:validate)
48
53
  super(record_name, record_object, fields_options, &block)
49
54
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ClientSideValidations
4
- VERSION = '9.3.1'.freeze
4
+ VERSION = '9.3.2'.freeze
5
5
  end
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*!
3
- * Client Side Validations - v9.3.1 (https://github.com/DavyJonesLocker/client_side_validations)
3
+ * Client Side Validations - v9.3.2 (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.3.1
4
+ version: 9.3.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: 2017-05-04 00:00:00.000000000 Z
12
+ date: 2017-05-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -163,14 +163,14 @@ dependencies:
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 0.48.1
166
+ version: 0.49.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.48.1
173
+ version: 0.49.0
174
174
  - !ruby/object:Gem::Dependency
175
175
  name: simplecov
176
176
  requirement: !ruby/object:Gem::Requirement
@@ -205,14 +205,14 @@ dependencies:
205
205
  requirements:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: 2.0.0.rc2
208
+ version: '2.0'
209
209
  type: :development
210
210
  prerelease: false
211
211
  version_requirements: !ruby/object:Gem::Requirement
212
212
  requirements:
213
213
  - - "~>"
214
214
  - !ruby/object:Gem::Version
215
- version: 2.0.0.rc2
215
+ version: '2.0'
216
216
  - !ruby/object:Gem::Dependency
217
217
  name: shotgun
218
218
  requirement: !ruby/object:Gem::Requirement