test_server 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (420) hide show
  1. data/.bowerrc +4 -0
  2. data/.gitignore +19 -0
  3. data/.rdebugrc +7 -0
  4. data/.rspec +3 -0
  5. data/.simplecov +8 -0
  6. data/.travis.yml +8 -0
  7. data/.yardopts +5 -0
  8. data/Gemfile +55 -0
  9. data/LICENSE.md +22 -0
  10. data/README.md +29 -0
  11. data/Rakefile +107 -0
  12. data/app/assets/javascripts/application.js +65 -0
  13. data/app/assets/stylesheets/application.scss +150 -0
  14. data/app/controllers/application_controller.rb +71 -0
  15. data/app/controllers/assets_controller.rb +72 -0
  16. data/app/controllers/javascript_controller.rb +31 -0
  17. data/app/controllers/streaming_controller.rb +52 -0
  18. data/app/controllers/string_controller.rb +51 -0
  19. data/app/views/application.haml +19 -0
  20. data/app/views/xhr/show.haml +38 -0
  21. data/bin/test_server +10 -0
  22. data/bower.json +8 -0
  23. data/config.ru +51 -0
  24. data/files/config.yaml +1 -0
  25. data/files/example-config.erb +12 -0
  26. data/lib/test_server/access_logger.rb +13 -0
  27. data/lib/test_server/actions/create_directory.rb +33 -0
  28. data/lib/test_server/actions/create_file.rb +55 -0
  29. data/lib/test_server/actions/create_output.rb +36 -0
  30. data/lib/test_server/actions/handle_error.rb +39 -0
  31. data/lib/test_server/actions/initialize_application.rb +56 -0
  32. data/lib/test_server/actions/reload_configuration.rb +21 -0
  33. data/lib/test_server/actions/send_signal.rb +32 -0
  34. data/lib/test_server/cli/helper.rb +12 -0
  35. data/lib/test_server/cli/main.rb +105 -0
  36. data/lib/test_server/cli/reload.rb +40 -0
  37. data/lib/test_server/config.rb +107 -0
  38. data/lib/test_server/data.rb +23 -0
  39. data/lib/test_server/encoder.rb +39 -0
  40. data/lib/test_server/encoders/base64.rb +14 -0
  41. data/lib/test_server/encoders/base64_strict.rb +14 -0
  42. data/lib/test_server/encoders/gzip.rb +14 -0
  43. data/lib/test_server/encoders/null.rb +14 -0
  44. data/lib/test_server/erb_generator.rb +35 -0
  45. data/lib/test_server/error_handler.rb +109 -0
  46. data/lib/test_server/error_messages.rb +67 -0
  47. data/lib/test_server/exceptions.rb +39 -0
  48. data/lib/test_server/locales/en.yml +72 -0
  49. data/lib/test_server/main.rb +31 -0
  50. data/lib/test_server/null_access_logger.rb +6 -0
  51. data/lib/test_server/process_environment.rb +23 -0
  52. data/lib/test_server/server.rb +19 -0
  53. data/lib/test_server/server_commands/puma.rb +37 -0
  54. data/lib/test_server/server_commands/rackup.rb +44 -0
  55. data/lib/test_server/template_file.rb +19 -0
  56. data/lib/test_server/template_repository.rb +22 -0
  57. data/lib/test_server/ui_logger.rb +37 -0
  58. data/lib/test_server/version.rb +4 -0
  59. data/lib/test_server/web_helper.rb +66 -0
  60. data/lib/test_server.rb +78 -0
  61. data/share/archlinux/Makefile +7 -0
  62. data/share/archlinux/PKGBUILD.sh.erb +110 -0
  63. data/share/archlinux/config.yaml.erb +10 -0
  64. data/share/archlinux/defaults.sh.erb +3 -0
  65. data/share/archlinux/startup.sh.erb +9 -0
  66. data/share/archlinux/test_server.install +65 -0
  67. data/share/archlinux/tmpfiles.conf.erb +2 -0
  68. data/share/systemd/test_server.service +9 -0
  69. data/share/systemd/test_server.service.erb +11 -0
  70. data/share/systemd/test_server.socket +10 -0
  71. data/spec/encoder_spec.rb +50 -0
  72. data/spec/encoders/base64_spec.rb +18 -0
  73. data/spec/encoders/base64_strict_spec.rb +18 -0
  74. data/spec/encoders/gzip_spec.rb +18 -0
  75. data/spec/encoders/null_spec.rb +18 -0
  76. data/spec/error_handler_spec.rb +155 -0
  77. data/spec/features/fetch_data_via_javascript_spec.rb +19 -0
  78. data/spec/features/fetch_test_data_plain_spec.rb +109 -0
  79. data/spec/features/fetch_test_data_via_streaming_spec.rb +53 -0
  80. data/spec/features/helper_spec.rb +125 -0
  81. data/spec/process_environment_spec.rb +44 -0
  82. data/spec/spec_helper.rb +20 -0
  83. data/spec/support/capybara.rb +16 -0
  84. data/spec/support/debugging.rb +3 -0
  85. data/spec/support/encoding.rb +1 -0
  86. data/spec/support/environment.rb +33 -0
  87. data/spec/support/example.rb +16 -0
  88. data/spec/support/filesystem.rb +19 -0
  89. data/spec/support/html.rb +20 -0
  90. data/spec/support/matcher.rb +17 -0
  91. data/spec/support/pretty_print.xsl +46 -0
  92. data/spec/support/reporting.rb +8 -0
  93. data/spec/support/rspec.rb +5 -0
  94. data/spec/support/string.rb +2 -0
  95. data/spec/support/timeout.rb +18 -0
  96. data/test_server.gemspec +40 -0
  97. data/vendor/assets/components/bootstrap-sass/.bower.json +25 -0
  98. data/vendor/assets/components/bootstrap-sass/CNAME +1 -0
  99. data/vendor/assets/components/bootstrap-sass/CONTRIBUTING.md +61 -0
  100. data/vendor/assets/components/bootstrap-sass/DOCS-LICENSE +319 -0
  101. data/vendor/assets/components/bootstrap-sass/Gemfile +5 -0
  102. data/vendor/assets/components/bootstrap-sass/Gruntfile.js +244 -0
  103. data/vendor/assets/components/bootstrap-sass/LICENSE +176 -0
  104. data/vendor/assets/components/bootstrap-sass/LICENSE-MIT +21 -0
  105. data/vendor/assets/components/bootstrap-sass/README.md +277 -0
  106. data/vendor/assets/components/bootstrap-sass/Rakefile +44 -0
  107. data/vendor/assets/components/bootstrap-sass/_config.yml +25 -0
  108. data/vendor/assets/components/bootstrap-sass/_includes/ads.html +1 -0
  109. data/vendor/assets/components/bootstrap-sass/_includes/footer.html +34 -0
  110. data/vendor/assets/components/bootstrap-sass/_includes/header.html +42 -0
  111. data/vendor/assets/components/bootstrap-sass/_includes/nav-about.html +12 -0
  112. data/vendor/assets/components/bootstrap-sass/_includes/nav-components.html +137 -0
  113. data/vendor/assets/components/bootstrap-sass/_includes/nav-css.html +99 -0
  114. data/vendor/assets/components/bootstrap-sass/_includes/nav-customize.html +40 -0
  115. data/vendor/assets/components/bootstrap-sass/_includes/nav-getting-started.html +44 -0
  116. data/vendor/assets/components/bootstrap-sass/_includes/nav-javascript.html +88 -0
  117. data/vendor/assets/components/bootstrap-sass/_includes/nav-main.html +37 -0
  118. data/vendor/assets/components/bootstrap-sass/_includes/old-bs-docs.html +8 -0
  119. data/vendor/assets/components/bootstrap-sass/_includes/social-buttons.html +16 -0
  120. data/vendor/assets/components/bootstrap-sass/_layouts/default.html +79 -0
  121. data/vendor/assets/components/bootstrap-sass/_layouts/home.html +47 -0
  122. data/vendor/assets/components/bootstrap-sass/about.html +93 -0
  123. data/vendor/assets/components/bootstrap-sass/bower.json +11 -0
  124. data/vendor/assets/components/bootstrap-sass/browserstack.json +37 -0
  125. data/vendor/assets/components/bootstrap-sass/components.html +3689 -0
  126. data/vendor/assets/components/bootstrap-sass/composer.json +28 -0
  127. data/vendor/assets/components/bootstrap-sass/css.html +2674 -0
  128. data/vendor/assets/components/bootstrap-sass/customize.html +1715 -0
  129. data/vendor/assets/components/bootstrap-sass/dist/css/bootstrap-theme.css +427 -0
  130. data/vendor/assets/components/bootstrap-sass/dist/css/bootstrap-theme.min.css +1 -0
  131. data/vendor/assets/components/bootstrap-sass/dist/css/bootstrap.css +6350 -0
  132. data/vendor/assets/components/bootstrap-sass/dist/css/bootstrap.min.css +1 -0
  133. data/vendor/assets/components/bootstrap-sass/dist/fonts/glyphicons-halflings-regular.eot +0 -0
  134. data/vendor/assets/components/bootstrap-sass/dist/fonts/glyphicons-halflings-regular.svg +229 -0
  135. data/vendor/assets/components/bootstrap-sass/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
  136. data/vendor/assets/components/bootstrap-sass/dist/fonts/glyphicons-halflings-regular.woff +0 -0
  137. data/vendor/assets/components/bootstrap-sass/dist/js/bootstrap.js +2002 -0
  138. data/vendor/assets/components/bootstrap-sass/dist/js/bootstrap.min.js +9 -0
  139. data/vendor/assets/components/bootstrap-sass/docs-assets/css/docs.css +1195 -0
  140. data/vendor/assets/components/bootstrap-sass/docs-assets/css/pygments-manni.css +66 -0
  141. data/vendor/assets/components/bootstrap-sass/docs-assets/ico/apple-touch-icon-144-precomposed.png +0 -0
  142. data/vendor/assets/components/bootstrap-sass/docs-assets/ico/favicon.png +0 -0
  143. data/vendor/assets/components/bootstrap-sass/docs-assets/js/application.js +103 -0
  144. data/vendor/assets/components/bootstrap-sass/docs-assets/js/customizer.js +332 -0
  145. data/vendor/assets/components/bootstrap-sass/docs-assets/js/filesaver.js +169 -0
  146. data/vendor/assets/components/bootstrap-sass/docs-assets/js/holder.js +404 -0
  147. data/vendor/assets/components/bootstrap-sass/docs-assets/js/ie8-responsive-file-warning.js +12 -0
  148. data/vendor/assets/components/bootstrap-sass/docs-assets/js/jszip.js +1467 -0
  149. data/vendor/assets/components/bootstrap-sass/docs-assets/js/less.js +9 -0
  150. data/vendor/assets/components/bootstrap-sass/docs-assets/js/raw-files.js +3 -0
  151. data/vendor/assets/components/bootstrap-sass/docs-assets/js/uglify.js +14 -0
  152. data/vendor/assets/components/bootstrap-sass/examples/carousel/carousel.css +148 -0
  153. data/vendor/assets/components/bootstrap-sass/examples/carousel/index.html +206 -0
  154. data/vendor/assets/components/bootstrap-sass/examples/grid/grid.css +28 -0
  155. data/vendor/assets/components/bootstrap-sass/examples/grid/index.html +148 -0
  156. data/vendor/assets/components/bootstrap-sass/examples/jumbotron/index.html +99 -0
  157. data/vendor/assets/components/bootstrap-sass/examples/jumbotron/jumbotron.css +5 -0
  158. data/vendor/assets/components/bootstrap-sass/examples/jumbotron-narrow/index.html +82 -0
  159. data/vendor/assets/components/bootstrap-sass/examples/jumbotron-narrow/jumbotron-narrow.css +79 -0
  160. data/vendor/assets/components/bootstrap-sass/examples/justified-nav/index.html +83 -0
  161. data/vendor/assets/components/bootstrap-sass/examples/justified-nav/justified-nav.css +88 -0
  162. data/vendor/assets/components/bootstrap-sass/examples/navbar/index.html +88 -0
  163. data/vendor/assets/components/bootstrap-sass/examples/navbar/navbar.css +8 -0
  164. data/vendor/assets/components/bootstrap-sass/examples/navbar-fixed-top/index.html +91 -0
  165. data/vendor/assets/components/bootstrap-sass/examples/navbar-fixed-top/navbar-fixed-top.css +4 -0
  166. data/vendor/assets/components/bootstrap-sass/examples/navbar-static-top/index.html +92 -0
  167. data/vendor/assets/components/bootstrap-sass/examples/navbar-static-top/navbar-static-top.css +7 -0
  168. data/vendor/assets/components/bootstrap-sass/examples/non-responsive/index.html +101 -0
  169. data/vendor/assets/components/bootstrap-sass/examples/non-responsive/non-responsive.css +116 -0
  170. data/vendor/assets/components/bootstrap-sass/examples/offcanvas/index.html +130 -0
  171. data/vendor/assets/components/bootstrap-sass/examples/offcanvas/offcanvas.css +50 -0
  172. data/vendor/assets/components/bootstrap-sass/examples/offcanvas/offcanvas.js +5 -0
  173. data/vendor/assets/components/bootstrap-sass/examples/screenshots/carousel.jpg +0 -0
  174. data/vendor/assets/components/bootstrap-sass/examples/screenshots/grid.jpg +0 -0
  175. data/vendor/assets/components/bootstrap-sass/examples/screenshots/jumbotron-narrow.jpg +0 -0
  176. data/vendor/assets/components/bootstrap-sass/examples/screenshots/jumbotron.jpg +0 -0
  177. data/vendor/assets/components/bootstrap-sass/examples/screenshots/justified-nav.jpg +0 -0
  178. data/vendor/assets/components/bootstrap-sass/examples/screenshots/navbar-fixed.jpg +0 -0
  179. data/vendor/assets/components/bootstrap-sass/examples/screenshots/navbar-static.jpg +0 -0
  180. data/vendor/assets/components/bootstrap-sass/examples/screenshots/navbar.jpg +0 -0
  181. data/vendor/assets/components/bootstrap-sass/examples/screenshots/non-responsive.jpg +0 -0
  182. data/vendor/assets/components/bootstrap-sass/examples/screenshots/offcanvas.jpg +0 -0
  183. data/vendor/assets/components/bootstrap-sass/examples/screenshots/sign-in.jpg +0 -0
  184. data/vendor/assets/components/bootstrap-sass/examples/screenshots/starter-template.jpg +0 -0
  185. data/vendor/assets/components/bootstrap-sass/examples/screenshots/sticky-footer-navbar.jpg +0 -0
  186. data/vendor/assets/components/bootstrap-sass/examples/screenshots/sticky-footer.jpg +0 -0
  187. data/vendor/assets/components/bootstrap-sass/examples/screenshots/theme.jpg +0 -0
  188. data/vendor/assets/components/bootstrap-sass/examples/signin/index.html +50 -0
  189. data/vendor/assets/components/bootstrap-sass/examples/signin/signin.css +40 -0
  190. data/vendor/assets/components/bootstrap-sass/examples/starter-template/index.html +68 -0
  191. data/vendor/assets/components/bootstrap-sass/examples/starter-template/starter-template.css +7 -0
  192. data/vendor/assets/components/bootstrap-sass/examples/sticky-footer/index.html +55 -0
  193. data/vendor/assets/components/bootstrap-sass/examples/sticky-footer/sticky-footer.css +38 -0
  194. data/vendor/assets/components/bootstrap-sass/examples/sticky-footer-navbar/index.html +91 -0
  195. data/vendor/assets/components/bootstrap-sass/examples/sticky-footer-navbar/sticky-footer-navbar.css +45 -0
  196. data/vendor/assets/components/bootstrap-sass/examples/theme/index.html +384 -0
  197. data/vendor/assets/components/bootstrap-sass/examples/theme/theme.css +14 -0
  198. data/vendor/assets/components/bootstrap-sass/fonts/glyphicons-halflings-regular.eot +0 -0
  199. data/vendor/assets/components/bootstrap-sass/fonts/glyphicons-halflings-regular.svg +229 -0
  200. data/vendor/assets/components/bootstrap-sass/fonts/glyphicons-halflings-regular.ttf +0 -0
  201. data/vendor/assets/components/bootstrap-sass/fonts/glyphicons-halflings-regular.woff +0 -0
  202. data/vendor/assets/components/bootstrap-sass/getting-started.html +1021 -0
  203. data/vendor/assets/components/bootstrap-sass/index.html +16 -0
  204. data/vendor/assets/components/bootstrap-sass/javascript.html +1983 -0
  205. data/vendor/assets/components/bootstrap-sass/js/affix.js +126 -0
  206. data/vendor/assets/components/bootstrap-sass/js/alert.js +98 -0
  207. data/vendor/assets/components/bootstrap-sass/js/button.js +109 -0
  208. data/vendor/assets/components/bootstrap-sass/js/carousel.js +217 -0
  209. data/vendor/assets/components/bootstrap-sass/js/collapse.js +179 -0
  210. data/vendor/assets/components/bootstrap-sass/js/dropdown.js +154 -0
  211. data/vendor/assets/components/bootstrap-sass/js/modal.js +246 -0
  212. data/vendor/assets/components/bootstrap-sass/js/popover.js +117 -0
  213. data/vendor/assets/components/bootstrap-sass/js/scrollspy.js +158 -0
  214. data/vendor/assets/components/bootstrap-sass/js/tab.js +135 -0
  215. data/vendor/assets/components/bootstrap-sass/js/tests/index.html +52 -0
  216. data/vendor/assets/components/bootstrap-sass/js/tests/unit/affix.js +25 -0
  217. data/vendor/assets/components/bootstrap-sass/js/tests/unit/alert.js +62 -0
  218. data/vendor/assets/components/bootstrap-sass/js/tests/unit/button.js +116 -0
  219. data/vendor/assets/components/bootstrap-sass/js/tests/unit/carousel.js +87 -0
  220. data/vendor/assets/components/bootstrap-sass/js/tests/unit/collapse.js +164 -0
  221. data/vendor/assets/components/bootstrap-sass/js/tests/unit/dropdown.js +219 -0
  222. data/vendor/assets/components/bootstrap-sass/js/tests/unit/modal.js +196 -0
  223. data/vendor/assets/components/bootstrap-sass/js/tests/unit/phantom.js +69 -0
  224. data/vendor/assets/components/bootstrap-sass/js/tests/unit/popover.js +133 -0
  225. data/vendor/assets/components/bootstrap-sass/js/tests/unit/scrollspy.js +37 -0
  226. data/vendor/assets/components/bootstrap-sass/js/tests/unit/tab.js +86 -0
  227. data/vendor/assets/components/bootstrap-sass/js/tests/unit/tooltip.js +437 -0
  228. data/vendor/assets/components/bootstrap-sass/js/tests/unit/transition.js +13 -0
  229. data/vendor/assets/components/bootstrap-sass/js/tests/vendor/jquery.js +6 -0
  230. data/vendor/assets/components/bootstrap-sass/js/tests/vendor/qunit.css +232 -0
  231. data/vendor/assets/components/bootstrap-sass/js/tests/vendor/qunit.js +1510 -0
  232. data/vendor/assets/components/bootstrap-sass/js/tooltip.js +386 -0
  233. data/vendor/assets/components/bootstrap-sass/js/transition.js +56 -0
  234. data/vendor/assets/components/bootstrap-sass/lib/_alerts.scss +67 -0
  235. data/vendor/assets/components/bootstrap-sass/lib/_badges.scss +51 -0
  236. data/vendor/assets/components/bootstrap-sass/lib/_breadcrumbs.scss +23 -0
  237. data/vendor/assets/components/bootstrap-sass/lib/_button-groups.scss +253 -0
  238. data/vendor/assets/components/bootstrap-sass/lib/_buttons.scss +158 -0
  239. data/vendor/assets/components/bootstrap-sass/lib/_carousel.scss +231 -0
  240. data/vendor/assets/components/bootstrap-sass/lib/_close.scss +35 -0
  241. data/vendor/assets/components/bootstrap-sass/lib/_code.scss +53 -0
  242. data/vendor/assets/components/bootstrap-sass/lib/_component-animations.scss +29 -0
  243. data/vendor/assets/components/bootstrap-sass/lib/_dropdowns.scss +193 -0
  244. data/vendor/assets/components/bootstrap-sass/lib/_forms.scss +363 -0
  245. data/vendor/assets/components/bootstrap-sass/lib/_glyphicons.scss +237 -0
  246. data/vendor/assets/components/bootstrap-sass/lib/_grid.scss +93 -0
  247. data/vendor/assets/components/bootstrap-sass/lib/_input-groups.scss +136 -0
  248. data/vendor/assets/components/bootstrap-sass/lib/_jumbotron.scss +40 -0
  249. data/vendor/assets/components/bootstrap-sass/lib/_labels.scss +58 -0
  250. data/vendor/assets/components/bootstrap-sass/lib/_list-group.scss +88 -0
  251. data/vendor/assets/components/bootstrap-sass/lib/_media.scss +56 -0
  252. data/vendor/assets/components/bootstrap-sass/lib/_mixins.scss +861 -0
  253. data/vendor/assets/components/bootstrap-sass/lib/_modals.scss +132 -0
  254. data/vendor/assets/components/bootstrap-sass/lib/_navbar.scss +628 -0
  255. data/vendor/assets/components/bootstrap-sass/lib/_navs.scss +262 -0
  256. data/vendor/assets/components/bootstrap-sass/lib/_normalize.scss +406 -0
  257. data/vendor/assets/components/bootstrap-sass/lib/_pager.scss +55 -0
  258. data/vendor/assets/components/bootstrap-sass/lib/_pagination.scss +85 -0
  259. data/vendor/assets/components/bootstrap-sass/lib/_panels.scss +172 -0
  260. data/vendor/assets/components/bootstrap-sass/lib/_popovers.scss +133 -0
  261. data/vendor/assets/components/bootstrap-sass/lib/_print.scss +105 -0
  262. data/vendor/assets/components/bootstrap-sass/lib/_progress-bars.scss +92 -0
  263. data/vendor/assets/components/bootstrap-sass/lib/_responsive-utilities.scss +198 -0
  264. data/vendor/assets/components/bootstrap-sass/lib/_scaffolding.scss +119 -0
  265. data/vendor/assets/components/bootstrap-sass/lib/_tables.scss +244 -0
  266. data/vendor/assets/components/bootstrap-sass/lib/_theme.scss +247 -0
  267. data/vendor/assets/components/bootstrap-sass/lib/_thumbnails.scss +32 -0
  268. data/vendor/assets/components/bootstrap-sass/lib/_tooltip.scss +95 -0
  269. data/vendor/assets/components/bootstrap-sass/lib/_type.scss +279 -0
  270. data/vendor/assets/components/bootstrap-sass/lib/_utilities.scss +56 -0
  271. data/vendor/assets/components/bootstrap-sass/lib/_variables.scss +637 -0
  272. data/vendor/assets/components/bootstrap-sass/lib/_wells.scss +29 -0
  273. data/vendor/assets/components/bootstrap-sass/lib/bootstrap.scss +49 -0
  274. data/vendor/assets/components/bootstrap-sass/package.json +40 -0
  275. data/vendor/assets/components/jquery/.bower.json +37 -0
  276. data/vendor/assets/components/jquery/MIT-LICENSE.txt +21 -0
  277. data/vendor/assets/components/jquery/bower.json +27 -0
  278. data/vendor/assets/components/jquery/dist/jquery.js +9174 -0
  279. data/vendor/assets/components/jquery/dist/jquery.min.js +5 -0
  280. data/vendor/assets/components/jquery/dist/jquery.min.map +1 -0
  281. data/vendor/assets/components/jquery/src/ajax/jsonp.js +89 -0
  282. data/vendor/assets/components/jquery/src/ajax/load.js +75 -0
  283. data/vendor/assets/components/jquery/src/ajax/parseJSON.js +13 -0
  284. data/vendor/assets/components/jquery/src/ajax/parseXML.js +28 -0
  285. data/vendor/assets/components/jquery/src/ajax/script.js +64 -0
  286. data/vendor/assets/components/jquery/src/ajax/var/nonce.js +5 -0
  287. data/vendor/assets/components/jquery/src/ajax/var/rquery.js +3 -0
  288. data/vendor/assets/components/jquery/src/ajax/xhr.js +135 -0
  289. data/vendor/assets/components/jquery/src/ajax.js +806 -0
  290. data/vendor/assets/components/jquery/src/attributes/attr.js +143 -0
  291. data/vendor/assets/components/jquery/src/attributes/classes.js +158 -0
  292. data/vendor/assets/components/jquery/src/attributes/prop.js +96 -0
  293. data/vendor/assets/components/jquery/src/attributes/support.js +35 -0
  294. data/vendor/assets/components/jquery/src/attributes/val.js +163 -0
  295. data/vendor/assets/components/jquery/src/attributes.js +11 -0
  296. data/vendor/assets/components/jquery/src/callbacks.js +205 -0
  297. data/vendor/assets/components/jquery/src/core/access.js +60 -0
  298. data/vendor/assets/components/jquery/src/core/init.js +123 -0
  299. data/vendor/assets/components/jquery/src/core/parseHTML.js +39 -0
  300. data/vendor/assets/components/jquery/src/core/ready.js +97 -0
  301. data/vendor/assets/components/jquery/src/core/var/rsingleTag.js +4 -0
  302. data/vendor/assets/components/jquery/src/core.js +498 -0
  303. data/vendor/assets/components/jquery/src/css/addGetHookIf.js +24 -0
  304. data/vendor/assets/components/jquery/src/css/curCSS.js +57 -0
  305. data/vendor/assets/components/jquery/src/css/defaultDisplay.js +70 -0
  306. data/vendor/assets/components/jquery/src/css/hiddenVisibleSelectors.js +15 -0
  307. data/vendor/assets/components/jquery/src/css/support.js +91 -0
  308. data/vendor/assets/components/jquery/src/css/swap.js +28 -0
  309. data/vendor/assets/components/jquery/src/css/var/cssExpand.js +3 -0
  310. data/vendor/assets/components/jquery/src/css/var/getStyles.js +5 -0
  311. data/vendor/assets/components/jquery/src/css/var/isHidden.js +13 -0
  312. data/vendor/assets/components/jquery/src/css/var/rmargin.js +3 -0
  313. data/vendor/assets/components/jquery/src/css/var/rnumnonpx.js +5 -0
  314. data/vendor/assets/components/jquery/src/css.js +451 -0
  315. data/vendor/assets/components/jquery/src/data/Data.js +181 -0
  316. data/vendor/assets/components/jquery/src/data/accepts.js +20 -0
  317. data/vendor/assets/components/jquery/src/data/var/data_priv.js +5 -0
  318. data/vendor/assets/components/jquery/src/data/var/data_user.js +5 -0
  319. data/vendor/assets/components/jquery/src/data.js +175 -0
  320. data/vendor/assets/components/jquery/src/deferred.js +149 -0
  321. data/vendor/assets/components/jquery/src/deprecated.js +13 -0
  322. data/vendor/assets/components/jquery/src/dimensions.js +50 -0
  323. data/vendor/assets/components/jquery/src/effects/Tween.js +114 -0
  324. data/vendor/assets/components/jquery/src/effects/animatedSelector.js +13 -0
  325. data/vendor/assets/components/jquery/src/effects.js +647 -0
  326. data/vendor/assets/components/jquery/src/event/alias.js +39 -0
  327. data/vendor/assets/components/jquery/src/event/support.js +9 -0
  328. data/vendor/assets/components/jquery/src/event.js +868 -0
  329. data/vendor/assets/components/jquery/src/exports/amd.js +24 -0
  330. data/vendor/assets/components/jquery/src/exports/global.js +32 -0
  331. data/vendor/assets/components/jquery/src/intro.js +44 -0
  332. data/vendor/assets/components/jquery/src/jquery.js +36 -0
  333. data/vendor/assets/components/jquery/src/manipulation/_evalUrl.js +18 -0
  334. data/vendor/assets/components/jquery/src/manipulation/support.js +31 -0
  335. data/vendor/assets/components/jquery/src/manipulation/var/rcheckableType.js +3 -0
  336. data/vendor/assets/components/jquery/src/manipulation.js +582 -0
  337. data/vendor/assets/components/jquery/src/offset.js +204 -0
  338. data/vendor/assets/components/jquery/src/outro.js +1 -0
  339. data/vendor/assets/components/jquery/src/queue/delay.js +22 -0
  340. data/vendor/assets/components/jquery/src/queue.js +142 -0
  341. data/vendor/assets/components/jquery/src/selector-native.js +172 -0
  342. data/vendor/assets/components/jquery/src/selector-sizzle.js +14 -0
  343. data/vendor/assets/components/jquery/src/selector.js +1 -0
  344. data/vendor/assets/components/jquery/src/serialize.js +111 -0
  345. data/vendor/assets/components/jquery/src/sizzle/dist/sizzle.js +2034 -0
  346. data/vendor/assets/components/jquery/src/sizzle/dist/sizzle.min.js +3 -0
  347. data/vendor/assets/components/jquery/src/sizzle/dist/sizzle.min.map +1 -0
  348. data/vendor/assets/components/jquery/src/traversing/findFilter.js +100 -0
  349. data/vendor/assets/components/jquery/src/traversing/var/rneedsContext.js +6 -0
  350. data/vendor/assets/components/jquery/src/traversing.js +200 -0
  351. data/vendor/assets/components/jquery/src/var/arr.js +3 -0
  352. data/vendor/assets/components/jquery/src/var/class2type.js +4 -0
  353. data/vendor/assets/components/jquery/src/var/concat.js +5 -0
  354. data/vendor/assets/components/jquery/src/var/hasOwn.js +5 -0
  355. data/vendor/assets/components/jquery/src/var/indexOf.js +5 -0
  356. data/vendor/assets/components/jquery/src/var/pnum.js +3 -0
  357. data/vendor/assets/components/jquery/src/var/push.js +5 -0
  358. data/vendor/assets/components/jquery/src/var/rnotwhite.js +3 -0
  359. data/vendor/assets/components/jquery/src/var/slice.js +5 -0
  360. data/vendor/assets/components/jquery/src/var/strundefined.js +3 -0
  361. data/vendor/assets/components/jquery/src/var/support.js +4 -0
  362. data/vendor/assets/components/jquery/src/var/toString.js +5 -0
  363. data/vendor/assets/components/jquery/src/wrap.js +78 -0
  364. data/vendor/assets/components/open-sans/.bower.json +36 -0
  365. data/vendor/assets/components/open-sans/bower.json +27 -0
  366. data/vendor/assets/components/open-sans/css/open-sans.css +91 -0
  367. data/vendor/assets/components/open-sans/css/open-sans.min.css +1 -0
  368. data/vendor/assets/components/open-sans/fonts/bold/opensans-bold-webfont.eot +0 -0
  369. data/vendor/assets/components/open-sans/fonts/bold/opensans-bold-webfont.svg +958 -0
  370. data/vendor/assets/components/open-sans/fonts/bold/opensans-bold-webfont.ttf +0 -0
  371. data/vendor/assets/components/open-sans/fonts/bold/opensans-bold-webfont.woff +0 -0
  372. data/vendor/assets/components/open-sans/fonts/bold-italic/opensans-bold-italic-webfont.eot +0 -0
  373. data/vendor/assets/components/open-sans/fonts/bold-italic/opensans-bold-italic-webfont.svg +958 -0
  374. data/vendor/assets/components/open-sans/fonts/bold-italic/opensans-bold-italic-webfont.ttf +0 -0
  375. data/vendor/assets/components/open-sans/fonts/bold-italic/opensans-bold-italic-webfont.woff +0 -0
  376. data/vendor/assets/components/open-sans/fonts/extrabold/opensans-extrabold-webfont.eot +0 -0
  377. data/vendor/assets/components/open-sans/fonts/extrabold/opensans-extrabold-webfont.svg +958 -0
  378. data/vendor/assets/components/open-sans/fonts/extrabold/opensans-extrabold-webfont.ttf +0 -0
  379. data/vendor/assets/components/open-sans/fonts/extrabold/opensans-extrabold-webfont.woff +0 -0
  380. data/vendor/assets/components/open-sans/fonts/extrabold-italic/opensans-extrabold-italic-webfont.eot +0 -0
  381. data/vendor/assets/components/open-sans/fonts/extrabold-italic/opensans-extrabold-italic-webfont.svg +958 -0
  382. data/vendor/assets/components/open-sans/fonts/extrabold-italic/opensans-extrabold-italic-webfont.ttf +0 -0
  383. data/vendor/assets/components/open-sans/fonts/extrabold-italic/opensans-extrabold-italic-webfont.woff +0 -0
  384. data/vendor/assets/components/open-sans/fonts/italic/opensans-italic-webfont.eot +0 -0
  385. data/vendor/assets/components/open-sans/fonts/italic/opensans-italic-webfont.svg +958 -0
  386. data/vendor/assets/components/open-sans/fonts/italic/opensans-italic-webfont.ttf +0 -0
  387. data/vendor/assets/components/open-sans/fonts/italic/opensans-italic-webfont.woff +0 -0
  388. data/vendor/assets/components/open-sans/fonts/light/opensans-light-webfont.eot +0 -0
  389. data/vendor/assets/components/open-sans/fonts/light/opensans-light-webfont.svg +958 -0
  390. data/vendor/assets/components/open-sans/fonts/light/opensans-light-webfont.ttf +0 -0
  391. data/vendor/assets/components/open-sans/fonts/light/opensans-light-webfont.woff +0 -0
  392. data/vendor/assets/components/open-sans/fonts/light-italic/opensans-light-italic-webfont.eot +0 -0
  393. data/vendor/assets/components/open-sans/fonts/light-italic/opensans-light-italic-webfont.svg +958 -0
  394. data/vendor/assets/components/open-sans/fonts/light-italic/opensans-light-italic-webfont.ttf +0 -0
  395. data/vendor/assets/components/open-sans/fonts/light-italic/opensans-light-italic-webfont.woff +0 -0
  396. data/vendor/assets/components/open-sans/fonts/regular/opensans-regular-webfont.eot +0 -0
  397. data/vendor/assets/components/open-sans/fonts/regular/opensans-regular-webfont.svg +958 -0
  398. data/vendor/assets/components/open-sans/fonts/regular/opensans-regular-webfont.ttf +0 -0
  399. data/vendor/assets/components/open-sans/fonts/regular/opensans-regular-webfont.woff +0 -0
  400. data/vendor/assets/components/open-sans/fonts/semibold/opensans-semibold-webfont.eot +0 -0
  401. data/vendor/assets/components/open-sans/fonts/semibold/opensans-semibold-webfont.svg +958 -0
  402. data/vendor/assets/components/open-sans/fonts/semibold/opensans-semibold-webfont.ttf +0 -0
  403. data/vendor/assets/components/open-sans/fonts/semibold/opensans-semibold-webfont.woff +0 -0
  404. data/vendor/assets/components/open-sans/fonts/semibold-italic/opensans-semibold-italic-webfont.eot +0 -0
  405. data/vendor/assets/components/open-sans/fonts/semibold-italic/opensans-semibold-italic-webfont.svg +958 -0
  406. data/vendor/assets/components/open-sans/fonts/semibold-italic/opensans-semibold-italic-webfont.ttf +0 -0
  407. data/vendor/assets/components/open-sans/fonts/semibold-italic/opensans-semibold-italic-webfont.woff +0 -0
  408. data/vendor/assets/components/open-sans/scss/_base.scss +19 -0
  409. data/vendor/assets/components/open-sans/scss/_bold-italic.scss +8 -0
  410. data/vendor/assets/components/open-sans/scss/_bold.scss +4 -0
  411. data/vendor/assets/components/open-sans/scss/_extrabold-italic.scss +8 -0
  412. data/vendor/assets/components/open-sans/scss/_extrabold.scss +4 -0
  413. data/vendor/assets/components/open-sans/scss/_italic.scss +8 -0
  414. data/vendor/assets/components/open-sans/scss/_light-italic.scss +8 -0
  415. data/vendor/assets/components/open-sans/scss/_light.scss +4 -0
  416. data/vendor/assets/components/open-sans/scss/_regular.scss +4 -0
  417. data/vendor/assets/components/open-sans/scss/_semibold-italic.scss +8 -0
  418. data/vendor/assets/components/open-sans/scss/_semibold.scss +4 -0
  419. data/vendor/assets/components/open-sans/scss/open-sans.scss +15 -0
  420. metadata +795 -0
@@ -0,0 +1,244 @@
1
+ /* jshint node: true */
2
+
3
+ module.exports = function(grunt) {
4
+ "use strict";
5
+
6
+ RegExp.quote = require('regexp-quote')
7
+ var btoa = require('btoa')
8
+ // Project configuration.
9
+ grunt.initConfig({
10
+
11
+ // Metadata.
12
+ pkg: grunt.file.readJSON('package.json'),
13
+ banner: '/*!\n' +
14
+ ' * Bootstrap v<%= pkg.version %> by @fat and @mdo\n' +
15
+ ' * Copyright <%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
16
+ ' * Licensed under <%= _.pluck(pkg.licenses, "url").join(", ") %>\n' +
17
+ ' *\n' +
18
+ ' * Designed and built with all the love in the world by @mdo and @fat.\n' +
19
+ ' */\n\n',
20
+ jqueryCheck: 'if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery") }\n\n',
21
+
22
+ // Task configuration.
23
+ clean: {
24
+ dist: ['dist']
25
+ },
26
+
27
+ jshint: {
28
+ options: {
29
+ jshintrc: 'js/.jshintrc'
30
+ },
31
+ gruntfile: {
32
+ src: 'Gruntfile.js'
33
+ },
34
+ src: {
35
+ src: ['js/*.js']
36
+ },
37
+ test: {
38
+ src: ['js/tests/unit/*.js']
39
+ }
40
+ },
41
+
42
+ concat: {
43
+ options: {
44
+ banner: '<%= banner %><%= jqueryCheck %>',
45
+ stripBanners: false
46
+ },
47
+ bootstrap: {
48
+ src: [
49
+ 'js/transition.js',
50
+ 'js/alert.js',
51
+ 'js/button.js',
52
+ 'js/carousel.js',
53
+ 'js/collapse.js',
54
+ 'js/dropdown.js',
55
+ 'js/modal.js',
56
+ 'js/tooltip.js',
57
+ 'js/popover.js',
58
+ 'js/scrollspy.js',
59
+ 'js/tab.js',
60
+ 'js/affix.js'
61
+ ],
62
+ dest: 'dist/js/<%= pkg.name %>.js'
63
+ }
64
+ },
65
+
66
+ uglify: {
67
+ options: {
68
+ banner: '<%= banner %>',
69
+ report: 'min'
70
+ },
71
+ bootstrap: {
72
+ src: ['<%= concat.bootstrap.dest %>'],
73
+ dest: 'dist/js/<%= pkg.name %>.min.js'
74
+ }
75
+ },
76
+
77
+ recess: {
78
+ options: {
79
+ compile: true,
80
+ banner: '<%= banner %>'
81
+ },
82
+ bootstrap: {
83
+ src: ['less/bootstrap.less'],
84
+ dest: 'dist/css/<%= pkg.name %>.css'
85
+ },
86
+ min: {
87
+ options: {
88
+ compress: true
89
+ },
90
+ src: ['less/bootstrap.less'],
91
+ dest: 'dist/css/<%= pkg.name %>.min.css'
92
+ },
93
+ theme: {
94
+ src: ['less/theme.less'],
95
+ dest: 'dist/css/<%= pkg.name %>-theme.css'
96
+ },
97
+ theme_min: {
98
+ options: {
99
+ compress: true
100
+ },
101
+ src: ['less/theme.less'],
102
+ dest: 'dist/css/<%= pkg.name %>-theme.min.css'
103
+ }
104
+ },
105
+
106
+ copy: {
107
+ fonts: {
108
+ expand: true,
109
+ src: ["fonts/*"],
110
+ dest: 'dist/'
111
+ }
112
+ },
113
+
114
+ qunit: {
115
+ options: {
116
+ inject: 'js/tests/unit/phantom.js'
117
+ },
118
+ files: ['js/tests/*.html']
119
+ },
120
+
121
+ connect: {
122
+ server: {
123
+ options: {
124
+ port: 3000,
125
+ base: '.'
126
+ }
127
+ }
128
+ },
129
+
130
+ jekyll: {
131
+ docs: {}
132
+ },
133
+
134
+ validation: {
135
+ options: {
136
+ reset: true,
137
+ relaxerror: [
138
+ "Bad value X-UA-Compatible for attribute http-equiv on element meta.",
139
+ "Element img is missing required attribute src."
140
+ ]
141
+ },
142
+ files: {
143
+ src: ["_gh_pages/**/*.html"]
144
+ }
145
+ },
146
+
147
+ watch: {
148
+ src: {
149
+ files: '<%= jshint.src.src %>',
150
+ tasks: ['jshint:src', 'qunit']
151
+ },
152
+ test: {
153
+ files: '<%= jshint.test.src %>',
154
+ tasks: ['jshint:test', 'qunit']
155
+ },
156
+ recess: {
157
+ files: 'less/*.less',
158
+ tasks: ['recess']
159
+ }
160
+ },
161
+
162
+ sed: {
163
+ versionNumber: {
164
+ pattern: (function () {
165
+ var old = grunt.option('oldver')
166
+ return old ? RegExp.quote(old) : old
167
+ })(),
168
+ replacement: grunt.option('newver'),
169
+ recursive: true
170
+ }
171
+ }
172
+ });
173
+
174
+
175
+ // These plugins provide necessary tasks.
176
+ grunt.loadNpmTasks('browserstack-runner');
177
+ grunt.loadNpmTasks('grunt-contrib-clean');
178
+ grunt.loadNpmTasks('grunt-contrib-concat');
179
+ grunt.loadNpmTasks('grunt-contrib-connect');
180
+ grunt.loadNpmTasks('grunt-contrib-copy');
181
+ grunt.loadNpmTasks('grunt-contrib-jshint');
182
+ grunt.loadNpmTasks('grunt-contrib-qunit');
183
+ grunt.loadNpmTasks('grunt-contrib-uglify');
184
+ grunt.loadNpmTasks('grunt-contrib-watch');
185
+ grunt.loadNpmTasks('grunt-html-validation');
186
+ grunt.loadNpmTasks('grunt-jekyll');
187
+ grunt.loadNpmTasks('grunt-recess');
188
+ grunt.loadNpmTasks('grunt-sed');
189
+
190
+ // Docs HTML validation task
191
+ grunt.registerTask('validate-html', ['jekyll', 'validation']);
192
+
193
+ // Test task.
194
+ var testSubtasks = ['dist-css', 'jshint', 'qunit', 'validate-html'];
195
+ // Only run BrowserStack tests under Travis
196
+ if (process.env.TRAVIS) {
197
+ // Only run BrowserStack tests if this is a mainline commit in twbs/bootstrap, or you have your own BrowserStack key
198
+ if ((process.env.TRAVIS_REPO_SLUG === 'twbs/bootstrap' && process.env.TRAVIS_PULL_REQUEST === 'false') || process.env.TWBS_HAVE_OWN_BROWSERSTACK_KEY) {
199
+ testSubtasks.push('browserstack_runner');
200
+ }
201
+ }
202
+ grunt.registerTask('test', testSubtasks);
203
+
204
+ // JS distribution task.
205
+ grunt.registerTask('dist-js', ['concat', 'uglify']);
206
+
207
+ // CSS distribution task.
208
+ grunt.registerTask('dist-css', ['recess']);
209
+
210
+ // Fonts distribution task.
211
+ grunt.registerTask('dist-fonts', ['copy']);
212
+
213
+ // Full distribution task.
214
+ grunt.registerTask('dist', ['clean', 'dist-css', 'dist-fonts', 'dist-js']);
215
+
216
+ // Default task.
217
+ grunt.registerTask('default', ['test', 'dist', 'build-customizer']);
218
+
219
+ // Version numbering task.
220
+ // grunt change-version-number --oldver=A.B.C --newver=X.Y.Z
221
+ // This can be overzealous, so its changes should always be manually reviewed!
222
+ grunt.registerTask('change-version-number', ['sed']);
223
+
224
+ // task for building customizer
225
+ grunt.registerTask('build-customizer', 'Add scripts/less files to customizer.', function () {
226
+ var fs = require('fs')
227
+
228
+ function getFiles(type) {
229
+ var files = {}
230
+ fs.readdirSync(type)
231
+ .filter(function (path) {
232
+ return type == 'fonts' ? true : new RegExp('\\.' + type + '$').test(path)
233
+ })
234
+ .forEach(function (path) {
235
+ var fullPath = type + '/' + path
236
+ return files[path] = (type == 'fonts' ? btoa(fs.readFileSync(fullPath)) : fs.readFileSync(fullPath, 'utf8'))
237
+ })
238
+ return 'var __' + type + ' = ' + JSON.stringify(files) + '\n'
239
+ }
240
+
241
+ var files = getFiles('js') + getFiles('less') + getFiles('fonts')
242
+ fs.writeFileSync('docs-assets/js/raw-files.js', files)
243
+ });
244
+ };
@@ -0,0 +1,176 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2013 Twitter, Inc
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.