lady_josephine 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (304) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +32 -0
  4. data/app/assets/fonts/lady_josephine/icons/icons.eot +0 -0
  5. data/app/assets/fonts/lady_josephine/icons/icons.svg +215 -0
  6. data/app/assets/fonts/lady_josephine/icons/icons.ttf +0 -0
  7. data/app/assets/fonts/lady_josephine/icons/icons.woff +0 -0
  8. data/app/assets/javascripts/lady_josephine/blocks/facebook.js +25 -0
  9. data/app/assets/javascripts/lady_josephine/blocks/instagram.js +22 -0
  10. data/app/assets/javascripts/lady_josephine/blocks/soundcloud.js +24 -0
  11. data/app/assets/javascripts/lady_josephine/blocks/twitter.js +25 -0
  12. data/app/assets/javascripts/lady_josephine/blocks/vimeo.js +55 -0
  13. data/app/assets/javascripts/lady_josephine/blocks/youtube.js +64 -0
  14. data/app/assets/javascripts/lady_josephine/editor.js +40 -0
  15. data/app/assets/javascripts/lady_josephine/lady_josephine.js +4 -0
  16. data/app/assets/javascripts/lady_josephine/lady_josephine_view.js +6 -0
  17. data/app/assets/stylesheets/lady_josephine/content.sass +33 -0
  18. data/app/assets/stylesheets/lady_josephine/icons.sass +175 -0
  19. data/app/assets/stylesheets/lady_josephine/lady_josephine.sass +6 -0
  20. data/app/assets/stylesheets/lady_josephine/sir_trevor.sass +619 -0
  21. data/app/assets/stylesheets/lady_josephine/vars.sass +36 -0
  22. data/app/controllers/lady_josephine/application_controller.rb +4 -0
  23. data/app/controllers/lady_josephine/editor_controller.rb +40 -0
  24. data/app/controllers/lady_josephine/images_controller.rb +26 -0
  25. data/app/helpers/lady_josephine/helper.rb +25 -0
  26. data/app/helpers/lady_josephine/sir_trevor_helper.rb +172 -0
  27. data/app/models/lady_josephine/concerns/model.rb +29 -0
  28. data/app/models/lady_josephine/concerns/pingable.rb +28 -0
  29. data/app/models/lady_josephine/concerns/server_uuid.rb +24 -0
  30. data/app/models/lady_josephine/concerns/sir_trevor_images.rb +38 -0
  31. data/app/models/lady_josephine/image.rb +41 -0
  32. data/app/uploader/lady_josephine/base_uploader.rb +47 -0
  33. data/app/uploader/lady_josephine/image_uploader.rb +149 -0
  34. data/app/views/lady_josephine/blocks/_audio_block.haml +2 -0
  35. data/app/views/lady_josephine/blocks/_definition_block.haml +4 -0
  36. data/app/views/lady_josephine/blocks/_divider_block.haml +2 -0
  37. data/app/views/lady_josephine/blocks/_extended_image_block.haml +63 -0
  38. data/app/views/lady_josephine/blocks/_extended_quote_block.haml +5 -0
  39. data/app/views/lady_josephine/blocks/_extended_tweet_block.haml +2 -0
  40. data/app/views/lady_josephine/blocks/_facebook_post_block.haml +2 -0
  41. data/app/views/lady_josephine/blocks/_heading_block.haml +2 -0
  42. data/app/views/lady_josephine/blocks/_html_block.haml +1 -0
  43. data/app/views/lady_josephine/blocks/_instagram_block.haml +2 -0
  44. data/app/views/lady_josephine/blocks/_list_block.haml +3 -0
  45. data/app/views/lady_josephine/blocks/_quote_block.haml +5 -0
  46. data/app/views/lady_josephine/blocks/_text_block.html.haml +2 -0
  47. data/app/views/lady_josephine/blocks/_video_block.haml +9 -0
  48. data/config/routes.rb +9 -0
  49. data/db/migrate/20160222151500_lady_josephine_image.rb +18 -0
  50. data/lib/generators/lady_josephine_migration/USAGE +9 -0
  51. data/lib/generators/lady_josephine_migration/lady_josephine_migration_generator.rb +17 -0
  52. data/lib/generators/lady_josephine_migration/templates/migration.rb +9 -0
  53. data/lib/lady_josephine.rb +18 -0
  54. data/lib/lady_josephine/engine.rb +18 -0
  55. data/lib/lady_josephine/redcarpet/custom_markdown_formatter.rb +63 -0
  56. data/lib/lady_josephine/renderer/sir_trevor_renderer.rb +16 -0
  57. data/lib/lady_josephine/version.rb +3 -0
  58. data/lib/lady_josephine/whitelist.rb +26 -0
  59. data/lib/tasks/lady_josephine_tasks.rake +4 -0
  60. data/spec/controllers/lady_josephine/editor_controller_spec.rb +58 -0
  61. data/spec/dummy/README.rdoc +28 -0
  62. data/spec/dummy/Rakefile +6 -0
  63. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  64. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  65. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  66. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  67. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  68. data/spec/dummy/bin/bundle +3 -0
  69. data/spec/dummy/bin/rails +4 -0
  70. data/spec/dummy/bin/rake +4 -0
  71. data/spec/dummy/bin/setup +29 -0
  72. data/spec/dummy/config.ru +4 -0
  73. data/spec/dummy/config/application.rb +26 -0
  74. data/spec/dummy/config/boot.rb +5 -0
  75. data/spec/dummy/config/database.yml +25 -0
  76. data/spec/dummy/config/environment.rb +5 -0
  77. data/spec/dummy/config/environments/development.rb +41 -0
  78. data/spec/dummy/config/environments/production.rb +79 -0
  79. data/spec/dummy/config/environments/test.rb +42 -0
  80. data/spec/dummy/config/initializers/assets.rb +11 -0
  81. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  82. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  83. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  84. data/spec/dummy/config/initializers/inflections.rb +16 -0
  85. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  86. data/spec/dummy/config/initializers/session_store.rb +3 -0
  87. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  88. data/spec/dummy/config/locales/en.yml +23 -0
  89. data/spec/dummy/config/routes.rb +4 -0
  90. data/spec/dummy/config/secrets.yml +22 -0
  91. data/spec/dummy/db/development.sqlite3 +0 -0
  92. data/spec/dummy/db/schema.rb +16 -0
  93. data/spec/dummy/db/test.sqlite3 +0 -0
  94. data/spec/dummy/log/bla +0 -0
  95. data/spec/dummy/public/404.html +67 -0
  96. data/spec/dummy/public/422.html +67 -0
  97. data/spec/dummy/public/500.html +66 -0
  98. data/spec/dummy/public/favicon.ico +0 -0
  99. data/spec/spec_helper.rb +17 -0
  100. data/vendor/assets/components/Eventable/README.md +12 -0
  101. data/vendor/assets/components/Eventable/bower.json +10 -0
  102. data/vendor/assets/components/Eventable/component.json +11 -0
  103. data/vendor/assets/components/Eventable/eventable.js +207 -0
  104. data/vendor/assets/components/Eventable/package.json +15 -0
  105. data/vendor/assets/components/jquery-autosize/bower.json +30 -0
  106. data/vendor/assets/components/jquery-autosize/demo.html +36 -0
  107. data/vendor/assets/components/jquery-autosize/jquery.autosize.js +273 -0
  108. data/vendor/assets/components/jquery-autosize/jquery.autosize.min.js +6 -0
  109. data/vendor/assets/components/jquery-autosize/package.json +32 -0
  110. data/vendor/assets/components/jquery-autosize/readme.md +216 -0
  111. data/vendor/assets/components/jquery/AUTHORS.txt +163 -0
  112. data/vendor/assets/components/jquery/CONTRIBUTING.md +216 -0
  113. data/vendor/assets/components/jquery/Gruntfile.js +496 -0
  114. data/vendor/assets/components/jquery/MIT-LICENSE.txt +21 -0
  115. data/vendor/assets/components/jquery/README.md +415 -0
  116. data/vendor/assets/components/jquery/build/release-notes.js +59 -0
  117. data/vendor/assets/components/jquery/build/release.js +246 -0
  118. data/vendor/assets/components/jquery/component.json +13 -0
  119. data/vendor/assets/components/jquery/composer.json +35 -0
  120. data/vendor/assets/components/jquery/jquery-migrate.js +496 -0
  121. data/vendor/assets/components/jquery/jquery-migrate.min.js +3 -0
  122. data/vendor/assets/components/jquery/jquery.js +9597 -0
  123. data/vendor/assets/components/jquery/jquery.min.js +5 -0
  124. data/vendor/assets/components/jquery/jquery.min.map +1 -0
  125. data/vendor/assets/components/jquery/package.json +39 -0
  126. data/vendor/assets/components/jquery/speed/benchmark.js +15 -0
  127. data/vendor/assets/components/jquery/speed/benchmarker.css +65 -0
  128. data/vendor/assets/components/jquery/speed/benchmarker.js +181 -0
  129. data/vendor/assets/components/jquery/speed/closest.html +39 -0
  130. data/vendor/assets/components/jquery/speed/css.html +82 -0
  131. data/vendor/assets/components/jquery/speed/event.html +58 -0
  132. data/vendor/assets/components/jquery/speed/filter.html +183 -0
  133. data/vendor/assets/components/jquery/speed/find.html +179 -0
  134. data/vendor/assets/components/jquery/speed/index.html +72 -0
  135. data/vendor/assets/components/jquery/speed/jquery-basis.js +6238 -0
  136. data/vendor/assets/components/jquery/speed/slice.vs.concat.html +47 -0
  137. data/vendor/assets/components/jquery/src/ajax.js +851 -0
  138. data/vendor/assets/components/jquery/src/ajax/jsonp.js +80 -0
  139. data/vendor/assets/components/jquery/src/ajax/script.js +86 -0
  140. data/vendor/assets/components/jquery/src/ajax/xhr.js +207 -0
  141. data/vendor/assets/components/jquery/src/attributes.js +661 -0
  142. data/vendor/assets/components/jquery/src/callbacks.js +196 -0
  143. data/vendor/assets/components/jquery/src/core.js +949 -0
  144. data/vendor/assets/components/jquery/src/css.js +679 -0
  145. data/vendor/assets/components/jquery/src/data.js +340 -0
  146. data/vendor/assets/components/jquery/src/deferred.js +141 -0
  147. data/vendor/assets/components/jquery/src/deprecated.js +4 -0
  148. data/vendor/assets/components/jquery/src/dimensions.js +41 -0
  149. data/vendor/assets/components/jquery/src/effects.js +730 -0
  150. data/vendor/assets/components/jquery/src/event-alias.js +15 -0
  151. data/vendor/assets/components/jquery/src/event.js +991 -0
  152. data/vendor/assets/components/jquery/src/exports.js +18 -0
  153. data/vendor/assets/components/jquery/src/intro.js +20 -0
  154. data/vendor/assets/components/jquery/src/manipulation.js +796 -0
  155. data/vendor/assets/components/jquery/src/offset.js +169 -0
  156. data/vendor/assets/components/jquery/src/outro.js +2 -0
  157. data/vendor/assets/components/jquery/src/queue.js +147 -0
  158. data/vendor/assets/components/jquery/src/serialize.js +99 -0
  159. data/vendor/assets/components/jquery/src/sizzle-jquery.js +9 -0
  160. data/vendor/assets/components/jquery/src/support.js +241 -0
  161. data/vendor/assets/components/jquery/src/traversing.js +275 -0
  162. data/vendor/assets/components/jquery/test/csp.php +16 -0
  163. data/vendor/assets/components/jquery/test/data/1x1.jpg +0 -0
  164. data/vendor/assets/components/jquery/test/data/ajax/unreleasedXHR.html +25 -0
  165. data/vendor/assets/components/jquery/test/data/atom+xml.php +4 -0
  166. data/vendor/assets/components/jquery/test/data/badcall.js +1 -0
  167. data/vendor/assets/components/jquery/test/data/badjson.js +1 -0
  168. data/vendor/assets/components/jquery/test/data/cleanScript.html +10 -0
  169. data/vendor/assets/components/jquery/test/data/core/cc_on.html +22 -0
  170. data/vendor/assets/components/jquery/test/data/dashboard.xml +11 -0
  171. data/vendor/assets/components/jquery/test/data/dimensions/documentLarge.html +17 -0
  172. data/vendor/assets/components/jquery/test/data/dimensions/documentSmall.html +21 -0
  173. data/vendor/assets/components/jquery/test/data/echoData.php +1 -0
  174. data/vendor/assets/components/jquery/test/data/echoQuery.php +1 -0
  175. data/vendor/assets/components/jquery/test/data/errorWithText.php +5 -0
  176. data/vendor/assets/components/jquery/test/data/etag.php +21 -0
  177. data/vendor/assets/components/jquery/test/data/evalScript.php +1 -0
  178. data/vendor/assets/components/jquery/test/data/event/longLoadScript.php +4 -0
  179. data/vendor/assets/components/jquery/test/data/event/promiseReady.html +17 -0
  180. data/vendor/assets/components/jquery/test/data/event/syncReady.html +23 -0
  181. data/vendor/assets/components/jquery/test/data/headers.php +18 -0
  182. data/vendor/assets/components/jquery/test/data/if_modified_since.php +20 -0
  183. data/vendor/assets/components/jquery/test/data/iframe.html +8 -0
  184. data/vendor/assets/components/jquery/test/data/jquery-1.8.2.ajax_xhr.min.js +2 -0
  185. data/vendor/assets/components/jquery/test/data/json.php +13 -0
  186. data/vendor/assets/components/jquery/test/data/json_obj.js +1 -0
  187. data/vendor/assets/components/jquery/test/data/jsonp.php +14 -0
  188. data/vendor/assets/components/jquery/test/data/manipulation/iframe-denied.html +36 -0
  189. data/vendor/assets/components/jquery/test/data/name.html +1 -0
  190. data/vendor/assets/components/jquery/test/data/name.php +24 -0
  191. data/vendor/assets/components/jquery/test/data/nocontent.php +5 -0
  192. data/vendor/assets/components/jquery/test/data/offset/absolute.html +41 -0
  193. data/vendor/assets/components/jquery/test/data/offset/body.html +26 -0
  194. data/vendor/assets/components/jquery/test/data/offset/fixed.html +34 -0
  195. data/vendor/assets/components/jquery/test/data/offset/relative.html +31 -0
  196. data/vendor/assets/components/jquery/test/data/offset/scroll.html +39 -0
  197. data/vendor/assets/components/jquery/test/data/offset/static.html +31 -0
  198. data/vendor/assets/components/jquery/test/data/offset/table.html +43 -0
  199. data/vendor/assets/components/jquery/test/data/params_html.php +12 -0
  200. data/vendor/assets/components/jquery/test/data/readywaitasset.js +1 -0
  201. data/vendor/assets/components/jquery/test/data/readywaitloader.js +25 -0
  202. data/vendor/assets/components/jquery/test/data/script.php +11 -0
  203. data/vendor/assets/components/jquery/test/data/selector/html5_selector.html +114 -0
  204. data/vendor/assets/components/jquery/test/data/selector/sizzle_cache.html +21 -0
  205. data/vendor/assets/components/jquery/test/data/statusText.php +5 -0
  206. data/vendor/assets/components/jquery/test/data/support/bodyBackground.html +28 -0
  207. data/vendor/assets/components/jquery/test/data/support/shrinkWrapBlocks.html +23 -0
  208. data/vendor/assets/components/jquery/test/data/support/testElementCrash.html +17 -0
  209. data/vendor/assets/components/jquery/test/data/test.html +7 -0
  210. data/vendor/assets/components/jquery/test/data/test.js +3 -0
  211. data/vendor/assets/components/jquery/test/data/test.php +7 -0
  212. data/vendor/assets/components/jquery/test/data/test2.html +5 -0
  213. data/vendor/assets/components/jquery/test/data/test3.html +3 -0
  214. data/vendor/assets/components/jquery/test/data/testinit.js +269 -0
  215. data/vendor/assets/components/jquery/test/data/testrunner.js +368 -0
  216. data/vendor/assets/components/jquery/test/data/testsuite.css +155 -0
  217. data/vendor/assets/components/jquery/test/data/text.php +12 -0
  218. data/vendor/assets/components/jquery/test/data/ua.txt +272 -0
  219. data/vendor/assets/components/jquery/test/data/with_fries.xml +25 -0
  220. data/vendor/assets/components/jquery/test/data/with_fries_over_jsonp.php +7 -0
  221. data/vendor/assets/components/jquery/test/delegatetest.html +228 -0
  222. data/vendor/assets/components/jquery/test/hovertest.html +158 -0
  223. data/vendor/assets/components/jquery/test/index.html +330 -0
  224. data/vendor/assets/components/jquery/test/localfile.html +75 -0
  225. data/vendor/assets/components/jquery/test/networkerror.html +84 -0
  226. data/vendor/assets/components/jquery/test/polluted.php +110 -0
  227. data/vendor/assets/components/jquery/test/readywait.html +70 -0
  228. data/vendor/assets/components/jquery/test/unit/ajax.js +1971 -0
  229. data/vendor/assets/components/jquery/test/unit/attributes.js +1332 -0
  230. data/vendor/assets/components/jquery/test/unit/callbacks.js +326 -0
  231. data/vendor/assets/components/jquery/test/unit/core.js +1332 -0
  232. data/vendor/assets/components/jquery/test/unit/css.js +1036 -0
  233. data/vendor/assets/components/jquery/test/unit/data.js +636 -0
  234. data/vendor/assets/components/jquery/test/unit/deferred.js +440 -0
  235. data/vendor/assets/components/jquery/test/unit/deprecated.js +1 -0
  236. data/vendor/assets/components/jquery/test/unit/dimensions.js +461 -0
  237. data/vendor/assets/components/jquery/test/unit/effects.js +2050 -0
  238. data/vendor/assets/components/jquery/test/unit/event.js +2690 -0
  239. data/vendor/assets/components/jquery/test/unit/exports.js +7 -0
  240. data/vendor/assets/components/jquery/test/unit/manipulation.js +2242 -0
  241. data/vendor/assets/components/jquery/test/unit/offset.js +549 -0
  242. data/vendor/assets/components/jquery/test/unit/queue.js +316 -0
  243. data/vendor/assets/components/jquery/test/unit/selector.js +185 -0
  244. data/vendor/assets/components/jquery/test/unit/serialize.js +146 -0
  245. data/vendor/assets/components/jquery/test/unit/support.js +384 -0
  246. data/vendor/assets/components/jquery/test/unit/traversing.js +667 -0
  247. data/vendor/assets/components/jquery/test/xhtml.php +5 -0
  248. data/vendor/assets/components/sir-trevor-js/CHANGELOG.md +44 -0
  249. data/vendor/assets/components/sir-trevor-js/Gemfile +3 -0
  250. data/vendor/assets/components/sir-trevor-js/Gemfile.lock +10 -0
  251. data/vendor/assets/components/sir-trevor-js/Gruntfile.js +109 -0
  252. data/vendor/assets/components/sir-trevor-js/MIT-LICENCE +20 -0
  253. data/vendor/assets/components/sir-trevor-js/Readme.md +84 -0
  254. data/vendor/assets/components/sir-trevor-js/bower.json +21 -0
  255. data/vendor/assets/components/sir-trevor-js/component.json +42 -0
  256. data/vendor/assets/components/sir-trevor-js/contributing.md +74 -0
  257. data/vendor/assets/components/sir-trevor-js/examples-component/component.json +14 -0
  258. data/vendor/assets/components/sir-trevor-js/examples-component/index.html +33 -0
  259. data/vendor/assets/components/sir-trevor-js/examples-component/index.js +29 -0
  260. data/vendor/assets/components/sir-trevor-js/examples-component/javascript/example_block.js +203 -0
  261. data/vendor/assets/components/sir-trevor-js/examples-component/javascript/limit_chars.js +46 -0
  262. data/vendor/assets/components/sir-trevor-js/examples-component/sir-trevor.gif +0 -0
  263. data/vendor/assets/components/sir-trevor-js/locales/cn.js +51 -0
  264. data/vendor/assets/components/sir-trevor-js/locales/de.js +51 -0
  265. data/vendor/assets/components/sir-trevor-js/locales/es.js +51 -0
  266. data/vendor/assets/components/sir-trevor-js/locales/fi.js +51 -0
  267. data/vendor/assets/components/sir-trevor-js/locales/fr.js +51 -0
  268. data/vendor/assets/components/sir-trevor-js/locales/pt.js +52 -0
  269. data/vendor/assets/components/sir-trevor-js/package.json +23 -0
  270. data/vendor/assets/components/sir-trevor-js/sir-trevor-icons.css +6 -0
  271. data/vendor/assets/components/sir-trevor-js/sir-trevor.css +393 -0
  272. data/vendor/assets/components/sir-trevor-js/sir-trevor.css.map +7 -0
  273. data/vendor/assets/components/sir-trevor-js/sir-trevor.js +5481 -0
  274. data/vendor/assets/components/sir-trevor-js/sir-trevor.min.js +13 -0
  275. data/vendor/assets/components/underscore/CNAME +1 -0
  276. data/vendor/assets/components/underscore/CONTRIBUTING.md +9 -0
  277. data/vendor/assets/components/underscore/LICENSE +22 -0
  278. data/vendor/assets/components/underscore/README.md +19 -0
  279. data/vendor/assets/components/underscore/Rakefile +10 -0
  280. data/vendor/assets/components/underscore/docs/docco.css +192 -0
  281. data/vendor/assets/components/underscore/docs/favicon.ico +0 -0
  282. data/vendor/assets/components/underscore/docs/images/background.png +0 -0
  283. data/vendor/assets/components/underscore/docs/images/underscore.png +0 -0
  284. data/vendor/assets/components/underscore/docs/underscore.html +823 -0
  285. data/vendor/assets/components/underscore/favicon.ico +0 -0
  286. data/vendor/assets/components/underscore/index.html +2467 -0
  287. data/vendor/assets/components/underscore/index.js +1 -0
  288. data/vendor/assets/components/underscore/package.json +16 -0
  289. data/vendor/assets/components/underscore/test/arrays.js +200 -0
  290. data/vendor/assets/components/underscore/test/chaining.js +59 -0
  291. data/vendor/assets/components/underscore/test/collections.js +453 -0
  292. data/vendor/assets/components/underscore/test/functions.js +265 -0
  293. data/vendor/assets/components/underscore/test/index.html +44 -0
  294. data/vendor/assets/components/underscore/test/objects.js +570 -0
  295. data/vendor/assets/components/underscore/test/speed.js +75 -0
  296. data/vendor/assets/components/underscore/test/utility.js +266 -0
  297. data/vendor/assets/components/underscore/test/vendor/jquery.js +9404 -0
  298. data/vendor/assets/components/underscore/test/vendor/jslitmus.js +670 -0
  299. data/vendor/assets/components/underscore/test/vendor/qunit.css +235 -0
  300. data/vendor/assets/components/underscore/test/vendor/qunit.js +1977 -0
  301. data/vendor/assets/components/underscore/test/vendor/runner.js +98 -0
  302. data/vendor/assets/components/underscore/underscore-min.js +1 -0
  303. data/vendor/assets/components/underscore/underscore.js +1226 -0
  304. metadata +473 -0
@@ -0,0 +1,21 @@
1
+ Copyright 2012 jQuery Foundation and other contributors
2
+ http://jquery.com/
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining
5
+ a copy of this software and associated documentation files (the
6
+ "Software"), to deal in the Software without restriction, including
7
+ without limitation the rights to use, copy, modify, merge, publish,
8
+ distribute, sublicense, and/or sell copies of the Software, and to
9
+ permit persons to whom the Software is furnished to do so, subject to
10
+ the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,415 @@
1
+ [jQuery](http://jquery.com/) - New Wave JavaScript
2
+ ==================================================
3
+
4
+ Contribution Guides
5
+ --------------------------------------
6
+
7
+ In the spirit of open source software development, jQuery always encourages community code contribution. To help you get started and before you jump into writing code, be sure to read these important contribution guidelines thoroughly:
8
+
9
+ 1. [Getting Involved](http://docs.jquery.com/Getting_Involved)
10
+ 2. [Core Style Guide](http://docs.jquery.com/JQuery_Core_Style_Guidelines)
11
+ 3. [Tips For Bug Patching](http://docs.jquery.com/Tips_for_jQuery_Bug_Patching)
12
+
13
+
14
+ What you need to build your own jQuery
15
+ --------------------------------------
16
+
17
+ In order to build jQuery, you need to have Node.js/npm latest and git 1.7 or later.
18
+ (Earlier versions might work OK, but are not tested.)
19
+
20
+ Windows users have two options:
21
+
22
+ 1. Install [msysgit](https://code.google.com/p/msysgit/) (Full installer for official Git) and a
23
+ [binary version of Node.js](http://nodejs.org). Make sure all two packages are installed to the same
24
+ location (by default, this is C:\Program Files\Git).
25
+ 2. Install [Cygwin](http://cygwin.com/) (make sure you install the git and which packages), and
26
+ a [binary version of Node.js](http://nodejs.org/).
27
+
28
+ Mac OS users should install Xcode (comes on your Mac OS install DVD, or downloadable from
29
+ [Apple's Xcode site](http://developer.apple.com/technologies/xcode.html)) and
30
+ [Homebrew](http://mxcl.github.com/homebrew/). Once Homebrew is installed, run `brew install git` to install git,
31
+ and `brew install node` to install Node.js.
32
+
33
+ Linux/BSD users should use their appropriate package managers to install git and Node.js, or build from source
34
+ if you swing that way. Easy-peasy.
35
+
36
+
37
+ How to build your own jQuery
38
+ ----------------------------
39
+
40
+ First, clone a copy of the main jQuery git repo by running:
41
+
42
+ ```bash
43
+ git clone git://github.com/jquery/jquery.git
44
+ ```
45
+
46
+ Enter the directory and install the Node dependencies:
47
+
48
+ ```bash
49
+ cd jquery && npm install
50
+ ```
51
+
52
+
53
+ Make sure you have `grunt` installed by testing:
54
+
55
+ ```bash
56
+ grunt -version
57
+ ```
58
+
59
+
60
+
61
+ Then, to get a complete, minified (w/ Uglify.js), linted (w/ JSHint) version of jQuery, type the following:
62
+
63
+ ```bash
64
+ grunt
65
+ ```
66
+
67
+
68
+ The built version of jQuery will be put in the `dist/` subdirectory.
69
+
70
+
71
+ ### Modules (new in 1.8)
72
+
73
+ Starting in jQuery 1.8, special builds can now be created that optionally exclude or include any of the following modules:
74
+
75
+ - ajax
76
+ - css
77
+ - dimensions
78
+ - effects
79
+ - offset
80
+
81
+
82
+ Before creating a custom build for use in production, be sure to check out the latest stable version:
83
+
84
+ ```bash
85
+ git pull; git checkout $(git describe --abbrev=0 --tags)
86
+ ```
87
+
88
+ Then, make sure all Node dependencies are installed and all Git submodules are checked out:
89
+
90
+ ```bash
91
+ npm install && grunt
92
+ ```
93
+
94
+ To create a custom build, use the following special `grunt` commands:
95
+
96
+ Exclude **ajax**:
97
+
98
+ ```bash
99
+ grunt custom:-ajax
100
+ ```
101
+
102
+ Exclude **css**:
103
+
104
+ ```bash
105
+ grunt custom:-css
106
+ ```
107
+
108
+ Exclude **deprecated**:
109
+
110
+ ```bash
111
+ grunt custom:-deprecated
112
+ ```
113
+
114
+ Exclude **dimensions**:
115
+
116
+ ```bash
117
+ grunt custom:-dimensions
118
+ ```
119
+
120
+ Exclude **effects**:
121
+
122
+ ```bash
123
+ grunt custom:-effects
124
+ ```
125
+
126
+ Exclude **offset**:
127
+
128
+ ```bash
129
+ grunt custom:-offset
130
+ ```
131
+
132
+ Exclude **all** optional modules:
133
+
134
+ ```bash
135
+ grunt custom:-ajax,-css,-deprecated,-dimensions,-effects,-offset
136
+ ```
137
+
138
+
139
+ Note: dependencies will be handled internally, by the build process.
140
+
141
+
142
+ Running the Unit Tests
143
+ --------------------------------------
144
+
145
+
146
+ Start grunt to auto-build jQuery as you work:
147
+
148
+ ```bash
149
+ cd jquery && grunt watch
150
+ ```
151
+
152
+
153
+ Run the unit tests with a local server that supports PHP. No database is required. Pre-configured php local servers are available for Windows and Mac. Here are some options:
154
+
155
+ - Windows: [WAMP download](http://www.wampserver.com/en/)
156
+ - Mac: [MAMP download](http://www.mamp.info/en/index.html)
157
+ - Linux: [Setting up LAMP](https://www.linux.com/learn/tutorials/288158-easy-lamp-server-installation)
158
+ - [Mongoose (most platforms)](http://code.google.com/p/mongoose/)
159
+
160
+
161
+
162
+
163
+ Building to a different directory
164
+ ---------------------------------
165
+
166
+ If you want to build jQuery to a directory that is different from the default location:
167
+
168
+ ```bash
169
+ grunt && grunt dist:/path/to/special/location/
170
+ ```
171
+ With this example, the output files would be:
172
+
173
+ ```bash
174
+ /path/to/special/location/jquery.js
175
+ /path/to/special/location/jquery.min.js
176
+ ```
177
+
178
+ If you want to add a permanent copy destination, create a file in `dist/` called ".destination.json". Inside the file, paste and customize the following:
179
+
180
+ ```json
181
+
182
+ {
183
+ "/Absolute/path/to/other/destination": true
184
+ }
185
+ ```
186
+
187
+
188
+ Additionally, both methods can be combined.
189
+
190
+
191
+
192
+ Updating Submodules
193
+ -------------------
194
+
195
+ Update the submodules to what is probably the latest upstream code.
196
+
197
+ ```bash
198
+ grunt update_submodules
199
+ ```
200
+
201
+ Note: This task will also be run any time the default `grunt` command is used.
202
+
203
+
204
+
205
+ Git for dummies
206
+ ---------------
207
+
208
+ As the source code is handled by the version control system Git, it's useful to know some features used.
209
+
210
+ ### Submodules ###
211
+
212
+ The repository uses submodules, which normally are handled directly by the `grunt update_submodules` command, but sometimes you want to
213
+ be able to work with them manually.
214
+
215
+ Following are the steps to manually get the submodules:
216
+
217
+ ```bash
218
+ git clone https://github.com/jquery/jquery.git
219
+ cd jquery
220
+ git submodule init
221
+ git submodule update
222
+ ```
223
+
224
+ Or:
225
+
226
+ ```bash
227
+ git clone https://github.com/jquery/jquery.git
228
+ cd jquery
229
+ git submodule update --init
230
+ ```
231
+
232
+ Or:
233
+
234
+ ```bash
235
+ git clone --recursive https://github.com/jquery/jquery.git
236
+ cd jquery
237
+ ```
238
+
239
+ If you want to work inside a submodule, it is possible, but first you need to checkout a branch:
240
+
241
+ ```bash
242
+ cd src/sizzle
243
+ git checkout master
244
+ ```
245
+
246
+ After you've committed your changes to the submodule, you'll update the jquery project to point to the new commit,
247
+ but remember to push the submodule changes before pushing the new jquery commit:
248
+
249
+ ```bash
250
+ cd src/sizzle
251
+ git push origin master
252
+ cd ..
253
+ git add src/sizzle
254
+ git commit
255
+ ```
256
+
257
+
258
+ ### cleaning ###
259
+
260
+ If you want to purge your working directory back to the status of upstream, following commands can be used (remember everything you've worked on is gone after these):
261
+
262
+ ```bash
263
+ git reset --hard upstream/master
264
+ git clean -fdx
265
+ ```
266
+
267
+ ### rebasing ###
268
+
269
+ For feature/topic branches, you should always used the `--rebase` flag to `git pull`, or if you are usually handling many temporary "to be in a github pull request" branches, run following to automate this:
270
+
271
+ ```bash
272
+ git config branch.autosetuprebase local
273
+ ```
274
+ (see `man git-config` for more information)
275
+
276
+ ### handling merge conflicts ###
277
+
278
+ If you're getting merge conflicts when merging, instead of editing the conflicted files manually, you can use the feature
279
+ `git mergetool`. Even though the default tool `xxdiff` looks awful/old, it's rather useful.
280
+
281
+ Following are some commands that can be used there:
282
+
283
+ * `Ctrl + Alt + M` - automerge as much as possible
284
+ * `b` - jump to next merge conflict
285
+ * `s` - change the order of the conflicted lines
286
+ * `u` - undo an merge
287
+ * `left mouse button` - mark a block to be the winner
288
+ * `middle mouse button` - mark a line to be the winner
289
+ * `Ctrl + S` - save
290
+ * `Ctrl + Q` - quit
291
+
292
+ [QUnit](http://docs.jquery.com/QUnit) Reference
293
+ -----------------
294
+
295
+ ### Test methods ###
296
+
297
+ ```js
298
+ expect( numAssertions );
299
+ stop();
300
+ start();
301
+ ```
302
+
303
+
304
+ note: QUnit's eventual addition of an argument to stop/start is ignored in this test suite so that start and stop can be passed as callbacks without worrying about their parameters
305
+
306
+ ### Test assertions ###
307
+
308
+
309
+ ```js
310
+ ok( value, [message] );
311
+ equal( actual, expected, [message] );
312
+ notEqual( actual, expected, [message] );
313
+ deepEqual( actual, expected, [message] );
314
+ notDeepEqual( actual, expected, [message] );
315
+ strictEqual( actual, expected, [message] );
316
+ notStrictEqual( actual, expected, [message] );
317
+ raises( block, [expected], [message] );
318
+ ```
319
+
320
+
321
+ Test Suite Convenience Methods Reference (See [test/data/testinit.js](https://github.com/jquery/jquery/blob/master/test/data/testinit.js))
322
+ ------------------------------
323
+
324
+ ### Returns an array of elements with the given IDs ###
325
+
326
+ ```js
327
+ q( ... );
328
+ ```
329
+
330
+ Example:
331
+
332
+ ```js
333
+ q("main", "foo", "bar");
334
+
335
+ => [ div#main, span#foo, input#bar ]
336
+ ```
337
+
338
+ ### Asserts that a selection matches the given IDs ###
339
+
340
+ ```js
341
+ t( testName, selector, [ "array", "of", "ids" ] );
342
+ ```
343
+
344
+ Example:
345
+
346
+ ```js
347
+ t("Check for something", "//[a]", ["foo", "baar"]);
348
+ ```
349
+
350
+
351
+
352
+ ### Fires a native DOM event without going through jQuery ###
353
+
354
+ ```js
355
+ fireNative( node, eventType )
356
+ ```
357
+
358
+ Example:
359
+
360
+ ```js
361
+ fireNative( jQuery("#elem")[0], "click" );
362
+ ```
363
+
364
+ ### Add random number to url to stop caching ###
365
+
366
+ ```js
367
+ url( "some/url.php" );
368
+ ```
369
+
370
+ Example:
371
+
372
+ ```js
373
+ url("data/test.html");
374
+
375
+ => "data/test.html?10538358428943"
376
+
377
+
378
+ url("data/test.php?foo=bar");
379
+
380
+ => "data/test.php?foo=bar&10538358345554"
381
+ ```
382
+
383
+
384
+ ### Load tests in an iframe ###
385
+
386
+ Loads a given page constructing a url with fileName: `"./data/" + fileName + ".html"`
387
+ and fires the given callback on jQuery ready (using the jQuery loading from that page)
388
+ and passes the iFrame's jQuery to the callback.
389
+
390
+ ```js
391
+ testIframe( fileName, testName, callback );
392
+ ```
393
+
394
+ Callback arguments:
395
+
396
+ ```js
397
+ callback( jQueryFromIFrame, iFrameWindow, iFrameDocument );
398
+ ```
399
+
400
+ ### Load tests in an iframe (window.iframeCallback) ###
401
+
402
+ Loads a given page constructing a url with fileName: `"./data/" + fileName + ".html"`
403
+ The given callback is fired when window.iframeCallback is called by the page
404
+ The arguments passed to the callback are the same as the
405
+ arguments passed to window.iframeCallback, whatever that may be
406
+
407
+ ```js
408
+ testIframeWithCallback( testName, fileName, callback );
409
+ ```
410
+
411
+ Questions?
412
+ ----------
413
+
414
+ If you have any questions, please feel free to ask on the
415
+ [Developing jQuery Core forum](http://forum.jquery.com/developing-jquery-core) or in #jquery on irc.freenode.net.
@@ -0,0 +1,59 @@
1
+ #!/usr/bin/env node
2
+ /*
3
+ * jQuery Release Note Generator
4
+ */
5
+
6
+ var fs = require("fs"),
7
+ http = require("http"),
8
+ extract = /<a href="\/ticket\/(\d+)" title="View ticket">(.*?)<[^"]+"component">\s*(\S+)/g,
9
+ categories = [],
10
+ version = process.argv[2];
11
+
12
+ if ( !/^\d+\.\d+/.test( version ) ) {
13
+ console.error( "Invalid version number: " + version );
14
+ process.exit( 1 );
15
+ }
16
+
17
+ http.request({
18
+ host: "bugs.jquery.com",
19
+ port: 80,
20
+ method: "GET",
21
+ path: "/query?status=closed&resolution=fixed&max=400&component=!web&order=component&milestone=" + version
22
+ }, function (res) {
23
+ var data = [];
24
+
25
+ res.on( "data", function( chunk ) {
26
+ data.push( chunk );
27
+ });
28
+
29
+ res.on( "end", function() {
30
+ var match,
31
+ file = data.join(""),
32
+ cur;
33
+
34
+ while ( (match = extract.exec( file )) ) {
35
+ if ( "#" + match[1] !== match[2] ) {
36
+ var cat = match[3];
37
+
38
+ if ( !cur || cur !== cat ) {
39
+ if ( cur ) {
40
+ console.log("</ul>");
41
+ }
42
+ cur = cat;
43
+ console.log( "<h2>" + cat.charAt(0).toUpperCase() + cat.slice(1) + "</h2>" );
44
+ console.log("<ul>");
45
+ }
46
+
47
+ console.log(
48
+ " <li><a href=\"http://bugs.jquery.com/ticket/" + match[1] + "\">#" +
49
+ match[1] + ": " + match[2] + "</a></li>"
50
+ );
51
+ }
52
+ }
53
+ if ( cur ) {
54
+ console.log("</ul>");
55
+ }
56
+
57
+ });
58
+ }).end();
59
+