mongoid_localized_presence_validator 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 +4 -4
- data/.tool-versions +1 -0
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/mongoid_localized_presence_validator/patch.rb +1 -1
- data/lib/mongoid_localized_presence_validator/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 731b7dd67c0c25472b1e19290676114c83009aa8e4b88a445a95446a585078dc
|
4
|
+
data.tar.gz: d604af4bcff388a783eb09927bc9b35070de86eddd0d18c400a56e6db560c7a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62e9be5a4f94763af0c2746f3fdbb6e14de8bbcae65affded3a3135a3566ed95c2ef591c7dfae4ffaf68dae4e5e7b0cd7c1becfd36a70ccb25257850ac4fc6df
|
7
|
+
data.tar.gz: 691129a8cdec406ad62e739c2e192e086dccb4487f5a3b4ddc0ac619ecdcfbcc073153466a3fff098aacbf2e15bc56ef9e98005adff49f7ac9a0942709625716
|
data/.tool-versions
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby 2.6.3
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -43,7 +43,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
43
43
|
|
44
44
|
## Contributing
|
45
45
|
|
46
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
46
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/tomasc/mongoid_localized_presence_validator. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
47
47
|
|
48
48
|
## License
|
49
49
|
|
@@ -15,7 +15,7 @@ module MongoidLocalizedPresenceValidator
|
|
15
15
|
|
16
16
|
if locales.present?
|
17
17
|
locales.each do |_locale|
|
18
|
-
_value = value.fetch(_locale.to_s, nil)
|
18
|
+
_value = Hash(value).fetch(_locale.to_s, nil)
|
19
19
|
next unless not_present?(_value)
|
20
20
|
document.errors.add(
|
21
21
|
attribute,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_localized_presence_validator
|
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
|
- Tomas Celizna
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-01-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mongoid
|
@@ -139,6 +139,7 @@ extra_rdoc_files: []
|
|
139
139
|
files:
|
140
140
|
- ".coveralls.yml"
|
141
141
|
- ".gitignore"
|
142
|
+
- ".tool-versions"
|
142
143
|
- ".travis.yml"
|
143
144
|
- CHANGELOG.md
|
144
145
|
- Gemfile
|
@@ -170,8 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
171
|
- !ruby/object:Gem::Version
|
171
172
|
version: '0'
|
172
173
|
requirements: []
|
173
|
-
|
174
|
-
rubygems_version: 2.7.6
|
174
|
+
rubygems_version: 3.0.3
|
175
175
|
signing_key:
|
176
176
|
specification_version: 4
|
177
177
|
summary: Selectively validate presence in Monogid localized fields
|