mongoid_localized_presence_validator 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: beacd7442165060e6eeb2cd6df71a2468b40f9752df93464f40140e9caeb87dc
4
- data.tar.gz: a4e2efb4cb05cc6fbcfa5edf7a8906a37c9506bc0c9e57c64b9730d9b05a7047
3
+ metadata.gz: 731b7dd67c0c25472b1e19290676114c83009aa8e4b88a445a95446a585078dc
4
+ data.tar.gz: d604af4bcff388a783eb09927bc9b35070de86eddd0d18c400a56e6db560c7a2
5
5
  SHA512:
6
- metadata.gz: 287713a36a0b27cb01c7711ae1d41351629cc7e0d6b6c8efcb06c993847125cef5de93ba5e0956113785497afeaec28445f2e63e1ebfd55a4a64e3f0b02b6f47
7
- data.tar.gz: 4fd8943586b886b74dcf87e6d2335ae0b34ed93926c481bffcc36562074a7ff05ece5b12d127ea8a5a08b6fcc3bdd423e69c9a6e35ad2c318feed4081cebaf2b
6
+ metadata.gz: 62e9be5a4f94763af0c2746f3fdbb6e14de8bbcae65affded3a3135a3566ed95c2ef591c7dfae4ffaf68dae4e5e7b0cd7c1becfd36a70ccb25257850ac4fc6df
7
+ data.tar.gz: 691129a8cdec406ad62e739c2e192e086dccb4487f5a3b4ddc0ac619ecdcfbcc073153466a3fff098aacbf2e15bc56ef9e98005adff49f7ac9a0942709625716
@@ -0,0 +1 @@
1
+ ruby 2.6.3
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.0.1
4
+
5
+ * make sure nil value does not trigger exception
6
+
3
7
  ## 1.0.0
4
8
 
5
9
  * initial release
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/[USERNAME]/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.
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,
@@ -1,3 +1,3 @@
1
1
  module MongoidLocalizedPresenceValidator
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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.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: 2018-08-17 00:00:00.000000000 Z
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
- rubyforge_project:
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