Showing with 20,948 additions and 3,664 deletions.
  1. +26 −21 AUTHORS.txt
  2. +13 −0 build/.jshintrc
  3. +2 −1 build/core.json
  4. +32 −34 build/release/changelog-shell
  5. +45 −7 build/release/release.js
  6. +50 −79 build/tasks/build.js
  7. +4 −3 build/tasks/testswarm.js
  8. +3 −10 demos/accordion/collapsible.html
  9. +3 −10 demos/accordion/custom-icons.html
  10. +3 −8 demos/accordion/default.html
  11. +34 −39 demos/accordion/fillspace.html
  12. +2 −7 demos/accordion/hoverintent.html
  13. +10 −14 demos/accordion/index.html
  14. +3 −10 demos/accordion/no-auto-height.html
  15. +3 −10 demos/accordion/sortable.html
  16. +3 −10 demos/addClass/default.html
  17. +4 −8 demos/addClass/index.html
  18. +3 −10 demos/animate/default.html
  19. +4 −8 demos/animate/index.html
  20. +6 −11 demos/autocomplete/categories.html
  21. +3 −10 demos/autocomplete/combobox.html
  22. +8 −13 demos/autocomplete/custom-data.html
  23. +3 −10 demos/autocomplete/default.html
  24. +3 −10 demos/autocomplete/folding.html
  25. +17 −19 demos/autocomplete/index.html
  26. +3 −10 demos/autocomplete/maxheight.html
  27. +3 −10 demos/autocomplete/multiple-remote.html
  28. +3 −10 demos/autocomplete/multiple.html
  29. +3 −10 demos/autocomplete/remote-jsonp.html
  30. +6 −16 demos/autocomplete/remote-with-cache.html
  31. +3 −10 demos/autocomplete/remote.html
  32. +3 −10 demos/autocomplete/xml.html
  33. +3 −10 demos/button/checkbox.html
  34. +8 −12 demos/button/default.html
  35. +24 −31 demos/button/icons.html
  36. +9 −13 demos/button/index.html
  37. +3 −10 demos/button/radio.html
  38. +12 −21 demos/button/splitbutton.html
  39. +5 −12 demos/button/toolbar.html
  40. +3 −10 demos/datepicker/alt-field.html
  41. +3 −10 demos/datepicker/animation.html
  42. +3 −10 demos/datepicker/buttonbar.html
  43. +3 −10 demos/datepicker/date-formats.html
  44. +5 −12 demos/datepicker/date-range.html
  45. +3 −10 demos/datepicker/default.html
  46. +3 −10 demos/datepicker/dropdown-month-year.html
  47. +3 −10 demos/datepicker/icon-trigger.html
  48. +17 −21 demos/datepicker/index.html
  49. +3 −10 demos/datepicker/inline.html
  50. +3 −10 demos/datepicker/localization.html
  51. +3 −10 demos/datepicker/min-max.html
  52. +3 −10 demos/datepicker/multiple-calendars.html
  53. +3 −10 demos/datepicker/other-months.html
  54. +3 −10 demos/datepicker/show-week.html
  55. +4 −320 demos/demos.css
  56. +3 −10 demos/dialog/animated.html
  57. +3 −24 demos/dialog/default.html
  58. +9 −13 demos/dialog/index.html
  59. +4 −26 demos/dialog/modal-confirmation.html
  60. +4 −14 demos/dialog/modal-form.html
  61. +4 −26 demos/dialog/modal-message.html
  62. +4 −26 demos/dialog/modal.html
  63. +12 −23 demos/draggable/constrain-movement.html
  64. +3 −10 demos/draggable/cursor-style.html
  65. +3 −10 demos/draggable/default.html
  66. +3 −10 demos/draggable/delay-start.html
  67. +3 −10 demos/draggable/events.html
  68. +3 −12 demos/draggable/handle.html
  69. +14 −18 demos/draggable/index.html
  70. +3 −10 demos/draggable/revert.html
  71. +3 −10 demos/draggable/scroll.html
  72. +3 −10 demos/draggable/snap-to.html
  73. +6 −13 demos/draggable/sortable.html
  74. +3 −10 demos/draggable/visual-feedback.html
  75. +3 −10 demos/droppable/accepted-elements.html
  76. +3 −10 demos/droppable/default.html
  77. +10 −14 demos/droppable/index.html
  78. +6 −8 demos/droppable/photo-manager.html
  79. +3 −10 demos/droppable/propagation.html
  80. +3 −10 demos/droppable/revert.html
  81. +3 −10 demos/droppable/shopping-cart.html
  82. +6 −12 demos/droppable/visual-feedback.html
  83. +6 −13 demos/effect/default.html
  84. +3 −10 demos/effect/easing.html
  85. +5 −9 demos/effect/index.html
  86. +3 −10 demos/hide/default.html
  87. +4 −8 demos/hide/index.html
  88. +32 −331 demos/index.html
  89. +1 −1 demos/mask/default.html
  90. +1 −1 demos/mask/functiondefinition.html
  91. +0 −1 demos/mask/index.html
  92. +1 −1 demos/mask/regulardefinition.html
  93. +19 −26 demos/menu/default.html
  94. +7 −9 demos/menu/index.html
  95. +39 −46 demos/menu/navigationmenu.html
  96. +4 −1 demos/menu/topalignmenu.html
  97. +31 −35 demos/position/cycler.html
  98. +3 −10 demos/position/default.html
  99. +5 −9 demos/position/index.html
  100. +3 −10 demos/progressbar/animated.html
  101. +3 −10 demos/progressbar/default.html
  102. +6 −10 demos/progressbar/index.html
  103. +3 −10 demos/progressbar/resize.html
  104. +3 −10 demos/removeClass/default.html
  105. +4 −8 demos/removeClass/index.html
  106. +3 −10 demos/resizable/animate.html
  107. +3 −10 demos/resizable/aspect-ratio.html
  108. +3 −10 demos/resizable/constrain-area.html
  109. +3 −10 demos/resizable/default.html
  110. +4 −11 demos/resizable/delay-start.html
  111. +3 −10 demos/resizable/helper.html
  112. +14 −18 demos/resizable/index.html
  113. +3 −10 demos/resizable/max-min.html
  114. +3 −10 demos/resizable/snap-to-grid.html
  115. +3 −10 demos/resizable/synchronous-resize.html
  116. +3 −10 demos/resizable/textarea.html
  117. +3 −10 demos/resizable/visual-feedback.html
  118. +4 −11 demos/selectable/default.html
  119. +5 −12 demos/selectable/display-grid.html
  120. +6 −10 demos/selectable/index.html
  121. +4 −11 demos/selectable/serialize.html
  122. +4 −11 demos/show/default.html
  123. +4 −8 demos/show/index.html
  124. +4 −12 demos/slider/colorpicker.html
  125. +3 −13 demos/slider/default.html
  126. +3 −13 demos/slider/hotelrooms.html
  127. +14 −19 demos/slider/index.html
  128. +5 −13 demos/slider/multiple-vertical.html
  129. +3 −13 demos/slider/range-vertical.html
  130. +3 −13 demos/slider/range.html
  131. +3 −13 demos/slider/rangemax.html
  132. +3 −13 demos/slider/rangemin.html
  133. +3 −11 demos/slider/side-scroll.html
  134. +3 −13 demos/slider/slider-vertical.html
  135. +3 −13 demos/slider/steps.html
  136. +0 −67 demos/slider/tabs.html
  137. +3 −9 demos/sortable/connect-lists-through-tabs.html
  138. +3 −9 demos/sortable/connect-lists.html
  139. +3 −9 demos/sortable/default.html
  140. +4 −10 demos/sortable/delay-start.html
  141. +4 −10 demos/sortable/display-grid.html
  142. +4 −10 demos/sortable/empty-lists.html
  143. +12 −16 demos/sortable/index.html
  144. +3 −9 demos/sortable/items.html
  145. +3 −9 demos/sortable/placeholder.html
  146. +5 −11 demos/sortable/portlets.html
  147. +3 −10 demos/spinner/currency.html
  148. +2 −9 demos/spinner/decimal.html
  149. +2 −9 demos/spinner/default.html
  150. +8 −12 demos/spinner/index.html
  151. +2 −9 demos/spinner/latlong.html
  152. +2 −9 demos/spinner/overflow.html
  153. +2 −7 demos/spinner/time.html
  154. +5 −12 demos/switchClass/default.html
  155. +4 −8 demos/switchClass/index.html
  156. +3 −10 demos/tabs/ajax.html
  157. +3 −10 demos/tabs/bottom.html
  158. +3 −10 demos/tabs/collapsible.html
  159. +3 −10 demos/tabs/default.html
  160. +10 −14 demos/tabs/index.html
  161. +23 −30 demos/tabs/manipulation.html
  162. +3 −12 demos/tabs/mouseover.html
  163. +4 −17 demos/tabs/sortable.html
  164. +3 −10 demos/tabs/vertical.html
  165. +2 −8 demos/toggle/default.html
  166. +4 −8 demos/toggle/index.html
  167. +3 −10 demos/toggleClass/default.html
  168. +4 −8 demos/toggleClass/index.html
  169. +2 −9 demos/tooltip/custom-animation.html
  170. +3 −10 demos/tooltip/custom-content.html
  171. +5 −12 demos/tooltip/custom-style.html
  172. +3 −10 demos/tooltip/default.html
  173. +2 −9 demos/tooltip/forms.html
  174. +9 −13 demos/tooltip/index.html
  175. +3 −10 demos/tooltip/tracking.html
  176. +3 −10 demos/tooltip/video-player.html
  177. +3 −11 demos/widget/default.html
  178. +4 −8 demos/widget/index.html
  179. +3 −7 grunt.js
  180. +9,440 −0 jquery-1.8.2.js
  181. +1 −2 package.json
  182. +1 −1 tests/index.html
  183. +662 −588 jquery-1.8.0.js → tests/jquery-1.8.1.js
  184. +9,440 −0 tests/jquery-1.8.2.js
  185. +1 −1 tests/jquery.js
  186. +1 −1 tests/jquery.simulate.js
  187. +18 −18 tests/unit/accordion/accordion_options.js
  188. +1 −1 tests/unit/accordion/all.html
  189. +1 −1 tests/unit/all-active.html
  190. +1 −1 tests/unit/all.html
  191. +1 −1 tests/unit/autocomplete/all.html
  192. +1 −1 tests/unit/button/all.html
  193. +1 −1 tests/unit/core/all.html
  194. +1 −1 tests/unit/datepicker/all.html
  195. +2 −2 tests/unit/datepicker/datepicker_core.js
  196. +1 −1 tests/unit/dialog/all.html
  197. +1 −1 tests/unit/draggable/all.html
  198. +1 −1 tests/unit/droppable/all.html
  199. +1 −1 tests/unit/effects/all.html
  200. +1 −1 tests/unit/index.html
  201. +1 −1 tests/unit/menu/all.html
  202. +11 −7 tests/unit/menu/menu_events.js
  203. +1 −1 tests/unit/position/all.html
  204. +1 −1 tests/unit/progressbar/all.html
  205. +1 −1 tests/unit/resizable/all.html
  206. +1 −1 tests/unit/selectable/all.html
  207. +1 −1 tests/unit/slider/all.html
  208. +1 −1 tests/unit/sortable/all.html
  209. +1 −1 tests/unit/spinner/all.html
  210. +1 −1 tests/unit/subsuite.js
  211. +1 −1 tests/unit/tabs/all.html
  212. +8 −0 tests/unit/tabs/tabs.html
  213. +9 −0 tests/unit/tabs/tabs_core.js
  214. +8 −0 tests/unit/tabs/tabs_deprecated.html
  215. +7 −1 tests/unit/tabs/tabs_options.js
  216. +1 −1 tests/unit/tooltip/all.html
  217. +1 −1 tests/unit/tooltip/tooltip_common.js
  218. +27 −3 tests/unit/tooltip/tooltip_methods.js
  219. +1 −1 tests/unit/widget/all.html
  220. +1 −1 tests/visual/accordion/icons.html
  221. +1 −1 tests/visual/addClass/queue.html
  222. +1 −1 tests/visual/button/button.html
  223. +1 −1 tests/visual/button/performance.html
  224. +1 −1 tests/visual/compound/accordion_tabs.html
  225. +1 −1 tests/visual/compound/datepicker_dialog.html
  226. +1 −1 tests/visual/compound/dialog_widgets.html
  227. +1 −1 tests/visual/compound/draggable_accordion.html
  228. +1 −1 tests/visual/compound/draggable_accordion_accordion_tabs_draggable.html
  229. +1 −1 tests/visual/compound/sortable_accordion_sortable_tabs.html
  230. +1 −1 tests/visual/compound/tabs_tabs.html
  231. +1 −1 tests/visual/compound/tabs_tooltips.html
  232. +1 −1 tests/visual/dialog/performance.html
  233. +1 −1 tests/visual/effects/all.html
  234. +1 −1 tests/visual/effects/scale.html
  235. +1 −1 tests/visual/index.html
  236. +2 −2 tests/visual/mask/mask.html
  237. +1 −1 tests/visual/menu/menu.html
  238. +1 −1 tests/visual/position/position.html
  239. +1 −1 tests/visual/position/position_feedback.html
  240. +2 −2 tests/visual/theme.html
  241. +2 −2 tests/visual/timepicker/timepicker.html
  242. +1 −1 tests/visual/tooltip/animations.html
  243. +2 −2 tests/visual/tooltip/tooltip.html
  244. +5 −1 themes/base/jquery.ui.autocomplete.css
  245. +0 −1 themes/base/jquery.ui.spinner.css
  246. +1 −2 themes/base/jquery.ui.theme.css
  247. +24 −18 ui/jquery.ui.accordion.js
  248. +1 −1 ui/jquery.ui.autocomplete.js
  249. +1 −1 ui/jquery.ui.button.js
  250. +8 −2 ui/jquery.ui.core.js
  251. +2 −2 ui/jquery.ui.datepicker.js
  252. +25 −27 ui/jquery.ui.dialog.js
  253. +22 −7 ui/jquery.ui.draggable.js
  254. +1 −1 ui/jquery.ui.droppable.js
  255. +1 −1 ui/jquery.ui.effect-blind.js
  256. +1 −1 ui/jquery.ui.effect-bounce.js
  257. +1 −1 ui/jquery.ui.effect-clip.js
  258. +1 −1 ui/jquery.ui.effect-drop.js
  259. +1 −1 ui/jquery.ui.effect-explode.js
  260. +1 −1 ui/jquery.ui.effect-fade.js
  261. +1 −1 ui/jquery.ui.effect-fold.js
  262. +1 −1 ui/jquery.ui.effect-highlight.js
  263. +1 −1 ui/jquery.ui.effect-pulsate.js
  264. +1 −1 ui/jquery.ui.effect-scale.js
  265. +1 −1 ui/jquery.ui.effect-shake.js
  266. +1 −1 ui/jquery.ui.effect-slide.js
  267. +1 −1 ui/jquery.ui.effect-transfer.js
  268. +1 −1 ui/jquery.ui.effect.js
  269. +22 −15 ui/jquery.ui.menu.js
  270. +2 −2 ui/jquery.ui.mouse.js
  271. +1 −1 ui/jquery.ui.position.js
  272. +1 −1 ui/jquery.ui.progressbar.js
  273. +11 −12 ui/jquery.ui.resizable.js
  274. +1 −1 ui/jquery.ui.selectable.js
  275. +1 −1 ui/jquery.ui.slider.js
  276. +21 −12 ui/jquery.ui.sortable.js
  277. +2 −5 ui/jquery.ui.spinner.js
  278. +8 −7 ui/jquery.ui.tabs.js
  279. +24 −3 ui/jquery.ui.tooltip.js
  280. +1 −1 ui/jquery.ui.widget.js
@@ -4,14 +4,14 @@ A list of current team members is available at http://jqueryui.com/about
Paul Bakaus <paul.bakaus@googlemail.com>
Richard Worth <rdworth@gmail.com>
Yehuda Katz <wycats@gmail.com>
Sean Catchpole <littlecooldude@gmail.com>
Sean Catchpole <sean@sunsean.com>
John Resig <jeresig@gmail.com>
Tane Piper <tane@tanepiper.com>
Tane Piper <piper.tane@gmail.com>
Dmitri Gaskin <dmitrig01@gmail.com>
Klaus Hartl <klaus.hartl@googlemail.com>
Stefan Petre <stefan.petre@gmail.com>
Gilles van den Hoven <gilles@webunity.nl>
Micheil Smith <micheil@brandedcode.com>
Micheil Bryan Smith <micheil@brandedcode.com>
Jörn Zaefferer <joern.zaefferer@gmail.com>
Marc Grabanski <m@marcgrabanski.com>
Keith Wood <kbwood.au@gmail.com>
@@ -81,9 +81,9 @@ Khaled AlHourani <me@khaledalhourani.com>
Marian Rudzynski <mr@impaled.org>
Jean-Francois Remy <jfremy@virtuoz.com>
Doug Blood <dougblood@gmail.com>
Filippo Cavallarin <poplix@papuasia.org>
Filippo Cavallarin <filippo.cavallarin@codseq.it>
Heiko Henning <h.henning@educa.ch>
Aliaxandr Rahalevich <saksmlz@gmail.com>
Aliaksandr Rahalevich <saksmlz@gmail.com>
Mario Visic <mario@mariovisic.com>
Xavi Ramirez <xavi.rmz@gmail.com>
Max Schnur <max.schnur@gmail.com>
@@ -92,7 +92,7 @@ Corey Frang <gnarf@gnarf.net>
Aaron Peterson <aaronp123@yahoo.com>
Ivan Peters <ivan@ivanpeters.com>
Mohamed Cherif Bouchelaghem <cherifbouchelaghem@yahoo.fr>
Marcos Sousa <marcos.sousa@corp.globo.com>
Marcos Sousa <falecomigo@marcossousa.com>
Michael DellaNoce <mdellanoce@mailtrust.com>
George Marshall <echosx@gmail.com>
Tobias Brunner <tobias@strongswan.org>
@@ -114,8 +114,8 @@ Hans Hillen <hans.hillen@gmail.com>
Mark Johnson <virgofx@live.com>
Trey Hunner <treyhunner@gmail.com>
Shane Whittet <whittet@gmail.com>
Edward Faulkner <ef@alum.mit.edu>
Adam Baratz <adam.baratz@gmail.com>
Edward A Faulkner <ef@alum.mit.edu>
Adam Baratz <adam@adambaratz.com>
Kato Kazuyoshi <kato.kazuyoshi@gmail.com>
Eike Send <eike.send@gmail.com>
Kris Borchers <kris.borchers@gmail.com>
@@ -125,27 +125,27 @@ Carson McDonald <carson@ioncannon.net>
Jason Davies <jason@jasondavies.com>
Garrison Locke <gplocke@gmail.com>
David Murdoch <musicisair@yahoo.com>
Ben Boyle <benjamins.boyle@gmail.com>
Benjamin Scott Boyle <benjamins.boyle@gmail.com>
Jesse Baird <jebaird@gmail.com>
Jonathan Vingiano <jvingiano@gmail.com>
Dylan Just <dev@ephox.com>
Tomy Kaira <tomykaira@gmail.com>
Hiroshi Tomita <tomykaira@gmail.com>
Glenn Goodrich <glenn.goodrich@gmail.com>
Ashek Elahi <mail.ashek@gmail.com>
Tarafder Ashek-E-Elahi <mail.ashek@gmail.com>
Ryan Neufeld <ryan@neufeldmail.com>
Marc Neuwirth <marc.neuwirth@gmail.com>
Philip Graham <philip.robert.graham@gmail.com>
Benjamin Sterling <benjamin.sterling@kenzomedia.com>
Wesley Walser <wwalser@atlassian.com>
Wesley Walser <waw325@gmail.com>
Kouhei Sutou <kou@clear-code.com>
Karl Kirch <karl.ctr.kirch@faa.gov>
Karl Kirch <karlkrch@gmail.com>
Chris Kelly <ckdake@ckdake.com>
Jay Oster <jay@loyalize.com>
Alex Polomoshnov <alex.polomoshnov@gmail.com>
Alexander Polomoshnov <alex.polomoshnov@gmail.com>
David Leal <dgleal@gmail.com>
igor milla <igor.fsp.milla@gmail.com>
Igor Milla <igor.fsp.milla@gmail.com>
Dave Methvin <dave.methvin@gmail.com>
Florian Gutmann <blackfeet@gmx.at>
Florian Gutmann <f.gutmann@chronimo.com>
Marwan Al Jubeh <marwan.aljubeh@gmail.com>
Milan Broum <midlis@googlemail.com>
Sebastian Sauer <info@dynpages.de>
@@ -157,7 +157,7 @@ David Soms <david.soms@gmail.com>
David De Sloovere <david.desloovere@hotmail.com>
Michael P. Jung <michael.jung@terreon.de>
Shannon Pekary <spekary@gmail.com>
Matthew Hutton <meh@corefiling.co.uk>
Matthew Edward Hutton <meh@corefiling.co.uk>
James Khoury <james@jameskhoury.com>
Rob Loach <robloach@gmail.com>
Alberto Monteiro <betimbrasil@gmail.com>
@@ -168,7 +168,7 @@ Genie <386@mail.com>
Rick Waldron <waldron.rick@gmail.com>
Ian Simpson <spoonlikesham@gmail.com>
Lev Kitsis <spam4lev@gmail.com>
TJ VanToll <tj.vantoll@gmail.com>
Ted VanToll <tj.vantoll@gmail.com>
Justin Domnitz <jdomnitz@gmail.com>
Douglas Cerna <douglascerna@yahoo.com>
Bert ter Heide <bertjh@hotmail.com>
@@ -189,11 +189,11 @@ Eneko Illarramendi <eneko@illarra.com>
EungJun Yi <semtlenori@gmail.com>
Courtland Allen <courtlandallen@gmail.com>
Viktar Varvanovich <non4eg@gmail.com>
Danny Trunk <dtrunk90@googlemail.com>
Danny Trunk <dtrunk90@gmail.com>
Pavel Stetina <pavel.stetina@nangu.tv>
Mike Stay <metaweta@gmail.com>
Michael Stay <metaweta@gmail.com>
Steven Roussey <sroussey@gmail.com>
Mike Hollis <hollis21@gmail.com>
Michael Hollis <hollis21@gmail.com>
Lee Rowlands <lee.rowlands@previousnext.com.au>
Timmy Willison <timmywillisn@gmail.com>
Karl Swedberg <kswedberg@gmail.com>
@@ -203,3 +203,8 @@ Luis Dalmolin <luis.nh@gmail.com>
Mark Aaron Shirley <maspwr@gmail.com>
Martin Hoch <martin@fidion.de>
Jiayi Yang <tr870829@gmail.com>
Philipp Benjamin Köppchen <xgxtpbk@gws.ms>
Sindre Sorhus <sindresorhus@gmail.com>
Bernhard Sirlinger <bernhard.sirlinger@tele2.de>
Jared A. Scheel <jared@jaredscheel.com>
Rafael Xavier de Souza <rxaviers@gmail.com>
@@ -0,0 +1,13 @@
{
"curly": true,
"eqnull": true,
"eqeqeq": true,
"expr": true,
"noarg": true,
"node": true,
"onevar": true,
"smarttabs": true,
"strict": false,
"trailing": true,
"undef": true
}
@@ -62,6 +62,7 @@
"abstraction",
"state",
"factory"
]
],
"docs": "http://api.jqueryui.com/jQuery.widget/"
}
}
@@ -10,70 +10,68 @@ Move all commit notes to the appropriate section.
- If there is no ticket number, search Trac for the relevant ticket.
- If there is no ticket, create one (if needed), or leave just the commit link.

Double check that "XXXX" does not appear anywhere in the changelog.
Double check that "TICKETREF" does not appear anywhere in the changelog.

Post this changelog at: CHANGELOG_URL
Add this changelog to jqueryui.com.



DELETE EVERYTHING ABOVE THE FOLLOWING LINE
------------------------------------------
<script>{
"title": "{title}"
}</script>

= Summary =
This is the final release of jQuery UI 1.8.
-- OR --
This is the second maintenance release for [[UI/Changelog/1.8|jQuery UI 1.8]].
## Build

= Build =
## Core &amp; Utilities

= Core &amp; Utilities =
### UI Core

=== UI Core ===
### Mouse

=== Mouse ===
### Widget Factory

=== Widget Factory ===
### Position

=== Position ===
## Interactions

= Interactions =
### Draggable

=== Draggable ===
### Droppable

=== Droppable ===
### Resizable

=== Resizable ===
### Selectable

=== Selectable ===
### Sortable

=== Sortable ===
## Widgets

= Widgets =
### Accordion

=== Accordion ===
### Autocomplete

=== Autocomplete ===
### Button

=== Button ===
### Datepicker

=== Datepicker ===
### Dialog

=== Dialog ===
### Progressbar

=== Progressbar ===
### Slider

=== Slider ===
### Tabs

=== Tabs ===
## Effects

= Effects =
### Individual effects

=== Individual effects ===
## CSS Framework

= CSS Framework =
## Demos

= Demos =
## Website

= Website =

=== Download Builder ===
### Download Builder
@@ -1,4 +1,5 @@
#!/usr/bin/env node
/*global cat:true cd:true cp:true echo:true exec:true exit:true ls:true*/

var baseDir, repoDir, prevVersion, newVersion, nextVersion, tagTime,
fs = require( "fs" ),
@@ -40,6 +41,9 @@ walk([
section( "gathering contributors" ),
gatherContributors,

section( "generating quick download" ),
generateQuickDownload,

section( "updating trac" ),
updateTrac,
confirm
@@ -64,6 +68,9 @@ function cloneRepo() {
if ( exec( "npm install" ).code !== 0 ) {
abort( "Error installing dependencies." );
}
if ( exec( "npm install download.jqueryui.com" ).code !== 0 ) {
abort( "Error installing dependencies." );
}
echo();
}

@@ -103,10 +110,12 @@ function getVersions() {
major = parseInt( parts[ 0 ], 10 );
minor = parseInt( parts[ 1 ], 10 );
patch = parseInt( parts[ 2 ], 10 );

// TODO: handle 2.0.0
if ( minor === 0 ) {
abort( "This script is not smart enough to handle the 2.0.0 release." );
}

prevVersion = patch === 0 ?
[ major, minor - 1, 0 ].join( "." ) :
[ major, minor, patch - 1 ].join( "." );
@@ -143,8 +152,7 @@ function buildRelease() {
echo();

echo( "Building release..." );
// TODO: Build themes
if ( exec( "grunt release" ).code !== 0 ) {
if ( exec( "grunt release_cdn" ).code !== 0 ) {
abort( "Error building release." );
}
echo();
@@ -190,7 +198,9 @@ function generateChangelog() {
var commits,
changelogPath = baseDir + "/changelog",
changelog = cat( "build/release/changelog-shell" ) + "\n",
fullFormat = "* %s (TICKETREF, [http://github.com/jquery/jquery-ui/commit/%H %h])";
fullFormat = "* %s (TICKETREF, [%h](http://github.com/jquery/jquery-ui/commit/%H))";

changelog = changelog.replace( "{title}", "jQuery UI " + newVersion + " Changelog" );

echo ( "Adding commits..." );
commits = gitLog( fullFormat );
@@ -205,7 +215,7 @@ function generateChangelog() {
});
return tickets.length ?
commit.replace( "TICKETREF", tickets.map(function( ticket ) {
return "[http://bugs.jqueryui.com/ticket/" + ticket + " #" + ticket + "]";
return "[#" + ticket + "](http://bugs.jqueryui.com/ticket/" + ticket + ")";
}).join( ", " ) ) :
// Leave TICKETREF token in place so it's easy to find commits without tickets
commit;
@@ -244,13 +254,41 @@ function gatherContributors() {
echo ( "Adding people thanked in commits..." );
contributors = contributors.concat(
gitLog( "%b%n%s" ).filter(function( line ) {
return /thank/i.test( line );
return (/thank/i).test( line );
}));

fs.writeFileSync( contributorsPath, contributors.join( "\n" ) );
echo( "Stored contributors in " + contributorsPath.cyan + "." );
}

function generateQuickDownload() {
var config,
downloadDir = repoDir + "/node_modules/download.jqueryui.com",
filename = "jquery-ui-" + newVersion + ".custom.zip",
destination = baseDir + "/" + filename;

cd( downloadDir );

// Update jQuery UI version for download builder
config = JSON.parse( cat( "config.json" ) );
config.jqueryUi = newVersion;
JSON.stringify( config ).to( "config.json" );

// Generate quick download
// TODO: Find a way to avoid having to clone jquery-ui inside download builder
if ( exec( "grunt prepare build" ).code !== 0 ) {
abort( "Error generating quick download." );
}
cp( downloadDir + "/release/" + filename, destination );
// cp() doesn't have error handling, so check for the file
if ( ls( destination ).length !== 1 ) {
abort( "Error copying quick download." );
}

// Go back to repo directory for consistency
cd( repoDir );
}

function updateTrac() {
echo( newVersion.cyan + " was tagged at " + tagTime.cyan + "." );
echo( "Close the " + newVersion.cyan + " Milestone with the above date and time." );
@@ -341,8 +379,8 @@ function bootstrap( fn ) {
return process.exit( 1 );
}

require( baseDir + "/node_modules/shelljs/global" );
require( baseDir + "/node_modules/colors" );
require( "shelljs/global" );
require( "colors" );

fn();
});