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 CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.3.0
2
+
3
+ * Upgrade to jQuery UI 1.8.19
4
+
1
5
  # 0.2.2
2
6
 
3
7
  * Protect copyright notices against minification with `/*! ... */`
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 has a git submodule containing the official
203
- [jquery-ui repo](https://github.com/jquery/jquery-ui). This way it's easy to
204
- hack the jQuery UI code:
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
- FileUtils.rm_rf 'vendor'
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
- FileUtils.mkdir_p target_dir
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', 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
- FileUtils.mkdir_p target_dir
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', 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
- FileUtils.mkdir_p target_dir
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
 
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011 Paul Bakaus, http://jqueryui.com/
1
+ Copyright (c) 2012 Paul Bakaus, http://jqueryui.com/
2
2
 
3
3
  This software consists of voluntary contributions made by many
4
4
  individuals (AUTHORS.txt, http://jqueryui.com/about) For exact
@@ -1 +1 @@
1
- 1.8.18
1
+ 1.8.19pre
@@ -1,7 +1,7 @@
1
1
  module Jquery
2
2
  module Ui
3
3
  module Rails
4
- VERSION = "0.2.2"
4
+ VERSION = "0.3.0"
5
5
  end
6
6
  end
7
7
  end
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.2.2
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-02-27 00:00:00.000000000 Z
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: &9365400 !ruby/object:Gem::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: *9365400
24
+ version_requirements: *11918200
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: jquery-rails
27
- requirement: &9365020 !ruby/object:Gem::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: *9365020
35
+ version_requirements: *11917560
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: execjs
38
- requirement: &9364220 !ruby/object:Gem::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: *9364220
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