country_select 4.0.0 → 5.0.0.pre

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec :path => "../"
4
-
5
- gem "railties", "~> 5.1.1"
6
- gem "actionpack", "~> 5.1.1"
7
-
8
- platforms :rbx do
9
- gem "racc"
10
- gem "rubysl", "~> 2.0"
11
- gem "psych"
12
- end
@@ -1,311 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- country_select (4.0.0)
5
- countries (~> 3.0)
6
- sort_alphabetical (~> 1.0)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- actionpack (5.1.2)
12
- actionview (= 5.1.2)
13
- activesupport (= 5.1.2)
14
- rack (~> 2.0)
15
- rack-test (~> 0.6.3)
16
- rails-dom-testing (~> 2.0)
17
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
18
- actionview (5.1.2)
19
- activesupport (= 5.1.2)
20
- builder (~> 3.1)
21
- erubi (~> 1.4)
22
- rails-dom-testing (~> 2.0)
23
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
24
- activesupport (5.1.2)
25
- concurrent-ruby (~> 1.0, >= 1.0.2)
26
- i18n (~> 0.7)
27
- minitest (~> 5.1)
28
- tzinfo (~> 1.1)
29
- builder (3.2.3)
30
- coderay (1.1.1)
31
- concurrent-ruby (1.0.5)
32
- countries (3.0.0)
33
- i18n_data (~> 0.8.0)
34
- sixarm_ruby_unaccent (~> 1.1)
35
- unicode_utils (~> 1.4)
36
- diff-lcs (1.3)
37
- erubi (1.6.1)
38
- ffi2-generators (0.1.1)
39
- i18n (0.8.6)
40
- i18n_data (0.8.0)
41
- loofah (2.0.3)
42
- nokogiri (>= 1.5.9)
43
- method_source (0.8.2)
44
- mini_portile2 (2.2.0)
45
- minitest (5.10.2)
46
- nokogiri (1.8.0)
47
- mini_portile2 (~> 2.2.0)
48
- pry (0.10.4)
49
- coderay (~> 1.1.0)
50
- method_source (~> 0.8.1)
51
- slop (~> 3.4)
52
- psych (2.2.4)
53
- racc (1.4.14)
54
- rack (2.0.3)
55
- rack-test (0.6.3)
56
- rack (>= 1.0)
57
- rails-dom-testing (2.0.3)
58
- activesupport (>= 4.2.0)
59
- nokogiri (>= 1.6)
60
- rails-html-sanitizer (1.0.3)
61
- loofah (~> 2.0)
62
- railties (5.1.2)
63
- actionpack (= 5.1.2)
64
- activesupport (= 5.1.2)
65
- method_source
66
- rake (>= 0.8.7)
67
- thor (>= 0.18.1, < 2.0)
68
- rake (12.0.0)
69
- rspec (3.6.0)
70
- rspec-core (~> 3.6.0)
71
- rspec-expectations (~> 3.6.0)
72
- rspec-mocks (~> 3.6.0)
73
- rspec-core (3.6.0)
74
- rspec-support (~> 3.6.0)
75
- rspec-expectations (3.6.0)
76
- diff-lcs (>= 1.2.0, < 2.0)
77
- rspec-support (~> 3.6.0)
78
- rspec-mocks (3.6.0)
79
- diff-lcs (>= 1.2.0, < 2.0)
80
- rspec-support (~> 3.6.0)
81
- rspec-support (3.6.0)
82
- rubysl (2.2.0)
83
- rubysl-abbrev (~> 2.0)
84
- rubysl-base64 (~> 2.0)
85
- rubysl-benchmark (~> 2.0)
86
- rubysl-bigdecimal (~> 2.0)
87
- rubysl-cgi (~> 2.0)
88
- rubysl-cgi-session (~> 2.0)
89
- rubysl-cmath (~> 2.0)
90
- rubysl-complex (~> 2.0)
91
- rubysl-continuation (~> 2.0)
92
- rubysl-coverage (~> 2.0)
93
- rubysl-csv (~> 2.0)
94
- rubysl-curses (~> 2.0)
95
- rubysl-date (~> 2.0)
96
- rubysl-delegate (~> 2.0)
97
- rubysl-digest (~> 2.0)
98
- rubysl-drb (~> 2.0)
99
- rubysl-e2mmap (~> 2.0)
100
- rubysl-english (~> 2.0)
101
- rubysl-enumerator (~> 2.0)
102
- rubysl-erb (~> 2.0)
103
- rubysl-etc (~> 2.0)
104
- rubysl-expect (~> 2.0)
105
- rubysl-fcntl (~> 2.0)
106
- rubysl-fiber (~> 2.0)
107
- rubysl-fileutils (~> 2.0)
108
- rubysl-find (~> 2.0)
109
- rubysl-forwardable (~> 2.0)
110
- rubysl-getoptlong (~> 2.0)
111
- rubysl-gserver (~> 2.0)
112
- rubysl-io-console (~> 2.0)
113
- rubysl-io-nonblock (~> 2.0)
114
- rubysl-io-wait (~> 2.0)
115
- rubysl-ipaddr (~> 2.0)
116
- rubysl-irb (~> 2.1)
117
- rubysl-logger (~> 2.0)
118
- rubysl-mathn (~> 2.0)
119
- rubysl-matrix (~> 2.0)
120
- rubysl-mkmf (~> 2.0)
121
- rubysl-monitor (~> 2.0)
122
- rubysl-mutex_m (~> 2.0)
123
- rubysl-net-ftp (~> 2.0)
124
- rubysl-net-http (~> 2.0)
125
- rubysl-net-imap (~> 2.0)
126
- rubysl-net-pop (~> 2.0)
127
- rubysl-net-protocol (~> 2.0)
128
- rubysl-net-smtp (~> 2.0)
129
- rubysl-net-telnet (~> 2.0)
130
- rubysl-nkf (~> 2.0)
131
- rubysl-observer (~> 2.0)
132
- rubysl-open-uri (~> 2.0)
133
- rubysl-open3 (~> 2.0)
134
- rubysl-openssl (~> 2.0)
135
- rubysl-optparse (~> 2.0)
136
- rubysl-ostruct (~> 2.0)
137
- rubysl-pathname (~> 2.0)
138
- rubysl-prettyprint (~> 2.0)
139
- rubysl-prime (~> 2.0)
140
- rubysl-profile (~> 2.0)
141
- rubysl-profiler (~> 2.0)
142
- rubysl-pstore (~> 2.0)
143
- rubysl-pty (~> 2.0)
144
- rubysl-rational (~> 2.0)
145
- rubysl-resolv (~> 2.0)
146
- rubysl-rexml (~> 2.0)
147
- rubysl-rinda (~> 2.0)
148
- rubysl-rss (~> 2.0)
149
- rubysl-scanf (~> 2.0)
150
- rubysl-securerandom (~> 2.0)
151
- rubysl-set (~> 2.0)
152
- rubysl-shellwords (~> 2.0)
153
- rubysl-singleton (~> 2.0)
154
- rubysl-socket (~> 2.0)
155
- rubysl-stringio (~> 2.0)
156
- rubysl-strscan (~> 2.0)
157
- rubysl-sync (~> 2.0)
158
- rubysl-syslog (~> 2.0)
159
- rubysl-tempfile (~> 2.0)
160
- rubysl-thread (~> 2.0)
161
- rubysl-thwait (~> 2.0)
162
- rubysl-time (~> 2.0)
163
- rubysl-timeout (~> 2.0)
164
- rubysl-tmpdir (~> 2.0)
165
- rubysl-tsort (~> 2.0)
166
- rubysl-un (~> 2.0)
167
- rubysl-unicode_normalize (~> 2.0)
168
- rubysl-uri (~> 2.0)
169
- rubysl-weakref (~> 2.0)
170
- rubysl-webrick (~> 2.0)
171
- rubysl-xmlrpc (~> 2.0)
172
- rubysl-yaml (~> 2.0)
173
- rubysl-zlib (~> 2.0)
174
- rubysl-abbrev (2.0.4)
175
- rubysl-base64 (2.0.0)
176
- rubysl-benchmark (2.0.1)
177
- rubysl-bigdecimal (2.0.2)
178
- rubysl-cgi (2.0.1)
179
- rubysl-cgi-session (2.1.0)
180
- rubysl-cmath (2.0.0)
181
- rubysl-complex (2.0.0)
182
- rubysl-continuation (2.0.0)
183
- rubysl-coverage (2.1)
184
- rubysl-csv (2.0.2)
185
- rubysl-english (~> 2.0)
186
- rubysl-curses (2.0.1)
187
- rubysl-date (2.0.9)
188
- rubysl-delegate (2.0.1)
189
- rubysl-digest (2.0.8)
190
- rubysl-drb (2.0.1)
191
- rubysl-e2mmap (2.0.0)
192
- rubysl-english (2.0.0)
193
- rubysl-enumerator (2.0.0)
194
- rubysl-erb (2.0.2)
195
- rubysl-etc (2.0.3)
196
- ffi2-generators (~> 0.1)
197
- rubysl-expect (2.0.0)
198
- rubysl-fcntl (2.0.4)
199
- ffi2-generators (~> 0.1)
200
- rubysl-fiber (2.0.0)
201
- rubysl-fileutils (2.0.3)
202
- rubysl-find (2.0.1)
203
- rubysl-forwardable (2.0.1)
204
- rubysl-getoptlong (2.0.0)
205
- rubysl-gserver (2.0.0)
206
- rubysl-socket (~> 2.0)
207
- rubysl-thread (~> 2.0)
208
- rubysl-io-console (2.0.0)
209
- rubysl-io-nonblock (2.0.0)
210
- rubysl-io-wait (2.0.0)
211
- rubysl-ipaddr (2.0.0)
212
- rubysl-irb (2.1.1)
213
- rubysl-e2mmap (~> 2.0)
214
- rubysl-mathn (~> 2.0)
215
- rubysl-thread (~> 2.0)
216
- rubysl-logger (2.1.0)
217
- rubysl-mathn (2.0.0)
218
- rubysl-matrix (2.1.0)
219
- rubysl-e2mmap (~> 2.0)
220
- rubysl-mkmf (2.1)
221
- rubysl-fileutils (~> 2.0)
222
- rubysl-shellwords (~> 2.0)
223
- rubysl-monitor (2.0.0)
224
- rubysl-mutex_m (2.0.0)
225
- rubysl-net-ftp (2.0.1)
226
- rubysl-net-http (2.0.4)
227
- rubysl-cgi (~> 2.0)
228
- rubysl-erb (~> 2.0)
229
- rubysl-singleton (~> 2.0)
230
- rubysl-net-imap (2.0.1)
231
- rubysl-net-pop (2.0.1)
232
- rubysl-net-protocol (2.0.1)
233
- rubysl-net-smtp (2.0.1)
234
- rubysl-net-telnet (2.0.0)
235
- rubysl-nkf (2.0.1)
236
- rubysl-observer (2.0.0)
237
- rubysl-open-uri (2.0.0)
238
- rubysl-open3 (2.0.0)
239
- rubysl-openssl (2.9)
240
- rubysl-optparse (2.0.1)
241
- rubysl-shellwords (~> 2.0)
242
- rubysl-ostruct (2.1.0)
243
- rubysl-pathname (2.3)
244
- rubysl-prettyprint (2.0.3)
245
- rubysl-prime (2.0.1)
246
- rubysl-profile (2.0.0)
247
- rubysl-profiler (2.1)
248
- rubysl-pstore (2.0.0)
249
- rubysl-pty (2.0.3)
250
- rubysl-rational (2.0.1)
251
- rubysl-resolv (2.1.2)
252
- rubysl-rexml (2.0.4)
253
- rubysl-rinda (2.0.1)
254
- rubysl-rss (2.0.0)
255
- rubysl-scanf (2.0.0)
256
- rubysl-securerandom (2.0.0)
257
- rubysl-set (2.0.1)
258
- rubysl-shellwords (2.0.0)
259
- rubysl-singleton (2.0.0)
260
- rubysl-socket (2.2.1)
261
- rubysl-fcntl (~> 2.0)
262
- rubysl-stringio (2.1)
263
- rubysl-strscan (2.0.0)
264
- rubysl-sync (2.0.0)
265
- rubysl-syslog (2.1.0)
266
- ffi2-generators (~> 0.1)
267
- rubysl-tempfile (2.0.1)
268
- rubysl-thread (2.0.3)
269
- rubysl-thwait (2.0.0)
270
- rubysl-time (2.0.3)
271
- rubysl-timeout (2.0.0)
272
- rubysl-tmpdir (2.0.1)
273
- rubysl-tsort (2.0.1)
274
- rubysl-un (2.0.0)
275
- rubysl-fileutils (~> 2.0)
276
- rubysl-optparse (~> 2.0)
277
- rubysl-unicode_normalize (2.0)
278
- rubysl-uri (2.0.0)
279
- rubysl-weakref (2.0.0)
280
- rubysl-webrick (2.0.0)
281
- rubysl-xmlrpc (2.0.0)
282
- rubysl-yaml (2.1.0)
283
- rubysl-zlib (2.0.1)
284
- sixarm_ruby_unaccent (1.2.0)
285
- slop (3.6.0)
286
- sort_alphabetical (1.1.0)
287
- unicode_utils (>= 1.2.2)
288
- thor (0.19.4)
289
- thread_safe (0.3.6)
290
- tzinfo (1.2.3)
291
- thread_safe (~> 0.1)
292
- unicode_utils (1.4.0)
293
- wwtd (1.3.0)
294
-
295
- PLATFORMS
296
- ruby
297
-
298
- DEPENDENCIES
299
- actionpack (~> 5.1.1)
300
- country_select!
301
- pry (~> 0)
302
- psych
303
- racc
304
- railties (~> 5.1.1)
305
- rake
306
- rspec (~> 3)
307
- rubysl (~> 2.0)
308
- wwtd
309
-
310
- BUNDLED WITH
311
- 1.17.1
@@ -1,39 +0,0 @@
1
- module ActionView
2
- module Helpers
3
- class FormBuilder
4
- def country_select(method, priority_or_options = {}, options = {}, html_options = {})
5
- if Hash === priority_or_options
6
- html_options = options
7
- options = priority_or_options
8
- else
9
- options[:priority_countries] = priority_or_options
10
- end
11
-
12
- @template.country_select(@object_name, method, objectify_options(options), @default_options.merge(html_options))
13
- end
14
- end
15
-
16
- module FormOptionsHelper
17
- def country_select(object, method, options = {}, html_options = {})
18
- CountrySelect.new(object, method, self, options.delete(:object)).render(options, html_options)
19
- end
20
- end
21
-
22
- class CountrySelect < InstanceTag
23
- include ::CountrySelect::TagHelper
24
-
25
- def render(options, html_options)
26
- @options = options
27
- @html_options = html_options
28
-
29
- if self.respond_to?(:select_content_tag)
30
- select_content_tag(country_option_tags, @options, @html_options)
31
- else
32
- html_options = @html_options.stringify_keys
33
- add_default_name_and_id(html_options)
34
- content_tag(:select, add_options(country_option_tags, options, value(object)), html_options)
35
- end
36
- end
37
- end
38
- end
39
- end