select2-rails 3.3.0 → 3.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/{vendor → app}/assets/images/select2-spinner.gif +0 -0
- data/{vendor → app}/assets/images/select2.png +0 -0
- data/{vendor → app}/assets/images/select2x2.png +0 -0
- data/{vendor → app}/assets/images/spinner.gif +0 -0
- data/{vendor → app}/assets/javascripts/select2.js +349 -234
- data/{vendor → app}/assets/stylesheets/select2.css.scss +43 -29
- data/lib/select2-rails/source_file.rb +5 -5
- data/lib/select2-rails/version.rb +1 -1
- data/select2-rails.gemspec +1 -1
- metadata +11 -10
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
Version: 3.3.
|
2
|
+
Version: 3.3.1 Timestamp: Wed Feb 20 09:57:22 PST 2013
|
3
3
|
*/
|
4
4
|
.select2-container {
|
5
5
|
position: relative;
|
@@ -48,6 +48,13 @@ Version: 3.3.0 Timestamp: Tue Feb 5 18:33:54 PST 2013
|
|
48
48
|
-moz-background-clip: padding;
|
49
49
|
background-clip: padding-box;
|
50
50
|
|
51
|
+
-webkit-touch-callout: none;
|
52
|
+
-webkit-user-select: none;
|
53
|
+
-khtml-user-select: none;
|
54
|
+
-moz-user-select: none;
|
55
|
+
-ms-user-select: none;
|
56
|
+
user-select: none;
|
57
|
+
|
51
58
|
background-color: #fff;
|
52
59
|
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eeeeee), color-stop(0.5, white));
|
53
60
|
background-image: -webkit-linear-gradient(center bottom, #eeeeee 0%, white 50%);
|
@@ -98,7 +105,7 @@ Version: 3.3.0 Timestamp: Tue Feb 5 18:33:54 PST 2013
|
|
98
105
|
text-decoration: none;
|
99
106
|
|
100
107
|
border: 0;
|
101
|
-
background: url('select2.png') right top no-repeat;
|
108
|
+
background: image-url('select2.png') right top no-repeat;
|
102
109
|
cursor: pointer;
|
103
110
|
outline: 0;
|
104
111
|
}
|
@@ -133,7 +140,6 @@ Version: 3.3.0 Timestamp: Tue Feb 5 18:33:54 PST 2013
|
|
133
140
|
|
134
141
|
-webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
|
135
142
|
-moz-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
|
136
|
-
-o-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
|
137
143
|
box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
|
138
144
|
}
|
139
145
|
|
@@ -148,7 +154,6 @@ Version: 3.3.0 Timestamp: Tue Feb 5 18:33:54 PST 2013
|
|
148
154
|
|
149
155
|
-webkit-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
|
150
156
|
-moz-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
|
151
|
-
-o-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
|
152
157
|
box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
|
153
158
|
}
|
154
159
|
|
@@ -183,7 +188,7 @@ Version: 3.3.0 Timestamp: Tue Feb 5 18:33:54 PST 2013
|
|
183
188
|
display: block;
|
184
189
|
width: 100%;
|
185
190
|
height: 100%;
|
186
|
-
background: url('select2.png') no-repeat 0 1px;
|
191
|
+
background: image-url('select2.png') no-repeat 0 1px;
|
187
192
|
}
|
188
193
|
|
189
194
|
.select2-search {
|
@@ -226,13 +231,13 @@ Version: 3.3.0 Timestamp: Tue Feb 5 18:33:54 PST 2013
|
|
226
231
|
-moz-box-shadow: none;
|
227
232
|
box-shadow: none;
|
228
233
|
|
229
|
-
background: #fff url('select2.png') no-repeat 100% -22px;
|
230
|
-
background: url('select2.png') no-repeat 100% -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
|
231
|
-
background: url('select2.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
|
232
|
-
background: url('select2.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
|
233
|
-
background: url('select2.png') no-repeat 100% -22px, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
|
234
|
-
background: url('select2.png') no-repeat 100% -22px, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
|
235
|
-
background: url('select2.png') no-repeat 100% -22px, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
|
234
|
+
background: #fff image-url('select2.png') no-repeat 100% -22px;
|
235
|
+
background: image-url('select2.png') no-repeat 100% -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
|
236
|
+
background: image-url('select2.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
|
237
|
+
background: image-url('select2.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
|
238
|
+
background: image-url('select2.png') no-repeat 100% -22px, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
|
239
|
+
background: image-url('select2.png') no-repeat 100% -22px, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
|
240
|
+
background: image-url('select2.png') no-repeat 100% -22px, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
|
236
241
|
}
|
237
242
|
|
238
243
|
.select2-drop.select2-drop-above .select2-search input {
|
@@ -240,13 +245,13 @@ Version: 3.3.0 Timestamp: Tue Feb 5 18:33:54 PST 2013
|
|
240
245
|
}
|
241
246
|
|
242
247
|
.select2-search input.select2-active {
|
243
|
-
background: #fff url('select2-spinner.gif') no-repeat 100%;
|
244
|
-
background: url('select2-spinner.gif') no-repeat 100%, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
|
245
|
-
background: url('select2-spinner.gif') no-repeat 100%, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
|
246
|
-
background: url('select2-spinner.gif') no-repeat 100%, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
|
247
|
-
background: url('select2-spinner.gif') no-repeat 100%, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
|
248
|
-
background: url('select2-spinner.gif') no-repeat 100%, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
|
249
|
-
background: url('select2-spinner.gif') no-repeat 100%, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
|
248
|
+
background: #fff image-url('select2-spinner.gif') no-repeat 100%;
|
249
|
+
background: image-url('select2-spinner.gif') no-repeat 100%, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
|
250
|
+
background: image-url('select2-spinner.gif') no-repeat 100%, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
|
251
|
+
background: image-url('select2-spinner.gif') no-repeat 100%, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
|
252
|
+
background: image-url('select2-spinner.gif') no-repeat 100%, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
|
253
|
+
background: image-url('select2-spinner.gif') no-repeat 100%, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
|
254
|
+
background: image-url('select2-spinner.gif') no-repeat 100%, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
|
250
255
|
}
|
251
256
|
|
252
257
|
.select2-container-active .select2-choice,
|
@@ -256,16 +261,13 @@ Version: 3.3.0 Timestamp: Tue Feb 5 18:33:54 PST 2013
|
|
256
261
|
|
257
262
|
-webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
|
258
263
|
-moz-box-shadow: 0 0 5px rgba(0,0,0,.3);
|
259
|
-
-o-box-shadow: 0 0 5px rgba(0,0,0,.3);
|
260
264
|
box-shadow: 0 0 5px rgba(0,0,0,.3);
|
261
265
|
}
|
262
266
|
|
263
267
|
.select2-dropdown-open .select2-choice {
|
264
|
-
border: 1px solid #aaa;
|
265
268
|
border-bottom-color: transparent;
|
266
269
|
-webkit-box-shadow: 0 1px 0 #fff inset;
|
267
270
|
-moz-box-shadow: 0 1px 0 #fff inset;
|
268
|
-
-o-box-shadow: 0 1px 0 #fff inset;
|
269
271
|
box-shadow: 0 1px 0 #fff inset;
|
270
272
|
|
271
273
|
-webkit-border-bottom-left-radius: 0;
|
@@ -303,6 +305,7 @@ Version: 3.3.0 Timestamp: Tue Feb 5 18:33:54 PST 2013
|
|
303
305
|
position: relative;
|
304
306
|
overflow-x: hidden;
|
305
307
|
overflow-y: auto;
|
308
|
+
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
306
309
|
}
|
307
310
|
|
308
311
|
.select2-results ul.select2-result-sub {
|
@@ -331,6 +334,13 @@ Version: 3.3.0 Timestamp: Tue Feb 5 18:33:54 PST 2013
|
|
331
334
|
padding: 3px 7px 4px;
|
332
335
|
margin: 0;
|
333
336
|
cursor: pointer;
|
337
|
+
|
338
|
+
-webkit-touch-callout: none;
|
339
|
+
-webkit-user-select: none;
|
340
|
+
-khtml-user-select: none;
|
341
|
+
-moz-user-select: none;
|
342
|
+
-ms-user-select: none;
|
343
|
+
user-select: none;
|
334
344
|
}
|
335
345
|
|
336
346
|
.select2-results .select2-highlighted {
|
@@ -380,7 +390,7 @@ disabled look for disabled choices in the results dropdown
|
|
380
390
|
}
|
381
391
|
|
382
392
|
.select2-more-results.select2-active {
|
383
|
-
background: #f4f4f4 url('select2-spinner.gif') no-repeat 100%;
|
393
|
+
background: #f4f4f4 image-url('select2-spinner.gif') no-repeat 100%;
|
384
394
|
}
|
385
395
|
|
386
396
|
.select2-more-results {
|
@@ -444,7 +454,6 @@ disabled look for disabled choices in the results dropdown
|
|
444
454
|
|
445
455
|
-webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
|
446
456
|
-moz-box-shadow: 0 0 5px rgba(0,0,0,.3);
|
447
|
-
-o-box-shadow: 0 0 5px rgba(0,0,0,.3);
|
448
457
|
box-shadow: 0 0 5px rgba(0,0,0,.3);
|
449
458
|
}
|
450
459
|
.select2-container-multi .select2-choices li {
|
@@ -458,7 +467,6 @@ disabled look for disabled choices in the results dropdown
|
|
458
467
|
}
|
459
468
|
|
460
469
|
.select2-container-multi .select2-choices .select2-search-field input {
|
461
|
-
height: 15px;
|
462
470
|
padding: 5px;
|
463
471
|
margin: 1px 0;
|
464
472
|
|
@@ -469,13 +477,12 @@ disabled look for disabled choices in the results dropdown
|
|
469
477
|
border: 0;
|
470
478
|
-webkit-box-shadow: none;
|
471
479
|
-moz-box-shadow: none;
|
472
|
-
-o-box-shadow: none;
|
473
480
|
box-shadow: none;
|
474
481
|
background: transparent !important;
|
475
482
|
}
|
476
483
|
|
477
484
|
.select2-container-multi .select2-choices .select2-search-field input.select2-active {
|
478
|
-
background: #fff url('select2-spinner.gif') no-repeat 100% !important;
|
485
|
+
background: #fff image-url('select2-spinner.gif') no-repeat 100% !important;
|
479
486
|
}
|
480
487
|
|
481
488
|
.select2-default {
|
@@ -504,6 +511,13 @@ disabled look for disabled choices in the results dropdown
|
|
504
511
|
-moz-background-clip: padding;
|
505
512
|
background-clip: padding-box;
|
506
513
|
|
514
|
+
-webkit-touch-callout: none;
|
515
|
+
-webkit-user-select: none;
|
516
|
+
-khtml-user-select: none;
|
517
|
+
-moz-user-select: none;
|
518
|
+
-ms-user-select: none;
|
519
|
+
user-select: none;
|
520
|
+
|
507
521
|
background-color: #e4e4e4;
|
508
522
|
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#f4f4f4', GradientType=0 );
|
509
523
|
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
|
@@ -530,7 +544,7 @@ disabled look for disabled choices in the results dropdown
|
|
530
544
|
|
531
545
|
font-size: 1px;
|
532
546
|
outline: none;
|
533
|
-
background: url('select2.png') right top no-repeat;
|
547
|
+
background: image-url('select2.png') right top no-repeat;
|
534
548
|
}
|
535
549
|
|
536
550
|
.select2-container-multi .select2-search-choice-close {
|
@@ -579,7 +593,7 @@ disabled look for disabled choices in the results dropdown
|
|
579
593
|
|
580
594
|
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) {
|
581
595
|
.select2-search input, .select2-search-choice-close, .select2-container .select2-choice abbr, .select2-container .select2-choice div b {
|
582
|
-
background-image: url('select2x2.png') !important;
|
596
|
+
background-image: image-url('select2x2.png') !important;
|
583
597
|
background-repeat: no-repeat !important;
|
584
598
|
background-size: 60px 40px !important;
|
585
599
|
}
|
@@ -9,20 +9,20 @@ class SourceFile < Thor
|
|
9
9
|
def fetch
|
10
10
|
filtered_tags = fetch_tags
|
11
11
|
tag = select("Which tag do you want to fetch?", filtered_tags)
|
12
|
-
self.destination_root = "
|
12
|
+
self.destination_root = "app/assets"
|
13
13
|
remote = "https://github.com/ivaynberg/select2"
|
14
14
|
get "#{remote}/raw/#{tag}/select2.png", "images/select2.png"
|
15
|
-
get "#{remote}/raw/#{tag}/spinner.gif", "images/spinner.gif"
|
15
|
+
get "#{remote}/raw/#{tag}/select2-spinner.gif", "images/select2-spinner.gif"
|
16
16
|
get "#{remote}/raw/#{tag}/select2.css", "stylesheets/select2.css"
|
17
17
|
get "#{remote}/raw/#{tag}/select2.js", "javascripts/select2.js"
|
18
18
|
end
|
19
19
|
|
20
20
|
desc "convert css to scss file", "convert css to scss file"
|
21
21
|
def convert
|
22
|
-
self.destination_root = "
|
22
|
+
self.destination_root = "app/assets"
|
23
23
|
inside destination_root do
|
24
24
|
run("cp stylesheets/select2.css stylesheets/select2.css.scss")
|
25
|
-
gsub_file 'stylesheets/select2.css.scss', '(spinner.gif)', "('spinner.gif')"
|
25
|
+
gsub_file 'stylesheets/select2.css.scss', '(select2-spinner.gif)', "('select2-spinner.gif')"
|
26
26
|
gsub_file 'stylesheets/select2.css.scss', '(select2.png)', "('select2.png')"
|
27
27
|
gsub_file 'stylesheets/select2.css.scss', ' url', ' image-url'
|
28
28
|
end
|
@@ -30,7 +30,7 @@ class SourceFile < Thor
|
|
30
30
|
|
31
31
|
desc "clean up useless files", "clean up useless files"
|
32
32
|
def cleanup
|
33
|
-
self.destination_root = "
|
33
|
+
self.destination_root = "app/assets"
|
34
34
|
remove_file "stylesheets/select2.css"
|
35
35
|
end
|
36
36
|
private
|
data/select2-rails.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.require_paths = ["lib"]
|
17
17
|
|
18
18
|
s.add_dependency "thor", "~> 0.14"
|
19
|
-
s.add_runtime_dependency "sass-rails", "
|
19
|
+
s.add_runtime_dependency "sass-rails", ">= 3.2"
|
20
20
|
s.add_development_dependency "bundler", "~> 1.0"
|
21
21
|
s.add_development_dependency "rails", "~> 3.0"
|
22
22
|
s.add_development_dependency "httpclient", "~> 2.2"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: select2-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-03-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: thor
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
requirement: !ruby/object:Gem::Requirement
|
34
34
|
none: false
|
35
35
|
requirements:
|
36
|
-
- -
|
36
|
+
- - ! '>='
|
37
37
|
- !ruby/object:Gem::Version
|
38
38
|
version: '3.2'
|
39
39
|
type: :runtime
|
@@ -41,7 +41,7 @@ dependencies:
|
|
41
41
|
version_requirements: !ruby/object:Gem::Requirement
|
42
42
|
none: false
|
43
43
|
requirements:
|
44
|
-
- -
|
44
|
+
- - ! '>='
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '3.2'
|
47
47
|
- !ruby/object:Gem::Dependency
|
@@ -107,17 +107,17 @@ files:
|
|
107
107
|
- LICENSE
|
108
108
|
- README.md
|
109
109
|
- Rakefile
|
110
|
+
- app/assets/images/select2-spinner.gif
|
111
|
+
- app/assets/images/select2.png
|
112
|
+
- app/assets/images/select2x2.png
|
113
|
+
- app/assets/images/spinner.gif
|
114
|
+
- app/assets/javascripts/select2.js
|
115
|
+
- app/assets/stylesheets/select2.css.scss
|
110
116
|
- lib/select2-rails.rb
|
111
117
|
- lib/select2-rails/engine.rb
|
112
118
|
- lib/select2-rails/source_file.rb
|
113
119
|
- lib/select2-rails/version.rb
|
114
120
|
- select2-rails.gemspec
|
115
|
-
- vendor/assets/images/select2-spinner.gif
|
116
|
-
- vendor/assets/images/select2.png
|
117
|
-
- vendor/assets/images/select2x2.png
|
118
|
-
- vendor/assets/images/spinner.gif
|
119
|
-
- vendor/assets/javascripts/select2.js
|
120
|
-
- vendor/assets/stylesheets/select2.css.scss
|
121
121
|
homepage: https://github.com/argerim/select2-rails
|
122
122
|
licenses: []
|
123
123
|
post_install_message:
|
@@ -143,3 +143,4 @@ signing_key:
|
|
143
143
|
specification_version: 3
|
144
144
|
summary: Integrate Select2 javascript library with Rails asset pipeline
|
145
145
|
test_files: []
|
146
|
+
has_rdoc:
|