country-select-engine 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. data/.gitignore +25 -0
  2. data/Gemfile +17 -0
  3. data/Gemfile.lock +97 -0
  4. data/MIT-LICENSE +20 -0
  5. data/README.rdoc +105 -0
  6. data/Rakefile +29 -0
  7. data/config/locales/countries.de.yml +268 -0
  8. data/config/locales/countries.en-US.yml +268 -0
  9. data/config/locales/countries.en.yml +268 -0
  10. data/config/locales/countries.es.yml +268 -0
  11. data/config/locales/countries.fr.yml +268 -0
  12. data/config/locales/countries.it.yml +268 -0
  13. data/config/locales/countries.ja.yml +268 -0
  14. data/config/locales/countries.ru.yml +268 -0
  15. data/config/locales/countries.zh-CN.yml +268 -0
  16. data/config/locales/countries.zh-TW.yml +268 -0
  17. data/config/locales/currencies.de.yml +163 -0
  18. data/config/locales/currencies.en-US.yml +163 -0
  19. data/config/locales/currencies.en.yml +163 -0
  20. data/config/locales/currencies.es.yml +163 -0
  21. data/config/locales/currencies.fr.yml +163 -0
  22. data/config/locales/currencies.it.yml +163 -0
  23. data/config/locales/currencies.ja.yml +163 -0
  24. data/config/locales/currencies.ru.yml +163 -0
  25. data/config/locales/currencies.zh-CN.yml +163 -0
  26. data/config/locales/currencies.zh-TW.yml +163 -0
  27. data/config/locales/languages.de.yml +12 -0
  28. data/config/locales/languages.en-US.yml +12 -0
  29. data/config/locales/languages.en.yml +12 -0
  30. data/config/locales/languages.es.yml +12 -0
  31. data/config/locales/languages.fr.yml +12 -0
  32. data/config/locales/languages.it.yml +12 -0
  33. data/config/locales/languages.ja.yml +12 -0
  34. data/config/locales/languages.ru.yml +12 -0
  35. data/config/locales/languages.zh-CN.yml +12 -0
  36. data/config/locales/languages.zh-TW.yml +12 -0
  37. data/config/locales/timezones.de.yml +144 -0
  38. data/config/locales/timezones.en.yml +144 -0
  39. data/config/locales/timezones.es.yml +144 -0
  40. data/config/locales/timezones.fr.yml +144 -0
  41. data/config/locales/timezones.it.yml +144 -0
  42. data/config/locales/timezones.ja.yml +144 -0
  43. data/config/locales/timezones.ru.yml +144 -0
  44. data/config/locales/timezones.zh-CN.yml +144 -0
  45. data/config/locales/timezones.zh-TW.yml +144 -0
  46. data/config/routes.rb +2 -0
  47. data/country-select-engine.gemspec +26 -0
  48. data/lib/content_helper.rb +43 -0
  49. data/lib/country-select-engine/engine.rb +4 -0
  50. data/lib/country-select-engine/version.rb +3 -0
  51. data/lib/country-select-engine.rb +181 -0
  52. data/lib/parse_helper.rb +26 -0
  53. data/lib/tasks/import_locales.rake +72 -0
  54. data/script/convert_cldr.rb +116 -0
  55. data/script/google.yml +143 -0
  56. data/script/google.zh-TW.yml +143 -0
  57. data/script/rails +8 -0
  58. data/script/timezones.yml +144 -0
  59. data/script/translate_timezones.rb +26 -0
  60. data/spec/dummy/README.rdoc +261 -0
  61. data/spec/dummy/Rakefile +7 -0
  62. data/spec/dummy/app/assets/javascripts/application.js +16 -0
  63. data/spec/dummy/app/assets/javascripts/dummy.js +2 -0
  64. data/spec/dummy/app/assets/stylesheets/application.css +14 -0
  65. data/spec/dummy/app/assets/stylesheets/dummy.css +4 -0
  66. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  67. data/spec/dummy/app/controllers/dummy_controller.rb +4 -0
  68. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  69. data/spec/dummy/app/helpers/dummy_helper.rb +2 -0
  70. data/spec/dummy/app/mailers/.gitkeep +0 -0
  71. data/spec/dummy/app/models/.gitkeep +0 -0
  72. data/spec/dummy/app/views/dummy/index.html.erb +41 -0
  73. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  74. data/spec/dummy/config/application.rb +62 -0
  75. data/spec/dummy/config/boot.rb +10 -0
  76. data/spec/dummy/config/database.yml +25 -0
  77. data/spec/dummy/config/environment.rb +5 -0
  78. data/spec/dummy/config/environments/development.rb +37 -0
  79. data/spec/dummy/config/environments/production.rb +67 -0
  80. data/spec/dummy/config/environments/test.rb +37 -0
  81. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  82. data/spec/dummy/config/initializers/inflections.rb +15 -0
  83. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  84. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  85. data/spec/dummy/config/initializers/session_store.rb +8 -0
  86. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  87. data/spec/dummy/config/routes.rb +60 -0
  88. data/spec/dummy/config.ru +4 -0
  89. data/spec/dummy/db/development.sqlite3 +0 -0
  90. data/spec/dummy/lib/assets/.gitkeep +0 -0
  91. data/spec/dummy/log/.gitkeep +0 -0
  92. data/spec/dummy/public/404.html +26 -0
  93. data/spec/dummy/public/422.html +26 -0
  94. data/spec/dummy/public/500.html +25 -0
  95. data/spec/dummy/public/favicon.ico +0 -0
  96. data/spec/dummy/script/rails +6 -0
  97. data/spec/localized_country_select_test.rb +134 -0
  98. data/spec/spec_helper.rb +32 -0
  99. data/vendor/assets/images/chosen-sprite.png +0 -0
  100. data/vendor/assets/javascripts/chosen.jquery.min.js +10 -0
  101. data/vendor/assets/stylesheets/chosen.css +396 -0
  102. metadata +209 -0
metadata ADDED
@@ -0,0 +1,209 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: country-select-engine
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Yen-Ju Chen
9
+ - Kristian Mandrup
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2012-10-25 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rails
17
+ requirement: &70366165173280 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ~>
21
+ - !ruby/object:Gem::Version
22
+ version: 3.2.3
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: *70366165173280
26
+ - !ruby/object:Gem::Dependency
27
+ name: sqlite3
28
+ requirement: &70366165172380 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: *70366165172380
37
+ description: Rails engine for localized_country_select.
38
+ email:
39
+ - yjchenx@gmail.com
40
+ - kmandrup@gmail.com
41
+ executables: []
42
+ extensions: []
43
+ extra_rdoc_files: []
44
+ files:
45
+ - .gitignore
46
+ - Gemfile
47
+ - Gemfile.lock
48
+ - MIT-LICENSE
49
+ - README.rdoc
50
+ - Rakefile
51
+ - config/locales/countries.de.yml
52
+ - config/locales/countries.en-US.yml
53
+ - config/locales/countries.en.yml
54
+ - config/locales/countries.es.yml
55
+ - config/locales/countries.fr.yml
56
+ - config/locales/countries.it.yml
57
+ - config/locales/countries.ja.yml
58
+ - config/locales/countries.ru.yml
59
+ - config/locales/countries.zh-CN.yml
60
+ - config/locales/countries.zh-TW.yml
61
+ - config/locales/currencies.de.yml
62
+ - config/locales/currencies.en-US.yml
63
+ - config/locales/currencies.en.yml
64
+ - config/locales/currencies.es.yml
65
+ - config/locales/currencies.fr.yml
66
+ - config/locales/currencies.it.yml
67
+ - config/locales/currencies.ja.yml
68
+ - config/locales/currencies.ru.yml
69
+ - config/locales/currencies.zh-CN.yml
70
+ - config/locales/currencies.zh-TW.yml
71
+ - config/locales/languages.de.yml
72
+ - config/locales/languages.en-US.yml
73
+ - config/locales/languages.en.yml
74
+ - config/locales/languages.es.yml
75
+ - config/locales/languages.fr.yml
76
+ - config/locales/languages.it.yml
77
+ - config/locales/languages.ja.yml
78
+ - config/locales/languages.ru.yml
79
+ - config/locales/languages.zh-CN.yml
80
+ - config/locales/languages.zh-TW.yml
81
+ - config/locales/timezones.de.yml
82
+ - config/locales/timezones.en.yml
83
+ - config/locales/timezones.es.yml
84
+ - config/locales/timezones.fr.yml
85
+ - config/locales/timezones.it.yml
86
+ - config/locales/timezones.ja.yml
87
+ - config/locales/timezones.ru.yml
88
+ - config/locales/timezones.zh-CN.yml
89
+ - config/locales/timezones.zh-TW.yml
90
+ - config/routes.rb
91
+ - country-select-engine.gemspec
92
+ - lib/content_helper.rb
93
+ - lib/country-select-engine.rb
94
+ - lib/country-select-engine/engine.rb
95
+ - lib/country-select-engine/version.rb
96
+ - lib/parse_helper.rb
97
+ - lib/tasks/import_locales.rake
98
+ - script/convert_cldr.rb
99
+ - script/google.yml
100
+ - script/google.zh-TW.yml
101
+ - script/rails
102
+ - script/timezones.yml
103
+ - script/translate_timezones.rb
104
+ - spec/dummy/README.rdoc
105
+ - spec/dummy/Rakefile
106
+ - spec/dummy/app/assets/javascripts/application.js
107
+ - spec/dummy/app/assets/javascripts/dummy.js
108
+ - spec/dummy/app/assets/stylesheets/application.css
109
+ - spec/dummy/app/assets/stylesheets/dummy.css
110
+ - spec/dummy/app/controllers/application_controller.rb
111
+ - spec/dummy/app/controllers/dummy_controller.rb
112
+ - spec/dummy/app/helpers/application_helper.rb
113
+ - spec/dummy/app/helpers/dummy_helper.rb
114
+ - spec/dummy/app/mailers/.gitkeep
115
+ - spec/dummy/app/models/.gitkeep
116
+ - spec/dummy/app/views/dummy/index.html.erb
117
+ - spec/dummy/app/views/layouts/application.html.erb
118
+ - spec/dummy/config.ru
119
+ - spec/dummy/config/application.rb
120
+ - spec/dummy/config/boot.rb
121
+ - spec/dummy/config/database.yml
122
+ - spec/dummy/config/environment.rb
123
+ - spec/dummy/config/environments/development.rb
124
+ - spec/dummy/config/environments/production.rb
125
+ - spec/dummy/config/environments/test.rb
126
+ - spec/dummy/config/initializers/backtrace_silencers.rb
127
+ - spec/dummy/config/initializers/inflections.rb
128
+ - spec/dummy/config/initializers/mime_types.rb
129
+ - spec/dummy/config/initializers/secret_token.rb
130
+ - spec/dummy/config/initializers/session_store.rb
131
+ - spec/dummy/config/initializers/wrap_parameters.rb
132
+ - spec/dummy/config/routes.rb
133
+ - spec/dummy/db/development.sqlite3
134
+ - spec/dummy/lib/assets/.gitkeep
135
+ - spec/dummy/log/.gitkeep
136
+ - spec/dummy/public/404.html
137
+ - spec/dummy/public/422.html
138
+ - spec/dummy/public/500.html
139
+ - spec/dummy/public/favicon.ico
140
+ - spec/dummy/script/rails
141
+ - spec/localized_country_select_test.rb
142
+ - spec/spec_helper.rb
143
+ - vendor/assets/images/chosen-sprite.png
144
+ - vendor/assets/javascripts/chosen.jquery.min.js
145
+ - vendor/assets/stylesheets/chosen.css
146
+ homepage: ''
147
+ licenses: []
148
+ post_install_message:
149
+ rdoc_options: []
150
+ require_paths:
151
+ - lib
152
+ required_ruby_version: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ required_rubygems_version: !ruby/object:Gem::Requirement
159
+ none: false
160
+ requirements:
161
+ - - ! '>='
162
+ - !ruby/object:Gem::Version
163
+ version: '0'
164
+ requirements: []
165
+ rubyforge_project:
166
+ rubygems_version: 1.8.15
167
+ signing_key:
168
+ specification_version: 3
169
+ summary: Rails engine for localized_country_select.
170
+ test_files:
171
+ - spec/dummy/README.rdoc
172
+ - spec/dummy/Rakefile
173
+ - spec/dummy/app/assets/javascripts/application.js
174
+ - spec/dummy/app/assets/javascripts/dummy.js
175
+ - spec/dummy/app/assets/stylesheets/application.css
176
+ - spec/dummy/app/assets/stylesheets/dummy.css
177
+ - spec/dummy/app/controllers/application_controller.rb
178
+ - spec/dummy/app/controllers/dummy_controller.rb
179
+ - spec/dummy/app/helpers/application_helper.rb
180
+ - spec/dummy/app/helpers/dummy_helper.rb
181
+ - spec/dummy/app/mailers/.gitkeep
182
+ - spec/dummy/app/models/.gitkeep
183
+ - spec/dummy/app/views/dummy/index.html.erb
184
+ - spec/dummy/app/views/layouts/application.html.erb
185
+ - spec/dummy/config.ru
186
+ - spec/dummy/config/application.rb
187
+ - spec/dummy/config/boot.rb
188
+ - spec/dummy/config/database.yml
189
+ - spec/dummy/config/environment.rb
190
+ - spec/dummy/config/environments/development.rb
191
+ - spec/dummy/config/environments/production.rb
192
+ - spec/dummy/config/environments/test.rb
193
+ - spec/dummy/config/initializers/backtrace_silencers.rb
194
+ - spec/dummy/config/initializers/inflections.rb
195
+ - spec/dummy/config/initializers/mime_types.rb
196
+ - spec/dummy/config/initializers/secret_token.rb
197
+ - spec/dummy/config/initializers/session_store.rb
198
+ - spec/dummy/config/initializers/wrap_parameters.rb
199
+ - spec/dummy/config/routes.rb
200
+ - spec/dummy/db/development.sqlite3
201
+ - spec/dummy/lib/assets/.gitkeep
202
+ - spec/dummy/log/.gitkeep
203
+ - spec/dummy/public/404.html
204
+ - spec/dummy/public/422.html
205
+ - spec/dummy/public/500.html
206
+ - spec/dummy/public/favicon.ico
207
+ - spec/dummy/script/rails
208
+ - spec/localized_country_select_test.rb
209
+ - spec/spec_helper.rb