compass-jquery-plugin 0.3.0.0 → 0.3.1.beta.2

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 (322) hide show
  1. data/README.textile +69 -13
  2. data/Rakefile +1 -1
  3. data/VERSION.yml +2 -2
  4. data/gem_tasks/jqgrid.rake +119 -0
  5. data/gem_tasks/jrails.rake +78 -77
  6. data/gem_tasks/mobile.rake +156 -0
  7. data/gem_tasks/rubygems.rake +5 -1
  8. data/gem_tasks/secret_sauce.rake +64 -0
  9. data/lib/jquery/gridify.rb +42 -0
  10. data/lib/jquery/gridify/assertions.rb +37 -0
  11. data/lib/jquery/gridify/grid.rb +210 -0
  12. data/lib/jquery/gridify/grid_column.rb +134 -0
  13. data/lib/jquery/gridify/grid_finder.rb +223 -0
  14. data/lib/jquery/gridify/grid_options.rb +279 -0
  15. data/lib/jquery/gridify/grid_view.rb +435 -0
  16. data/lib/jquery/jqgrid.rb +5 -0
  17. data/lib/jquery/jqgrid/jqgrid.rb +438 -0
  18. data/lib/jquery/mobile.rb +3 -0
  19. data/lib/jquery/secret_sauce.rb +9 -0
  20. data/lib/jquery/secret_sauce/controller/ui_dialog_controls.rb +14 -0
  21. data/lib/jquery/secret_sauce/controller/ui_grid_controls.rb +18 -0
  22. data/lib/jquery/secret_sauce/helpers/ui_dialog_helper.rb +6 -0
  23. data/lib/jquery/secret_sauce/helpers/ui_form_helper.rb +118 -0
  24. data/lib/jquery/secret_sauce/helpers/ui_grid_helper.rb +226 -0
  25. data/lib/jquery/secret_sauce/model/find_for_grid.rb +42 -0
  26. data/templates/dynatree/jquery.dynatree.js +258 -147
  27. data/templates/dynatree/jquery.dynatree.min.js +81 -79
  28. data/templates/dynatree/jquery/dynatree/aero.scss +35 -18
  29. data/templates/dynatree/jquery/dynatree/aero/drop_sibling_here.png +0 -0
  30. data/templates/dynatree/jquery/dynatree/aqua.scss +36 -19
  31. data/templates/dynatree/jquery/dynatree/aqua/drop_sibling_here.png +0 -0
  32. data/templates/dynatree/jquery/dynatree/crystal.scss +38 -21
  33. data/templates/dynatree/jquery/dynatree/crystal/drop_sibling_here.png +0 -0
  34. data/templates/dynatree/jquery/dynatree/xp.scss +59 -42
  35. data/templates/dynatree/jquery/dynatree/xp/drop_sibling_here.png +0 -0
  36. data/templates/dynatree/manifest.rb +4 -0
  37. data/templates/jqgrid/config/initializers/jqgrid.rb +4 -0
  38. data/templates/jqgrid/config/locales/jquery/jqgrid/de.yml +7 -0
  39. data/templates/jqgrid/config/locales/jquery/jqgrid/en.yml +7 -0
  40. data/templates/jqgrid/i18n/jqgrid/locale-bg.js +132 -0
  41. data/templates/jqgrid/i18n/jqgrid/locale-bg.min.js +6 -0
  42. data/templates/jqgrid/i18n/jqgrid/locale-bg1251.js +132 -0
  43. data/templates/jqgrid/i18n/jqgrid/locale-bg1251.min.js +6 -0
  44. data/templates/jqgrid/i18n/jqgrid/locale-cat.js +128 -0
  45. data/templates/jqgrid/i18n/jqgrid/locale-cat.min.js +6 -0
  46. data/templates/jqgrid/i18n/jqgrid/locale-cn.js +132 -0
  47. data/templates/jqgrid/i18n/jqgrid/locale-cn.min.js +5 -0
  48. data/templates/jqgrid/i18n/jqgrid/locale-cs.js +128 -0
  49. data/templates/jqgrid/i18n/jqgrid/locale-cs.min.js +6 -0
  50. data/templates/jqgrid/i18n/jqgrid/locale-da.js +128 -0
  51. data/templates/jqgrid/i18n/jqgrid/locale-da.min.js +6 -0
  52. data/templates/jqgrid/i18n/jqgrid/locale-de.js +133 -0
  53. data/templates/jqgrid/i18n/jqgrid/locale-de.min.js +7 -0
  54. data/templates/jqgrid/i18n/jqgrid/locale-el.js +126 -0
  55. data/templates/jqgrid/i18n/jqgrid/locale-el.min.js +7 -0
  56. data/templates/jqgrid/i18n/jqgrid/locale-en.js +128 -0
  57. data/templates/jqgrid/i18n/jqgrid/locale-en.min.js +6 -0
  58. data/templates/jqgrid/i18n/jqgrid/locale-es.js +128 -0
  59. data/templates/jqgrid/i18n/jqgrid/locale-es.min.js +7 -0
  60. data/templates/jqgrid/i18n/jqgrid/locale-fa.js +125 -0
  61. data/templates/jqgrid/i18n/jqgrid/locale-fa.min.js +6 -0
  62. data/templates/jqgrid/i18n/jqgrid/locale-fi.js +130 -0
  63. data/templates/jqgrid/i18n/jqgrid/locale-fi.min.js +6 -0
  64. data/templates/jqgrid/i18n/jqgrid/locale-fr.js +126 -0
  65. data/templates/jqgrid/i18n/jqgrid/locale-fr.min.js +7 -0
  66. data/templates/jqgrid/i18n/jqgrid/locale-gl.js +126 -0
  67. data/templates/jqgrid/i18n/jqgrid/locale-gl.min.js +7 -0
  68. data/templates/jqgrid/i18n/jqgrid/locale-he.js +127 -0
  69. data/templates/jqgrid/i18n/jqgrid/locale-he.min.js +6 -0
  70. data/templates/jqgrid/i18n/jqgrid/locale-hu.js +129 -0
  71. data/templates/jqgrid/i18n/jqgrid/locale-hu.min.js +6 -0
  72. data/templates/jqgrid/i18n/jqgrid/locale-is.js +126 -0
  73. data/templates/jqgrid/i18n/jqgrid/locale-is.min.js +6 -0
  74. data/templates/jqgrid/i18n/jqgrid/locale-it.js +1 -0
  75. data/templates/jqgrid/i18n/jqgrid/locale-it.min.js +7 -0
  76. data/templates/jqgrid/i18n/jqgrid/locale-ja.js +155 -0
  77. data/templates/jqgrid/i18n/jqgrid/locale-ja.min.js +5 -0
  78. data/templates/jqgrid/i18n/jqgrid/locale-nl.js +149 -0
  79. data/templates/jqgrid/i18n/jqgrid/locale-nl.min.js +6 -0
  80. data/templates/jqgrid/i18n/jqgrid/locale-no.js +1 -0
  81. data/templates/jqgrid/i18n/jqgrid/locale-no.min.js +6 -0
  82. data/templates/jqgrid/i18n/jqgrid/locale-pl.js +127 -0
  83. data/templates/jqgrid/i18n/jqgrid/locale-pl.min.js +6 -0
  84. data/templates/jqgrid/i18n/jqgrid/locale-pt-br.js +127 -0
  85. data/templates/jqgrid/i18n/jqgrid/locale-pt-br.min.js +6 -0
  86. data/templates/jqgrid/i18n/jqgrid/locale-pt.js +125 -0
  87. data/templates/jqgrid/i18n/jqgrid/locale-pt.min.js +6 -0
  88. data/templates/jqgrid/i18n/jqgrid/locale-ro.js +139 -0
  89. data/templates/jqgrid/i18n/jqgrid/locale-ro.min.js +7 -0
  90. data/templates/jqgrid/i18n/jqgrid/locale-ru.js +127 -0
  91. data/templates/jqgrid/i18n/jqgrid/locale-ru.min.js +7 -0
  92. data/templates/jqgrid/i18n/jqgrid/locale-sk.js +127 -0
  93. data/templates/jqgrid/i18n/jqgrid/locale-sk.min.js +6 -0
  94. data/templates/jqgrid/i18n/jqgrid/locale-sr.js +128 -0
  95. data/templates/jqgrid/i18n/jqgrid/locale-sr.min.js +6 -0
  96. data/templates/jqgrid/i18n/jqgrid/locale-sv.js +127 -0
  97. data/templates/jqgrid/i18n/jqgrid/locale-sv.min.js +6 -0
  98. data/templates/jqgrid/i18n/jqgrid/locale-tr.js +126 -0
  99. data/templates/jqgrid/i18n/jqgrid/locale-tr.min.js +6 -0
  100. data/templates/jqgrid/i18n/jqgrid/locale-ua.js +127 -0
  101. data/templates/jqgrid/i18n/jqgrid/locale-ua.min.js +7 -0
  102. data/templates/jqgrid/jquery.jqGrid.js +11604 -0
  103. data/templates/jqgrid/jquery.jqGrid.min.js +472 -0
  104. data/templates/jqgrid/jquery/jqGrid.scss +692 -0
  105. data/templates/jqgrid/manifest.rb +72 -0
  106. data/templates/jqgrid/public/stylesheets/ellipsis-xbl.xml +13 -0
  107. data/templates/jqtouch/jquery/touch/apple.scss +5 -5
  108. data/templates/jqtouch/jquery/touch/default.scss +5 -5
  109. data/templates/jqtouch/jquery/touch/jqt.scss +5 -5
  110. data/templates/jrails/config/initializers/jrails.rb +3 -0
  111. data/templates/jrails/jquery-ui.js +45 -62
  112. data/templates/jrails/jquery-ui.min.js +22 -22
  113. data/templates/jrails/jquery.js +340 -206
  114. data/templates/jrails/jquery.min.js +152 -151
  115. data/templates/jrails/jquery.tmpl.js +489 -0
  116. data/templates/jrails/jquery.tmpl.min.js +12 -0
  117. data/templates/jrails/jquery.tmplPlus.js +98 -0
  118. data/templates/jrails/jquery.tmplPlus.min.js +3 -0
  119. data/templates/jrails/jquery/ui/_theme.scss +3 -1
  120. data/templates/jrails/manifest.rb +4 -0
  121. data/templates/jstree/jquery.jstree.js +4479 -4468
  122. data/templates/jstree/jquery.jstree.min.js +4 -3
  123. data/templates/mobile/config/initializers/mobile.rb +6 -0
  124. data/templates/mobile/glyphish/Read me first - license.txt +14 -0
  125. data/templates/mobile/glyphish/icons-black/01-refresh.png +0 -0
  126. data/templates/mobile/glyphish/icons-black/02-redo.png +0 -0
  127. data/templates/mobile/glyphish/icons-black/03-loopback.png +0 -0
  128. data/templates/mobile/glyphish/icons-black/04-squiggle.png +0 -0
  129. data/templates/mobile/glyphish/icons-black/05-shuffle.png +0 -0
  130. data/templates/mobile/glyphish/icons-black/06-magnifying-glass.png +0 -0
  131. data/templates/mobile/glyphish/icons-black/07-map-marker.png +0 -0
  132. data/templates/mobile/glyphish/icons-black/08-chat.png +0 -0
  133. data/templates/mobile/glyphish/icons-black/09-chat2.png +0 -0
  134. data/templates/mobile/glyphish/icons-black/10-medical.png +0 -0
  135. data/templates/mobile/glyphish/icons-black/100-coffee.png +0 -0
  136. data/templates/mobile/glyphish/icons-black/101-gameplan.png +0 -0
  137. data/templates/mobile/glyphish/icons-black/102-walk.png +0 -0
  138. data/templates/mobile/glyphish/icons-black/103-map.png +0 -0
  139. data/templates/mobile/glyphish/icons-black/104-index-cards.png +0 -0
  140. data/templates/mobile/glyphish/icons-black/105-piano.png +0 -0
  141. data/templates/mobile/glyphish/icons-black/106-sliders.png +0 -0
  142. data/templates/mobile/glyphish/icons-black/107-widescreen.png +0 -0
  143. data/templates/mobile/glyphish/icons-black/108-badge.png +0 -0
  144. data/templates/mobile/glyphish/icons-black/109-chicken.png +0 -0
  145. data/templates/mobile/glyphish/icons-black/11-clock.png +0 -0
  146. data/templates/mobile/glyphish/icons-black/110-bug.png +0 -0
  147. data/templates/mobile/glyphish/icons-black/111-user.png +0 -0
  148. data/templates/mobile/glyphish/icons-black/112-group.png +0 -0
  149. data/templates/mobile/glyphish/icons-black/113-navigation.png +0 -0
  150. data/templates/mobile/glyphish/icons-black/114-balloon.png +0 -0
  151. data/templates/mobile/glyphish/icons-black/115-bow-and-arrow.png +0 -0
  152. data/templates/mobile/glyphish/icons-black/116-controller.png +0 -0
  153. data/templates/mobile/glyphish/icons-black/117-todo.png +0 -0
  154. data/templates/mobile/glyphish/icons-black/118-coathanger.png +0 -0
  155. data/templates/mobile/glyphish/icons-black/119-piggybank.png +0 -0
  156. data/templates/mobile/glyphish/icons-black/12-eye.png +0 -0
  157. data/templates/mobile/glyphish/icons-black/120-headphones.png +0 -0
  158. data/templates/mobile/glyphish/icons-black/121-lanscape.png +0 -0
  159. data/templates/mobile/glyphish/icons-black/122-stats.png +0 -0
  160. data/templates/mobile/glyphish/icons-black/123-id-card.png +0 -0
  161. data/templates/mobile/glyphish/icons-black/124-bullhorn.png +0 -0
  162. data/templates/mobile/glyphish/icons-black/125-food.png +0 -0
  163. data/templates/mobile/glyphish/icons-black/126-moon.png +0 -0
  164. data/templates/mobile/glyphish/icons-black/127-sock.png +0 -0
  165. data/templates/mobile/glyphish/icons-black/128-bone.png +0 -0
  166. data/templates/mobile/glyphish/icons-black/129-golf.png +0 -0
  167. data/templates/mobile/glyphish/icons-black/13-target.png +0 -0
  168. data/templates/mobile/glyphish/icons-black/130-dice.png +0 -0
  169. data/templates/mobile/glyphish/icons-black/14-tag.png +0 -0
  170. data/templates/mobile/glyphish/icons-black/15-tags.png +0 -0
  171. data/templates/mobile/glyphish/icons-black/16-line-chart.png +0 -0
  172. data/templates/mobile/glyphish/icons-black/17-bar-chart.png +0 -0
  173. data/templates/mobile/glyphish/icons-black/18-envelope.png +0 -0
  174. data/templates/mobile/glyphish/icons-black/19-gear.png +0 -0
  175. data/templates/mobile/glyphish/icons-black/20-gear2.png +0 -0
  176. data/templates/mobile/glyphish/icons-black/21-skull.png +0 -0
  177. data/templates/mobile/glyphish/icons-black/22-skull-n-crossbones.png +0 -0
  178. data/templates/mobile/glyphish/icons-black/23-bird.png +0 -0
  179. data/templates/mobile/glyphish/icons-black/24-gift.png +0 -0
  180. data/templates/mobile/glyphish/icons-black/25-weather.png +0 -0
  181. data/templates/mobile/glyphish/icons-black/26-bandaid.png +0 -0
  182. data/templates/mobile/glyphish/icons-black/27-planet.png +0 -0
  183. data/templates/mobile/glyphish/icons-black/28-star.png +0 -0
  184. data/templates/mobile/glyphish/icons-black/29-heart.png +0 -0
  185. data/templates/mobile/glyphish/icons-black/30-key.png +0 -0
  186. data/templates/mobile/glyphish/icons-black/31-ipod.png +0 -0
  187. data/templates/mobile/glyphish/icons-black/32-iphone.png +0 -0
  188. data/templates/mobile/glyphish/icons-black/33-cabinet.png +0 -0
  189. data/templates/mobile/glyphish/icons-black/34-coffee.png +0 -0
  190. data/templates/mobile/glyphish/icons-black/35-shopping-bag.png +0 -0
  191. data/templates/mobile/glyphish/icons-black/36-toolbox.png +0 -0
  192. data/templates/mobile/glyphish/icons-black/37-suitcase.png +0 -0
  193. data/templates/mobile/glyphish/icons-black/38-airplane.png +0 -0
  194. data/templates/mobile/glyphish/icons-black/39-spraycan.png +0 -0
  195. data/templates/mobile/glyphish/icons-black/40-inbox.png +0 -0
  196. data/templates/mobile/glyphish/icons-black/41-picture-frame.png +0 -0
  197. data/templates/mobile/glyphish/icons-black/42-photos.png +0 -0
  198. data/templates/mobile/glyphish/icons-black/43-film-roll.png +0 -0
  199. data/templates/mobile/glyphish/icons-black/44-shoebox.png +0 -0
  200. data/templates/mobile/glyphish/icons-black/45-movie1.png +0 -0
  201. data/templates/mobile/glyphish/icons-black/46-movie2.png +0 -0
  202. data/templates/mobile/glyphish/icons-black/47-fuel.png +0 -0
  203. data/templates/mobile/glyphish/icons-black/48-fork-and-knife.png +0 -0
  204. data/templates/mobile/glyphish/icons-black/49-battery.png +0 -0
  205. data/templates/mobile/glyphish/icons-black/50-beaker.png +0 -0
  206. data/templates/mobile/glyphish/icons-black/51-outlet.png +0 -0
  207. data/templates/mobile/glyphish/icons-black/52-pinetree.png +0 -0
  208. data/templates/mobile/glyphish/icons-black/53-house.png +0 -0
  209. data/templates/mobile/glyphish/icons-black/54-lock.png +0 -0
  210. data/templates/mobile/glyphish/icons-black/55-network.png +0 -0
  211. data/templates/mobile/glyphish/icons-black/56-cloud.png +0 -0
  212. data/templates/mobile/glyphish/icons-black/57-download.png +0 -0
  213. data/templates/mobile/glyphish/icons-black/58-bookmark.png +0 -0
  214. data/templates/mobile/glyphish/icons-black/59-flag.png +0 -0
  215. data/templates/mobile/glyphish/icons-black/60-signpost.png +0 -0
  216. data/templates/mobile/glyphish/icons-black/61-brightness.png +0 -0
  217. data/templates/mobile/glyphish/icons-black/62-contrast.png +0 -0
  218. data/templates/mobile/glyphish/icons-black/63-runner.png +0 -0
  219. data/templates/mobile/glyphish/icons-black/64-zap.png +0 -0
  220. data/templates/mobile/glyphish/icons-black/65-note.png +0 -0
  221. data/templates/mobile/glyphish/icons-black/66-microphone.png +0 -0
  222. data/templates/mobile/glyphish/icons-black/67-tshirt.png +0 -0
  223. data/templates/mobile/glyphish/icons-black/68-paperclip.png +0 -0
  224. data/templates/mobile/glyphish/icons-black/69-display.png +0 -0
  225. data/templates/mobile/glyphish/icons-black/70-tv.png +0 -0
  226. data/templates/mobile/glyphish/icons-black/71-compass.png +0 -0
  227. data/templates/mobile/glyphish/icons-black/72-pin.png +0 -0
  228. data/templates/mobile/glyphish/icons-black/73-radar.png +0 -0
  229. data/templates/mobile/glyphish/icons-black/74-location.png +0 -0
  230. data/templates/mobile/glyphish/icons-black/75-phone.png +0 -0
  231. data/templates/mobile/glyphish/icons-black/76-baby.png +0 -0
  232. data/templates/mobile/glyphish/icons-black/77-ekg.png +0 -0
  233. data/templates/mobile/glyphish/icons-black/78-stopwatch.png +0 -0
  234. data/templates/mobile/glyphish/icons-black/79-medical-bag.png +0 -0
  235. data/templates/mobile/glyphish/icons-black/80-shopping-cart.png +0 -0
  236. data/templates/mobile/glyphish/icons-black/81-dashboard.png +0 -0
  237. data/templates/mobile/glyphish/icons-black/82-dogpaw.png +0 -0
  238. data/templates/mobile/glyphish/icons-black/83-calendar.png +0 -0
  239. data/templates/mobile/glyphish/icons-black/84-lightbulb.png +0 -0
  240. data/templates/mobile/glyphish/icons-black/85-trophy.png +0 -0
  241. data/templates/mobile/glyphish/icons-black/86-camera.png +0 -0
  242. data/templates/mobile/glyphish/icons-black/87-wineglass.png +0 -0
  243. data/templates/mobile/glyphish/icons-black/88-beermug.png +0 -0
  244. data/templates/mobile/glyphish/icons-black/89-dumbbell.png +0 -0
  245. data/templates/mobile/glyphish/icons-black/90-lifebuoy.png +0 -0
  246. data/templates/mobile/glyphish/icons-black/91-beaker2.png +0 -0
  247. data/templates/mobile/glyphish/icons-black/92-testtube.png +0 -0
  248. data/templates/mobile/glyphish/icons-black/93-thermometer.png +0 -0
  249. data/templates/mobile/glyphish/icons-black/94-pill.png +0 -0
  250. data/templates/mobile/glyphish/icons-black/95-equalizer.png +0 -0
  251. data/templates/mobile/glyphish/icons-black/96-book.png +0 -0
  252. data/templates/mobile/glyphish/icons-black/97-puzzle.png +0 -0
  253. data/templates/mobile/glyphish/icons-black/98-palette.png +0 -0
  254. data/templates/mobile/glyphish/icons-black/99-umbrella.png +0 -0
  255. data/templates/mobile/glyphish/icons-white/09-chat2.png +0 -0
  256. data/templates/mobile/glyphish/icons-white/100-coffee.png +0 -0
  257. data/templates/mobile/glyphish/icons-white/18-envelope.png +0 -0
  258. data/templates/mobile/glyphish/icons-white/19-gear.png +0 -0
  259. data/templates/mobile/glyphish/icons-white/21-skull.png +0 -0
  260. data/templates/mobile/glyphish/icons-white/30-key.png +0 -0
  261. data/templates/mobile/glyphish/icons-white/34-coffee.png +0 -0
  262. data/templates/mobile/glyphish/icons-white/88-beermug.png +0 -0
  263. data/templates/mobile/glyphish/mini-icons-black/band-aid.png +0 -0
  264. data/templates/mobile/glyphish/mini-icons-black/chat.png +0 -0
  265. data/templates/mobile/glyphish/mini-icons-black/clock.png +0 -0
  266. data/templates/mobile/glyphish/mini-icons-black/eye.png +0 -0
  267. data/templates/mobile/glyphish/mini-icons-black/flag.png +0 -0
  268. data/templates/mobile/glyphish/mini-icons-black/fork-and-knife.png +0 -0
  269. data/templates/mobile/glyphish/mini-icons-black/gear.png +0 -0
  270. data/templates/mobile/glyphish/mini-icons-black/heart.png +0 -0
  271. data/templates/mobile/glyphish/mini-icons-black/lightning-bolt.png +0 -0
  272. data/templates/mobile/glyphish/mini-icons-black/magnifying-glass.png +0 -0
  273. data/templates/mobile/glyphish/mini-icons-black/map-marker.png +0 -0
  274. data/templates/mobile/glyphish/mini-icons-black/map-pin.png +0 -0
  275. data/templates/mobile/glyphish/mini-icons-black/microphone.png +0 -0
  276. data/templates/mobile/glyphish/mini-icons-black/music-note.png +0 -0
  277. data/templates/mobile/glyphish/mini-icons-black/paw.png +0 -0
  278. data/templates/mobile/glyphish/mini-icons-black/plus.png +0 -0
  279. data/templates/mobile/glyphish/mini-icons-black/puzzle.png +0 -0
  280. data/templates/mobile/glyphish/mini-icons-black/star.png +0 -0
  281. data/templates/mobile/glyphish/mini-icons-black/tag.png +0 -0
  282. data/templates/mobile/glyphish/mini-icons-black/tshirt.png +0 -0
  283. data/templates/mobile/jquery.mobile.js +3995 -0
  284. data/templates/mobile/jquery.mobile.min.js +28 -0
  285. data/templates/mobile/jquery/mobile/_base.scss +1344 -0
  286. data/templates/mobile/jquery/mobile/default.scss +745 -0
  287. data/templates/mobile/jquery/mobile/default/ajax-loader.png +0 -0
  288. data/templates/mobile/jquery/mobile/default/form-check-off.png +0 -0
  289. data/templates/mobile/jquery/mobile/default/form-check-on.png +0 -0
  290. data/templates/mobile/jquery/mobile/default/form-radio-off.png +0 -0
  291. data/templates/mobile/jquery/mobile/default/form-radio-on.png +0 -0
  292. data/templates/mobile/jquery/mobile/default/icon-search-black.png +0 -0
  293. data/templates/mobile/jquery/mobile/default/icons-18-black.png +0 -0
  294. data/templates/mobile/jquery/mobile/default/icons-18-white.png +0 -0
  295. data/templates/mobile/jquery/mobile/default/icons-36-black.png +0 -0
  296. data/templates/mobile/jquery/mobile/default/icons-36-white.png +0 -0
  297. data/templates/mobile/jquery/mobile/valencia.scss +807 -0
  298. data/templates/mobile/jquery/mobile/valencia/ajax-loader.png +0 -0
  299. data/templates/mobile/jquery/mobile/valencia/form-check-off.png +0 -0
  300. data/templates/mobile/jquery/mobile/valencia/form-check-on.png +0 -0
  301. data/templates/mobile/jquery/mobile/valencia/form-radio-off.png +0 -0
  302. data/templates/mobile/jquery/mobile/valencia/form-radio-on.png +0 -0
  303. data/templates/mobile/jquery/mobile/valencia/icon-search-black.png +0 -0
  304. data/templates/mobile/jquery/mobile/valencia/icons-18-black.png +0 -0
  305. data/templates/mobile/jquery/mobile/valencia/icons-18-white.png +0 -0
  306. data/templates/mobile/jquery/mobile/valencia/icons-36-black.png +0 -0
  307. data/templates/mobile/jquery/mobile/valencia/icons-36-white.png +0 -0
  308. data/templates/mobile/jquery/mobile/valencia/texture_05.png +0 -0
  309. data/templates/mobile/jquery/mobile/valencia/texture_075.png +0 -0
  310. data/templates/mobile/lib/tasks/jquery.mobile.rake +106 -0
  311. data/templates/mobile/manifest.rb +191 -0
  312. data/templates/secret_sauce/app/views/shared/_ui_form_error_messages.html.haml +6 -0
  313. data/templates/secret_sauce/app/views/shared/_ui_grid_for_without_block.js.haml +144 -0
  314. data/templates/secret_sauce/app/views/shared/_ui_static_dialog.html.haml +6 -0
  315. data/templates/secret_sauce/config/initializers/secret_sauce.rb +8 -0
  316. data/templates/secret_sauce/jquery/secret_sauce.scss +33 -0
  317. data/templates/secret_sauce/manifest.rb +10 -0
  318. data/templates/secret_sauce/secret_sauce.js +12 -0
  319. data/templates/secret_sauce/secret_sauce.min.js +1 -0
  320. metadata +313 -17
  321. data/.gitignore +0 -22
  322. data/compass-jquery-plugin.gemspec +0 -1064
data/README.textile CHANGED
@@ -8,11 +8,13 @@ h2. Description
8
8
 
9
9
  A Sass-based Meta-Framework for Compass that allows you to mix and match any of the following:
10
10
 
11
- * jRails with jQuery 1.4.3 and jQuery.UI 1.8.6 including themes
11
+ * jRails with jQuery 1.4.4.rc3 and jQuery.UI 1.8.6 including themes
12
12
  * jQuery Tools 1.2.5
13
13
  * jquery.jstree.js V1.0rc3
14
14
  * jquery.dynatree.js V0.5.4
15
15
  * jquery.ribbon.js
16
+ * jquery.jqGrid.js V3.8.1 (with minor changes to make in RESTful)
17
+ * jquery.mobile.js 1.0a2
16
18
  * jquery.jqtouch.js V1.0b2
17
19
 
18
20
  This library requires <b>"Compass":http://wiki.github.com/chriseppstein/compass</b>.
@@ -103,6 +105,38 @@ To use the localized stylesheets and javacripts include:
103
105
  = stylesheet_link_tag 'compiled/jquery/ribbon/[theme].css', :media => 'screen, projection'
104
106
  = javascript_include_tag :ribbon</pre>
105
107
 
108
+ h3. jqGrid
109
+
110
+ Use compass to install the jqGrid javascript library into your project.
111
+
112
+ <pre>compass install [-r jquery] jquery/jqgrid <project name></pre>
113
+
114
+ You will find the jqGrid stylesheet in easy-to-read Sass format at:
115
+
116
+ <pre>stylesheets/jquery.ui</pre>
117
+
118
+ To use the localized stylesheets and javacripts include:
119
+
120
+ <pre>
121
+ = stylesheet_link_tag 'compiled/jquery/jqGrid.css', :media => 'screen, projection'
122
+ = raw jqgrid_javascripts(I18n.locale)</pre>
123
+
124
+ h3. Secret Sauce
125
+
126
+ Use compass to install the Secret Sauce for jqGrid javascript library into your project.
127
+
128
+ <pre>compass install [-r jquery] jquery/secret_sauce <project name></pre>
129
+
130
+ You will find all the stylesheets in easy-to-read Sass format.
131
+
132
+ <pre>stylesheets/jquery.ui</pre>
133
+
134
+ To use the localized stylesheets and javacripts include:
135
+
136
+ <pre>
137
+ = stylesheet_link_tag 'compiled/jquery/secret_sauce.css', :media => 'screen, projection'
138
+ = javascript_include_tag :secret_sauce</pre>
139
+
106
140
  h3. jquery.ical
107
141
 
108
142
  Use compass to install the jquery.ical javascript library into your project.
@@ -135,6 +169,23 @@ To use the localized stylesheets and javacripts include:
135
169
  = stylesheet_link_tag 'compiled/emulators/ipad.landscape.css', :media => 'screen, projection'
136
170
  = stylesheet_link_tag 'compiled/emulators/iphone.portrait.css', :media => 'screen, projection'</pre>
137
171
 
172
+ h3. jQuery mobile
173
+
174
+ Use compass to install the jQuery mobile javascript library and themes into your project.
175
+
176
+ <pre>compass install [-r jquery] jquery/mobile <project name></pre>
177
+
178
+ You will find all the stylesheets in easy-to-read Sass format at:
179
+
180
+ <pre>stylesheets/mobile</pre>
181
+
182
+ To use the localized stylesheets and javacripts include:
183
+
184
+ <pre>
185
+ = stylesheet_link_tag "compiled/jquery/mobile/[theme].css", :media => 'screen, projection'
186
+ = javascript_include_tag :mobile'</pre>
187
+
188
+
138
189
  h3. jQTouch
139
190
 
140
191
  Use compass to install the jQTouch javascript library into your project.
@@ -166,26 +217,31 @@ h3. Rails
166
217
 
167
218
  h3. jQuery Plugins included
168
219
 
169
- * Andreas Eberhard for <b>"jQuery PngFix Plugin (for IE)":http://jquery.andreaseberhard.de/</b>
220
+ * Chris Domigan for <b>"jQuery ContextMenu Plugin":http://www.trendskitchens.co.nz/jquery/contextmenu/</b>
170
221
  * Kalus Hartl for <b>"jQuery Cookie Plugin":http://stilbuero.de</b>
171
- * Fabrizio Balliano and Fabrizio Balliano for <b>"jQuery Layout Plugin":http://www.fabrizioballiano.net/</b>
172
- * John Reisig et. al. for <b>"jQuery Form Plugin":http://malsup.com/jquery/form/</b>
173
222
  * Martin Wendt for <b>"jQuery Dynatree Plugin":http://www.wwwendt.de</b>
223
+ * John Reisig et. al. for <b>"jQuery Form Plugin":http://malsup.com/jquery/form/</b>
224
+ * Tony Tomov for <b>"jQuery Grid Plugin":http://www.trirand.com/blog/</b>
225
+ * Tim Caswell for <b>"jQuery haml Plugin":http://github.com/creationix/jquery-haml</b>
174
226
  * Ivan Bozhanov for <b>"jQuery jsTree Plugin":http://jstree.com/</b>
227
+ * Fabrizio Balliano and Fabrizio Balliano for <b>"jQuery Layout Plugin":http://www.fabrizioballiano.net/</b>
228
+ * Andreas Eberhard for <b>"jQuery PngFix Plugin (for IE)":http://jquery.andreaseberhard.de/</b>
175
229
  * Mikael Soederstroem for <b>"jQuery Ribbon Plugin":http://jqueryribbon.codeplex.com/</b>
176
- * Tony Tomov for <b>"jQuery Grid Plugin":http://www.trirand.com/blog/</b>
177
- * David Kaneda for <b>"jQTouch":http://www.jqtouch.com/</b>
178
- * Chris Domigan for <b>"jQuery ContextMenu Plugin":http://www.trendskitchens.co.nz/jquery/contextmenu/</b>
230
+ * Gareth Watts from Splunk Inc for <b>"jQuery Sparklines plugin":http://omnipotent.net/jquery.sparkline/</b>
179
231
  * Denis Howlett for <b>"jQuery Table Drag and Drop Plugin":http://www.isocra.com/2008/02/table-drag-and-drop-jquery-plugin/</b>
232
+ * John Reisig et. al. for <b>"jQuery Templating Plugin":https://github.com/jquery/jquery-tmpl/</b>
233
+ * Juan G. Hurtado for <b>"jQuery TOOLS":http://github.com/jquerytools/jquerytools</b>
180
234
  * Michael Aufreiter for <b>"jQuery UI Multiselect Plugin":http://quasipartikel.at</b>
181
- * Tim Caswell for <b>"jQuery haml Plugin":http://github.com/creationix/jquery-haml</b>
182
- * Tim Caswell for <b>"halm-js":http://github.com/creationix/haml-js</b> Server side templating language for JavaScript
183
- * Rick DeNatale for <b>"ri_cal":http://github.com/rubyredrick/ri_cal/</b>
235
+
236
+ * David Kaneda for <b>"jQTouch":http://www.jqtouch.com/</b>
184
237
  * Andrew M Andrews III for <b>"Any+Time":http://www.ama3.com/anytime/</b>
185
- * Adam Shaw for <b>"FullCalendar":http://arshaw.com/fullcalendar/</b>
186
238
  * Steven Wittens for <b>"Farbtastic Colorpicker plugin":http://acko.net/dev/farbtastic</b>
187
- * Gareth Watts from Splunk Inc for <b>"jQuery Sparklines plugin":http://omnipotent.net/jquery.sparkline/</b>
188
- * Juan G. Hurtado for <b>"jQuery TOOLS":http://github.com/jquerytools/jquerytools</b>
239
+ * Adam Shaw for <b>"FullCalendar":http://arshaw.com/fullcalendar/</b>
240
+
241
+ h3. Other stuff included
242
+
243
+ * Tim Caswell for <b>"halm-js":http://github.com/creationix/haml-js</b> Server side templating language for JavaScript
244
+ * Rick DeNatale for <b>"ri_cal":http://github.com/rubyredrick/ri_cal/</b>
189
245
 
190
246
  h2. Note on Patches/Pull Requests
191
247
 
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ begin
13
13
  gem.homepage = "http://github.com/kosmas58/compass-jquery-plugin"
14
14
  gem.summary = "A compass plugin that integrates jRails, jQuery, jQuery UI and Themes, jqGrid and more into the Compass Sass framework."
15
15
  gem.description = gem.summary
16
- gem.add_dependency("haml", [">= 3.0.23"])
16
+ gem.add_dependency("haml", [">= 3.0.24"])
17
17
  gem.add_dependency("compass", [">= 0.10.6"])
18
18
  gem.add_dependency("ri_cal", [">= 0.8.7"])
19
19
  gem.files.exclude("src/**/")
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- :commit: 0
3
- :patch: 0
2
+ :commit: beta.2
3
+ :patch: 1
4
4
  :minor: 3
5
5
  :major: 0
@@ -0,0 +1,119 @@
1
+ require 'fileutils'
2
+ require 'lib/handle_js_files'
3
+
4
+ # Compass generator for jqGrid 3.5+
5
+ JQGRID_SRC = File.join(GEM_ROOT, 'src', 'jqgrid')
6
+ JQGRID_SRC_LOCALES = File.join(JQGRID_SRC, 'config', 'locales')
7
+ JQGRID_SRC_TRANSLATIONS = File.join(JQGRID_SRC, 'js', 'i18n') + "/*.js"
8
+
9
+ JQGRID_DEST_TEMPLATES = File.join(GEM_ROOT, 'templates', 'jqgrid')
10
+ JQGRID_DEST_LOCALES = File.join(JQGRID_DEST_TEMPLATES, 'config', 'locales', 'jquery', 'jqgrid')
11
+ JQGRID_DEST_STYLESHEETS = File.join(JQGRID_DEST_TEMPLATES, 'jquery')
12
+ JQGRID_DEST_TRANSLATIONS = File.join(JQGRID_DEST_TEMPLATES, 'i18n', 'jqgrid')
13
+ JQGRID_DEST_XML = File.join(JQGRID_DEST_TEMPLATES, 'public', 'stylesheets')
14
+
15
+ JQGRID_MESSAGE1 = "# Generated by compass-jquery-plugin/gem-tasks/jqgrid.rake\n# Install with: compass install jquery/jqgrid\n\n"
16
+ JQGRID_MESSAGE2 = "// Generated by compass-jquery-plugin/gem-tasks/jqgrid.rake\n\n"
17
+
18
+ all_scripts = [
19
+ #'plugins/jquery.contextmenu.js',
20
+ 'plugins/jquery.tablednd.js',
21
+ 'plugins/ui.multiselect.js',
22
+ 'js/grid.base.js',
23
+ 'js/grid.common.js',
24
+ 'js/grid.formedit.js',
25
+ 'js/grid.inlinedit.js',
26
+ 'js/grid.celledit.js',
27
+ 'js/grid.subgrid.js',
28
+ 'js/grid.treegrid.js',
29
+ 'js/grid.custom.js',
30
+ 'js/grid.postext.js',
31
+ 'js/grid.tbltogrid.js',
32
+ 'js/grid.setcolumns.js',
33
+ 'js/grid.import.js',
34
+ 'js/jquery.fmatter.js',
35
+ 'js/grid.grouping.js',
36
+ 'js/jqModal.js',
37
+ 'js/jqDnR.js',
38
+ 'js/JsonXml.js',
39
+ 'js/grid.jqueryui.js',
40
+ 'js/jquery.searchFilter.js'
41
+ ].collect {|filename| File.read(File.join(JQGRID_SRC, filename))}.join "\n\n"
42
+
43
+ all_stylesheets = [
44
+ 'css/ui.jqgrid.css',
45
+ 'css/jquery.searchFilter.css',
46
+ 'plugins/ui.multiselect.css'
47
+ ].collect {|filename| File.read(File.join(JQGRID_SRC, filename))}.join "\n\n"
48
+
49
+ namespace :build do
50
+ desc 'Build the stylesheets and templates for jqGrid.'
51
+ task :jqgrid do
52
+
53
+ FileUtils.remove_dir JQGRID_DEST_TEMPLATES if File.exists? JQGRID_DEST_TEMPLATES
54
+ FileUtils.mkdir_p(File.join(JQGRID_DEST_TEMPLATES, 'config', 'initializers'))
55
+
56
+ open File.join(JQGRID_DEST_TEMPLATES, 'manifest.rb'), 'w' do |manifest|
57
+ manifest.print JQGRID_MESSAGE1
58
+
59
+ open File.join(JQGRID_DEST_TEMPLATES, 'config', 'initializers', 'jqgrid.rb'), 'w' do |f|
60
+ f.print(File.read(File.join(JQGRID_SRC, 'config', 'initializers', 'jqgrid.rb')))
61
+ end
62
+ manifest.print "file 'config/initializers/jqgrid.rb'\n"
63
+
64
+ ['jqgrid'].each do |path|
65
+ FileUtils.mkdir_p(JQGRID_DEST_LOCALES)
66
+ Dir.foreach File.join(JQGRID_SRC_LOCALES, 'jquery', path) do |file|
67
+ next unless /\.yml$/ =~ file
68
+ yaml = File.read File.join(JQGRID_SRC_LOCALES, 'jquery', path, file)
69
+ manifest.print "file 'config/locales/jquery/jqgrid/#{file}'\n"
70
+ open File.join(JQGRID_DEST_LOCALES, file), 'w' do |f|
71
+ f.write yaml
72
+ end
73
+ end
74
+ end
75
+
76
+ open File.join(JQGRID_DEST_TEMPLATES, 'jquery.jqGrid.js'), 'w' do |f|
77
+ f.print concat_files(all_scripts)
78
+ end
79
+ manifest.print "javascript 'jquery.jqGrid.js'\n"
80
+
81
+ open File.join(JQGRID_DEST_TEMPLATES, 'jquery.jqGrid.min.js'), 'w' do |f|
82
+ f.print compress_js(all_scripts, "google")
83
+ end
84
+ manifest.print "javascript 'jquery.jqGrid.min.js'\n"
85
+
86
+ ['i18n'].each do |path|
87
+ FileUtils.mkdir_p File.join(JQGRID_DEST_TRANSLATIONS)
88
+ Dir.foreach File.join(JQGRID_SRC, 'js', path) do |file|
89
+ next unless /\.js$/ =~ file
90
+ js = File.read File.join(JQGRID_SRC, 'js', path, file)
91
+ file.gsub!(/^grid\./,'')
92
+ manifest.print "javascript '#{File.join(path, 'jqgrid', file)}'\n"
93
+ open File.join(JQGRID_DEST_TRANSLATIONS, file), 'w' do |f|
94
+ f.write js
95
+ end
96
+ file.gsub!(/\.js$/, '.min.js')
97
+ manifest.print "javascript '#{File.join(path, 'jqgrid', file)}'\n"
98
+ open File.join(JQGRID_DEST_TRANSLATIONS, file), 'w' do |f|
99
+ f.write compress_js(js, "google")
100
+ end
101
+ end
102
+ end
103
+
104
+ FileUtils.mkdir_p(JQGRID_DEST_STYLESHEETS)
105
+ open File.join(JQGRID_DEST_STYLESHEETS, 'jqGrid.scss'), 'w' do |f|
106
+ sass = JQGRID_MESSAGE2
107
+ IO.popen("sass-convert -F css -T scss", 'r+') { |ff| ff.print(all_stylesheets); ff.close_write; sass += ff.read }
108
+ f.print sass
109
+ end
110
+ manifest.print "stylesheet 'jquery/jqGrid.scss'\n"
111
+
112
+ FileUtils.mkdir_p(JQGRID_DEST_XML)
113
+ open File.join(JQGRID_DEST_XML, 'ellipsis-xbl.xml'), 'w' do |f|
114
+ f.print(File.read(File.join(JQGRID_SRC, 'css', 'ellipsis-xbl.xml')))
115
+ end
116
+ manifest.print "file 'public/stylesheets/ellipsis-xbl.xml'\n"
117
+ end
118
+ end
119
+ end
@@ -8,7 +8,6 @@ JRAILS_SRC = File.join(SRC, 'jrails')
8
8
  JRAILS_SRC_SCRIPTS = JRAILS_SRC + "/*.js"
9
9
 
10
10
  JQUERY_SRC = File.join(SRC, 'jquery')
11
- JQUERY_SRC_SIZZLE = File.join(JQUERY_SRC, 'sizzle')
12
11
 
13
12
  JQUERY_UI_SRC = File.join(SRC, 'jquery.ui')
14
13
  JQUERY_UI_SRC_SCRIPTS = File.join(JQUERY_UI_SRC, 'js') + "/*.js"
@@ -26,6 +25,7 @@ FLASH_SRC_JS_SCRIPTS = FLASH_SRC + "/*.js"
26
25
  FLASH_SRC_IMAGES = File.join(FLASH_SRC, 'images')
27
26
 
28
27
  JRAILS_DEST_TEMPLATES = File.join(GEM_ROOT, 'templates', 'jrails')
28
+ JRAILS_DEST_SIZZLE = File.join(JRAILS_DEST_TEMPLATES, 'sizzle')
29
29
  JRAILS_DEST_TRANSLATIONS = File.join(JRAILS_DEST_TEMPLATES, 'i18n', 'jquery.ui')
30
30
  JRAILS_DEST_THEMES = File.join(JRAILS_DEST_TEMPLATES, 'jquery', 'ui')
31
31
  JRAILS_DEST_IMAGES = File.join(JRAILS_DEST_TEMPLATES, 'jquery', 'ui')
@@ -35,39 +35,39 @@ FLASH_DEST_IMAGES = File.join(JRAILS_DEST_IMAGES, 'flash_messages')
35
35
 
36
36
  namespace :build do
37
37
  desc 'Build the stylesheets and templates for jRails.'
38
- task :jrails do
39
-
40
- FileUtils.remove_dir JRAILS_DEST_TEMPLATES if File.exists? JRAILS_DEST_TEMPLATES
38
+ task :jrails do
39
+
40
+ FileUtils.remove_dir JRAILS_DEST_TEMPLATES if File.exists? JRAILS_DEST_TEMPLATES
41
41
  FileUtils.mkdir_p(File.join(JRAILS_DEST_TEMPLATES, 'config', 'initializers'))
42
42
  FileUtils.mkdir_p(File.join(JRAILS_DEST_TEMPLATES, 'lib', 'tasks'))
43
43
  FileUtils.mkdir_p(File.join(JRAILS_DEST_THEMES))
44
-
44
+
45
45
  open File.join(JRAILS_DEST_TEMPLATES, 'manifest.rb'), 'w' do |manifest|
46
-
46
+
47
47
  # jRails
48
48
  manifest.print JRAILS_MESSAGE1
49
-
49
+
50
50
  open File.join(JRAILS_DEST_TEMPLATES, 'config', 'initializers', 'jrails.rb'), 'w' do |f|
51
51
  f.print(File.read(File.join(JRAILS_SRC, 'config', 'initializers', 'jrails.rb')))
52
52
  end
53
- manifest.print "file 'config/initializers/jrails.rb'\n"
54
-
53
+ manifest.print "file 'config/initializers/jrails.rb'\n"
54
+
55
55
  manifest.print "file 'lib/tasks/haml.rake'\n"
56
56
  open File.join(JRAILS_DEST_TEMPLATES, 'lib', 'tasks', 'haml.rake'), 'w' do |f|
57
57
  f.print(File.read(File.join(SRC, 'lib', 'tasks', 'haml.rake')))
58
58
  end
59
59
  manifest.print "file 'lib/tasks/haml.rake'\n"
60
-
60
+
61
61
  open File.join(JRAILS_DEST_TEMPLATES, 'jrails.js'), 'w' do |f|
62
62
  f.print concat_files(all_files(JRAILS_SRC_SCRIPTS))
63
63
  end
64
- manifest.print "javascript 'jrails.js'\n"
65
-
64
+ manifest.print "javascript 'jrails.js'\n"
65
+
66
66
  open File.join(JRAILS_DEST_TEMPLATES, 'jrails.min.js'), 'w' do |f|
67
67
  f.print compress_js(all_files(JRAILS_SRC_SCRIPTS), "google")
68
68
  end
69
- manifest.print "javascript 'jrails.min.js'\n"
70
-
69
+ manifest.print "javascript 'jrails.min.js'\n"
70
+
71
71
  # jQuery 1.4
72
72
 
73
73
  all_jquery_scripts = [
@@ -88,19 +88,19 @@ namespace :build do
88
88
  'dimensions.js',
89
89
  'outro.js'
90
90
  ].collect {|filename| File.read(File.join(JQUERY_SRC, 'js', filename))}.join "\n\n"
91
-
91
+
92
92
  open File.join(JRAILS_DEST_TEMPLATES, 'jquery.js'), 'w' do |f|
93
93
  f.print concat_files(all_jquery_scripts)
94
94
  end
95
- manifest.print "javascript 'jquery.js'\n"
96
-
95
+ manifest.print "javascript 'jquery.js'\n"
96
+
97
97
  open File.join(JRAILS_DEST_TEMPLATES, 'jquery.min.js'), 'w' do |f|
98
98
  f.print compress_js(all_jquery_scripts, "google")
99
99
  end
100
100
  manifest.print "javascript 'jquery.min.js'\n"
101
101
 
102
102
  # jQuery 1.4 Compat 1.3
103
-
103
+
104
104
  ['compat-1.3'].each do |path|
105
105
  Dir.foreach File.join(JQUERY_SRC, path) do |file|
106
106
  next unless /\.js$/ =~ file
@@ -108,20 +108,20 @@ namespace :build do
108
108
  manifest.print "javascript '#{file}'\n"
109
109
  open File.join(JRAILS_DEST_TEMPLATES, file), 'w' do |f|
110
110
  f.write js
111
- end
111
+ end
112
112
  file.gsub!(/\.js$/, '.min.js')
113
113
  manifest.print "javascript '#{file}'\n"
114
114
  open File.join(JRAILS_DEST_TEMPLATES, file), 'w' do |f|
115
115
  f.write compress_js(js, "google")
116
116
  end
117
117
  end
118
- end
119
-
118
+ end
119
+
120
120
  # jQuery 1.4 Plugins
121
-
121
+
122
122
  ['plugins'].each do |path|
123
123
  Dir.foreach File.join(JQUERY_SRC, path) do |file|
124
-
124
+
125
125
  if /\.css$/ =~ file
126
126
  css = File.read File.join(JQUERY_SRC, path, file)
127
127
  sass = ''
@@ -131,41 +131,41 @@ namespace :build do
131
131
  f.write sass
132
132
  end
133
133
  manifest.print "stylesheet 'jquery/ui/#{file}'\n"
134
- end
135
-
134
+ end
135
+
136
136
  next unless /\.js$/ =~ file
137
137
  js = File.read File.join(JQUERY_SRC, path, file)
138
138
  manifest.print "javascript '#{file}'\n"
139
139
  open File.join(JRAILS_DEST_TEMPLATES, file), 'w' do |f|
140
140
  f.write js
141
- end
141
+ end
142
142
  file.gsub!(/\.js$/, '.min.js')
143
143
  manifest.print "javascript '#{file}'\n"
144
144
  open File.join(JRAILS_DEST_TEMPLATES, file), 'w' do |f|
145
145
  f.write compress_js(js, "google")
146
146
  end
147
147
  end
148
- end
149
-
148
+ end
149
+
150
150
  Dir.foreach File.join(JQUERY_SRC, 'plugins', 'images') do |plugin|
151
151
  next if /^\./ =~ plugin
152
-
152
+
153
153
  # Copy the theme images directory
154
154
  src_dir = File.join(JQUERY_SRC, 'plugins', 'images', plugin)
155
155
  dest_dir = File.join(JRAILS_DEST_IMAGES, plugin)
156
156
  FileUtils.mkdir_p dest_dir
157
-
157
+
158
158
  Dir.foreach(src_dir) do |image|
159
159
  next if /^\./ =~ image
160
- FileUtils.cp(File.join(src_dir, image), dest_dir)
160
+ FileUtils.cp(File.join(src_dir, image), dest_dir)
161
161
  manifest.print "image 'jquery/ui/#{plugin}/#{image}'\n"
162
162
  end
163
- end
164
-
163
+ end
164
+
165
165
  # jQuery.UI 1.8.6
166
-
166
+
167
167
  # Scripts
168
-
168
+
169
169
  all_jquery_ui_scripts = [
170
170
  'jquery-ui.js',
171
171
  'jquery.effects.blind.js',
@@ -202,30 +202,30 @@ namespace :build do
202
202
  'jquery.ui.tabs.js',
203
203
  'jquery.ui.widget.js'
204
204
  ].collect {|filename| File.read(File.join(JQUERY_UI_SRC, 'js', filename))}.join "\n\n"
205
-
205
+
206
206
  open File.join(JRAILS_DEST_TEMPLATES, 'jquery-ui.js'), 'w' do |f|
207
207
  f.print concat_files(all_jquery_ui_scripts)
208
208
  end
209
209
  manifest.print "javascript 'jquery-ui.js'\n"
210
-
210
+
211
211
  open File.join(JRAILS_DEST_TEMPLATES, 'jquery-ui.min.js'), 'w' do |f|
212
212
  f.print compress_js(all_jquery_ui_scripts, "google")
213
213
  end
214
214
  manifest.print "javascript 'jquery-ui.min.js'\n"
215
-
215
+
216
216
  # jQuery UI locales
217
-
217
+
218
218
  ['i18n'].each do |path|
219
219
  FileUtils.mkdir_p(JRAILS_DEST_TRANSLATIONS)
220
220
  Dir.foreach JQUERY_UI_SRC_TRANSLATIONS do |file|
221
221
  next unless /^jquery.ui\.datepicker-(.+)\.js$/ =~ file
222
222
  lang = file
223
223
  js = File.read File.join(JQUERY_UI_SRC_TRANSLATIONS, file)
224
- file.gsub!(/^jquery.ui\./,'')
224
+ file.gsub!(/^jquery.ui\./,'')
225
225
  manifest.print "javascript '#{File.join(path, 'jquery.ui', file)}'\n"
226
226
  open File.join(JRAILS_DEST_TRANSLATIONS, file), 'w' do |f|
227
227
  f.write js
228
- end
228
+ end
229
229
  file.gsub!(/\.js$/, '.min.js')
230
230
  manifest.print "javascript '#{File.join(path, 'jquery.ui', file)}'\n"
231
231
  open File.join(JRAILS_DEST_TRANSLATIONS, file), 'w' do |f|
@@ -235,10 +235,10 @@ namespace :build do
235
235
  end
236
236
 
237
237
  # jQuery UI Themes
238
-
239
- ui = JqueryUiTheme.new(File.join(JQUERY_UI_SRC_THEMES, 'base'))
238
+
239
+ ui = JqueryUiTheme.new(File.join(JQUERY_UI_SRC_THEMES, 'base'))
240
240
  ui.convert_css(File.join(JRAILS_DEST_THEMES, '_partials'))
241
-
241
+
242
242
  all_jquery_ui_stylesheets = [
243
243
  '_core.scss',
244
244
  '_accordion.scss',
@@ -254,82 +254,82 @@ namespace :build do
254
254
  '_slider.scss',
255
255
  '_tabs.scss',
256
256
  '_theme.scss'
257
- ].collect {|filename| File.read(File.join(JRAILS_DEST_THEMES, '_partials', filename))}.join "\n\n"
258
-
257
+ ].collect {|filename| File.read(File.join(JRAILS_DEST_THEMES, '_partials', filename))}.join "\n\n"
258
+
259
259
  open File.join(JRAILS_DEST_THEMES, '_theme.scss'), 'w' do |f|
260
260
  sass = JRAILS_MESSAGE2
261
261
  f.print(all_jquery_ui_stylesheets)
262
262
  f.print sass
263
263
  FileUtils.rm_r(File.join(JRAILS_DEST_THEMES, '_partials'))
264
- end
265
-
266
- manifest.print "stylesheet 'jquery/ui/_theme.scss'\n"
267
-
264
+ end
265
+
266
+ manifest.print "stylesheet 'jquery/ui/_theme.scss'\n"
267
+
268
268
  Dir.foreach JQUERY_UI_SRC_THEMES do |theme|
269
269
  next if /^\./ =~ theme
270
-
270
+
271
271
  # Convert the stylesheet
272
272
  manifest.print "stylesheet 'jquery/ui/#{theme}.scss'\n"
273
273
  ui.convert_theme(theme, File.join(JQUERY_UI_SRC_THEMES, theme), File.join(JRAILS_DEST_THEMES))
274
-
274
+
275
275
  # Copy the theme images directory
276
276
  src_dir = File.join(JQUERY_UI_SRC_THEMES, theme, 'images')
277
277
  dest_dir = File.join(JRAILS_DEST_IMAGES, theme)
278
278
  FileUtils.mkdir_p dest_dir
279
-
279
+
280
280
  Dir.foreach(src_dir) do |image|
281
281
  next if /^\./ =~ image
282
- FileUtils.cp(File.join(src_dir, image), dest_dir)
282
+ FileUtils.cp(File.join(src_dir, image), dest_dir)
283
283
  manifest.print "image 'jquery/ui/#{theme}/#{image}'\n"
284
- end
284
+ end
285
285
  end
286
-
286
+
287
287
  # jQuery Sparklines
288
-
288
+
289
289
  open File.join(JRAILS_DEST_TEMPLATES, 'jquery.sparkline.js'), 'w' do |f|
290
290
  f.print concat_files(all_files(SPARKLINES_SRC_SCRIPTS))
291
291
  end
292
- manifest.print "javascript 'jquery.sparkline.js'\n"
293
-
292
+ manifest.print "javascript 'jquery.sparkline.js'\n"
293
+
294
294
  open File.join(JRAILS_DEST_TEMPLATES, 'jquery.sparkline.min.js'), 'w' do |f|
295
295
  f.print compress_js(all_files(SPARKLINES_SRC_SCRIPTS), "google")
296
296
  end
297
297
  manifest.print "javascript 'jquery.sparkline.min.js'\n"
298
-
298
+
299
299
  # jQuery haml
300
-
300
+
301
301
  open File.join(JRAILS_DEST_TEMPLATES, 'jquery.haml.js'), 'w' do |f|
302
302
  f.print concat_files(all_files(JHAML_SRC_SCRIPTS))
303
303
  end
304
- manifest.print "javascript 'jquery.haml.js'\n"
305
-
304
+ manifest.print "javascript 'jquery.haml.js'\n"
305
+
306
306
  open File.join(JRAILS_DEST_TEMPLATES, 'jquery.haml.min.js'), 'w' do |f|
307
307
  f.print compress_js(all_files(JHAML_SRC_SCRIPTS), "google")
308
308
  end
309
- manifest.print "javascript 'jquery.haml.min.js'\n"
310
-
311
- # HAML Js
309
+ manifest.print "javascript 'jquery.haml.min.js'\n"
310
+
311
+ # HAML Js
312
312
  open File.join(JRAILS_DEST_TEMPLATES, 'haml.js'), 'w' do |f|
313
313
  f.print concat_files(all_files(HAML_SRC_JS_SCRIPTS))
314
314
  end
315
- manifest.print "javascript 'haml.js'\n"
316
-
315
+ manifest.print "javascript 'haml.js'\n"
316
+
317
317
  open File.join(JRAILS_DEST_TEMPLATES, 'haml.min.js'), 'w' do |f|
318
318
  f.print compress_js(all_files(JHAML_SRC_SCRIPTS), "google")
319
319
  end
320
320
  manifest.print "javascript 'haml.min.js'\n"
321
-
322
- #Flash Messages
321
+
322
+ #Flash Messages
323
323
  open File.join(JRAILS_DEST_TEMPLATES, 'jquery.flash_messages.js'), 'w' do |f|
324
324
  f.print concat_files(all_files(FLASH_SRC_JS_SCRIPTS))
325
325
  end
326
- manifest.print "javascript 'jquery.flash_messages.js'\n"
327
-
326
+ manifest.print "javascript 'jquery.flash_messages.js'\n"
327
+
328
328
  open File.join(JRAILS_DEST_TEMPLATES, 'jquery.flash_messages.min.js'), 'w' do |f|
329
329
  f.print compress_js(all_files(FLASH_SRC_JS_SCRIPTS), "google")
330
330
  end
331
331
  manifest.print "javascript 'jquery.flash_messages.min.js'\n"
332
-
332
+
333
333
  FileUtils.mkdir_p(File.join(FLASH_DEST_STYLESHEETS))
334
334
  css = File.read File.join(FLASH_SRC, 'flash_messages.css')
335
335
  sass = ''
@@ -338,15 +338,15 @@ namespace :build do
338
338
  f.write sass
339
339
  end
340
340
  manifest.print "stylesheet 'partials/_flash_messages.scss'\n"
341
-
341
+
342
342
  # Copy the images directory
343
343
  FileUtils.mkdir_p File.join(FLASH_DEST_IMAGES)
344
344
  src_dir = FLASH_SRC_IMAGES
345
- dest_dir = FLASH_DEST_IMAGES
346
-
345
+ dest_dir = FLASH_DEST_IMAGES
346
+
347
347
  Dir.foreach(src_dir) do |image|
348
348
  next unless /\.png$/ =~ image
349
- FileUtils.cp(File.join(src_dir, image), dest_dir)
349
+ FileUtils.cp(File.join(src_dir, image), dest_dir)
350
350
  manifest.print "image 'jquery/ui/flash_messages/#{image}'\n"
351
351
  end
352
352
  end
@@ -363,3 +363,4 @@ namespace :jrails do
363
363
  end
364
364
  end
365
365
  end
366
+