client_side_validations 14.0.0 → 14.1.0

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: 862e0a65e6bd5db8f9c56423882eeb66b6523d9e7c87f74dfff1d9e419fa6dd4
4
- data.tar.gz: 11cb6097f098d5eed2b1cda4a3d09675e8ea34c5fafd69f57faad5b406970c10
3
+ metadata.gz: b5c9471ead88623636e67b2739d7023914e67b789ca4659915bcbc9ea358f28a
4
+ data.tar.gz: 03c2dd843617e824396db7d0ab8d8d6a7b59ea07f9d9142ec98d52f35bbfed35
5
5
  SHA512:
6
- metadata.gz: a2c615f902a308111b0343f0243a464eeb402904b2d60f4159b66314142f636bbfbd8c940ac507b4503c47a4aac41c912f8e021ef10050c0ddb4d9c49f27e3fa
7
- data.tar.gz: '0377298e6937330f6cc7c3347f2f5599dc6309779ccb430ae87a213dbac8807c21920c9905824ea9b672a661240a3e671225141a7b8ab57f2b3469d9b7a86013'
6
+ metadata.gz: b4f3a31758f2fa420a93068a54ec0e14b3c67e81fcb9786255fafd9967c393d19ca2982c6cfeeaf89397a7a4a703da564831a8428c6fd29acba7440fea77bbae
7
+ data.tar.gz: 6bf5bdac6d52f6efc89fb765c5b993bf0b6678c11d6f290225906047a4ecae7ce1e1adc48c68bb26ccab8baa187880365b910a576d46dad85b30d1dad5027988
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 14.1.0 / 2019-04-25
4
+
5
+ * [FEATURE] Add Rails 6.0 compatibility
6
+
3
7
  ## 14.0.0 / 2019-04-23
4
8
 
5
9
  * [FEATURE] Add form_with support
@@ -18,7 +18,14 @@ module ClientSideValidations
18
18
  private
19
19
 
20
20
  def build_client_side_hash(model, attribute, options)
21
- { message: model.errors.generate_message(attribute, message_type, options) }.merge(options.except(*::ActiveModel::Errors::CALLBACKS_OPTIONS - %i[allow_blank if unless]))
21
+ callbacks_options =
22
+ if Rails.version >= '6.1'
23
+ ::ActiveModel::Error::CALLBACKS_OPTIONS
24
+ else
25
+ ::ActiveModel::Errors::CALLBACKS_OPTIONS
26
+ end
27
+
28
+ { message: model.errors.generate_message(attribute, message_type, options) }.merge(options.except(*callbacks_options - %i[allow_blank if unless]))
22
29
  end
23
30
 
24
31
  def message_type
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ClientSideValidations
4
- VERSION = '14.0.0'.freeze
4
+ VERSION = '14.1.0'.freeze
5
5
  end
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*!
3
- * Client Side Validations - v14.0.0 (https://github.com/DavyJonesLocker/client_side_validations)
3
+ * Client Side Validations - v14.1.0 (https://github.com/DavyJonesLocker/client_side_validations)
4
4
  * Copyright (c) 2019 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: 14.0.0
4
+ version: 14.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: 2019-04-23 00:00:00.000000000 Z
12
+ date: 2019-04-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -18,9 +18,9 @@ dependencies:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: 5.0.0.1
21
- - - "<="
21
+ - - "<"
22
22
  - !ruby/object:Gem::Version
23
- version: 6.0.0.beta3
23
+ version: '6.1'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,9 +28,9 @@ dependencies:
28
28
  - - ">="
29
29
  - !ruby/object:Gem::Version
30
30
  version: 5.0.0.1
31
- - - "<="
31
+ - - "<"
32
32
  - !ruby/object:Gem::Version
33
- version: 6.0.0.beta3
33
+ version: '6.1'
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: jquery-rails
36
36
  requirement: !ruby/object:Gem::Requirement