client_side_validations-mongoid 5.1.1 → 7.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 +6 -0
- data/README.md +1 -6
- data/lib/client_side_validations/mongoid.rb +4 -7
- data/lib/client_side_validations/mongoid/version.rb +1 -1
- metadata +16 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50dd7d73e4cb0f270ccf53fe63551c5d6498d554
|
4
|
+
data.tar.gz: 94a5d2d8a42a7408ddfb35b92cd3a8e40c2db5d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 277f4e696eb2988989a380d151c887116f85299c2f15793befc5da95d7c08cbe24c1dd687a16f4cbab681bcdbfe16660966ef4b5b973d7554209fa594ac4657c
|
7
|
+
data.tar.gz: 85b6905e437ebc98967a43d626a841d2827f16057da42567a62ecab3d099c376d9038a92a47a2ab7f5fcbd2a6b4ad77b32eab939580396e16ed1f29fd326c754
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -51,11 +51,6 @@ Per-input options are done with `:validate`
|
|
51
51
|
|
52
52
|
This gem follows [Semantic Versioning](http://semver.org)
|
53
53
|
|
54
|
-
Major and minor version numbers will follow `mongoid`'s major and
|
55
|
-
minor version numbers. For example,
|
56
|
-
`client_side_validations-mongoid-5.1.0` will be compatible up to
|
57
|
-
`~> mongoid-5.1`
|
58
|
-
|
59
54
|
## Want to help? ##
|
60
55
|
|
61
56
|
Please do! We are always looking to improve this gem. Please see our
|
@@ -64,7 +59,7 @@ on how to properly submit issues and pull requests.
|
|
64
59
|
|
65
60
|
## Legal ##
|
66
61
|
|
67
|
-
[DockYard](https://dockyard.com/), LLC © 2012-
|
62
|
+
[DockYard](https://dockyard.com/), LLC © 2012-2017
|
68
63
|
|
69
64
|
[@dockyard](https://twitter.com/dockyard)
|
70
65
|
|
@@ -1,13 +1,10 @@
|
|
1
|
-
module ClientSideValidations; end
|
2
|
-
|
3
1
|
require 'client_side_validations/active_model'
|
4
2
|
require 'client_side_validations/middleware'
|
5
3
|
require 'client_side_validations/mongoid/middleware'
|
6
4
|
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
ClientSideValidations::Middleware::Uniqueness.register_orm(ClientSideValidations::Mongoid::Middleware)
|
6
|
+
|
7
|
+
%w(Presence Uniqueness).each do |validator|
|
8
|
+
require "client_side_validations/mongoid/#{validator.downcase}"
|
10
9
|
Mongoid::Validatable.const_get("#{validator}Validator").send :include, ClientSideValidations::Mongoid.const_get(validator)
|
11
10
|
end
|
12
|
-
|
13
|
-
ClientSideValidations::Middleware::Uniqueness.register_orm(ClientSideValidations::Mongoid::Middleware)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: client_side_validations-mongoid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 7.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:
|
12
|
+
date: 2017-01-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: client_side_validations
|
@@ -17,28 +17,28 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: '6.0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: '6.0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: mongoid
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
34
|
+
version: '6.0'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
41
|
+
version: '6.0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: appraisal
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,14 +73,14 @@ dependencies:
|
|
73
73
|
requirements:
|
74
74
|
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 0.8.
|
76
|
+
version: 0.8.18
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: 0.8.
|
83
|
+
version: 0.8.18
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: database_cleaner
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -135,42 +135,42 @@ dependencies:
|
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '1.
|
138
|
+
version: '1.2'
|
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.
|
145
|
+
version: '1.2'
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
147
|
name: rake
|
148
148
|
requirement: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
152
|
+
version: '12.0'
|
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: '
|
159
|
+
version: '12.0'
|
160
160
|
- !ruby/object:Gem::Dependency
|
161
161
|
name: rubocop
|
162
162
|
requirement: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.
|
166
|
+
version: 0.47.1
|
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.
|
173
|
+
version: 0.47.1
|
174
174
|
- !ruby/object:Gem::Dependency
|
175
175
|
name: simplecov
|
176
176
|
requirement: !ruby/object:Gem::Requirement
|
@@ -193,6 +193,7 @@ executables: []
|
|
193
193
|
extensions: []
|
194
194
|
extra_rdoc_files: []
|
195
195
|
files:
|
196
|
+
- CHANGELOG.md
|
196
197
|
- README.md
|
197
198
|
- lib/client_side_validations/mongoid.rb
|
198
199
|
- lib/client_side_validations/mongoid/middleware.rb
|
@@ -219,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
219
220
|
version: '0'
|
220
221
|
requirements: []
|
221
222
|
rubyforge_project:
|
222
|
-
rubygems_version: 2.6.
|
223
|
+
rubygems_version: 2.6.8
|
223
224
|
signing_key:
|
224
225
|
specification_version: 4
|
225
226
|
summary: Mongoid Plugin for ClientSideValidations
|