jquery-ui-rails 4.1.0 → 4.1.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 +5 -0
- data/Rakefile +9 -0
- data/VERSIONS.md +1 -0
- data/app/assets/stylesheets/jquery.ui.progressbar.css.erb +5 -0
- data/app/assets/stylesheets/jquery.ui.theme.css.erb +17 -0
- data/lib/jquery/ui/rails/version.rb +1 -1
- metadata +3 -3
data/History.md
CHANGED
data/Rakefile
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
Encoding.default_external = "UTF-8" if defined?(Encoding)
|
1
2
|
require 'json'
|
2
3
|
require 'bundler/gem_tasks'
|
3
4
|
|
@@ -87,6 +88,13 @@ def protect_copyright_notice(source_code)
|
|
87
88
|
source_code.gsub!(/\A\s*\/\*\r?\n/, "/*!\n")
|
88
89
|
end
|
89
90
|
|
91
|
+
def build_image_dependencies(source_code)
|
92
|
+
image_dependencies = Set.new source_code.scan(/url\("?images\/([-_.a-zA-Z0-9]+)"?\)/).map(&:first)
|
93
|
+
code = image_dependencies.inject("") do |acc, img|
|
94
|
+
acc += " *= depend_on_asset \"jquery-ui/#{img}\"\n"
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
90
98
|
desc "Remove the app directory"
|
91
99
|
task :clean do
|
92
100
|
rm_rf 'app'
|
@@ -181,6 +189,7 @@ task :stylesheets => :submodule do
|
|
181
189
|
}
|
182
190
|
# Be cute: collapse multiple require comment blocks into one
|
183
191
|
source_code.gsub!(/^( \*= require .*)\n \*\/(\n+)\/\*\n(?= \*= require )/, '\1\2')
|
192
|
+
source_code.gsub!(/\A(\/\*!.+?\*\/\s)/m, "\\1\n/*\n#{build_image_dependencies(source_code)} */\n\n") unless build_image_dependencies(source_code).empty?
|
184
193
|
# Replace hard-coded image URLs with asset path helpers
|
185
194
|
source_code.gsub!(/url\("?images\/([-_.a-zA-Z0-9]+)"?\)/, 'url(<%= image_path("jquery-ui/\1") %>)')
|
186
195
|
File.open("#{target_dir}/#{basename}.erb", "w") do |out|
|
data/VERSIONS.md
CHANGED
@@ -10,6 +10,23 @@
|
|
10
10
|
*
|
11
11
|
* To view and modify this theme, visit http://jqueryui.com/themeroller/
|
12
12
|
*/
|
13
|
+
|
14
|
+
/*
|
15
|
+
*= depend_on_asset "jquery-ui/ui-bg_flat_75_ffffff_40x100.png"
|
16
|
+
*= depend_on_asset "jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png"
|
17
|
+
*= depend_on_asset "jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png"
|
18
|
+
*= depend_on_asset "jquery-ui/ui-bg_glass_75_dadada_1x400.png"
|
19
|
+
*= depend_on_asset "jquery-ui/ui-bg_glass_65_ffffff_1x400.png"
|
20
|
+
*= depend_on_asset "jquery-ui/ui-bg_glass_55_fbf9ee_1x400.png"
|
21
|
+
*= depend_on_asset "jquery-ui/ui-bg_glass_95_fef1ec_1x400.png"
|
22
|
+
*= depend_on_asset "jquery-ui/ui-icons_222222_256x240.png"
|
23
|
+
*= depend_on_asset "jquery-ui/ui-icons_888888_256x240.png"
|
24
|
+
*= depend_on_asset "jquery-ui/ui-icons_454545_256x240.png"
|
25
|
+
*= depend_on_asset "jquery-ui/ui-icons_2e83ff_256x240.png"
|
26
|
+
*= depend_on_asset "jquery-ui/ui-icons_cd0a0a_256x240.png"
|
27
|
+
*= depend_on_asset "jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png"
|
28
|
+
*/
|
29
|
+
|
13
30
|
/*
|
14
31
|
*= require jquery.ui.core
|
15
32
|
*/
|
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: 4.1.
|
4
|
+
version: 4.1.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: 2013-
|
12
|
+
date: 2013-12-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
@@ -219,7 +219,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
219
219
|
version: '0'
|
220
220
|
segments:
|
221
221
|
- 0
|
222
|
-
hash:
|
222
|
+
hash: -786868778311295094
|
223
223
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
224
224
|
none: false
|
225
225
|
requirements:
|