countries 8.0.0 → 8.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: 494ab1d3c327714aef51c5be0b0f1a3513b9d0689bf5086a2c94d2926eb0f1f3
4
- data.tar.gz: e4e3ef67c34cd42eaf86a82d939f6abc0c6ee201d747a350c3aba87eb2d57d7d
3
+ metadata.gz: e2780baa833cb6b56f76be407c9173ca8265fc4c05bd6e438ec94949e2ca35a2
4
+ data.tar.gz: aae17dcda05370cb652f022534fa4ee1c7a49d799893d0be1bed225ef856962b
5
5
  SHA512:
6
- metadata.gz: 55667ddfddea2f1b1cffb20a47ae521caf90dcfa0228501c0c31f0068c5011c8d9be0779e42ba9827451d3d70c3e6529d1d324c965fb7a5c512ea123437449ce
7
- data.tar.gz: 75aec0e83bfa983b135df06074819b19cd978e2659329a1eaa28f1da499169336790b1a0052ed7208911b5465a9b7dc132058bff660b9315dfaaeb116dcdcbfa
6
+ metadata.gz: dc58a617fcdec78f0a41e5acb5b02200279d26bb20a1022d1a2439265e7c07429957b0b1927a41d59e8d93a2e1dd1b43b8f47ebc35d05a63566a2d79b98f5b97
7
+ data.tar.gz: f9922f026bcc5e2fb7247a08d253bd1a981adc844b2334aae72d114c517f2a646b68ab4e0be735283902c634dfecac07efd5ccb5298d8412e0d2b8240589f222
@@ -74,7 +74,7 @@ module ISO3166
74
74
  def collect_countries_with(query_val, query_method = :alpha2, result_method = :itself)
75
75
  return nil unless [query_method, result_method].map { |method| method_defined? method }.all?
76
76
 
77
- all.select { |country| country.send(query_method).include? query_val }
77
+ all.select { |country| country.send(query_method)&.include? query_val }
78
78
  .map { |country| country.send(result_method) }
79
79
  end
80
80
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Countries
4
- VERSION = '8.0.0'
4
+ VERSION = '8.0.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: countries
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.0
4
+ version: 8.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Robinson