jquery-ui-rails 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of jquery-ui-rails might be problematic. Click here for more details.
- data/History.md +4 -0
- data/README.md +5 -3
- data/Rakefile +20 -10
- data/jquery-ui/MIT-LICENSE.txt +1 -1
- data/jquery-ui/version.txt +1 -1
- data/lib/jquery/ui/rails/version.rb +1 -1
- metadata +9 -8
data/History.md
CHANGED
data/README.md
CHANGED
@@ -199,9 +199,11 @@ Most of the code lives in the `Rakefile`. Pull requests are more than welcome!
|
|
199
199
|
|
200
200
|
### Hacking jQuery UI
|
201
201
|
|
202
|
-
The jquery-ui-rails repository
|
203
|
-
[
|
204
|
-
|
202
|
+
The jquery-ui-rails repository is
|
203
|
+
[contributor-friendly](http://www.solitr.com/blog/2012/04/contributor-friendly-gems/)
|
204
|
+
and has a git submodule containing the official [jquery-ui
|
205
|
+
repo](https://github.com/jquery/jquery-ui). This way it's easy to hack the
|
206
|
+
jQuery UI code:
|
205
207
|
|
206
208
|
```bash
|
207
209
|
cd jquery-ui
|
data/Rakefile
CHANGED
@@ -2,9 +2,16 @@ require 'rubygems'
|
|
2
2
|
require 'execjs'
|
3
3
|
|
4
4
|
DEPENDENCY_HASH = ExecJS.eval(File.read('dependencies.js'))
|
5
|
-
VERSION = File.read("jquery-ui/version.txt").strip
|
6
5
|
LANGUAGE_REGEX = /-[-a-zA-Z]+(?=\.js\z)/
|
7
6
|
|
7
|
+
def version
|
8
|
+
File.read("jquery-ui/version.txt").strip
|
9
|
+
end
|
10
|
+
|
11
|
+
task :submodule do
|
12
|
+
sh 'git submodule update --init' unless File.exist?('jquery-ui/README.md')
|
13
|
+
end
|
14
|
+
|
8
15
|
def get_js_dependencies(basename)
|
9
16
|
if basename.match LANGUAGE_REGEX
|
10
17
|
# Depend on main module for i18n files
|
@@ -35,13 +42,14 @@ end
|
|
35
42
|
|
36
43
|
desc "Remove the vendor directory"
|
37
44
|
task :clean do
|
38
|
-
|
45
|
+
rm_rf 'vendor'
|
39
46
|
end
|
40
47
|
|
41
48
|
desc "Generate the JavaScript assets"
|
42
|
-
task :javascripts do
|
49
|
+
task :javascripts => :submodule do
|
43
50
|
target_dir = "vendor/assets/javascripts"
|
44
|
-
|
51
|
+
mkdir_p target_dir
|
52
|
+
Rake.rake_output_message 'Generating javascripts'
|
45
53
|
Dir.glob("jquery-ui/ui/**/*.js").each do |path|
|
46
54
|
basename = File.basename(path)
|
47
55
|
dep_modules = get_js_dependencies(basename).map { |dep| dep.sub(/\.js\z/, '') }
|
@@ -52,7 +60,7 @@ task :javascripts do
|
|
52
60
|
end
|
53
61
|
out.write("\n") unless dep_modules.empty?
|
54
62
|
source_code = File.read(path)
|
55
|
-
source_code.gsub!('@VERSION',
|
63
|
+
source_code.gsub!('@VERSION', version)
|
56
64
|
protect_copyright_notice(source_code)
|
57
65
|
out.write(source_code)
|
58
66
|
end
|
@@ -65,13 +73,14 @@ task :javascripts do
|
|
65
73
|
end
|
66
74
|
|
67
75
|
desc "Generate the CSS assets"
|
68
|
-
task :stylesheets do
|
76
|
+
task :stylesheets => :submodule do
|
69
77
|
target_dir = "vendor/assets/stylesheets"
|
70
|
-
|
78
|
+
mkdir_p target_dir
|
79
|
+
Rake.rake_output_message 'Generating stylesheets'
|
71
80
|
Dir.glob("jquery-ui/themes/base/*.css").each do |path|
|
72
81
|
basename = File.basename(path)
|
73
82
|
source_code = File.read(path)
|
74
|
-
source_code.gsub!('@VERSION',
|
83
|
+
source_code.gsub!('@VERSION', version)
|
75
84
|
protect_copyright_notice(source_code)
|
76
85
|
extra_dependencies = []
|
77
86
|
extra_dependencies << 'jquery.ui.core' unless basename =~ /\.(all|base|core)\./
|
@@ -105,9 +114,10 @@ task :stylesheets do
|
|
105
114
|
end
|
106
115
|
|
107
116
|
desc "Generate the image assets"
|
108
|
-
task :images do
|
117
|
+
task :images => :submodule do
|
109
118
|
target_dir = "vendor/assets/images/jquery-ui"
|
110
|
-
|
119
|
+
mkdir_p target_dir
|
120
|
+
Rake.rake_output_message 'Copying images'
|
111
121
|
FileUtils.cp(Dir.glob("jquery-ui/themes/base/images/*.png"), target_dir)
|
112
122
|
end
|
113
123
|
|
data/jquery-ui/MIT-LICENSE.txt
CHANGED
data/jquery-ui/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.8.
|
1
|
+
1.8.19pre
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery-ui-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
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-
|
12
|
+
date: 2012-04-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
16
|
-
requirement: &
|
16
|
+
requirement: &11918200 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *11918200
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: jquery-rails
|
27
|
-
requirement: &
|
27
|
+
requirement: &11917560 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *11917560
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: execjs
|
38
|
-
requirement: &
|
38
|
+
requirement: &11934500 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '1.0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *11934500
|
47
47
|
description: jQuery UI's JavaScript, CSS, and image files packaged for the Rails 3.1+
|
48
48
|
asset pipeline
|
49
49
|
email:
|
@@ -145,6 +145,7 @@ files:
|
|
145
145
|
- vendor/assets/javascripts/jquery.ui.datepicker-sl.js
|
146
146
|
- vendor/assets/javascripts/jquery.effects.fade.js
|
147
147
|
- vendor/assets/javascripts/jquery.effects.fold.js
|
148
|
+
- vendor/assets/javascripts/jquery.ui.datepicker-ge.js
|
148
149
|
- vendor/assets/javascripts/jquery.ui.datepicker-ca.js
|
149
150
|
- vendor/assets/javascripts/jquery.ui.datepicker-cy-GB.js
|
150
151
|
- vendor/assets/javascripts/jquery.ui.draggable.js
|