compass-jquery-plugin 0.3.0.beta.24 → 0.3.0.beta.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (341) hide show
  1. data/README.textile +10 -9
  2. data/VERSION.yml +1 -1
  3. data/compass-jquery-plugin.gemspec +292 -288
  4. data/gem_tasks/ical.rake +85 -0
  5. data/gem_tasks/jqtouch.rake +1 -25
  6. data/gem_tasks/jrails.rake +127 -94
  7. data/gem_tasks/jstree.rake +2 -1
  8. data/gem_tasks/mobile.rake +33 -2
  9. data/gem_tasks/rubygems.rake +1 -1
  10. data/gem_tasks/tools.rake +66 -0
  11. data/lib/{compiler.jar → google-compiler-20100917.jar} +0 -0
  12. data/lib/handle_js_files.rb +27 -30
  13. data/lib/jquery/ical.rb +7 -0
  14. data/lib/jquery/{jqical → ical}/calendar.rb +5 -5
  15. data/lib/jquery/{jqical → ical}/event.rb +117 -117
  16. data/lib/jquery/{jqical → ical}/helpers/ui_event_helper.rb +1 -1
  17. data/lib/jquery/tools.rb +2 -0
  18. data/lib/js.jar +0 -0
  19. data/lib/jslint-check.js +36 -0
  20. data/lib/jslint.js +5500 -0
  21. data/templates/dynatree/jquery.dynatree.js +1170 -784
  22. data/templates/dynatree/jquery.dynatree.min.js +77 -67
  23. data/templates/emulators/emulators/blackberry.landscape.scss +1 -0
  24. data/templates/emulators/emulators/blackberry.portrait.scss +2 -2
  25. data/templates/emulators/emulators/blackberry.torch.portrait.png +0 -0
  26. data/templates/emulators/emulators/iphone.landscape.scss +1 -0
  27. data/templates/emulators/emulators/iphone.portrait.png +0 -0
  28. data/templates/emulators/emulators/iphone.portrait.scss +2 -1
  29. data/templates/emulators/emulators/palm.landscape.scss +1 -0
  30. data/templates/emulators/emulators/palm.portrait.scss +3 -2
  31. data/templates/emulators/emulators/palm.pre.portrait.png +0 -0
  32. data/templates/{jqical → ical}/app/views/shared/_ui_event_for.js.haml +0 -0
  33. data/templates/ical/config/initializers/ical.rb +7 -0
  34. data/templates/{jqical/jquery.jqical.js → ical/jquery.ical.js} +0 -0
  35. data/templates/{jqical/jquery.jqical.min.js → ical/jquery.ical.min.js} +0 -0
  36. data/templates/{jqical/jquery/jqical.scss → ical/jquery/ical.scss} +1 -1
  37. data/templates/{jqical/jquery/jqical → ical/jquery/ical}/calendar.png +0 -0
  38. data/templates/{jqical/jquery/jqical → ical/jquery/ical}/clock.png +0 -0
  39. data/templates/ical/manifest.rb +10 -0
  40. data/templates/jqtouch/config/initializers/jqtouch.rb +1 -1
  41. data/templates/jqtouch/manifest.rb +0 -261
  42. data/templates/jrails/config/initializers/jrails.rb +3 -3
  43. data/templates/jrails/{jquery-1.4.3.js → jquery-1.4.4.js} +102 -47
  44. data/templates/jrails/jquery-1.4.4.min.js +152 -0
  45. data/templates/jrails/lib/tasks/haml.rake +55 -0
  46. data/templates/jrails/manifest.rb +4 -2
  47. data/templates/jstree/jquery.jstree.js +148 -64
  48. data/templates/jstree/jquery.jstree.min.js +219 -215
  49. data/templates/mobile/config/initializers/mobile.rb +1 -1
  50. data/templates/jqtouch/jquery/touch/glyphish/Read me first - license.txt b/data/templates/mobile/glyphish/Read me first - → license.txt +0 -0
  51. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/01-refresh.png +0 -0
  52. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/02-redo.png +0 -0
  53. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/03-loopback.png +0 -0
  54. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/04-squiggle.png +0 -0
  55. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/05-shuffle.png +0 -0
  56. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/06-magnifying-glass.png +0 -0
  57. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/07-map-marker.png +0 -0
  58. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/08-chat.png +0 -0
  59. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/09-chat2.png +0 -0
  60. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/10-medical.png +0 -0
  61. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/100-coffee.png +0 -0
  62. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/101-gameplan.png +0 -0
  63. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/102-walk.png +0 -0
  64. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/103-map.png +0 -0
  65. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/104-index-cards.png +0 -0
  66. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/105-piano.png +0 -0
  67. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/106-sliders.png +0 -0
  68. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/107-widescreen.png +0 -0
  69. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/108-badge.png +0 -0
  70. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/109-chicken.png +0 -0
  71. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/11-clock.png +0 -0
  72. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/110-bug.png +0 -0
  73. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/111-user.png +0 -0
  74. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/112-group.png +0 -0
  75. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/113-navigation.png +0 -0
  76. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/114-balloon.png +0 -0
  77. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/115-bow-and-arrow.png +0 -0
  78. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/116-controller.png +0 -0
  79. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/117-todo.png +0 -0
  80. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/118-coathanger.png +0 -0
  81. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/119-piggybank.png +0 -0
  82. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/12-eye.png +0 -0
  83. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/120-headphones.png +0 -0
  84. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/121-lanscape.png +0 -0
  85. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/122-stats.png +0 -0
  86. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/123-id-card.png +0 -0
  87. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/124-bullhorn.png +0 -0
  88. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/125-food.png +0 -0
  89. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/126-moon.png +0 -0
  90. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/127-sock.png +0 -0
  91. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/128-bone.png +0 -0
  92. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/129-golf.png +0 -0
  93. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/13-target.png +0 -0
  94. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/130-dice.png +0 -0
  95. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/14-tag.png +0 -0
  96. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/15-tags.png +0 -0
  97. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/16-line-chart.png +0 -0
  98. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/17-bar-chart.png +0 -0
  99. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/18-envelope.png +0 -0
  100. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/19-gear.png +0 -0
  101. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/20-gear2.png +0 -0
  102. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/21-skull.png +0 -0
  103. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/22-skull-n-crossbones.png +0 -0
  104. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/23-bird.png +0 -0
  105. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/24-gift.png +0 -0
  106. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/25-weather.png +0 -0
  107. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/26-bandaid.png +0 -0
  108. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/27-planet.png +0 -0
  109. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/28-star.png +0 -0
  110. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/29-heart.png +0 -0
  111. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/30-key.png +0 -0
  112. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/31-ipod.png +0 -0
  113. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/32-iphone.png +0 -0
  114. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/33-cabinet.png +0 -0
  115. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/34-coffee.png +0 -0
  116. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/35-shopping-bag.png +0 -0
  117. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/36-toolbox.png +0 -0
  118. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/37-suitcase.png +0 -0
  119. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/38-airplane.png +0 -0
  120. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/39-spraycan.png +0 -0
  121. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/40-inbox.png +0 -0
  122. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/41-picture-frame.png +0 -0
  123. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/42-photos.png +0 -0
  124. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/43-film-roll.png +0 -0
  125. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/44-shoebox.png +0 -0
  126. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/45-movie1.png +0 -0
  127. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/46-movie2.png +0 -0
  128. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/47-fuel.png +0 -0
  129. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/48-fork-and-knife.png +0 -0
  130. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/49-battery.png +0 -0
  131. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/50-beaker.png +0 -0
  132. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/51-outlet.png +0 -0
  133. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/52-pinetree.png +0 -0
  134. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/53-house.png +0 -0
  135. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/54-lock.png +0 -0
  136. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/55-network.png +0 -0
  137. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/56-cloud.png +0 -0
  138. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/57-download.png +0 -0
  139. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/58-bookmark.png +0 -0
  140. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/59-flag.png +0 -0
  141. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/60-signpost.png +0 -0
  142. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/61-brightness.png +0 -0
  143. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/62-contrast.png +0 -0
  144. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/63-runner.png +0 -0
  145. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/64-zap.png +0 -0
  146. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/65-note.png +0 -0
  147. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/66-microphone.png +0 -0
  148. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/67-tshirt.png +0 -0
  149. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/68-paperclip.png +0 -0
  150. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/69-display.png +0 -0
  151. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/70-tv.png +0 -0
  152. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/71-compass.png +0 -0
  153. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/72-pin.png +0 -0
  154. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/73-radar.png +0 -0
  155. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/74-location.png +0 -0
  156. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/75-phone.png +0 -0
  157. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/76-baby.png +0 -0
  158. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/77-ekg.png +0 -0
  159. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/78-stopwatch.png +0 -0
  160. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/79-medical-bag.png +0 -0
  161. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/80-shopping-cart.png +0 -0
  162. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/81-dashboard.png +0 -0
  163. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/82-dogpaw.png +0 -0
  164. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/83-calendar.png +0 -0
  165. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/84-lightbulb.png +0 -0
  166. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/85-trophy.png +0 -0
  167. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/86-camera.png +0 -0
  168. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/87-wineglass.png +0 -0
  169. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/88-beermug.png +0 -0
  170. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/89-dumbbell.png +0 -0
  171. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/90-lifebuoy.png +0 -0
  172. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/91-beaker2.png +0 -0
  173. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/92-testtube.png +0 -0
  174. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/93-thermometer.png +0 -0
  175. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/94-pill.png +0 -0
  176. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/95-equalizer.png +0 -0
  177. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/96-book.png +0 -0
  178. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/97-puzzle.png +0 -0
  179. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/98-palette.png +0 -0
  180. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/99-umbrella.png +0 -0
  181. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/01-refresh.png +0 -0
  182. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/02-redo.png +0 -0
  183. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/03-loopback.png +0 -0
  184. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/04-squiggle.png +0 -0
  185. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/05-shuffle.png +0 -0
  186. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/06-magnifying-glass.png +0 -0
  187. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/07-map-marker.png +0 -0
  188. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/08-chat.png +0 -0
  189. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/09-chat2.png +0 -0
  190. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/10-medical.png +0 -0
  191. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/100-coffee.png +0 -0
  192. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/101-gameplan.png +0 -0
  193. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/102-walk.png +0 -0
  194. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/103-map.png +0 -0
  195. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/104-index-cards.png +0 -0
  196. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/105-piano.png +0 -0
  197. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/106-sliders.png +0 -0
  198. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/107-widescreen.png +0 -0
  199. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/108-badge.png +0 -0
  200. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/109-chicken.png +0 -0
  201. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/11-clock.png +0 -0
  202. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/110-bug.png +0 -0
  203. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/111-user.png +0 -0
  204. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/112-group.png +0 -0
  205. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/113-navigation.png +0 -0
  206. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/114-balloon.png +0 -0
  207. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/115-bow-and-arrow.png +0 -0
  208. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/116-controller.png +0 -0
  209. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/117-todo.png +0 -0
  210. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/118-coathanger.png +0 -0
  211. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/119-piggybank.png +0 -0
  212. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/12-eye.png +0 -0
  213. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/120-headphones.png +0 -0
  214. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/121-lanscape.png +0 -0
  215. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/122-stats.png +0 -0
  216. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/123-id-card.png +0 -0
  217. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/124-bullhorn.png +0 -0
  218. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/125-food.png +0 -0
  219. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/126-moon.png +0 -0
  220. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/127-sock.png +0 -0
  221. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/128-bone.png +0 -0
  222. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/129-golf.png +0 -0
  223. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/13-target.png +0 -0
  224. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/130-dice.png +0 -0
  225. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/14-tag.png +0 -0
  226. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/15-tags.png +0 -0
  227. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/16-line-chart.png +0 -0
  228. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/17-bar-chart.png +0 -0
  229. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/18-envelope.png +0 -0
  230. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/19-gear.png +0 -0
  231. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/20-gear2.png +0 -0
  232. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/21-skull.png +0 -0
  233. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/22-skull-n-crossbones.png +0 -0
  234. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/23-bird.png +0 -0
  235. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/24-gift.png +0 -0
  236. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/25-weather.png +0 -0
  237. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/26-bandaid.png +0 -0
  238. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/27-planet.png +0 -0
  239. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/28-star.png +0 -0
  240. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/29-heart.png +0 -0
  241. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/30-key.png +0 -0
  242. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/31-ipod.png +0 -0
  243. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/32-iphone.png +0 -0
  244. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/33-cabinet.png +0 -0
  245. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/34-coffee.png +0 -0
  246. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/35-shopping-bag.png +0 -0
  247. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/36-toolbox.png +0 -0
  248. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/37-suitcase.png +0 -0
  249. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/38-airplane.png +0 -0
  250. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/39-spraycan.png +0 -0
  251. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/40-inbox.png +0 -0
  252. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/41-picture-frame.png +0 -0
  253. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/42-photos.png +0 -0
  254. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/43-film-roll.png +0 -0
  255. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/44-shoebox.png +0 -0
  256. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/45-movie1.png +0 -0
  257. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/46-movie2.png +0 -0
  258. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/47-fuel.png +0 -0
  259. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/48-fork-and-knife.png +0 -0
  260. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/49-battery.png +0 -0
  261. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/50-beaker.png +0 -0
  262. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/51-outlet.png +0 -0
  263. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/52-pinetree.png +0 -0
  264. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/53-house.png +0 -0
  265. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/54-lock.png +0 -0
  266. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/55-network.png +0 -0
  267. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/56-cloud.png +0 -0
  268. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/57-download.png +0 -0
  269. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/58-bookmark.png +0 -0
  270. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/59-flag.png +0 -0
  271. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/60-signpost.png +0 -0
  272. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/61-brightness.png +0 -0
  273. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/62-contrast.png +0 -0
  274. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/63-runner.png +0 -0
  275. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/64-zap.png +0 -0
  276. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/65-note.png +0 -0
  277. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/66-microphone.png +0 -0
  278. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/67-tshirt.png +0 -0
  279. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/68-paperclip.png +0 -0
  280. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/69-display.png +0 -0
  281. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/70-tv.png +0 -0
  282. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/71-compass.png +0 -0
  283. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/72-pin.png +0 -0
  284. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/73-radar.png +0 -0
  285. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/74-location.png +0 -0
  286. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/75-phone.png +0 -0
  287. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/76-baby.png +0 -0
  288. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/77-ekg.png +0 -0
  289. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/78-stopwatch.png +0 -0
  290. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/79-medical-bag.png +0 -0
  291. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/80-shopping-cart.png +0 -0
  292. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/81-dashboard.png +0 -0
  293. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/82-dogpaw.png +0 -0
  294. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/83-calendar.png +0 -0
  295. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/84-lightbulb.png +0 -0
  296. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/85-trophy.png +0 -0
  297. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/86-camera.png +0 -0
  298. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/87-wineglass.png +0 -0
  299. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/88-beermug.png +0 -0
  300. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/89-dumbbell.png +0 -0
  301. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/90-lifebuoy.png +0 -0
  302. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/91-beaker2.png +0 -0
  303. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/92-testtube.png +0 -0
  304. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/93-thermometer.png +0 -0
  305. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/94-pill.png +0 -0
  306. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/95-equalizer.png +0 -0
  307. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/96-book.png +0 -0
  308. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/97-puzzle.png +0 -0
  309. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/98-palette.png +0 -0
  310. data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/99-umbrella.png +0 -0
  311. data/templates/mobile/jquery.mobile.js +380 -179
  312. data/templates/mobile/jquery.mobile.min.js +3 -3
  313. data/templates/mobile/jquery/mobile/_base.scss +9 -10
  314. data/templates/mobile/jquery/mobile/default/ajax-loader.png +0 -0
  315. data/templates/mobile/jquery/mobile/default/icons-18-black.png +0 -0
  316. data/templates/mobile/jquery/mobile/default/icons-18-white.png +0 -0
  317. data/templates/mobile/jquery/mobile/default/icons-36-black.png +0 -0
  318. data/templates/mobile/jquery/mobile/default/icons-36-white.png +0 -0
  319. data/templates/mobile/jquery/mobile/valencia/ajax-loader.png +0 -0
  320. data/templates/mobile/jquery/mobile/valencia/icons-18-black.png +0 -0
  321. data/templates/mobile/jquery/mobile/valencia/icons-18-white.png +0 -0
  322. data/templates/mobile/jquery/mobile/valencia/icons-36-black.png +0 -0
  323. data/templates/mobile/jquery/mobile/valencia/icons-36-white.png +0 -0
  324. data/templates/mobile/lib/tasks/jquery.mobile.rake +106 -0
  325. data/templates/mobile/manifest.rb +262 -2
  326. data/templates/{jqtools/config/initializers/jqtools.rb → tools/config/initializers/tools.rb} +2 -2
  327. data/templates/{jqtools → tools}/jquery.tools.js +0 -0
  328. data/templates/{jqtools → tools}/jquery.tools.min.js +0 -0
  329. data/templates/tools/lib/tasks/jquery.tools.rake +43 -0
  330. data/templates/tools/manifest.rb +7 -0
  331. metadata +293 -289
  332. data/gem_tasks/jqical.rake +0 -86
  333. data/gem_tasks/jqtools.rake +0 -60
  334. data/lib/jquery/jqical.rb +0 -7
  335. data/lib/jquery/jqtools.rb +0 -2
  336. data/templates/jqical/config/initializers/jqical.rb +0 -7
  337. data/templates/jqical/manifest.rb +0 -10
  338. data/templates/jqtools/manifest.rb +0 -6
  339. data/templates/jrails/jquery-1.4.3.min.js +0 -152
  340. data/templates/mobile/jquery/mobile/default/ajax-loader.gif +0 -0
  341. data/templates/mobile/jquery/mobile/valencia/ajax-loader.gif +0 -0
@@ -0,0 +1,85 @@
1
+ require 'fileutils'
2
+ require 'lib/handle_js_files'
3
+
4
+ ICAL_SRC = File.join(GEM_ROOT, 'src', 'ical')
5
+ ICAL_SRC_IMAGES = File.join(ICAL_SRC, 'images')
6
+
7
+ ICAL_DEST_TEMPLATES = File.join(GEM_ROOT, 'templates', 'ical')
8
+ ICAL_DEST_STYLESHEETS = File.join(ICAL_DEST_TEMPLATES, 'jquery')
9
+ ICAL_DEST_IMAGES = File.join(ICAL_DEST_STYLESHEETS, 'ical')
10
+ ICAL_DEST_CONFIG = File.join(ICAL_DEST_TEMPLATES, 'config', 'initializers')
11
+ ICAL_DEST_VIEWS = File.join(ICAL_DEST_TEMPLATES, 'app', 'views', 'shared')
12
+
13
+ ICAL_MESSAGE1 = "# Generated by compass-jquery-plugin/gem-tasks/ical.rake\n# Install with: compass install jquery/ical\n\n"
14
+ ICAL_MESSAGE2 = "// Generated by compass-jquery-plugin/gem-tasks/ical.rake\n\n"
15
+
16
+ all_scripts = [
17
+ 'js/anytime.js',
18
+ 'js/anytimetz.js',
19
+ 'js/fullcalendar.js'
20
+ ].collect {|filename| File.read(File.join(ICAL_SRC, filename))}.join "\n\n"
21
+
22
+ all_stylesheets = [
23
+ 'anytime.css',
24
+ 'fullcalendar.css'
25
+ ].collect {|filename| File.read(File.join(ICAL_SRC, 'css', filename))}.join "\n\n"
26
+
27
+ namespace :build do
28
+ desc 'Build the stylesheets and templates for ical.'
29
+ task :ical do
30
+
31
+ FileUtils.remove_dir ICAL_DEST_TEMPLATES if File.exists? ICAL_DEST_TEMPLATES
32
+ FileUtils.mkdir_p(ICAL_DEST_CONFIG)
33
+ FileUtils.mkdir_p(ICAL_DEST_VIEWS)
34
+
35
+ open File.join(ICAL_DEST_TEMPLATES, 'manifest.rb'), 'w' do |manifest|
36
+ manifest.print ICAL_MESSAGE1
37
+
38
+ Dir.foreach File.join(ICAL_SRC, 'app', 'views', 'shared') do |file|
39
+ next unless /\.haml$/ =~ file
40
+ html = File.read File.join(ICAL_SRC, 'app', 'views', 'shared', file)
41
+ open File.join(ICAL_DEST_VIEWS, file), 'w' do |f|
42
+ f.print(html)
43
+ end
44
+ manifest.print "file 'app/views/shared/#{file}'\n"
45
+ end
46
+
47
+ open File.join(ICAL_DEST_CONFIG, 'ical.rb'), 'w' do |f|
48
+ f.print(File.read(File.join(ICAL_SRC, 'config', 'initializers', 'ical.rb')))
49
+ end
50
+ manifest.print "file 'config/initializers/ical.rb'\n"
51
+
52
+ open File.join(ICAL_DEST_TEMPLATES, 'jquery.ical.js'), 'w' do |f|
53
+ f.print concat_files(all_scripts)
54
+ end
55
+ manifest.print "javascript 'jquery.ical.js'\n"
56
+
57
+ open File.join(ICAL_DEST_TEMPLATES, 'jquery.ical.min.js'), 'w' do |f|
58
+ f.print compress_js(all_scripts, "google")
59
+ end
60
+ manifest.print "javascript 'jquery.ical.min.js'\n"
61
+
62
+
63
+ FileUtils.mkdir_p File.join(ICAL_DEST_STYLESHEETS)
64
+ open File.join(ICAL_DEST_STYLESHEETS, 'ical.scss'), 'w' do |f|
65
+ sass = ICAL_MESSAGE2
66
+ IO.popen("sass-convert -F css -T scss", 'r+') { |ff| ff.print(all_stylesheets); ff.close_write; sass += ff.read }
67
+ f.print sass
68
+ end
69
+ manifest.print "stylesheet 'jquery/ical.scss'\n"
70
+
71
+ # Images
72
+
73
+ # Copy the images directory
74
+ FileUtils.mkdir_p File.join(ICAL_DEST_IMAGES)
75
+ src_dir = ICAL_SRC_IMAGES
76
+ dest_dir = ICAL_DEST_IMAGES
77
+
78
+ Dir.foreach(src_dir) do |image|
79
+ next unless /\.png$/ =~ image
80
+ FileUtils.cp(File.join(src_dir, image), dest_dir)
81
+ manifest.print "image 'jquery/ical/#{image}'\n"
82
+ end
83
+ end
84
+ end
85
+ end
@@ -142,31 +142,7 @@ namespace :build do
142
142
  FileUtils.cp(File.join(src_dir, image), dest_dir)
143
143
  manifest.print "image 'jquery/touch/sw/#{image}'\n"
144
144
  end
145
-
146
- # glyphish Images
147
- FileUtils.mkdir_p(File.join(JQTOUCH_DEST_IMAGES, 'glyphish', 'icons'))
148
-
149
- src_dir = File.join(JQTOUCH_SRC_IMAGES, 'glyphish', 'icons')
150
- dest_dir = File.join(JQTOUCH_DEST_IMAGES, 'glyphish', 'icons')
151
- Dir.foreach(src_dir) do |image|
152
- next if /^\./ =~ image
153
- FileUtils.cp(File.join(src_dir, image), dest_dir)
154
- manifest.print "image 'jquery/touch/glyphish/icons/#{image}'\n"
155
- end
156
- FileUtils.mkdir_p(File.join(JQTOUCH_DEST_IMAGES, 'glyphish', 'mini-icons'))
157
- src_dir = File.join(JQTOUCH_SRC_IMAGES, 'glyphish', 'icons')
158
- dest_dir = File.join(JQTOUCH_DEST_IMAGES, 'glyphish', 'mini-icons')
159
- Dir.foreach(src_dir) do |image|
160
- next if /^\./ =~ image
161
- FileUtils.cp(File.join(src_dir, image), dest_dir)
162
- manifest.print "image 'jquery/touch/glyphish/mini-icons/#{image}'\n"
163
- end
164
-
165
- open File.join(JQTOUCH_DEST_IMAGES, 'glyphish', 'Read me first - license.txt'), 'w' do |f|
166
- f.print(File.read(File.join(JQTOUCH_SRC_IMAGES, 'glyphish', 'Read me first - license.txt')))
167
- end
168
- manifest.print "image 'jquery/touch/glyphish/Read me first - license.txt'\n"
169
-
145
+
170
146
  # jQuery jQTouch Themes
171
147
 
172
148
  FileUtils.mkdir_p(JQTOUCH_DEST_THEMES)
@@ -3,82 +3,115 @@ require 'lib/handle_js_files'
3
3
  require 'lib/jquery.ui'
4
4
 
5
5
  # Compass generator for jrails 0.1+
6
- SRC_JRAILS = File.join(GEM_ROOT, 'src', 'jrails', 'jrails.1.4.3')
7
- SRC_JRAILS_SCRIPTS = SRC_JRAILS + "/*.js"
8
- SRC_JQUERY = File.join(GEM_ROOT, 'src', 'jrails', 'jquery.1.4.3')
9
- SRC_JQUERY_SCRIPTS = SRC_JQUERY + "/*.js"
10
- SRC_JQUERY_UI = File.join(GEM_ROOT, 'src', 'jrails', 'jquery.ui.1.8.6')
11
- SRC_JQUERY_UI_SCRIPTS = File.join(SRC_JQUERY_UI, 'js') + "/*.js"
12
- SRC_JQUERY_UI_THEMES = File.join(SRC_JQUERY_UI, 'themes')
13
- SRC_JQUERY_UI_TRANSLATIONS = File.join(SRC_JQUERY_UI, 'js', 'i18n') #+ "/*.js"
14
- SRC_SPARKLINES_SCRIPTS = File.join(GEM_ROOT, 'src', 'jrails', 'sparklines') + "/*.js"
15
- SRC_JHAML_SCRIPTS = File.join(GEM_ROOT, 'src', 'jrails', 'jquery-haml') + "/*.js"
16
- SRC_HAML_JS_SCRIPTS = File.join(GEM_ROOT, 'src', 'jrails', 'haml-js') + "/*.js"
17
- SRC_FLASH = File.join(GEM_ROOT, 'src', 'jrails', 'flash_messages')
18
- SRC_FLASH_JS_SCRIPTS = SRC_FLASH + "/*.js"
19
- SRC_FLASH_IMAGES = File.join(SRC_FLASH, 'images')
6
+ SRC = File.join(GEM_ROOT, 'src', 'jrails')
7
+ JRAILS_SRC = File.join(SRC, 'jrails')
8
+ JRAILS_SRC_SCRIPTS = JRAILS_SRC + "/*.js"
20
9
 
21
- DEST_JRAILS_TEMPLATES = File.join(GEM_ROOT, 'templates', 'jrails')
22
- DEST_JRAILS_TRANSLATIONS = File.join(DEST_JRAILS_TEMPLATES, 'i18n', 'jquery.ui')
23
- DEST_JRAILS_THEMES = File.join(DEST_JRAILS_TEMPLATES, 'jquery', 'ui')
24
- DEST_JRAILS_IMAGES = File.join(DEST_JRAILS_TEMPLATES, 'jquery', 'ui')
25
- DEST_FLASH_STYLESHEETS = File.join(DEST_JRAILS_TEMPLATES, 'partials')
26
- DEST_FLASH_IMAGES = File.join(DEST_JRAILS_IMAGES, 'flash_messages')
10
+ JQUERY_SRC = File.join(SRC, 'jquery')
11
+
12
+ JQUERY_UI_SRC = File.join(SRC, 'jquery.ui')
13
+ JQUERY_UI_SRC_SCRIPTS = File.join(JQUERY_UI_SRC, 'js') + "/*.js"
14
+ JQUERY_UI_SRC_THEMES = File.join(JQUERY_UI_SRC, 'themes')
15
+ JQUERY_UI_SRC_TRANSLATIONS = File.join(JQUERY_UI_SRC, 'js', 'i18n') #+ "/*.js"
16
+
17
+ SPARKLINES_SRC_SCRIPTS = File.join(SRC, 'sparklines') + "/*.js"
18
+
19
+ JHAML_SRC_SCRIPTS = File.join(SRC, 'jquery-haml') + "/*.js"
20
+
21
+ HAML_SRC_JS_SCRIPTS = File.join(SRC, 'haml-js') + "/*.js"
22
+
23
+ FLASH_SRC = File.join(SRC, 'flash_messages')
24
+ FLASH_SRC_JS_SCRIPTS = FLASH_SRC + "/*.js"
25
+ FLASH_SRC_IMAGES = File.join(FLASH_SRC, 'images')
26
+
27
+ JRAILS_DEST_TEMPLATES = File.join(GEM_ROOT, 'templates', 'jrails')
28
+ JRAILS_DEST_SIZZLE = File.join(JRAILS_DEST_TEMPLATES, 'sizzle')
29
+ JRAILS_DEST_TRANSLATIONS = File.join(JRAILS_DEST_TEMPLATES, 'i18n', 'jquery.ui')
30
+ JRAILS_DEST_THEMES = File.join(JRAILS_DEST_TEMPLATES, 'jquery', 'ui')
31
+ JRAILS_DEST_IMAGES = File.join(JRAILS_DEST_TEMPLATES, 'jquery', 'ui')
32
+
33
+ FLASH_DEST_STYLESHEETS = File.join(JRAILS_DEST_TEMPLATES, 'partials')
34
+ FLASH_DEST_IMAGES = File.join(JRAILS_DEST_IMAGES, 'flash_messages')
27
35
 
28
36
  namespace :build do
29
37
  desc 'Build the stylesheets and templates for jRails.'
30
38
  task :jrails do
31
39
 
32
- FileUtils.remove_dir DEST_JRAILS_TEMPLATES if File.exists? DEST_JRAILS_TEMPLATES
33
- FileUtils.mkdir_p(File.join(DEST_JRAILS_TEMPLATES, 'config', 'initializers'))
34
- FileUtils.mkdir_p(File.join(DEST_JRAILS_THEMES))
40
+ FileUtils.remove_dir JRAILS_DEST_TEMPLATES if File.exists? JRAILS_DEST_TEMPLATES
41
+ FileUtils.mkdir_p(File.join(JRAILS_DEST_TEMPLATES, 'config', 'initializers'))
42
+ FileUtils.mkdir_p(File.join(JRAILS_DEST_TEMPLATES, 'lib', 'tasks'))
43
+ FileUtils.mkdir_p(File.join(JRAILS_DEST_THEMES))
35
44
 
36
- open File.join(DEST_JRAILS_TEMPLATES, 'manifest.rb'), 'w' do |manifest|
37
-
45
+ open File.join(JRAILS_DEST_TEMPLATES, 'manifest.rb'), 'w' do |manifest|
46
+
38
47
  # jRails
39
-
40
48
  manifest.print JRAILS_MESSAGE1
41
49
 
42
- open File.join(DEST_JRAILS_TEMPLATES, 'config', 'initializers', 'jrails.rb'), 'w' do |f|
43
- f.print(File.read(File.join(SRC_JRAILS, 'config', 'initializers', 'jrails.rb')))
50
+ open File.join(JRAILS_DEST_TEMPLATES, 'config', 'initializers', 'jrails.rb'), 'w' do |f|
51
+ f.print(File.read(File.join(JRAILS_SRC, 'config', 'initializers', 'jrails.rb')))
44
52
  end
45
53
  manifest.print "file 'config/initializers/jrails.rb'\n"
54
+
55
+ manifest.print "file 'lib/tasks/haml.rake'\n"
56
+ open File.join(JRAILS_DEST_TEMPLATES, 'lib', 'tasks', 'haml.rake'), 'w' do |f|
57
+ f.print(File.read(File.join(SRC, 'lib', 'tasks', 'haml.rake')))
58
+ end
59
+ manifest.print "file 'lib/tasks/haml.rake'\n"
46
60
 
47
- open File.join(DEST_JRAILS_TEMPLATES, 'jrails.js'), 'w' do |f|
48
- f.print concat_files(all_files(SRC_JRAILS_SCRIPTS))
61
+ open File.join(JRAILS_DEST_TEMPLATES, 'jrails.js'), 'w' do |f|
62
+ f.print concat_files(all_files(JRAILS_SRC_SCRIPTS))
49
63
  end
50
64
  manifest.print "javascript 'jrails.js'\n"
51
65
 
52
- open File.join(DEST_JRAILS_TEMPLATES, 'jrails.min.js'), 'w' do |f|
53
- f.print compress_js(all_files(SRC_JRAILS_SCRIPTS), "google")
66
+ open File.join(JRAILS_DEST_TEMPLATES, 'jrails.min.js'), 'w' do |f|
67
+ f.print compress_js(all_files(JRAILS_SRC_SCRIPTS), "google")
54
68
  end
55
69
  manifest.print "javascript 'jrails.min.js'\n"
56
-
70
+
57
71
  # jQuery 1.4
58
-
59
- open File.join(DEST_JRAILS_TEMPLATES, 'jquery-1.4.3.js'), 'w' do |f|
60
- f.print concat_files(all_files(SRC_JQUERY_SCRIPTS))
72
+
73
+ all_jquery_scripts = [
74
+ 'intro.js',
75
+ 'core.js',
76
+ 'support.js',
77
+ 'data.js',
78
+ 'queue.js',
79
+ 'attributes.js',
80
+ 'event.js',
81
+ 'selector.js',
82
+ 'traversing.js',
83
+ 'manipulation.js',
84
+ 'css.js',
85
+ 'ajax.js',
86
+ 'effects.js',
87
+ 'offset.js',
88
+ 'dimensions.js',
89
+ 'outro.js'
90
+ ].collect {|filename| File.read(File.join(JQUERY_SRC, 'js', filename))}.join "\n\n"
91
+
92
+ open File.join(JRAILS_DEST_TEMPLATES, 'jquery-1.4.4.js'), 'w' do |f|
93
+ f.print concat_files(all_jquery_scripts)
61
94
  end
62
- manifest.print "javascript 'jquery-1.4.3.js'\n"
95
+ manifest.print "javascript 'jquery-1.4.4.js'\n"
63
96
 
64
- open File.join(DEST_JRAILS_TEMPLATES, 'jquery-1.4.3.min.js'), 'w' do |f|
65
- f.print compress_js(all_files(SRC_JQUERY_SCRIPTS), "google")
97
+ open File.join(JRAILS_DEST_TEMPLATES, 'jquery-1.4.4.min.js'), 'w' do |f|
98
+ f.print compress_js(all_jquery_scripts, "google")
66
99
  end
67
- manifest.print "javascript 'jquery-1.4.3.min.js'\n"
68
-
100
+ manifest.print "javascript 'jquery-1.4.4.min.js'\n"
101
+
69
102
  # jQuery 1.4 Compat 1.3
70
103
 
71
104
  ['compat-1.3'].each do |path|
72
- Dir.foreach File.join(SRC_JQUERY, path) do |file|
105
+ Dir.foreach File.join(JQUERY_SRC, path) do |file|
73
106
  next unless /\.js$/ =~ file
74
- js = File.read File.join(SRC_JQUERY, path, file)
107
+ js = File.read File.join(JQUERY_SRC, path, file)
75
108
  manifest.print "javascript '#{file}'\n"
76
- open File.join(DEST_JRAILS_TEMPLATES, file), 'w' do |f|
109
+ open File.join(JRAILS_DEST_TEMPLATES, file), 'w' do |f|
77
110
  f.write js
78
111
  end
79
112
  file.gsub!(/\.js$/, '.min.js')
80
113
  manifest.print "javascript '#{file}'\n"
81
- open File.join(DEST_JRAILS_TEMPLATES, file), 'w' do |f|
114
+ open File.join(JRAILS_DEST_TEMPLATES, file), 'w' do |f|
82
115
  f.write compress_js(js, "google")
83
116
  end
84
117
  end
@@ -87,39 +120,39 @@ namespace :build do
87
120
  # jQuery 1.4 Plugins
88
121
 
89
122
  ['plugins'].each do |path|
90
- Dir.foreach File.join(SRC_JQUERY, path) do |file|
123
+ Dir.foreach File.join(JQUERY_SRC, path) do |file|
91
124
 
92
125
  if /\.css$/ =~ file
93
- css = File.read File.join(SRC_JQUERY, path, file)
126
+ css = File.read File.join(JQUERY_SRC, path, file)
94
127
  sass = ''
95
128
  IO.popen("sass-convert -F css -T scss", 'r+') { |f| f.print(css); f.close_write; sass = f.read }
96
129
  file.gsub!(/^jquery\./,'').gsub!(/\.css$/, '.scss')
97
- open File.join(DEST_JRAILS_THEMES, file), 'w' do |f|
130
+ open File.join(JRAILS_DEST_THEMES, file), 'w' do |f|
98
131
  f.write sass
99
132
  end
100
133
  manifest.print "stylesheet 'jquery/ui/#{file}'\n"
101
134
  end
102
135
 
103
136
  next unless /\.js$/ =~ file
104
- js = File.read File.join(SRC_JQUERY, path, file)
137
+ js = File.read File.join(JQUERY_SRC, path, file)
105
138
  manifest.print "javascript '#{file}'\n"
106
- open File.join(DEST_JRAILS_TEMPLATES, file), 'w' do |f|
139
+ open File.join(JRAILS_DEST_TEMPLATES, file), 'w' do |f|
107
140
  f.write js
108
141
  end
109
142
  file.gsub!(/\.js$/, '.min.js')
110
143
  manifest.print "javascript '#{file}'\n"
111
- open File.join(DEST_JRAILS_TEMPLATES, file), 'w' do |f|
144
+ open File.join(JRAILS_DEST_TEMPLATES, file), 'w' do |f|
112
145
  f.write compress_js(js, "google")
113
146
  end
114
147
  end
115
148
  end
116
149
 
117
- Dir.foreach File.join(SRC_JQUERY, 'plugins', 'images') do |plugin|
150
+ Dir.foreach File.join(JQUERY_SRC, 'plugins', 'images') do |plugin|
118
151
  next if /^\./ =~ plugin
119
152
 
120
153
  # Copy the theme images directory
121
- src_dir = File.join(SRC_JQUERY, 'plugins', 'images', plugin)
122
- dest_dir = File.join(DEST_JRAILS_IMAGES, plugin)
154
+ src_dir = File.join(JQUERY_SRC, 'plugins', 'images', plugin)
155
+ dest_dir = File.join(JRAILS_DEST_IMAGES, plugin)
123
156
  FileUtils.mkdir_p dest_dir
124
157
 
125
158
  Dir.foreach(src_dir) do |image|
@@ -133,7 +166,7 @@ namespace :build do
133
166
 
134
167
  # Scripts
135
168
 
136
- all_jquery_ui_scripts = [
169
+ all_jquery_ui_scripts = [
137
170
  'jquery-ui.js',
138
171
  'jquery.effects.blind.js',
139
172
  'jquery.effects.bounce.js',
@@ -168,14 +201,14 @@ namespace :build do
168
201
  'jquery.ui.sortable.js',
169
202
  'jquery.ui.tabs.js',
170
203
  'jquery.ui.widget.js'
171
- ].collect {|filename| File.read(File.join(SRC_JQUERY_UI, 'js', filename))}.join "\n\n"
204
+ ].collect {|filename| File.read(File.join(JQUERY_UI_SRC, 'js', filename))}.join "\n\n"
172
205
 
173
- open File.join(DEST_JRAILS_TEMPLATES, 'jquery-ui-1.8.6.js'), 'w' do |f|
206
+ open File.join(JRAILS_DEST_TEMPLATES, 'jquery-ui-1.8.6.js'), 'w' do |f|
174
207
  f.print concat_files(all_jquery_ui_scripts)
175
208
  end
176
209
  manifest.print "javascript 'jquery-ui-1.8.6.js'\n"
177
210
 
178
- open File.join(DEST_JRAILS_TEMPLATES, 'jquery-ui-1.8.6.min.js'), 'w' do |f|
211
+ open File.join(JRAILS_DEST_TEMPLATES, 'jquery-ui-1.8.6.min.js'), 'w' do |f|
179
212
  f.print compress_js(all_jquery_ui_scripts, "google")
180
213
  end
181
214
  manifest.print "javascript 'jquery-ui-1.8.6.min.js'\n"
@@ -183,19 +216,19 @@ namespace :build do
183
216
  # jQuery UI locales
184
217
 
185
218
  ['i18n'].each do |path|
186
- FileUtils.mkdir_p(DEST_JRAILS_TRANSLATIONS)
187
- Dir.foreach SRC_JQUERY_UI_TRANSLATIONS do |file|
219
+ FileUtils.mkdir_p(JRAILS_DEST_TRANSLATIONS)
220
+ Dir.foreach JQUERY_UI_SRC_TRANSLATIONS do |file|
188
221
  next unless /^jquery.ui\.datepicker-(.+)\.js$/ =~ file
189
222
  lang = file
190
- js = File.read File.join(SRC_JQUERY_UI_TRANSLATIONS, file)
223
+ js = File.read File.join(JQUERY_UI_SRC_TRANSLATIONS, file)
191
224
  file.gsub!(/^jquery.ui\./,'')
192
225
  manifest.print "javascript '#{File.join(path, 'jquery.ui', file)}'\n"
193
- open File.join(DEST_JRAILS_TRANSLATIONS, file), 'w' do |f|
226
+ open File.join(JRAILS_DEST_TRANSLATIONS, file), 'w' do |f|
194
227
  f.write js
195
228
  end
196
229
  file.gsub!(/\.js$/, '.min.js')
197
230
  manifest.print "javascript '#{File.join(path, 'jquery.ui', file)}'\n"
198
- open File.join(DEST_JRAILS_TRANSLATIONS, file), 'w' do |f|
231
+ open File.join(JRAILS_DEST_TRANSLATIONS, file), 'w' do |f|
199
232
  f.write compress_js(js, "google")
200
233
  end
201
234
  end
@@ -203,8 +236,8 @@ namespace :build do
203
236
 
204
237
  # jQuery UI Themes
205
238
 
206
- ui = JqueryUiTheme.new(File.join(SRC_JQUERY_UI_THEMES, 'base'))
207
- ui.convert_css(File.join(DEST_JRAILS_THEMES, '_partials'))
239
+ ui = JqueryUiTheme.new(File.join(JQUERY_UI_SRC_THEMES, 'base'))
240
+ ui.convert_css(File.join(JRAILS_DEST_THEMES, '_partials'))
208
241
 
209
242
  all_jquery_ui_stylesheets = [
210
243
  '_core.scss',
@@ -221,27 +254,27 @@ namespace :build do
221
254
  '_slider.scss',
222
255
  '_tabs.scss',
223
256
  '_theme.scss'
224
- ].collect {|filename| File.read(File.join(DEST_JRAILS_THEMES, '_partials', filename))}.join "\n\n"
257
+ ].collect {|filename| File.read(File.join(JRAILS_DEST_THEMES, '_partials', filename))}.join "\n\n"
225
258
 
226
- open File.join(DEST_JRAILS_THEMES, '_theme.scss'), 'w' do |f|
259
+ open File.join(JRAILS_DEST_THEMES, '_theme.scss'), 'w' do |f|
227
260
  sass = JRAILS_MESSAGE2
228
261
  f.print(all_jquery_ui_stylesheets)
229
262
  f.print sass
230
- FileUtils.rm_r(File.join(DEST_JRAILS_THEMES, '_partials'))
263
+ FileUtils.rm_r(File.join(JRAILS_DEST_THEMES, '_partials'))
231
264
  end
232
265
 
233
266
  manifest.print "stylesheet 'jquery/ui/_theme.scss'\n"
234
267
 
235
- Dir.foreach SRC_JQUERY_UI_THEMES do |theme|
268
+ Dir.foreach JQUERY_UI_SRC_THEMES do |theme|
236
269
  next if /^\./ =~ theme
237
270
 
238
271
  # Convert the stylesheet
239
272
  manifest.print "stylesheet 'jquery/ui/#{theme}.scss'\n"
240
- ui.convert_theme(theme, File.join(SRC_JQUERY_UI_THEMES, theme), File.join(DEST_JRAILS_THEMES))
273
+ ui.convert_theme(theme, File.join(JQUERY_UI_SRC_THEMES, theme), File.join(JRAILS_DEST_THEMES))
241
274
 
242
275
  # Copy the theme images directory
243
- src_dir = File.join(SRC_JQUERY_UI_THEMES, theme, 'images')
244
- dest_dir = File.join(DEST_JRAILS_IMAGES, theme)
276
+ src_dir = File.join(JQUERY_UI_SRC_THEMES, theme, 'images')
277
+ dest_dir = File.join(JRAILS_DEST_IMAGES, theme)
245
278
  FileUtils.mkdir_p dest_dir
246
279
 
247
280
  Dir.foreach(src_dir) do |image|
@@ -253,63 +286,63 @@ namespace :build do
253
286
 
254
287
  # jQuery Sparklines
255
288
 
256
- open File.join(DEST_JRAILS_TEMPLATES, 'jquery.sparkline.js'), 'w' do |f|
257
- f.print concat_files(all_files(SRC_SPARKLINES_SCRIPTS))
289
+ open File.join(JRAILS_DEST_TEMPLATES, 'jquery.sparkline.js'), 'w' do |f|
290
+ f.print concat_files(all_files(SPARKLINES_SRC_SCRIPTS))
258
291
  end
259
292
  manifest.print "javascript 'jquery.sparkline.js'\n"
260
293
 
261
- open File.join(DEST_JRAILS_TEMPLATES, 'jquery.sparkline.min.js'), 'w' do |f|
262
- f.print compress_js(all_files(SRC_SPARKLINES_SCRIPTS), "google")
294
+ open File.join(JRAILS_DEST_TEMPLATES, 'jquery.sparkline.min.js'), 'w' do |f|
295
+ f.print compress_js(all_files(SPARKLINES_SRC_SCRIPTS), "google")
263
296
  end
264
297
  manifest.print "javascript 'jquery.sparkline.min.js'\n"
265
298
 
266
299
  # jQuery haml
267
300
 
268
- open File.join(DEST_JRAILS_TEMPLATES, 'jquery.haml.js'), 'w' do |f|
269
- f.print concat_files(all_files(SRC_JHAML_SCRIPTS))
301
+ open File.join(JRAILS_DEST_TEMPLATES, 'jquery.haml.js'), 'w' do |f|
302
+ f.print concat_files(all_files(JHAML_SRC_SCRIPTS))
270
303
  end
271
304
  manifest.print "javascript 'jquery.haml.js'\n"
272
305
 
273
- open File.join(DEST_JRAILS_TEMPLATES, 'jquery.haml.min.js'), 'w' do |f|
274
- f.print compress_js(all_files(SRC_JHAML_SCRIPTS), "google")
306
+ open File.join(JRAILS_DEST_TEMPLATES, 'jquery.haml.min.js'), 'w' do |f|
307
+ f.print compress_js(all_files(JHAML_SRC_SCRIPTS), "google")
275
308
  end
276
309
  manifest.print "javascript 'jquery.haml.min.js'\n"
277
310
 
278
311
  # HAML Js
279
- open File.join(DEST_JRAILS_TEMPLATES, 'haml.js'), 'w' do |f|
280
- f.print concat_files(all_files(SRC_HAML_JS_SCRIPTS))
312
+ open File.join(JRAILS_DEST_TEMPLATES, 'haml.js'), 'w' do |f|
313
+ f.print concat_files(all_files(HAML_SRC_JS_SCRIPTS))
281
314
  end
282
315
  manifest.print "javascript 'haml.js'\n"
283
316
 
284
- open File.join(DEST_JRAILS_TEMPLATES, 'haml.min.js'), 'w' do |f|
285
- f.print compress_js(all_files(SRC_JHAML_SCRIPTS), "google")
317
+ open File.join(JRAILS_DEST_TEMPLATES, 'haml.min.js'), 'w' do |f|
318
+ f.print compress_js(all_files(JHAML_SRC_SCRIPTS), "google")
286
319
  end
287
320
  manifest.print "javascript 'haml.min.js'\n"
288
321
 
289
322
  #Flash Messages
290
- open File.join(DEST_JRAILS_TEMPLATES, 'jquery.flash_messages.js'), 'w' do |f|
291
- f.print concat_files(all_files(SRC_FLASH_JS_SCRIPTS))
323
+ open File.join(JRAILS_DEST_TEMPLATES, 'jquery.flash_messages.js'), 'w' do |f|
324
+ f.print concat_files(all_files(FLASH_SRC_JS_SCRIPTS))
292
325
  end
293
326
  manifest.print "javascript 'jquery.flash_messages.js'\n"
294
327
 
295
- open File.join(DEST_JRAILS_TEMPLATES, 'jquery.flash_messages.min.js'), 'w' do |f|
296
- f.print compress_js(all_files(SRC_FLASH_JS_SCRIPTS), "google")
328
+ open File.join(JRAILS_DEST_TEMPLATES, 'jquery.flash_messages.min.js'), 'w' do |f|
329
+ f.print compress_js(all_files(FLASH_SRC_JS_SCRIPTS), "google")
297
330
  end
298
331
  manifest.print "javascript 'jquery.flash_messages.min.js'\n"
299
332
 
300
- FileUtils.mkdir_p(File.join(DEST_FLASH_STYLESHEETS))
301
- css = File.read File.join(SRC_FLASH, 'flash_messages.css')
333
+ FileUtils.mkdir_p(File.join(FLASH_DEST_STYLESHEETS))
334
+ css = File.read File.join(FLASH_SRC, 'flash_messages.css')
302
335
  sass = ''
303
336
  IO.popen("sass-convert -F css -T scss", 'r+') { |f| f.print(css); f.close_write; sass = f.read }
304
- open File.join(DEST_FLASH_STYLESHEETS, '_flash_messages.scss'), 'w' do |f|
337
+ open File.join(FLASH_DEST_STYLESHEETS, '_flash_messages.scss'), 'w' do |f|
305
338
  f.write sass
306
339
  end
307
340
  manifest.print "stylesheet 'partials/_flash_messages.scss'\n"
308
341
 
309
342
  # Copy the images directory
310
- FileUtils.mkdir_p File.join(DEST_FLASH_IMAGES)
311
- src_dir = SRC_FLASH_IMAGES
312
- dest_dir = DEST_FLASH_IMAGES
343
+ FileUtils.mkdir_p File.join(FLASH_DEST_IMAGES)
344
+ src_dir = FLASH_SRC_IMAGES
345
+ dest_dir = FLASH_DEST_IMAGES
313
346
 
314
347
  Dir.foreach(src_dir) do |image|
315
348
  next unless /\.png$/ =~ image