i18n_country_select 1.0.7 → 1.0.8
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.
- data/{README.md → README.rdoc} +6 -6
- data/lib/i18n_country_select/version.rb +1 -1
- metadata +14 -14
data/{README.md → README.rdoc}
RENAMED
@@ -1,17 +1,18 @@
|
|
1
1
|
== Country Code Select
|
2
2
|
|
3
|
-
A simple country code select helper. Works exactly the same as country_select but uses country codes instead and has i18n translations for
|
3
|
+
A simple country code select helper with I18n translations for the countries. Works exactly the same as country_select but uses country codes instead and has i18n translations for the country names.
|
4
|
+
|
5
|
+
NOTE: The old country_code_select repository that this one was forked from is outdated and no longer maintained. This i18_country_select repository is the most corrent.
|
4
6
|
|
5
7
|
== Requirements
|
6
8
|
|
7
9
|
* Rails 3+
|
8
10
|
* Ruby 1.9.2+
|
9
|
-
* https://github.com/onomojo/rails-i18n - Contains the country translations
|
10
11
|
|
11
12
|
== Installation
|
12
13
|
Put the following in your Gemfile
|
13
14
|
|
14
|
-
gem 'i18n_country_select'
|
15
|
+
gem 'i18n_country_select'
|
15
16
|
|
16
17
|
== Example
|
17
18
|
Simple use supplying model and attribute as parameters:
|
@@ -21,7 +22,6 @@ Simple use supplying model and attribute as parameters:
|
|
21
22
|
Supplying priority countries to be placed at the top of the list:
|
22
23
|
|
23
24
|
country_code_select(:user, :country, [[ 'US', 'United States' ], [ 'CA', 'Canada' ]])
|
24
|
-
|
25
25
|
|
26
26
|
|
27
27
|
== Contributors
|
@@ -34,6 +34,6 @@ Supplying priority countries to be placed at the top of the list:
|
|
34
34
|
|
35
35
|
|
36
36
|
|
37
|
-
==
|
37
|
+
== License
|
38
38
|
|
39
|
-
|
39
|
+
MIT license
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: i18n_country_select
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-04-
|
12
|
+
date: 2012-04-06 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: i18n
|
16
|
-
requirement: &
|
16
|
+
requirement: &70140610132020 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,21 +21,21 @@ dependencies:
|
|
21
21
|
version: '0.5'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70140610132020
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: i18n-country-translations
|
27
|
-
requirement: &
|
27
|
+
requirement: &70140610163280 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.0.
|
32
|
+
version: 0.0.5
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70140610163280
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rails
|
38
|
-
requirement: &
|
38
|
+
requirement: &70140610162820 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 3.0.0
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70140610162820
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec-rails
|
49
|
-
requirement: &
|
49
|
+
requirement: &70140610162360 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 2.7.0
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70140610162360
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: spork
|
60
|
-
requirement: &
|
60
|
+
requirement: &70140610161900 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,7 +65,7 @@ dependencies:
|
|
65
65
|
version: 1.0rc
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70140610161900
|
69
69
|
description: A simple country code select helper that works with I18n translations.
|
70
70
|
Works exactly the same as country_select but uses country codes instead.
|
71
71
|
email: brian@onomojo.com
|
@@ -79,7 +79,7 @@ files:
|
|
79
79
|
- lib/i18n_country_select/instance_tag.rb
|
80
80
|
- lib/i18n_country_select/version.rb
|
81
81
|
- lib/i18n_country_select.rb
|
82
|
-
- README.
|
82
|
+
- README.rdoc
|
83
83
|
- MIT-LICENSE
|
84
84
|
homepage: https://github.com/onomojo/i18n_country_select
|
85
85
|
licenses: []
|