jquery-selectbox 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.travis.yml +4 -0
- data/README.markdown +3 -1
- data/Rakefile +10 -0
- data/docs/images/jquery-selectbox.png +0 -0
- data/jquery-selectbox.gemspec +5 -1
- data/lib/jquery-selectbox.rb +1 -7
- data/lib/jquery-selectbox/engine.rb +8 -0
- data/lib/jquery-selectbox/version.rb +1 -1
- data/test/dummy/.gitignore +2 -0
- data/test/dummy/app/assets/javascripts/application.js +5 -0
- data/test/dummy/app/assets/stylesheets/application.css +5 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +17 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +1 -0
- data/test/dummy/config/routes.rb +2 -0
- data/test/jquery_selectbox_test.rb +34 -0
- data/test/test_helper.rb +7 -0
- metadata +79 -17
- data/LICENSE +0 -22
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5ef7b97aa4382505c469c1ed431129e677a20528
|
4
|
+
data.tar.gz: 16e9214adb46a4589ae189a77c277bd5704a1bb8
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c7e0f8d61977cc36335a6045719bf600469e461c705e34f679436d7b4c502af5ac280e1492309d894aaa2915a8765458db1e38eeca67df719a39519dd43f1cfe
|
7
|
+
data.tar.gz: e544e0c6a27a9ab3cde52f3db34197f33d517a50677fd85d923a05e6a5c1ead078520e0aeccb5c50a475e5e9511f8ea4e63446b6fb9e38764e8ed2f98049c97a
|
data/.travis.yml
ADDED
data/README.markdown
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
# Jquery Selectbox
|
1
|
+
# Jquery Selectbox [](http://badge.fury.io/rb/jquery-selectbox) [](http://travis-ci.org/subosito/jquery-selectbox) [](https://gemnasium.com/subosito/jquery-selectbox)
|
2
|
+
|
3
|
+

|
2
4
|
|
3
5
|
Custom select box replacement inspired by jQuery UI source. Demo [here](http://www.bulgaria-web-developers.com/projects/javascript/selectbox/)
|
4
6
|
|
data/Rakefile
CHANGED
Binary file
|
data/jquery-selectbox.gemspec
CHANGED
@@ -7,6 +7,7 @@ Gem::Specification.new do |gem|
|
|
7
7
|
gem.description = %q{Custom select box replacement inspired by jQuery UI source}
|
8
8
|
gem.summary = %q{jQuery Selectbox plugin. Custom select box replacement inspired by jQuery UI source. Require jQuery 1.4.x or higher}
|
9
9
|
gem.homepage = "https://github.com/subosito/jquery-selectbox"
|
10
|
+
gem.licenses = ["MIT"]
|
10
11
|
|
11
12
|
gem.files = `git ls-files`.split($\)
|
12
13
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
@@ -15,5 +16,8 @@ Gem::Specification.new do |gem|
|
|
15
16
|
gem.require_paths = ["lib"]
|
16
17
|
gem.version = Jquery::Selectbox::VERSION
|
17
18
|
|
18
|
-
gem.
|
19
|
+
gem.add_dependency 'railties', '>= 3.1'
|
20
|
+
gem.add_development_dependency 'vendorer'
|
21
|
+
gem.add_development_dependency 'tzinfo'
|
22
|
+
gem.add_development_dependency 'sass-rails'
|
19
23
|
end
|
data/lib/jquery-selectbox.rb
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
require "sprockets/railtie"
|
4
|
+
|
5
|
+
Bundler.require(:default, :development)
|
6
|
+
|
7
|
+
module Dummy
|
8
|
+
class Application < Rails::Application
|
9
|
+
config.encoding = "utf-8"
|
10
|
+
config.assets.enabled = true
|
11
|
+
config.assets.version = '1.0'
|
12
|
+
|
13
|
+
# replacement for environments/*.rb
|
14
|
+
config.active_support.deprecation = :stderr
|
15
|
+
config.eager_load = false
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
Dummy::Application.config.secret_token = "477a15673de5f7c9c6bc3ea3cac0abc29ef24a4c0eb85b77876a9a222d34a51c1bc90484716327094989fdaabcefb9aee78d1aba5adfb705988691447fa50a2d"
|
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class JquerySelectboxTest < ActionDispatch::IntegrationTest
|
4
|
+
teardown { clean_cache }
|
5
|
+
|
6
|
+
test "engine is loaded" do
|
7
|
+
assert_equal ::Rails::Engine, Jquery::Selectbox::Rails::Engine.superclass
|
8
|
+
end
|
9
|
+
|
10
|
+
test "javascript is served" do
|
11
|
+
get "/assets/jquery.selectbox.js"
|
12
|
+
assert_response :success
|
13
|
+
end
|
14
|
+
|
15
|
+
test "stylesheet is served" do
|
16
|
+
get "/assets/jquery.selectbox.css"
|
17
|
+
assert_response :success
|
18
|
+
end
|
19
|
+
|
20
|
+
test "image is served" do
|
21
|
+
get "/assets/jquery-selectbox/select-icons.png"
|
22
|
+
assert_response :success
|
23
|
+
end
|
24
|
+
|
25
|
+
test "stylesheet contain references to images" do
|
26
|
+
get "/assets/application.css"
|
27
|
+
assert_match "/assets/jquery-selectbox/select-icons.png", response.body
|
28
|
+
end
|
29
|
+
|
30
|
+
private
|
31
|
+
def clean_cache
|
32
|
+
FileUtils.rm_rf File.expand_path("../dummy/tmp", __FILE__)
|
33
|
+
end
|
34
|
+
end
|
data/test/test_helper.rb
ADDED
metadata
CHANGED
@@ -1,30 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery-selectbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Alif Rachmawadi
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-04-27 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: railties
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.1'
|
14
27
|
- !ruby/object:Gem::Dependency
|
15
28
|
name: vendorer
|
16
29
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
30
|
requirements:
|
19
|
-
- -
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: tzinfo
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: sass-rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
20
60
|
- !ruby/object:Gem::Version
|
21
61
|
version: '0'
|
22
62
|
type: :development
|
23
63
|
prerelease: false
|
24
64
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
65
|
requirements:
|
27
|
-
- -
|
66
|
+
- - '>='
|
28
67
|
- !ruby/object:Gem::Version
|
29
68
|
version: '0'
|
30
69
|
description: Custom select box replacement inspired by jQuery UI source
|
@@ -35,41 +74,64 @@ extensions: []
|
|
35
74
|
extra_rdoc_files: []
|
36
75
|
files:
|
37
76
|
- .gitignore
|
77
|
+
- .travis.yml
|
38
78
|
- Gemfile
|
39
|
-
- LICENSE
|
40
79
|
- README.markdown
|
41
80
|
- Rakefile
|
42
81
|
- Vendorfile
|
82
|
+
- docs/images/jquery-selectbox.png
|
43
83
|
- jquery-selectbox.gemspec
|
44
84
|
- lib/jquery-selectbox.rb
|
85
|
+
- lib/jquery-selectbox/engine.rb
|
45
86
|
- lib/jquery-selectbox/version.rb
|
87
|
+
- test/dummy/.gitignore
|
88
|
+
- test/dummy/app/assets/javascripts/application.js
|
89
|
+
- test/dummy/app/assets/stylesheets/application.css
|
90
|
+
- test/dummy/config.ru
|
91
|
+
- test/dummy/config/application.rb
|
92
|
+
- test/dummy/config/boot.rb
|
93
|
+
- test/dummy/config/environment.rb
|
94
|
+
- test/dummy/config/initializers/secret_token.rb
|
95
|
+
- test/dummy/config/routes.rb
|
96
|
+
- test/jquery_selectbox_test.rb
|
97
|
+
- test/test_helper.rb
|
46
98
|
- vendor/assets/images/jquery-selectbox/select-icons.png
|
47
99
|
- vendor/assets/javascripts/jquery.selectbox.js
|
48
100
|
- vendor/assets/stylesheets/jquery.selectbox.css.erb
|
49
101
|
homepage: https://github.com/subosito/jquery-selectbox
|
50
|
-
licenses:
|
102
|
+
licenses:
|
103
|
+
- MIT
|
104
|
+
metadata: {}
|
51
105
|
post_install_message:
|
52
106
|
rdoc_options: []
|
53
107
|
require_paths:
|
54
108
|
- lib
|
55
109
|
required_ruby_version: !ruby/object:Gem::Requirement
|
56
|
-
none: false
|
57
110
|
requirements:
|
58
|
-
- -
|
111
|
+
- - '>='
|
59
112
|
- !ruby/object:Gem::Version
|
60
113
|
version: '0'
|
61
114
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
-
none: false
|
63
115
|
requirements:
|
64
|
-
- -
|
116
|
+
- - '>='
|
65
117
|
- !ruby/object:Gem::Version
|
66
118
|
version: '0'
|
67
119
|
requirements: []
|
68
120
|
rubyforge_project:
|
69
|
-
rubygems_version:
|
121
|
+
rubygems_version: 2.0.0
|
70
122
|
signing_key:
|
71
|
-
specification_version:
|
123
|
+
specification_version: 4
|
72
124
|
summary: jQuery Selectbox plugin. Custom select box replacement inspired by jQuery
|
73
125
|
UI source. Require jQuery 1.4.x or higher
|
74
|
-
test_files:
|
75
|
-
|
126
|
+
test_files:
|
127
|
+
- test/dummy/.gitignore
|
128
|
+
- test/dummy/app/assets/javascripts/application.js
|
129
|
+
- test/dummy/app/assets/stylesheets/application.css
|
130
|
+
- test/dummy/config.ru
|
131
|
+
- test/dummy/config/application.rb
|
132
|
+
- test/dummy/config/boot.rb
|
133
|
+
- test/dummy/config/environment.rb
|
134
|
+
- test/dummy/config/initializers/secret_token.rb
|
135
|
+
- test/dummy/config/routes.rb
|
136
|
+
- test/jquery_selectbox_test.rb
|
137
|
+
- test/test_helper.rb
|
data/LICENSE
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
Copyright (c) 2012 Alif Rachmawadi
|
2
|
-
|
3
|
-
MIT License
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
a copy of this software and associated documentation files (the
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
the following conditions:
|
12
|
-
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
included in all copies or substantial portions of the Software.
|
15
|
-
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|