database_validations 1.0.0 → 1.0.1

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: 2e13dbc2023a631be57aaacd12ec2c75ca9b7b355e7015737df4b760713b5756
4
- data.tar.gz: 8b84441e52646fba283120a8e33d40bdb43162f31f202e2cd07e6f5fa6dbb03e
3
+ metadata.gz: 84632667aa6aec235e306d5443ca94804d19541330fe13ec52cfcc80c44e3719
4
+ data.tar.gz: f7619dd8fd5093302a959f978839433a38fa0735b4d6f105110b6042758eb64a
5
5
  SHA512:
6
- metadata.gz: 324f867954cf0b2660431e6da9b5851f3ccae84b6ff2e5d10de6149b336387adc7c07a4e295748c75663a18822436c88578c6d246e869238f56d0e3563bc1f2e
7
- data.tar.gz: 3d99ab395db1b3b493e372c22674283cd7822bd6de89cbcd71b08218cfec96eee709538dd89a872977edd936434564798a20e1af8e837c1f886fbd3a9f8e345c
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
@@ -1,3 +1,3 @@
1
1
  module DatabaseValidations
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.0.1'.freeze
3
3
  end
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.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-02-22 00:00:00.000000000 Z
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.1.2
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.