compass-jquery-plugin 0.2.4.5 → 0.2.4.99

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.
Files changed (65) hide show
  1. data/README.textile +36 -4
  2. data/VERSION.yml +1 -1
  3. data/compass-jquery-plugin.gemspec +49 -3
  4. data/gem_tasks/calendar.rake +2 -2
  5. data/gem_tasks/dynatree.rake +2 -2
  6. data/gem_tasks/jqgrid.rake +2 -2
  7. data/gem_tasks/jqtouch.rake +114 -0
  8. data/gem_tasks/jrails.rake +20 -4
  9. data/gem_tasks/rubygems.rake +4 -1
  10. data/gem_tasks/secret_sauce.rake +2 -2
  11. data/lib/jquery/jqgrid/jqgrid.rb +435 -0
  12. data/lib/jquery/jqgrid/jqgrid2xml.rb +50 -0
  13. data/lib/jquery/jqgrid.rb +3 -419
  14. data/lib/jquery/jqtouch.rb +4 -0
  15. data/templates/dynatree/jquery.ui/dynatree.vista/folder.png +0 -0
  16. data/templates/dynatree/manifest.rb +0 -1
  17. data/templates/jqtouch/config/initializers/jqtouch.rb +3 -0
  18. data/templates/jqtouch/jqtouch/apple/backButton.png +0 -0
  19. data/templates/jqtouch/jqtouch/apple/blueButton.png +0 -0
  20. data/templates/jqtouch/jqtouch/apple/cancel.png +0 -0
  21. data/templates/jqtouch/jqtouch/apple/chevron.png +0 -0
  22. data/templates/jqtouch/jqtouch/apple/grayButton.png +0 -0
  23. data/templates/jqtouch/jqtouch/apple/listArrowSel.png +0 -0
  24. data/templates/jqtouch/jqtouch/apple/listGroup.png +0 -0
  25. data/templates/jqtouch/jqtouch/apple/loading.gif +0 -0
  26. data/templates/jqtouch/jqtouch/apple/on_off.png +0 -0
  27. data/templates/jqtouch/jqtouch/apple/pinstripes.png +0 -0
  28. data/templates/jqtouch/jqtouch/apple/selection.png +0 -0
  29. data/templates/jqtouch/jqtouch/apple/thumb.png +0 -0
  30. data/templates/jqtouch/jqtouch/apple/toggle.png +0 -0
  31. data/templates/jqtouch/jqtouch/apple/toggleOn.png +0 -0
  32. data/templates/jqtouch/jqtouch/apple/toolButton.png +0 -0
  33. data/templates/jqtouch/jqtouch/apple/toolbar.png +0 -0
  34. data/templates/jqtouch/jqtouch/apple/whiteButton.png +0 -0
  35. data/templates/jqtouch/jqtouch/apple.sass +651 -0
  36. data/templates/jqtouch/jqtouch/icons/iphone_16x16.png +0 -0
  37. data/templates/jqtouch/jqtouch/iphone-emulator.sass +17 -0
  38. data/templates/jqtouch/jqtouch/iphone_fullsize.png +0 -0
  39. data/templates/jqtouch/jqtouch/jqt/back_button.png +0 -0
  40. data/templates/jqtouch/jqtouch/jqt/back_button_clicked.png +0 -0
  41. data/templates/jqtouch/jqtouch/jqt/button.png +0 -0
  42. data/templates/jqtouch/jqtouch/jqt/button_clicked.png +0 -0
  43. data/templates/jqtouch/jqtouch/jqt/chevron.png +0 -0
  44. data/templates/jqtouch/jqtouch/jqt/chevron_circle.png +0 -0
  45. data/templates/jqtouch/jqtouch/jqt/grayButton.png +0 -0
  46. data/templates/jqtouch/jqtouch/jqt/loading.gif +0 -0
  47. data/templates/jqtouch/jqtouch/jqt/on_off.png +0 -0
  48. data/templates/jqtouch/jqtouch/jqt/rowhead.png +0 -0
  49. data/templates/jqtouch/jqtouch/jqt/toggle.png +0 -0
  50. data/templates/jqtouch/jqtouch/jqt/toggleOn.png +0 -0
  51. data/templates/jqtouch/jqtouch/jqt/toolbar.png +0 -0
  52. data/templates/jqtouch/jqtouch/jqt/whiteButton.png +0 -0
  53. data/templates/jqtouch/jqtouch/jqt.sass +580 -0
  54. data/templates/jqtouch/jqtouch/jqtouch.sass +75 -0
  55. data/templates/jqtouch/jquery.jqtouch.js +1007 -0
  56. data/templates/jqtouch/jquery.jqtouch.min.js +1 -0
  57. data/templates/jqtouch/manifest.rb +43 -0
  58. data/templates/jrails/config/initializers/jrails.rb +2 -0
  59. data/templates/jrails/jquery.compat-1.3.js +288 -0
  60. data/templates/jrails/jquery.compat-1.3.min.js +1 -0
  61. data/templates/jrails/jquery.js +4483 -2570
  62. data/templates/jrails/jquery.min.js +12 -8
  63. data/templates/jrails/manifest.rb +2 -0
  64. metadata +49 -3
  65. data/templates/dynatree/jquery.ui/dynatree.vista/folder_open.png +0 -0
data/README.textile CHANGED
@@ -9,9 +9,10 @@ h2. Description
9
9
 
10
10
  A Sass-based Meta-Framework for Compass that allows you to mix and match any of the following:
11
11
 
12
- * jRails with jQuery and jQuery.UI including themes
12
+ * jRails with jQuery 1.4 and jQuery.UI 1.7.2 including themes
13
13
  * jqGrid V3.6.1
14
14
  * dynatree V0.5.1
15
+ * jQTouch V1.0b2
15
16
 
16
17
  This library requires <b>"Compass":http://wiki.github.com/chriseppstein/compass</b>.
17
18
 
@@ -25,13 +26,21 @@ You will find all the stylesheets in easy-to-read Sass format at:
25
26
 
26
27
  <pre>stylesheets/jquery.ui</pre>
27
28
 
28
- To use the localized stylesheets and javacripts include:
29
+ To use the localized stylesheets and javacripts for jQuery 1.4 include:
29
30
 
30
31
  <pre>
31
- = stylesheet_link_tag 'compiled/jquery.ui/[theme].css', :media => 'screen, projection'
32
+ = stylesheet_link_tag 'compiled/jquery.ui/[theme].css', :media => 'screen, projection'
32
33
  = javascript_include_tag :defaults
33
34
  = jrails_javascripts I18n.locale</pre>
34
35
 
36
+ If jQuery 1.3 compatibility is needed include:
37
+
38
+ <pre>
39
+ = stylesheet_link_tag 'compiled/jquery.ui/[theme].css', :media => 'screen, projection'
40
+ = javascript_include_tag :defaults_compat
41
+ = jrails_javascripts I18n.locale</pre>
42
+
43
+
35
44
  into your layouts.
36
45
 
37
46
  h3. jQuery Dynatree Plugin
@@ -48,7 +57,7 @@ To use the localized stylesheets and javacripts include:
48
57
 
49
58
  <pre>
50
59
  = stylesheet_link_tag 'compiled/jquery.ui/dynatree.[skin].css', :media => 'screen, projection'
51
- = javascript_include_tag 'jquery.dynatree.min'</pre>
60
+ = javascript_include_tag :dynatree</pre>
52
61
 
53
62
  h3. jqGrid
54
63
 
@@ -100,6 +109,28 @@ To use the (localized) stylesheets and javacripts include:
100
109
  = stylesheet_link_tag 'compiled/jquery.ui/calendar.css', :media => 'screen, projection'
101
110
  = javascript_include_tag :calendar</pre>
102
111
 
112
+ h3. jQTouch
113
+
114
+ Use compass to install the JQTouch javascript library into your project.
115
+
116
+ <pre>compass -r jquery -f jquery -p jqtouch <project name></pre>
117
+
118
+ You will find all the stylesheets in easy-to-read Sass format at:
119
+
120
+ <pre>stylesheets/jqtouch</pre>
121
+
122
+ To use the localized stylesheets and javacripts include:
123
+
124
+ <pre>
125
+ = stylesheet_link_tag 'compiled/jqtouch/[theme].css', :media => 'screen, projection'
126
+ = javascript_include_tag :jqtouch'</pre>
127
+
128
+ There is iPhone lookalike stylesheet using an IFrame available for tests without a iPhone. You can include it by
129
+
130
+ <pre>
131
+ = stylesheet_link_tag 'compiled/jqtouch/iphone-emulator.css', :media => 'screen, projection'</pre>
132
+
133
+
103
134
  h2. Thanks to the Contributors:
104
135
 
105
136
  h3. Rails
@@ -120,6 +151,7 @@ h3. jQuery Plugins included
120
151
  * Tony Tomov for <b>"jQuery Grid Plugin":http://www.trirand.com/blog/</b>
121
152
  * Rob Monie for <b>"jQuery.weekCalendar":http://www.redredred.com.au/</b>
122
153
  * Kyle LeNeau for <b>"jMonthCalendar":http://www.bytecyclist.com/projects/jmonthcalendar</b>
154
+ * David Kaneda for <b>"jQTouch":http://www.jqtouch.com/</b>
123
155
 
124
156
  h2. Note on Patches/Pull Requests
125
157
 
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- :commit: 5
2
+ :commit: 99
3
3
  :patch: 4
4
4
  :minor: 2
5
5
  :major: 0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{compass-jquery-plugin}
8
- s.version = "0.2.4.5"
8
+ s.version = "0.2.4.99"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kosmas Schuetz"]
12
- s.date = %q{2009-12-05}
12
+ s.date = %q{2010-01-16}
13
13
  s.description = %q{A compass plugin that integrates jRails, jQuery, jQuery UI and Themes, jqGrid and more into the Compass Sass framework.}
14
14
  s.email = %q{kosmas.schuetz@gmx.com}
15
15
  s.extra_rdoc_files = [
@@ -28,6 +28,7 @@ Gem::Specification.new do |s|
28
28
  "gem_tasks/calendar.rake",
29
29
  "gem_tasks/dynatree.rake",
30
30
  "gem_tasks/jqgrid.rake",
31
+ "gem_tasks/jqtouch.rake",
31
32
  "gem_tasks/jrails.rake",
32
33
  "gem_tasks/rubygems.rake",
33
34
  "gem_tasks/secret_sauce.rake",
@@ -37,6 +38,9 @@ Gem::Specification.new do |s|
37
38
  "lib/jquery/compass_plugin.rb",
38
39
  "lib/jquery/dynatree.rb",
39
40
  "lib/jquery/jqgrid.rb",
41
+ "lib/jquery/jqgrid/jqgrid.rb",
42
+ "lib/jquery/jqgrid/jqgrid2xml.rb",
43
+ "lib/jquery/jqtouch.rb",
40
44
  "lib/jquery/jrails.rb",
41
45
  "lib/jquery/secret_sauce.rb",
42
46
  "lib/jquery/secret_sauce/controller/ui_dialog_controls.rb",
@@ -135,7 +139,6 @@ Gem::Specification.new do |s|
135
139
  "templates/dynatree/jquery.ui/dynatree.vista/folder.png",
136
140
  "templates/dynatree/jquery.ui/dynatree.vista/folder_docs.png",
137
141
  "templates/dynatree/jquery.ui/dynatree.vista/folder_images.png",
138
- "templates/dynatree/jquery.ui/dynatree.vista/folder_open.png",
139
142
  "templates/dynatree/jquery.ui/dynatree.vista/folder_page.png",
140
143
  "templates/dynatree/jquery.ui/dynatree.vista/ltDoc.png",
141
144
  "templates/dynatree/jquery.ui/dynatree.vista/ltError.png",
@@ -239,6 +242,47 @@ Gem::Specification.new do |s|
239
242
  "templates/jqgrid/jquery.ui/jqGrid.sass",
240
243
  "templates/jqgrid/manifest.rb",
241
244
  "templates/jqgrid/public/stylesheets/ellipsis-xbl.xml",
245
+ "templates/jqtouch/config/initializers/jqtouch.rb",
246
+ "templates/jqtouch/jqtouch/apple.sass",
247
+ "templates/jqtouch/jqtouch/apple/backButton.png",
248
+ "templates/jqtouch/jqtouch/apple/blueButton.png",
249
+ "templates/jqtouch/jqtouch/apple/cancel.png",
250
+ "templates/jqtouch/jqtouch/apple/chevron.png",
251
+ "templates/jqtouch/jqtouch/apple/grayButton.png",
252
+ "templates/jqtouch/jqtouch/apple/listArrowSel.png",
253
+ "templates/jqtouch/jqtouch/apple/listGroup.png",
254
+ "templates/jqtouch/jqtouch/apple/loading.gif",
255
+ "templates/jqtouch/jqtouch/apple/on_off.png",
256
+ "templates/jqtouch/jqtouch/apple/pinstripes.png",
257
+ "templates/jqtouch/jqtouch/apple/selection.png",
258
+ "templates/jqtouch/jqtouch/apple/thumb.png",
259
+ "templates/jqtouch/jqtouch/apple/toggle.png",
260
+ "templates/jqtouch/jqtouch/apple/toggleOn.png",
261
+ "templates/jqtouch/jqtouch/apple/toolButton.png",
262
+ "templates/jqtouch/jqtouch/apple/toolbar.png",
263
+ "templates/jqtouch/jqtouch/apple/whiteButton.png",
264
+ "templates/jqtouch/jqtouch/icons/iphone_16x16.png",
265
+ "templates/jqtouch/jqtouch/iphone-emulator.sass",
266
+ "templates/jqtouch/jqtouch/iphone_fullsize.png",
267
+ "templates/jqtouch/jqtouch/jqt.sass",
268
+ "templates/jqtouch/jqtouch/jqt/back_button.png",
269
+ "templates/jqtouch/jqtouch/jqt/back_button_clicked.png",
270
+ "templates/jqtouch/jqtouch/jqt/button.png",
271
+ "templates/jqtouch/jqtouch/jqt/button_clicked.png",
272
+ "templates/jqtouch/jqtouch/jqt/chevron.png",
273
+ "templates/jqtouch/jqtouch/jqt/chevron_circle.png",
274
+ "templates/jqtouch/jqtouch/jqt/grayButton.png",
275
+ "templates/jqtouch/jqtouch/jqt/loading.gif",
276
+ "templates/jqtouch/jqtouch/jqt/on_off.png",
277
+ "templates/jqtouch/jqtouch/jqt/rowhead.png",
278
+ "templates/jqtouch/jqtouch/jqt/toggle.png",
279
+ "templates/jqtouch/jqtouch/jqt/toggleOn.png",
280
+ "templates/jqtouch/jqtouch/jqt/toolbar.png",
281
+ "templates/jqtouch/jqtouch/jqt/whiteButton.png",
282
+ "templates/jqtouch/jqtouch/jqtouch.sass",
283
+ "templates/jqtouch/jquery.jqtouch.js",
284
+ "templates/jqtouch/jquery.jqtouch.min.js",
285
+ "templates/jqtouch/manifest.rb",
242
286
  "templates/jrails/config/initializers/jrails.rb",
243
287
  "templates/jrails/i18n/jquery.ui/datepicker-ar.js",
244
288
  "templates/jrails/i18n/jquery.ui/datepicker-ar.min.js",
@@ -324,6 +368,8 @@ Gem::Specification.new do |s|
324
368
  "templates/jrails/i18n/jquery.ui/datepicker-zh-TW.min.js",
325
369
  "templates/jrails/jquery-ui.js",
326
370
  "templates/jrails/jquery-ui.min.js",
371
+ "templates/jrails/jquery.compat-1.3.js",
372
+ "templates/jrails/jquery.compat-1.3.min.js",
327
373
  "templates/jrails/jquery.js",
328
374
  "templates/jrails/jquery.min.js",
329
375
  "templates/jrails/jquery.pngFix.js",
@@ -21,9 +21,9 @@ all_stylesheets = [
21
21
  'jMonthCalendar.css'
22
22
  ].collect {|filename| File.read(File.join(CALENDAR_SRC, 'css', filename))}.join "\n\n"
23
23
 
24
- namespace :calendar do
24
+ namespace :build do
25
25
  desc 'Build the stylesheets and templates for calendar.'
26
- task :build do
26
+ task :calendar do
27
27
 
28
28
  FileUtils.remove_dir CALENDAR_DEST_TEMPLATES if File.exists? CALENDAR_DEST_TEMPLATES
29
29
  FileUtils.mkdir_p(File.join(CALENDAR_DEST_TEMPLATES, 'config', 'initializers'))
@@ -16,9 +16,9 @@ all_scripts = [
16
16
  'js/jquery.dynatree.js'
17
17
  ].collect {|filename| File.read(File.join(DYNATREE_SRC, filename))}.join "\n\n"
18
18
 
19
- namespace :dynatree do
19
+ namespace :build do
20
20
  desc 'Build the stylesheets and templates for dynatree.'
21
- task :build do
21
+ task :dynatree do
22
22
 
23
23
  FileUtils.remove_dir DYNATREE_DEST_TEMPLATES if File.exists? DYNATREE_DEST_TEMPLATES
24
24
  FileUtils.mkdir_p(File.join(DYNATREE_DEST_TEMPLATES, 'config', 'initializers'))
@@ -45,9 +45,9 @@ all_stylesheets = [
45
45
  'plugins/ui.multiselect.css'
46
46
  ].collect {|filename| File.read(File.join(JQGRID_SRC, filename))}.join "\n\n"
47
47
 
48
- namespace :jqgrid do
48
+ namespace :build do
49
49
  desc 'Build the stylesheets and templates for jqGrid.'
50
- task :build do
50
+ task :jqgrid do
51
51
 
52
52
  FileUtils.remove_dir JQGRID_DEST_TEMPLATES if File.exists? JQGRID_DEST_TEMPLATES
53
53
  FileUtils.mkdir_p(File.join(JQGRID_DEST_TEMPLATES, 'config', 'initializers'))
@@ -0,0 +1,114 @@
1
+ require 'fileutils'
2
+ require 'lib/handle_js_files'
3
+
4
+ # Compass generator for jqtouch 3.5+
5
+ JQTOUCH_SRC = File.join(GEM_ROOT, 'src', 'jqtouch')
6
+ JQTOUCH_SRC_IMAGES = File.join(JQTOUCH_SRC, 'images')
7
+ JQTOUCH_SRC_THEMES = File.join(JQTOUCH_SRC, 'themes')
8
+
9
+ JQTOUCH_DEST_TEMPLATES = File.join(GEM_ROOT, 'templates', 'jqtouch')
10
+ JQTOUCH_DEST_THEMES = File.join(JQTOUCH_DEST_TEMPLATES, 'jqtouch')
11
+ JQTOUCH_DEST_IMAGES = File.join(JQTOUCH_DEST_TEMPLATES, 'jqtouch')
12
+
13
+ JQTOUCH_MESSAGE1 = "# Generated by compass-jquery-plugin/gem-tasks/jqtouch.rake\n# Install with: compass -f jquery -p jqtouch\n\n"
14
+ JQTOUCH_MESSAGE2 = "// Generated by compass-jquery-plugin/gem-tasks/jqtouch.rake\n\n"
15
+
16
+ all_scripts = [
17
+ 'js/jqtouch.js',
18
+ 'js/jqtouch.transitions.js',
19
+ 'js/extensions/jqt.autotitles.js',
20
+ 'js/extensions/jqt.floaty.js',
21
+ 'js/extensions/jqt.location.js',
22
+ 'js/extensions/jqt.offline.js'
23
+ ].collect {|filename| File.read(File.join(JQTOUCH_SRC, filename))}.join "\n\n"
24
+
25
+ namespace :build do
26
+ desc 'Build the stylesheets and templates for jqtouch.'
27
+ task :jqtouch do
28
+
29
+ FileUtils.remove_dir JQTOUCH_DEST_TEMPLATES if File.exists? JQTOUCH_DEST_TEMPLATES
30
+ FileUtils.mkdir_p(File.join(JQTOUCH_DEST_TEMPLATES, 'config', 'initializers'))
31
+
32
+ open File.join(JQTOUCH_DEST_TEMPLATES, 'manifest.rb'), 'w' do |manifest|
33
+ manifest.print JQTOUCH_MESSAGE1
34
+
35
+ open File.join(JQTOUCH_DEST_TEMPLATES, 'config', 'initializers', 'jqtouch.rb'), 'w' do |f|
36
+ f.print(File.read(File.join(JQTOUCH_SRC, 'config', 'initializers', 'jqtouch.rb')))
37
+ end
38
+ manifest.print "file 'config/initializers/jqtouch.rb'\n"
39
+
40
+ #JavaScripts
41
+
42
+ open File.join(JQTOUCH_DEST_TEMPLATES, 'jquery.jqtouch.js'), 'w' do |f|
43
+ f.print concat_files(all_scripts)
44
+ end
45
+ manifest.print "javascript 'jquery.jqtouch.js'\n"
46
+
47
+ open File.join(JQTOUCH_DEST_TEMPLATES, 'jquery.jqtouch.min.js'), 'w' do |f|
48
+ f.print compress_js(all_scripts)
49
+ end
50
+ manifest.print "javascript 'jquery.jqtouch.min.js'\n"
51
+
52
+ # Stylesheets
53
+ FileUtils.mkdir_p JQTOUCH_DEST_THEMES
54
+ Dir.foreach File.join(JQTOUCH_SRC, 'css') do |file|
55
+ next unless /\.css$/ =~ file
56
+ css = File.read File.join(JQTOUCH_SRC, 'css', file)
57
+ sass = ''
58
+ IO.popen("css2sass", 'r+') { |f| f.print(css); f.close_write; sass = f.read }
59
+ open(File.join(JQTOUCH_DEST_THEMES, file.gsub(/\.css$/,'.sass')), 'w') do |f|
60
+ f.write JQTOUCH_MESSAGE2 + sass
61
+ end
62
+ manifest.print "stylesheet 'jqtouch/#{file.gsub(/\.css$/,'.sass')}'\n"
63
+ end
64
+
65
+
66
+ # iPhone Images
67
+ FileUtils.mkdir_p(File.join(JQTOUCH_DEST_IMAGES, 'icons'))
68
+
69
+ FileUtils.cp(File.join(JQTOUCH_SRC, 'images', 'iphone_fullsize.png'), JQTOUCH_DEST_IMAGES)
70
+ manifest.print "image 'jqtouch/iphone_fullsize.png'\n"
71
+
72
+ # iPhone Icons
73
+ src_dir = File.join(JQTOUCH_SRC_IMAGES, 'icons')
74
+ dest_dir = File.join(JQTOUCH_DEST_IMAGES, 'icons')
75
+ Dir.foreach(src_dir) do |image|
76
+ next if /^\./ =~ image
77
+ FileUtils.cp(File.join(src_dir, image), dest_dir)
78
+ manifest.print "image 'jqtouch/icons/#{image}'\n"
79
+ end
80
+
81
+ # jQuery jQTouch Themes
82
+
83
+ FileUtils.mkdir_p(File.join(JQTOUCH_DEST_THEMES))
84
+
85
+ Dir.foreach JQTOUCH_SRC_THEMES do |theme|
86
+ next if /^\./ =~ theme
87
+
88
+ # Convert the stylesheet
89
+
90
+ Dir.foreach File.join(JQTOUCH_SRC_THEMES, "#{theme}") do |file|
91
+ next unless /\.css$/ =~ file
92
+ css = File.read File.join(JQTOUCH_SRC_THEMES, "#{theme}", file)
93
+ sass = ''
94
+ IO.popen("css2sass", 'r+') { |f| f.print(css); f.close_write; sass = f.read }
95
+ open File.join(JQTOUCH_DEST_THEMES, "#{theme}.sass"), 'w' do |f|
96
+ f.write JQTOUCH_MESSAGE2 + sass
97
+ end
98
+ manifest.print "stylesheet 'jqtouch/#{theme}.sass', :media => 'screen, projection'\n"
99
+ end
100
+
101
+ # Copy the theme images directory
102
+ src_dir = File.join(JQTOUCH_SRC_THEMES, theme, 'images')
103
+ dest_dir = File.join(JQTOUCH_DEST_IMAGES, "#{theme}")
104
+ FileUtils.mkdir_p dest_dir
105
+
106
+ Dir.foreach(src_dir) do |image|
107
+ next if /^\./ =~ image
108
+ FileUtils.cp(File.join(src_dir, image), dest_dir)
109
+ manifest.print "image 'jqtouch/#{theme}/#{image}'\n"
110
+ end
111
+ end
112
+ end
113
+ end
114
+ end
@@ -5,7 +5,7 @@ require 'lib/handle_js_files'
5
5
  JRAILS_SRC = File.join(GEM_ROOT, 'src', 'jrails')
6
6
  JRAILS_SRC_SCRIPTS = JRAILS_SRC + "/*.js"
7
7
 
8
- JQUERY_SRC = File.join(GEM_ROOT, 'src', 'jquery-1.3.2')
8
+ JQUERY_SRC = File.join(GEM_ROOT, 'src', 'jquery-1.4')
9
9
  JQUERY_SRC_SCRIPTS = JQUERY_SRC + "/*.js"
10
10
 
11
11
  JQUERY_UI_SRC = File.join(GEM_ROOT, 'src', 'jquery.ui-1.7.2')
@@ -21,9 +21,9 @@ JRAILS_DEST_IMAGES = File.join(JRAILS_DEST_TEMPLATES, 'jquery.ui')
21
21
  JRAILS_MESSAGE1 = "# Generated by compass-jquery-plugin/gem-tasks/jrails.rake\n# Install with: compass -f jquery -p jrails\n\n"
22
22
  JRAILS_MESSAGE2 = "// Generated by compass-jquery-plugin/gem-tasks/jrails.rake\n\n"
23
23
 
24
- namespace :jrails do
24
+ namespace :build do
25
25
  desc 'Build the stylesheets and templates for jRails.'
26
- task :build do
26
+ task :jrails do
27
27
 
28
28
  FileUtils.remove_dir JRAILS_DEST_TEMPLATES if File.exists? JRAILS_DEST_TEMPLATES
29
29
  FileUtils.mkdir_p(File.join(JRAILS_DEST_TEMPLATES, 'config', 'initializers'))
@@ -61,6 +61,20 @@ namespace :jrails do
61
61
  end
62
62
  manifest.print "javascript 'jquery.min.js'\n"
63
63
 
64
+ # jQuery 1.3 compatibility
65
+
66
+ open File.join(JRAILS_DEST_TEMPLATES, 'jquery.compat-1.3.js'), 'w' do |f|
67
+ f.print concat_files(all_files(JQUERY_SRC + "/jquery.compat-1.3.js"))
68
+ end
69
+ manifest.print "javascript 'jquery.compat-1.3.js'\n"
70
+
71
+ open File.join(JRAILS_DEST_TEMPLATES, 'jquery.compat-1.3.min.js'), 'w' do |f|
72
+ f.print compress_js(all_files(JQUERY_SRC + "/jquery.compat-1.3.js"))
73
+ end
74
+ manifest.print "javascript 'jquery.compat-1.3.min.js'\n"
75
+
76
+
77
+
64
78
  # jQuery Plugins
65
79
 
66
80
  ['plugins'].each do |path|
@@ -204,7 +218,9 @@ namespace :jrails do
204
218
  end
205
219
  end
206
220
  end
207
-
221
+ end
222
+
223
+ namespace :jrails do
208
224
  desc 'Remove the prototype / script.aculo.us javascript files'
209
225
  task :scrub_default_js do
210
226
  files = %W[controls.js dragdrop.js effects.js prototype.js]
@@ -1,3 +1,6 @@
1
1
  desc 'Build all stylesheets and templates.'
2
- task :build_all => ["jrails:build", "dynatree:build", "jqgrid:build", "secret_sauce:build", "calendar:build"] do
2
+
3
+ namespace :build do
4
+ task :all => ["build:jrails", "build:dynatree", "build:jqgrid", "build:secret_sauce", "build:calendar", "build:jqtouch"] do
5
+ end
3
6
  end
@@ -13,9 +13,9 @@ SECRET_SAUCE_DEST_VIEWS = File.join(SECRET_SAUCE_DEST_TEMPLATES, 'app', 'v
13
13
  SECRET_SAUCE_MESSAGE1 = "# Generated by compass-jquery-plugin/gem-tasks/secret_sauce.rake\n# Install with: compass -f jquery -p secret_sauce\n\n"
14
14
  SECRET_SAUCE_MESSAGE2 = "// Generated by compass-jquery-pluginy/gem-tasks/secret_sauce.rake\n\n"
15
15
 
16
- namespace :secret_sauce do
16
+ namespace :build do
17
17
  desc 'Build the stylesheets and templates for jqGrid.'
18
- task :build do
18
+ task :secret_sauce do
19
19
 
20
20
  FileUtils.remove_dir SECRET_SAUCE_DEST_TEMPLATES if File.exists? SECRET_SAUCE_DEST_TEMPLATES
21
21
  FileUtils.mkdir_p SECRET_SAUCE_DEST_CONFIG