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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 51ecdc0304208f98898bc11a2b09a2dfe8cebd09
4
- data.tar.gz: 10982e8175544a2935ef392cb6c8efe897eb6363
3
+ metadata.gz: 50dd7d73e4cb0f270ccf53fe63551c5d6498d554
4
+ data.tar.gz: 94a5d2d8a42a7408ddfb35b92cd3a8e40c2db5d4
5
5
  SHA512:
6
- metadata.gz: 55e3880557e312c2cd2443131ba1190c7ce5a0a233b5d43fec1fed2d1de6899e98ca057cd9f271a7d0e03dd8a383dfef6fb055332f3a88b857237a46f15e6717
7
- data.tar.gz: 0a188576e4be595a4cef5fe2e98c1adf6a71966d0ced7707e92b57cbf6b76b3695c012f4bdcaf914761648dfb01cab011f8a7938720beb8f98e396b9d51e86f1
6
+ metadata.gz: 277f4e696eb2988989a380d151c887116f85299c2f15793befc5da95d7c08cbe24c1dd687a16f4cbab681bcdbfe16660966ef4b5b973d7554209fa594ac4657c
7
+ data.tar.gz: 85b6905e437ebc98967a43d626a841d2827f16057da42567a62ecab3d099c376d9038a92a47a2ab7f5fcbd2a6b4ad77b32eab939580396e16ed1f29fd326c754
@@ -0,0 +1,6 @@
1
+ # Changelog
2
+
3
+ ## 7.0.0 (2017-01-20)
4
+
5
+ * ClientSideValidations 6.0 compatibility
6
+ * Mongoid 6 compatibility
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-2016
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
- %w(presence uniqueness).each do |validator|
8
- require "client_side_validations/mongoid/#{validator}"
9
- validator.capitalize!
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)
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module ClientSideValidations
3
3
  module Mongoid
4
- VERSION = '5.1.1'.freeze
4
+ VERSION = '7.0.0'.freeze
5
5
  end
6
6
  end
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: 5.1.1
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: 2016-09-10 00:00:00.000000000 Z
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: 4.2.6
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: 4.2.6
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: '5.1'
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: '5.1'
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.15
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.15
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.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.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: '11.2'
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: '11.2'
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.42.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.42.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.4
223
+ rubygems_version: 2.6.8
223
224
  signing_key:
224
225
  specification_version: 4
225
226
  summary: Mongoid Plugin for ClientSideValidations