select2-rails 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +0 -1
- data/LICENSE +16 -4
- data/README.md +13 -7
- data/lib/select2-rails/version.rb +1 -1
- data/vendor/assets/javascripts/select2.js +3 -0
- data/vendor/assets/stylesheets/select2.css.sass +3 -0
- metadata +10 -10
data/.gitignore
CHANGED
data/LICENSE
CHANGED
@@ -1,7 +1,19 @@
|
|
1
|
-
Copyright (
|
1
|
+
Copyright (C) 2012 by Rogerio Medeiros
|
2
2
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
5
|
+
in the Software without restriction, including without limitation the rights
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
8
|
+
furnished to do so, subject to the following conditions:
|
4
9
|
|
5
|
-
The above copyright notice and this permission notice shall be included in
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
11
|
+
all copies or substantial portions of the Software.
|
6
12
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
|
+
SOFTWARE.
|
data/README.md
CHANGED
@@ -9,24 +9,30 @@ The `select2-rails` gem integrates the `Select2` with the Rails asset pipeline.
|
|
9
9
|
|
10
10
|
### Install select2-rails gem
|
11
11
|
|
12
|
-
Add `select2-rails` in Gemfile
|
12
|
+
Add `select2-rails` in Gemfile and run `bundle install`.
|
13
13
|
|
14
14
|
gem "select2-rails"
|
15
15
|
|
16
|
-
Run `bundle install`
|
17
|
-
|
18
16
|
### Include select2-rails javascript assets
|
19
17
|
|
20
|
-
Add to your `app/assets/javascripts/application.js
|
18
|
+
Add to your `app/assets/javascripts/application.js`.
|
21
19
|
|
22
20
|
//= require select2
|
23
21
|
|
24
22
|
### Include select2-rails stylesheet assets
|
25
23
|
|
26
|
-
Add to your `app/assets/stylesheets/application.css
|
24
|
+
Add to your `app/assets/stylesheets/application.css`.
|
27
25
|
|
28
26
|
*= require select2
|
29
27
|
|
30
|
-
##
|
28
|
+
## Contributions
|
29
|
+
|
30
|
+
If you wont to contribute, please:
|
31
|
+
|
32
|
+
* Fork the project.
|
33
|
+
* Make your feature addition or bug fix.
|
34
|
+
* Send me a pull request on Github.
|
35
|
+
|
36
|
+
## Copyright
|
31
37
|
|
32
|
-
|
38
|
+
Copyright (c) 2012 Rogerio Medeiros. See [LICENSE](https://github.com/argerim/select2-rails/blob/master/LICENSE) for details.
|
@@ -1,5 +1,7 @@
|
|
1
1
|
/*
|
2
2
|
Copyright 2012 Igor Vaynberg
|
3
|
+
|
4
|
+
Version: @@ver@@ Timestamp: @@timestamp@@
|
3
5
|
|
4
6
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in
|
5
7
|
compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
|
@@ -542,6 +544,7 @@
|
|
542
544
|
|
543
545
|
this.updateResults(true);
|
544
546
|
this.dropdown.show();
|
547
|
+
this.ensureHighlightVisible();
|
545
548
|
this.focusSearch();
|
546
549
|
},
|
547
550
|
|
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: 0.0.
|
4
|
+
version: 0.0.3
|
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-05-
|
12
|
+
date: 2012-05-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
16
|
-
requirement: &
|
16
|
+
requirement: &80350780 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0.14'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *80350780
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: bundler
|
27
|
-
requirement: &
|
27
|
+
requirement: &80348200 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '1.0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *80348200
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rails
|
38
|
-
requirement: &
|
38
|
+
requirement: &80346860 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '3.0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *80346860
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: sass
|
49
|
-
requirement: &
|
49
|
+
requirement: &80346210 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '3.1'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *80346210
|
58
58
|
description: Select2 is a jQuery based replacement for select boxes. It supports searching,
|
59
59
|
remote data sets, and infinite scrolling of results. This gem integrates Select2
|
60
60
|
with Rails asset pipeline for easy of use.
|