client_side_validations-mongoid 10.0.0 → 12.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/LICENSE.md +1 -1
- data/README.md +6 -6
- data/lib/client_side_validations/mongoid/uniqueness.rb +2 -0
- data/lib/client_side_validations/mongoid/version.rb +1 -1
- metadata +30 -78
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6348905cbcb855e07bd643c52d297dc5be08e86ac3e715f3ed31a792114156c
|
4
|
+
data.tar.gz: 86287b5a6c60d0b9d47424ff6dcb38f65668e30a9ed35315cc8fef44d4c0899f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d5aa34dd3a8f8d7310fd8366583eaa90c879e6101fd1c1f4fb6d8e5f2ba4814171e00341b3b80552129cbcd550e820d45bebbdd1fb58c56f613fd3ee82eb901
|
7
|
+
data.tar.gz: 1271846e87e89fca3f2148266c40858b3d67811f42d518eb21ce02d4dabb1222038422997bf5f5d7cd4786aaa8bc2400d8a7babe78915bcc5ed0f03d92d17536
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,30 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 12.0.0 / 2021-10-09
|
4
|
+
|
5
|
+
* [FEATURE] Add CSV 19.0 compatibility
|
6
|
+
* [FEATURE] Drop CSV < 19.0 compatibility
|
7
|
+
* [FEATURE] Drop Ruby < 2.5 compatibility
|
8
|
+
* [FEATURE] Drop Mongoid < 7 compatibility
|
9
|
+
* [ENHANCEMENT] Update development dependencies
|
10
|
+
* [ENHANCEMENT] Move CI to GitHub Actions
|
11
|
+
|
12
|
+
## 11.1.0 / 2021-02-07
|
13
|
+
|
14
|
+
* [FEATURE] Add CSV 18.0 compatibility
|
15
|
+
* [ENHANCEMENT] Update development dependencies
|
16
|
+
|
17
|
+
## 11.0.0 / 2021-02-07
|
18
|
+
|
19
|
+
* [ENHANCEMENT] Default branch is now `main` **POSSIBLE BREAKING CHANGE!**
|
20
|
+
* [ENHANCEMENT] Update development dependencies
|
21
|
+
|
22
|
+
## 10.1.0 / 2020-10-10
|
23
|
+
|
24
|
+
* [FEATURE] Allow Ruby 3.0.0
|
25
|
+
* [ENHANCEMENT] Test against latest Ruby 2.7.2
|
26
|
+
* [ENHANCEMENT] Update development dependencies
|
27
|
+
|
3
28
|
## 10.0.0 / 2020-05-18
|
4
29
|
|
5
30
|
* [FEATURE] Add ClientSideValidations 17.0 compatibility
|
data/LICENSE.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c)
|
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
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/client_side_validations-mongoid.svg)](https://badge.fury.io/rb/client_side_validations-mongoid)
|
4
4
|
[![SemVer](https://api.dependabot.com/badges/compatibility_score?dependency-name=client_side_validations-mongoid&package-manager=bundler&version-scheme=semver)](https://dependabot.com/compatibility-score.html?dependency-name=client_side_validations-mongoid&package-manager=bundler&version-scheme=semver)
|
5
|
-
[![Build Status](https://
|
5
|
+
[![Build Status](https://github.com/DavyJonesLocker/client_side_validations-mongoid/actions/workflows/ruby.yml/badge.svg)](https://github.com/DavyJonesLocker/client_side_validations-mongoid/actions)
|
6
6
|
[![Maintainability](https://api.codeclimate.com/v1/badges/4f8300006c02f7f4aa6d/maintainability)](https://codeclimate.com/github/DavyJonesLocker/client_side_validations-mongoid/maintainability)
|
7
|
-
[![Coverage Status](https://coveralls.io/repos/DavyJonesLocker/client_side_validations-mongoid/badge.svg?branch=
|
7
|
+
[![Coverage Status](https://coveralls.io/repos/DavyJonesLocker/client_side_validations-mongoid/badge.svg?branch=main)](https://coveralls.io/r/DavyJonesLocker/client_side_validations-mongoid?branch=main)
|
8
8
|
|
9
|
-
[Mongoid](https://docs.mongodb.com/
|
9
|
+
[Mongoid](https://docs.mongodb.com/mongoid/master/#ruby-mongoid-tutorial) plugin for [ClientSideValidations](https://github.com/DavyJonesLocker/client_side_validations)
|
10
10
|
|
11
11
|
## Installation ##
|
12
12
|
|
@@ -21,7 +21,7 @@ gem 'client_side_validations-mongoid'
|
|
21
21
|
Order matters here. `Mongoid` and `ClientSideValidations` need to be
|
22
22
|
required **before** `ClientSideValidations-Mongoid`.
|
23
23
|
|
24
|
-
[Follow the remaining installation instructions for ClientSideValidations](https://github.com/DavyJonesLocker/client_side_validations/blob/
|
24
|
+
[Follow the remaining installation instructions for ClientSideValidations](https://github.com/DavyJonesLocker/client_side_validations/blob/main/README.md)
|
25
25
|
|
26
26
|
## Usage ##
|
27
27
|
|
@@ -54,12 +54,12 @@ This gem follows [Semantic Versioning](https://semver.org)
|
|
54
54
|
## Want to help? ##
|
55
55
|
|
56
56
|
Please do! We are always looking to improve this gem. Please see our
|
57
|
-
[Contribution Guidelines](https://github.com/DavyJonesLocker/client_side_validations-mongoid/blob/
|
57
|
+
[Contribution Guidelines](https://github.com/DavyJonesLocker/client_side_validations-mongoid/blob/main/CONTRIBUTING.md)
|
58
58
|
on how to properly submit issues and pull requests.
|
59
59
|
|
60
60
|
## Legal ##
|
61
61
|
|
62
|
-
[DockYard](https://dockyard.com/), LLC © 2012-
|
62
|
+
[DockYard](https://dockyard.com/), LLC © 2012-2021
|
63
63
|
|
64
64
|
[@dockyard](https://twitter.com/dockyard)
|
65
65
|
|
@@ -3,6 +3,7 @@
|
|
3
3
|
module ClientSideValidations
|
4
4
|
module Mongoid
|
5
5
|
module Uniqueness
|
6
|
+
# rubocop:disable Metrics/CyclomaticComplexity
|
6
7
|
def client_side_hash(model, attribute, _force = nil)
|
7
8
|
hash = {}
|
8
9
|
hash[:message] = model.errors.generate_message(attribute, message_type, options.except(:scope))
|
@@ -21,6 +22,7 @@ module ClientSideValidations
|
|
21
22
|
|
22
23
|
hash
|
23
24
|
end
|
25
|
+
# rubocop:enable Metrics/CyclomaticComplexity
|
24
26
|
|
25
27
|
private
|
26
28
|
|
metadata
CHANGED
@@ -1,43 +1,37 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: client_side_validations-mongoid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 12.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geremia Taglialatela
|
8
8
|
- Brian Cardarella
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-10-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: client_side_validations
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
19
|
-
- !ruby/object:Gem::Version
|
20
|
-
version: '15.0'
|
21
|
-
- - "<"
|
18
|
+
- - "~>"
|
22
19
|
- !ruby/object:Gem::Version
|
23
|
-
version: '
|
20
|
+
version: '19.0'
|
24
21
|
type: :runtime
|
25
22
|
prerelease: false
|
26
23
|
version_requirements: !ruby/object:Gem::Requirement
|
27
24
|
requirements:
|
28
|
-
- - "
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
version: '15.0'
|
31
|
-
- - "<"
|
25
|
+
- - "~>"
|
32
26
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
27
|
+
version: '19.0'
|
34
28
|
- !ruby/object:Gem::Dependency
|
35
29
|
name: mongoid
|
36
30
|
requirement: !ruby/object:Gem::Requirement
|
37
31
|
requirements:
|
38
32
|
- - ">="
|
39
33
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
34
|
+
version: '7.0'
|
41
35
|
- - "<"
|
42
36
|
- !ruby/object:Gem::Version
|
43
37
|
version: '8'
|
@@ -47,7 +41,7 @@ dependencies:
|
|
47
41
|
requirements:
|
48
42
|
- - ">="
|
49
43
|
- !ruby/object:Gem::Version
|
50
|
-
version: '
|
44
|
+
version: '7.0'
|
51
45
|
- - "<"
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '8'
|
@@ -57,14 +51,14 @@ dependencies:
|
|
57
51
|
requirements:
|
58
52
|
- - "~>"
|
59
53
|
- !ruby/object:Gem::Version
|
60
|
-
version: '2.
|
54
|
+
version: '2.4'
|
61
55
|
type: :development
|
62
56
|
prerelease: false
|
63
57
|
version_requirements: !ruby/object:Gem::Requirement
|
64
58
|
requirements:
|
65
59
|
- - "~>"
|
66
60
|
- !ruby/object:Gem::Version
|
67
|
-
version: '2.
|
61
|
+
version: '2.4'
|
68
62
|
- !ruby/object:Gem::Dependency
|
69
63
|
name: byebug
|
70
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,47 +74,33 @@ dependencies:
|
|
80
74
|
- !ruby/object:Gem::Version
|
81
75
|
version: '11.1'
|
82
76
|
- !ruby/object:Gem::Dependency
|
83
|
-
name:
|
84
|
-
requirement: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
- - "~>"
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: 0.16.0
|
89
|
-
type: :development
|
90
|
-
prerelease: false
|
91
|
-
version_requirements: !ruby/object:Gem::Requirement
|
92
|
-
requirements:
|
93
|
-
- - "~>"
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
version: 0.16.0
|
96
|
-
- !ruby/object:Gem::Dependency
|
97
|
-
name: database_cleaner
|
77
|
+
name: database_cleaner-mongoid
|
98
78
|
requirement: !ruby/object:Gem::Requirement
|
99
79
|
requirements:
|
100
80
|
- - "~>"
|
101
81
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
82
|
+
version: '2.0'
|
103
83
|
type: :development
|
104
84
|
prerelease: false
|
105
85
|
version_requirements: !ruby/object:Gem::Requirement
|
106
86
|
requirements:
|
107
87
|
- - "~>"
|
108
88
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
89
|
+
version: '2.0'
|
110
90
|
- !ruby/object:Gem::Dependency
|
111
91
|
name: m
|
112
92
|
requirement: !ruby/object:Gem::Requirement
|
113
93
|
requirements:
|
114
94
|
- - "~>"
|
115
95
|
- !ruby/object:Gem::Version
|
116
|
-
version: '1.
|
96
|
+
version: '1.6'
|
117
97
|
type: :development
|
118
98
|
prerelease: false
|
119
99
|
version_requirements: !ruby/object:Gem::Requirement
|
120
100
|
requirements:
|
121
101
|
- - "~>"
|
122
102
|
- !ruby/object:Gem::Version
|
123
|
-
version: '1.
|
103
|
+
version: '1.6'
|
124
104
|
- !ruby/object:Gem::Dependency
|
125
105
|
name: minitest
|
126
106
|
requirement: !ruby/object:Gem::Requirement
|
@@ -141,14 +121,14 @@ dependencies:
|
|
141
121
|
requirements:
|
142
122
|
- - "~>"
|
143
123
|
- !ruby/object:Gem::Version
|
144
|
-
version: '1.
|
124
|
+
version: '1.13'
|
145
125
|
type: :development
|
146
126
|
prerelease: false
|
147
127
|
version_requirements: !ruby/object:Gem::Requirement
|
148
128
|
requirements:
|
149
129
|
- - "~>"
|
150
130
|
- !ruby/object:Gem::Version
|
151
|
-
version: '1.
|
131
|
+
version: '1.13'
|
152
132
|
- !ruby/object:Gem::Dependency
|
153
133
|
name: rake
|
154
134
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,61 +144,33 @@ dependencies:
|
|
164
144
|
- !ruby/object:Gem::Version
|
165
145
|
version: '13.0'
|
166
146
|
- !ruby/object:Gem::Dependency
|
167
|
-
name:
|
168
|
-
requirement: !ruby/object:Gem::Requirement
|
169
|
-
requirements:
|
170
|
-
- - "~>"
|
171
|
-
- !ruby/object:Gem::Version
|
172
|
-
version: 0.83.0
|
173
|
-
type: :development
|
174
|
-
prerelease: false
|
175
|
-
version_requirements: !ruby/object:Gem::Requirement
|
176
|
-
requirements:
|
177
|
-
- - "~>"
|
178
|
-
- !ruby/object:Gem::Version
|
179
|
-
version: 0.83.0
|
180
|
-
- !ruby/object:Gem::Dependency
|
181
|
-
name: rubocop-performance
|
182
|
-
requirement: !ruby/object:Gem::Requirement
|
183
|
-
requirements:
|
184
|
-
- - "~>"
|
185
|
-
- !ruby/object:Gem::Version
|
186
|
-
version: '1.5'
|
187
|
-
type: :development
|
188
|
-
prerelease: false
|
189
|
-
version_requirements: !ruby/object:Gem::Requirement
|
190
|
-
requirements:
|
191
|
-
- - "~>"
|
192
|
-
- !ruby/object:Gem::Version
|
193
|
-
version: '1.5'
|
194
|
-
- !ruby/object:Gem::Dependency
|
195
|
-
name: rubocop-rails
|
147
|
+
name: simplecov
|
196
148
|
requirement: !ruby/object:Gem::Requirement
|
197
149
|
requirements:
|
198
150
|
- - "~>"
|
199
151
|
- !ruby/object:Gem::Version
|
200
|
-
version:
|
152
|
+
version: 0.21.2
|
201
153
|
type: :development
|
202
154
|
prerelease: false
|
203
155
|
version_requirements: !ruby/object:Gem::Requirement
|
204
156
|
requirements:
|
205
157
|
- - "~>"
|
206
158
|
- !ruby/object:Gem::Version
|
207
|
-
version:
|
159
|
+
version: 0.21.2
|
208
160
|
- !ruby/object:Gem::Dependency
|
209
|
-
name: simplecov
|
161
|
+
name: simplecov-lcov
|
210
162
|
requirement: !ruby/object:Gem::Requirement
|
211
163
|
requirements:
|
212
164
|
- - "~>"
|
213
165
|
- !ruby/object:Gem::Version
|
214
|
-
version: 0.
|
166
|
+
version: 0.8.0
|
215
167
|
type: :development
|
216
168
|
prerelease: false
|
217
169
|
version_requirements: !ruby/object:Gem::Requirement
|
218
170
|
requirements:
|
219
171
|
- - "~>"
|
220
172
|
- !ruby/object:Gem::Version
|
221
|
-
version: 0.
|
173
|
+
version: 0.8.0
|
222
174
|
description: Mongoid Plugin for ClientSideValidations
|
223
175
|
email:
|
224
176
|
- tagliala.dev@gmail.com
|
@@ -239,25 +191,25 @@ licenses:
|
|
239
191
|
- MIT
|
240
192
|
metadata:
|
241
193
|
bug_tracker_uri: https://github.com/DavyJonesLocker/client_side_validations-simple_form/issues
|
242
|
-
changelog_uri: https://github.com/DavyJonesLocker/client_side_validations-simple_form/blob/
|
194
|
+
changelog_uri: https://github.com/DavyJonesLocker/client_side_validations-simple_form/blob/main/CHANGELOG.md
|
243
195
|
source_code_uri: https://github.com/DavyJonesLocker/client_side_validations-simple_form
|
244
|
-
post_install_message:
|
196
|
+
post_install_message:
|
245
197
|
rdoc_options: []
|
246
198
|
require_paths:
|
247
199
|
- lib
|
248
200
|
required_ruby_version: !ruby/object:Gem::Requirement
|
249
201
|
requirements:
|
250
|
-
- - "
|
202
|
+
- - ">="
|
251
203
|
- !ruby/object:Gem::Version
|
252
|
-
version: '2.
|
204
|
+
version: '2.5'
|
253
205
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
254
206
|
requirements:
|
255
207
|
- - ">="
|
256
208
|
- !ruby/object:Gem::Version
|
257
209
|
version: '0'
|
258
210
|
requirements: []
|
259
|
-
rubygems_version: 3.1.
|
260
|
-
signing_key:
|
211
|
+
rubygems_version: 3.1.6
|
212
|
+
signing_key:
|
261
213
|
specification_version: 4
|
262
214
|
summary: ClientSideValidations Mongoid
|
263
215
|
test_files: []
|