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 +4 -4
- data/lib/i18n_country_select/instance_tag.rb +7 -1
- data/lib/i18n_country_select/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82f8b2d7daa60b7db167828e0678b38a7dba9272
|
4
|
+
data.tar.gz: a5b19a559ae9e7b39d66da90466bcbefba1610f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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)
|
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.
|
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-
|
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.
|
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:
|