i18n_country_select 1.2.0 → 1.2.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
  SHA1:
3
- metadata.gz: 2c731e53a281d2725cbc553b84b988c306e3def8
4
- data.tar.gz: e54a1ed08d7cc145fa5e7b3ef2a22bfc5fcac70e
3
+ metadata.gz: 82f8b2d7daa60b7db167828e0678b38a7dba9272
4
+ data.tar.gz: a5b19a559ae9e7b39d66da90466bcbefba1610f9
5
5
  SHA512:
6
- metadata.gz: 6d83abc30574aad87c57f35ed663c732b95858237a8f664b5527a7ca35e74fce77948f239cd2b952ed5ea3fc15ea9e8bc5f44bf9669911006360603bb6251ffd
7
- data.tar.gz: f5b001860daa59eb645bcd93e7094c8f7e1466d1717ce9b0fa82a3fac7a4a3cb54597ad48de009cbbbb88793e262c02d07612a4dfd59ed943ae29cd915ef9de1
6
+ metadata.gz: 01b24bfbfd876dcd543904ae8f9243756a1b32dfcb1bd69c2f010568ae7978fa2b162cb42901623eae5b3286f847801ba3030aeeacb54c51dd6e17c263021958
7
+ data.tar.gz: 9f1791b9c9c2d3a3daf814d69c6d2932d55cfbf5ffd0f7872e9711927a6e513b5880ae634226be1d77b0ca9d9edb7fd2f4d743c33fc91a4808a9547c4b2f7e28
@@ -24,7 +24,13 @@ module I18nCountrySelect
24
24
  countries += "<option value=\"\" disabled=\"disabled\">-------------</option>\n"
25
25
  end
26
26
 
27
- countries = countries + options_for_select(country_translations, selected)
27
+ translations = if options[:exclude].present?
28
+ country_translations.reject { |ct| options[:exclude].include? ct[1] }
29
+ else
30
+ country_translations
31
+ end
32
+
33
+ countries = countries + options_for_select(translations, selected)
28
34
 
29
35
  html_options = html_options.stringify_keys
30
36
  add_default_name_and_id(html_options)
@@ -1,3 +1,3 @@
1
1
  module I18nCountrySelect
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n_country_select
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian McQuay (brian@onomojo.com)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-27 00:00:00.000000000 Z
11
+ date: 2018-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -138,9 +138,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  version: 1.3.5
139
139
  requirements: []
140
140
  rubyforge_project: "[none]"
141
- rubygems_version: 2.5.1
141
+ rubygems_version: 2.5.2
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: I18n country select helper
145
145
  test_files: []
146
- has_rdoc: