country_select 1.3.1 → 2.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,286 +0,0 @@
1
- GIT
2
- remote: git://github.com/thoughtbot/appraisal.git
3
- revision: 6d599ff1f2418d199ba2357b7c0297a63521ab13
4
- ref: 6d599f
5
- specs:
6
- appraisal (1.0.0.beta2)
7
- bundler
8
- rake
9
- thor (>= 0.14.0)
10
-
11
- PATH
12
- remote: .././
13
- specs:
14
- country_select (1.3.1)
15
- countries (= 0.9.3)
16
-
17
- GEM
18
- remote: https://rubygems.org/
19
- specs:
20
- actionpack (4.1.0.beta1)
21
- actionview (= 4.1.0.beta1)
22
- activesupport (= 4.1.0.beta1)
23
- rack (~> 1.5.2)
24
- rack-test (~> 0.6.2)
25
- actionview (4.1.0.beta1)
26
- activesupport (= 4.1.0.beta1)
27
- builder (~> 3.1)
28
- erubis (~> 2.7.0)
29
- activesupport (4.1.0.beta1)
30
- i18n (~> 0.6, >= 0.6.9)
31
- json (~> 1.7, >= 1.7.7)
32
- minitest (~> 5.1)
33
- thread_safe (~> 0.1)
34
- tzinfo (~> 1.1)
35
- atomic (1.1.14)
36
- builder (3.2.2)
37
- coderay (1.1.0)
38
- countries (0.9.3)
39
- currencies (~> 0.4.2)
40
- currencies (0.4.2)
41
- diff-lcs (1.2.5)
42
- erubis (2.7.0)
43
- ffi2-generators (0.1.1)
44
- i18n (0.6.9)
45
- json (1.8.1)
46
- method_source (0.8.2)
47
- minitest (5.2.2)
48
- pry (0.9.12.4)
49
- coderay (~> 1.0)
50
- method_source (~> 0.8)
51
- slop (~> 3.4)
52
- psych (2.0.2)
53
- racc (1.4.11)
54
- rack (1.5.2)
55
- rack-test (0.6.2)
56
- rack (>= 1.0)
57
- rake (10.1.1)
58
- rspec (2.14.1)
59
- rspec-core (~> 2.14.0)
60
- rspec-expectations (~> 2.14.0)
61
- rspec-mocks (~> 2.14.0)
62
- rspec-core (2.14.7)
63
- rspec-expectations (2.14.4)
64
- diff-lcs (>= 1.1.3, < 2.0)
65
- rspec-mocks (2.14.4)
66
- rubysl (2.0.15)
67
- rubysl-abbrev (~> 2.0)
68
- rubysl-base64 (~> 2.0)
69
- rubysl-benchmark (~> 2.0)
70
- rubysl-bigdecimal (~> 2.0)
71
- rubysl-cgi (~> 2.0)
72
- rubysl-cgi-session (~> 2.0)
73
- rubysl-cmath (~> 2.0)
74
- rubysl-complex (~> 2.0)
75
- rubysl-continuation (~> 2.0)
76
- rubysl-coverage (~> 2.0)
77
- rubysl-csv (~> 2.0)
78
- rubysl-curses (~> 2.0)
79
- rubysl-date (~> 2.0)
80
- rubysl-delegate (~> 2.0)
81
- rubysl-digest (~> 2.0)
82
- rubysl-drb (~> 2.0)
83
- rubysl-e2mmap (~> 2.0)
84
- rubysl-english (~> 2.0)
85
- rubysl-enumerator (~> 2.0)
86
- rubysl-erb (~> 2.0)
87
- rubysl-etc (~> 2.0)
88
- rubysl-expect (~> 2.0)
89
- rubysl-fcntl (~> 2.0)
90
- rubysl-fiber (~> 2.0)
91
- rubysl-fileutils (~> 2.0)
92
- rubysl-find (~> 2.0)
93
- rubysl-forwardable (~> 2.0)
94
- rubysl-getoptlong (~> 2.0)
95
- rubysl-gserver (~> 2.0)
96
- rubysl-io-console (~> 2.0)
97
- rubysl-io-nonblock (~> 2.0)
98
- rubysl-io-wait (~> 2.0)
99
- rubysl-ipaddr (~> 2.0)
100
- rubysl-irb (~> 2.0)
101
- rubysl-logger (~> 2.0)
102
- rubysl-mathn (~> 2.0)
103
- rubysl-matrix (~> 2.0)
104
- rubysl-mkmf (~> 2.0)
105
- rubysl-monitor (~> 2.0)
106
- rubysl-mutex_m (~> 2.0)
107
- rubysl-net-ftp (~> 2.0)
108
- rubysl-net-http (~> 2.0)
109
- rubysl-net-imap (~> 2.0)
110
- rubysl-net-pop (~> 2.0)
111
- rubysl-net-protocol (~> 2.0)
112
- rubysl-net-smtp (~> 2.0)
113
- rubysl-net-telnet (~> 2.0)
114
- rubysl-nkf (~> 2.0)
115
- rubysl-observer (~> 2.0)
116
- rubysl-open-uri (~> 2.0)
117
- rubysl-open3 (~> 2.0)
118
- rubysl-openssl (~> 2.0)
119
- rubysl-optparse (~> 2.0)
120
- rubysl-ostruct (~> 2.0)
121
- rubysl-pathname (~> 2.0)
122
- rubysl-prettyprint (~> 2.0)
123
- rubysl-prime (~> 2.0)
124
- rubysl-profile (~> 2.0)
125
- rubysl-profiler (~> 2.0)
126
- rubysl-pstore (~> 2.0)
127
- rubysl-pty (~> 2.0)
128
- rubysl-rational (~> 2.0)
129
- rubysl-readline (~> 2.0)
130
- rubysl-resolv (~> 2.0)
131
- rubysl-rexml (~> 2.0)
132
- rubysl-rinda (~> 2.0)
133
- rubysl-rss (~> 2.0)
134
- rubysl-scanf (~> 2.0)
135
- rubysl-securerandom (~> 2.0)
136
- rubysl-set (~> 2.0)
137
- rubysl-shellwords (~> 2.0)
138
- rubysl-singleton (~> 2.0)
139
- rubysl-socket (~> 2.0)
140
- rubysl-stringio (~> 2.0)
141
- rubysl-strscan (~> 2.0)
142
- rubysl-sync (~> 2.0)
143
- rubysl-syslog (~> 2.0)
144
- rubysl-tempfile (~> 2.0)
145
- rubysl-thread (~> 2.0)
146
- rubysl-thwait (~> 2.0)
147
- rubysl-time (~> 2.0)
148
- rubysl-timeout (~> 2.0)
149
- rubysl-tmpdir (~> 2.0)
150
- rubysl-tsort (~> 2.0)
151
- rubysl-un (~> 2.0)
152
- rubysl-uri (~> 2.0)
153
- rubysl-weakref (~> 2.0)
154
- rubysl-webrick (~> 2.0)
155
- rubysl-xmlrpc (~> 2.0)
156
- rubysl-yaml (~> 2.0)
157
- rubysl-zlib (~> 2.0)
158
- rubysl-abbrev (2.0.4)
159
- rubysl-base64 (2.0.0)
160
- rubysl-benchmark (2.0.1)
161
- rubysl-bigdecimal (2.0.2)
162
- rubysl-cgi (2.0.1)
163
- rubysl-cgi-session (2.0.1)
164
- rubysl-cmath (2.0.0)
165
- rubysl-complex (2.0.0)
166
- rubysl-continuation (2.0.0)
167
- rubysl-coverage (2.0.3)
168
- rubysl-csv (2.0.2)
169
- rubysl-english (~> 2.0)
170
- rubysl-curses (2.0.1)
171
- rubysl-date (2.0.6)
172
- rubysl-delegate (2.0.1)
173
- rubysl-digest (2.0.3)
174
- rubysl-drb (2.0.1)
175
- rubysl-e2mmap (2.0.0)
176
- rubysl-english (2.0.0)
177
- rubysl-enumerator (2.0.0)
178
- rubysl-erb (2.0.1)
179
- rubysl-etc (2.0.3)
180
- ffi2-generators (~> 0.1)
181
- rubysl-expect (2.0.0)
182
- rubysl-fcntl (2.0.4)
183
- ffi2-generators (~> 0.1)
184
- rubysl-fiber (2.0.0)
185
- rubysl-fileutils (2.0.3)
186
- rubysl-find (2.0.1)
187
- rubysl-forwardable (2.0.1)
188
- rubysl-getoptlong (2.0.0)
189
- rubysl-gserver (2.0.0)
190
- rubysl-socket (~> 2.0)
191
- rubysl-thread (~> 2.0)
192
- rubysl-io-console (2.0.0)
193
- rubysl-io-nonblock (2.0.0)
194
- rubysl-io-wait (2.0.0)
195
- rubysl-ipaddr (2.0.0)
196
- rubysl-irb (2.0.4)
197
- rubysl-e2mmap (~> 2.0)
198
- rubysl-mathn (~> 2.0)
199
- rubysl-readline (~> 2.0)
200
- rubysl-thread (~> 2.0)
201
- rubysl-logger (2.0.0)
202
- rubysl-mathn (2.0.0)
203
- rubysl-matrix (2.1.0)
204
- rubysl-e2mmap (~> 2.0)
205
- rubysl-mkmf (2.0.1)
206
- rubysl-fileutils (~> 2.0)
207
- rubysl-shellwords (~> 2.0)
208
- rubysl-monitor (2.0.0)
209
- rubysl-mutex_m (2.0.0)
210
- rubysl-net-ftp (2.0.1)
211
- rubysl-net-http (2.0.4)
212
- rubysl-cgi (~> 2.0)
213
- rubysl-erb (~> 2.0)
214
- rubysl-singleton (~> 2.0)
215
- rubysl-net-imap (2.0.1)
216
- rubysl-net-pop (2.0.1)
217
- rubysl-net-protocol (2.0.1)
218
- rubysl-net-smtp (2.0.1)
219
- rubysl-net-telnet (2.0.0)
220
- rubysl-nkf (2.0.1)
221
- rubysl-observer (2.0.0)
222
- rubysl-open-uri (2.0.0)
223
- rubysl-open3 (2.0.0)
224
- rubysl-openssl (2.1.0)
225
- rubysl-optparse (2.0.1)
226
- rubysl-shellwords (~> 2.0)
227
- rubysl-ostruct (2.0.4)
228
- rubysl-pathname (2.0.0)
229
- rubysl-prettyprint (2.0.2)
230
- rubysl-prime (2.0.1)
231
- rubysl-profile (2.0.0)
232
- rubysl-profiler (2.0.1)
233
- rubysl-pstore (2.0.0)
234
- rubysl-pty (2.0.2)
235
- rubysl-rational (2.0.1)
236
- rubysl-readline (2.0.2)
237
- rubysl-resolv (2.0.0)
238
- rubysl-rexml (2.0.2)
239
- rubysl-rinda (2.0.1)
240
- rubysl-rss (2.0.0)
241
- rubysl-scanf (2.0.0)
242
- rubysl-securerandom (2.0.0)
243
- rubysl-set (2.0.1)
244
- rubysl-shellwords (2.0.0)
245
- rubysl-singleton (2.0.0)
246
- rubysl-socket (2.0.1)
247
- rubysl-stringio (2.0.0)
248
- rubysl-strscan (2.0.0)
249
- rubysl-sync (2.0.0)
250
- rubysl-syslog (2.0.1)
251
- ffi2-generators (~> 0.1)
252
- rubysl-tempfile (2.0.1)
253
- rubysl-thread (2.0.2)
254
- rubysl-thwait (2.0.0)
255
- rubysl-time (2.0.3)
256
- rubysl-timeout (2.0.0)
257
- rubysl-tmpdir (2.0.0)
258
- rubysl-tsort (2.0.1)
259
- rubysl-un (2.0.0)
260
- rubysl-fileutils (~> 2.0)
261
- rubysl-optparse (~> 2.0)
262
- rubysl-uri (2.0.0)
263
- rubysl-weakref (2.0.0)
264
- rubysl-webrick (2.0.0)
265
- rubysl-xmlrpc (2.0.0)
266
- rubysl-yaml (2.0.4)
267
- rubysl-zlib (2.0.1)
268
- slop (3.4.7)
269
- thor (0.18.1)
270
- thread_safe (0.1.3)
271
- atomic
272
- tzinfo (1.1.0)
273
- thread_safe (~> 0.1)
274
-
275
- PLATFORMS
276
- ruby
277
-
278
- DEPENDENCIES
279
- actionpack (~> 4.1.0.beta1)
280
- appraisal!
281
- country_select!
282
- pry (~> 0)
283
- psych
284
- racc
285
- rspec (~> 2)
286
- rubysl (~> 2.0)
@@ -1,34 +0,0 @@
1
- # encoding: utf-8
2
- require 'countries'
3
-
4
- module CountrySelect
5
- def self.use_iso_codes
6
- Thread.current[:country_select_use_iso_codes] ||= false
7
- end
8
-
9
- def self.use_iso_codes=(val)
10
- Thread.current[:country_select_use_iso_codes] = val
11
- end
12
-
13
- def self.locale
14
- I18n.locale
15
- end
16
-
17
- #Localized Countries list
18
- def self.countries(with_locale=nil)
19
- with_locale ||= locale
20
-
21
- ISO3166::Country.all.inject({}) do |hash,country_pair|
22
- default_name = country_pair.first
23
- code = country_pair.last
24
- country = Country.new(code)
25
- localized_name = country.translations[with_locale.to_s]
26
-
27
- # Codes should not be downcased, but they were previous to 1.3
28
- # which means they should continue to be until 2.0 is released in
29
- # order to prevent breakage with existing implementations
30
- hash[code.downcase] = localized_name || default_name
31
- hash
32
- end
33
- end
34
- end
metadata.gz.sig DELETED
Binary file