client_side_validations-simple_form 11.2.0 → 12.0.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: a94f0bccb2a8db9bf69adc71777b1eb2f403ae5dc6a044bebdab4f3e0bb3e9e3
4
- data.tar.gz: f46120015641294acd98dae3cede6c3cd52b68775b827c9308888b25169776e3
3
+ metadata.gz: 962757fc1cdb24db1b505e7e04c72a2e7627bafd2092a054a0a9b5240a1099f4
4
+ data.tar.gz: b30265716f3db5b7e548c128cd3c91d74094891755a177adae32a71ff3cfb00d
5
5
  SHA512:
6
- metadata.gz: 0b81c4304e80b755a702d1141f840ffb3a010176d2887eed3bd67ada79c1a52646aabc147c99ea5db66a13aa1d8bd12a839558f703bbbda6ecbadf46ab5664cf
7
- data.tar.gz: 972e5cf285e09c9dcdb474f37f29d6f0567f9072e47f278471200aae1444e05615e7f6fe70cf04174df4ebd54d564d9c965b42ff1dbf2516ad146d047647aedc
6
+ metadata.gz: 03615b151c62342bb23df56263cace820ad77fce37cf6dc8c8050d124c58432909fcd8ffc4693539a60db75f1c53999af607188b6fae8239ec3bd5f751d288ae
7
+ data.tar.gz: 496ad919e62d772820113f2b7e433106700e32beb27bb73fefc6fc276f29067051b0003afebe398c370ed02b531365d7cbb9cc5533d22bc0f7abdd10f3f25e72
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 12.0.0 / 2020-01-23
4
+
5
+ * [FEATURE] Allow nested `:error` component [#111](https://github.com/DavyJonesLocker/client_side_validations-simple_form/pull/111) **POSSIBLE BREAKING CHANGE!**
6
+ * [ENHANCEMENT] Default branch is now `main` **POSSIBLE BREAKING CHANGE!**
7
+ * [ENHANCEMENT] Update QUnit to 2.14.0
8
+ * [ENHANCEMENT] Update development dependencies
9
+
3
10
  ## 11.2.0 / 2020-12-21
4
11
 
5
12
  * [FEATURE] Allow Ruby 3.0.0 (really)
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2020 Geremia Taglialatela, Brian Cardarella
3
+ Copyright (c) 2021 Geremia Taglialatela, Brian Cardarella
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -3,9 +3,9 @@
3
3
  [![Gem Version](https://badge.fury.io/rb/client_side_validations-simple_form.svg)](https://badge.fury.io/rb/client_side_validations-simple_form)
4
4
  [![npm version](https://badge.fury.io/js/%40client-side-validations%2Fsimple-form.svg)](https://badge.fury.io/js/%40client-side-validations%2Fsimple-form)
5
5
  [![SemVer](https://api.dependabot.com/badges/compatibility_score?dependency-name=client_side_validations-simple_form&package-manager=bundler&version-scheme=semver)](https://dependabot.com/compatibility-score.html?dependency-name=client_side_validations-simple_form&package-manager=bundler&version-scheme=semver)
6
- [![Build Status](https://secure.travis-ci.org/DavyJonesLocker/client_side_validations-simple_form.svg?branch=master)](https://travis-ci.org/DavyJonesLocker/client_side_validations-simple_form)
6
+ [![Build Status](https://secure.travis-ci.org/DavyJonesLocker/client_side_validations-simple_form.svg?branch=main)](https://travis-ci.org/DavyJonesLocker/client_side_validations-simple_form)
7
7
  [![Maintainability](https://api.codeclimate.com/v1/badges/b9e9cbbd0d9f454adba7/maintainability)](https://codeclimate.com/github/DavyJonesLocker/client_side_validations-simple_form/maintainability)
8
- [![Coverage Status](https://coveralls.io/repos/github/DavyJonesLocker/client_side_validations-simple_form/badge.svg?branch=master)](https://coveralls.io/github/DavyJonesLocker/client_side_validations-simple_form?branch=master)
8
+ [![Coverage Status](https://coveralls.io/repos/github/DavyJonesLocker/client_side_validations-simple_form/badge.svg?branch=main)](https://coveralls.io/github/DavyJonesLocker/client_side_validations-simple_form?branch=main)
9
9
 
10
10
  [Simple Form](https://github.com/plataformatec/simple_form) plugin for [ClientSideValidations](https://github.com/DavyJonesLocker/client_side_validations)
11
11
 
@@ -111,12 +111,12 @@ This gem follows [Semantic Versioning](https://semver.org)
111
111
  ## Want to help? ##
112
112
 
113
113
  Please do! We are always looking to improve this gem. Please see our
114
- [Contribution Guidelines](https://github.com/DavyJonesLocker/client_side_validations-simple_form/blob/master/CONTRIBUTING.md)
114
+ [Contribution Guidelines](https://github.com/DavyJonesLocker/client_side_validations-simple_form/blob/main/CONTRIBUTING.md)
115
115
  on how to properly submit issues and pull requests.
116
116
 
117
117
  ## Legal ##
118
118
 
119
- [DockYard](https://dockyard.com/), LLC © 2012-2020
119
+ [DockYard](https://dockyard.com/), LLC © 2012-2021
120
120
 
121
121
  [@dockyard](https://twitter.com/dockyard)
122
122
 
@@ -28,12 +28,22 @@ module ClientSideValidations
28
28
  private
29
29
 
30
30
  def wrapper_error_component
31
- if wrapper.components.map(&:namespace).include?(:error)
31
+ if namespace_present?(wrapper, :error)
32
32
  wrapper.find(:error)
33
33
  else
34
34
  wrapper.find(:full_error)
35
35
  end
36
36
  end
37
+
38
+ def namespace_present?(component, namespace)
39
+ return true if component.namespace == namespace
40
+
41
+ component.try(:components)&.each do |child_component|
42
+ return true if namespace_present?(child_component, namespace)
43
+ end
44
+
45
+ false
46
+ end
37
47
  end
38
48
  end
39
49
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ClientSideValidations
4
4
  module SimpleForm
5
- VERSION = '11.2.0'
5
+ VERSION = '12.0.0'
6
6
  end
7
7
  end
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * Client Side Validations Simple Form JS (Bootstrap 4) - v0.1.3 (https://github.com/DavyJonesLocker/client_side_validations-simple_form)
3
- * Copyright (c) 2020 Geremia Taglialatela, Brian Cardarella
3
+ * Copyright (c) 2021 Geremia Taglialatela, Brian Cardarella
4
4
  * Licensed under MIT (https://opensource.org/licenses/mit-license.php)
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * Client Side Validations Simple Form JS (Default) - v0.1.3 (https://github.com/DavyJonesLocker/client_side_validations-simple_form)
3
- * Copyright (c) 2020 Geremia Taglialatela, Brian Cardarella
3
+ * Copyright (c) 2021 Geremia Taglialatela, Brian Cardarella
4
4
  * Licensed under MIT (https://opensource.org/licenses/mit-license.php)
5
5
  */
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: client_side_validations-simple_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.2.0
4
+ version: 12.0.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: 2020-12-21 00:00:00.000000000 Z
12
+ date: 2021-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: client_side_validations
@@ -79,14 +79,14 @@ dependencies:
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.19.0
82
+ version: 0.20.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: 0.19.0
89
+ version: 0.20.0
90
90
  - !ruby/object:Gem::Dependency
91
91
  name: m
92
92
  requirement: !ruby/object:Gem::Requirement
@@ -149,28 +149,28 @@ dependencies:
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '1.6'
152
+ version: '1.8'
153
153
  type: :development
154
154
  prerelease: false
155
155
  version_requirements: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '1.6'
159
+ version: '1.8'
160
160
  - !ruby/object:Gem::Dependency
161
161
  name: rubocop-minitest
162
162
  requirement: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 0.10.1
166
+ version: 0.10.3
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.10.1
173
+ version: 0.10.3
174
174
  - !ruby/object:Gem::Dependency
175
175
  name: rubocop-performance
176
176
  requirement: !ruby/object:Gem::Requirement
@@ -222,7 +222,7 @@ dependencies:
222
222
  version: 0.18.5
223
223
  - - "<"
224
224
  - !ruby/object:Gem::Version
225
- version: '0.21'
225
+ version: '0.22'
226
226
  type: :development
227
227
  prerelease: false
228
228
  version_requirements: !ruby/object:Gem::Requirement
@@ -232,7 +232,7 @@ dependencies:
232
232
  version: 0.18.5
233
233
  - - "<"
234
234
  - !ruby/object:Gem::Version
235
- version: '0.21'
235
+ version: '0.22'
236
236
  - !ruby/object:Gem::Dependency
237
237
  name: shotgun
238
238
  requirement: !ruby/object:Gem::Requirement
@@ -298,7 +298,7 @@ licenses:
298
298
  - MIT
299
299
  metadata:
300
300
  bug_tracker_uri: https://github.com/DavyJonesLocker/client_side_validations-simple_form/issues
301
- changelog_uri: https://github.com/DavyJonesLocker/client_side_validations-simple_form/blob/master/CHANGELOG.md
301
+ changelog_uri: https://github.com/DavyJonesLocker/client_side_validations-simple_form/blob/main/CHANGELOG.md
302
302
  source_code_uri: https://github.com/DavyJonesLocker/client_side_validations-simple_form
303
303
  post_install_message:
304
304
  rdoc_options: []