database_validations 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 84632667aa6aec235e306d5443ca94804d19541330fe13ec52cfcc80c44e3719
|
|
4
|
+
data.tar.gz: f7619dd8fd5093302a959f978839433a38fa0735b4d6f105110b6042758eb64a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b38c529569458eac14defeec0216018f5db85f9a1a82dbf9793b3c32fc4d378dceafb3fbbb9a2094374db898a49f36fbef8be2d09f54b10c0f22fed036945a73
|
|
7
|
+
data.tar.gz: d6f93d5f638ee921f8d01980310866f0bc811909fd7963e7c901c9bc7e0122a891ed2813af37653e4c9ccb7bac92084593794f2d396f66fa4fb9b10ee9faca9d
|
|
@@ -41,7 +41,7 @@ module DatabaseValidations
|
|
|
41
41
|
error_options = options.except(:case_sensitive, :scope, :conditions)
|
|
42
42
|
error_options[:value] = instance.public_send(attribute)
|
|
43
43
|
|
|
44
|
-
instance.errors.add(attribute, :taken, error_options)
|
|
44
|
+
instance.errors.add(attribute, :taken, **error_options)
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
private
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: database_validations
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Evgeniy Demin
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-09-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -208,7 +208,7 @@ homepage: https://github.com/toptal/database_validations
|
|
|
208
208
|
licenses:
|
|
209
209
|
- MIT
|
|
210
210
|
metadata: {}
|
|
211
|
-
post_install_message:
|
|
211
|
+
post_install_message:
|
|
212
212
|
rdoc_options: []
|
|
213
213
|
require_paths:
|
|
214
214
|
- lib
|
|
@@ -223,8 +223,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
223
223
|
- !ruby/object:Gem::Version
|
|
224
224
|
version: '0'
|
|
225
225
|
requirements: []
|
|
226
|
-
rubygems_version: 3.
|
|
227
|
-
signing_key:
|
|
226
|
+
rubygems_version: 3.2.22
|
|
227
|
+
signing_key:
|
|
228
228
|
specification_version: 4
|
|
229
229
|
summary: Provide compatibility between database constraints and ActiveRecord validations
|
|
230
230
|
with better performance and consistency.
|