jquery-ui-rails 3.0.0 → 3.0.1

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,5 +1,9 @@
1
1
  # master
2
2
 
3
+ # 3.0.1
4
+
5
+ * Fix stylesheet dependencies
6
+
3
7
  # 3.0.0
4
8
 
5
9
  * Upgrade to jQuery UI 1.9.2
data/README.md CHANGED
@@ -97,11 +97,14 @@ their matching CSS files in your application.css as well.
97
97
  //= require jquery.ui.accordion
98
98
  //= require jquery.ui.autocomplete
99
99
  //= require jquery.ui.button
100
+ //= require jquery.ui.datepicker
100
101
  //= require jquery.ui.dialog
102
+ //= require jquery.ui.menu
103
+ //= require jquery.ui.progressbar
101
104
  //= require jquery.ui.slider
105
+ //= require jquery.ui.spinner
102
106
  //= require jquery.ui.tabs
103
- //= require jquery.ui.datepicker
104
- //= require jquery.ui.progressbar
107
+ //= require jquery.ui.tooltip
105
108
  ```
106
109
 
107
110
  For all of these, remember to `require` their matching CSS files in your
@@ -174,11 +177,14 @@ pulled in as dependencies.
174
177
  *= require jquery.ui.accordion
175
178
  *= require jquery.ui.autocomplete
176
179
  *= require jquery.ui.button
180
+ *= require jquery.ui.datepicker
177
181
  *= require jquery.ui.dialog
182
+ *= require jquery.ui.menu
183
+ *= require jquery.ui.progressbar
178
184
  *= require jquery.ui.slider
185
+ *= require jquery.ui.spinner
179
186
  *= require jquery.ui.tabs
180
- *= require jquery.ui.datepicker
181
- *= require jquery.ui.progressbar
187
+ *= require jquery.ui.tooltip
182
188
  */
183
189
  ```
184
190
 
@@ -189,10 +195,7 @@ pulled in as dependencies.
189
195
  For bugs in jQuery UI itself, head to the [jQuery UI Development
190
196
  Center](http://jqueryui.com/development).
191
197
 
192
- For bugs in this gem distribution, use the GitHub issue tracker. In particular,
193
- the asset dependencies between files are set up by this gem, not by the jQuery
194
- UI upstream. If you find that a JavaScript or CSS file does not pull in its
195
- dependencies correctly, please open an issue!
198
+ For bugs in this gem distribution, use the GitHub issue tracker.
196
199
 
197
200
  ### Setup
198
201
 
data/Rakefile CHANGED
@@ -144,19 +144,26 @@ task :stylesheets => :submodule do
144
144
  target_dir = "vendor/assets/stylesheets"
145
145
  mkdir_p target_dir
146
146
  Rake.rake_output_message 'Generating stylesheets'
147
- Dir.glob("jquery-ui/themes/base/*.css").each do |path|
147
+
148
+ css_dir = "jquery-ui/themes/base"
149
+ Dir.glob("#{css_dir}/*.css").each do |path|
148
150
  basename = File.basename(path)
149
151
  source_code = File.read(path)
150
152
  source_code.gsub!('@VERSION', version)
151
153
  protect_copyright_notice(source_code)
152
154
  extra_dependencies = []
153
- extra_dependencies << 'jquery.ui.core' unless basename =~ /\.(all|base|core)\./
154
155
  # Is "theme" listed among the dependencies for the matching JS file?
155
- unless basename =~ /\.(all|base|core|theme)\./
156
+ unless basename =~ /\.(all|base|core)\./
156
157
  dependencies = DEPENDENCY_HASH[basename.sub(/\.css/, '.js')]
157
158
  if dependencies.nil?
158
159
  puts "Warning: No matching JavaScript dependencies found for #{basename}"
160
+ extra_dependencies << 'jquery.ui.core'
159
161
  else
162
+ dependencies.each do |dependency|
163
+ dependency = dependency.sub(/\.js$/, '')
164
+ dependent_stylesheet = "#{dependency}.css"
165
+ extra_dependencies << dependency if File.exists?("#{css_dir}/#{dependent_stylesheet}")
166
+ end
160
167
  extra_dependencies << 'jquery.ui.theme'
161
168
  end
162
169
  end
@@ -1,7 +1,7 @@
1
1
  module Jquery
2
2
  module Ui
3
3
  module Rails
4
- VERSION = "3.0.0"
4
+ VERSION = "3.0.1"
5
5
  end
6
6
  end
7
7
  end
@@ -10,6 +10,7 @@
10
10
  */
11
11
  /*
12
12
  *= require jquery.ui.core
13
+ *= require jquery.ui.menu
13
14
  *= require jquery.ui.theme
14
15
  */
15
16
  .ui-autocomplete {
@@ -10,6 +10,8 @@
10
10
  */
11
11
  /*
12
12
  *= require jquery.ui.core
13
+ *= require jquery.ui.button
14
+ *= require jquery.ui.resizable
13
15
  *= require jquery.ui.theme
14
16
  */
15
17
  .ui-dialog { position: absolute; top: 0; left: 0; padding: .2em; width: 300px; overflow: hidden; }
@@ -10,6 +10,7 @@
10
10
  */
11
11
  /*
12
12
  *= require jquery.ui.core
13
+ *= require jquery.ui.button
13
14
  *= require jquery.ui.theme
14
15
  */
15
16
  .ui-spinner { position:relative; display: inline-block; overflow: hidden; padding: 0; vertical-align: middle; }
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: 3.0.0
4
+ version: 3.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-26 00:00:00.000000000 Z
12
+ date: 2013-01-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -227,7 +227,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
227
227
  version: '0'
228
228
  segments:
229
229
  - 0
230
- hash: -400176606909680263
230
+ hash: 393996521315772752
231
231
  required_rubygems_version: !ruby/object:Gem::Requirement
232
232
  none: false
233
233
  requirements: