sunspot_solr 2.2.2 → 2.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (256) hide show
  1. checksums.yaml +4 -4
  2. data/bin/sunspot-solr +2 -6
  3. data/lib/sunspot/solr/server.rb +2 -3
  4. data/solr/README.txt +181 -181
  5. data/solr/bin/post +29 -19
  6. data/solr/bin/solr +247 -428
  7. data/solr/bin/solr.cmd +102 -256
  8. data/solr/bin/solr.in.cmd +15 -7
  9. data/solr/bin/solr.in.sh +26 -12
  10. data/solr/server/README.txt +110 -113
  11. data/solr/server/contexts/solr-jetty-context.xml +8 -8
  12. data/solr/server/etc/jetty-http.xml +47 -0
  13. data/solr/server/etc/jetty-https-ssl.xml +175 -159
  14. data/solr/server/etc/jetty-https.xml +53 -0
  15. data/solr/server/etc/jetty-ssl.xml +46 -0
  16. data/solr/server/etc/jetty.xml +189 -167
  17. data/solr/server/etc/webdefault.xml +527 -527
  18. data/solr/server/lib/javax.servlet-api-3.1.0.jar +0 -0
  19. data/solr/server/lib/jetty-continuation-9.2.11.v20150529.jar +0 -0
  20. data/solr/server/lib/jetty-deploy-9.2.11.v20150529.jar +0 -0
  21. data/solr/server/lib/jetty-http-9.2.11.v20150529.jar +0 -0
  22. data/solr/server/lib/jetty-io-9.2.11.v20150529.jar +0 -0
  23. data/solr/server/lib/jetty-jmx-9.2.11.v20150529.jar +0 -0
  24. data/solr/server/lib/jetty-rewrite-9.2.11.v20150529.jar +0 -0
  25. data/solr/server/lib/jetty-security-9.2.11.v20150529.jar +0 -0
  26. data/solr/server/lib/jetty-server-9.2.11.v20150529.jar +0 -0
  27. data/solr/server/lib/jetty-servlet-9.2.11.v20150529.jar +0 -0
  28. data/solr/server/lib/jetty-servlets-9.2.11.v20150529.jar +0 -0
  29. data/solr/server/lib/jetty-util-9.2.11.v20150529.jar +0 -0
  30. data/solr/server/lib/jetty-webapp-9.2.11.v20150529.jar +0 -0
  31. data/solr/server/lib/jetty-xml-9.2.11.v20150529.jar +0 -0
  32. data/solr/server/modules/http.mod +9 -0
  33. data/solr/server/modules/https.mod +9 -0
  34. data/solr/server/modules/server.mod +11 -0
  35. data/solr/server/modules/ssl.mod +9 -0
  36. data/solr/server/resources/jetty-logging.properties +1 -0
  37. data/solr/server/resources/log4j.properties +24 -24
  38. data/solr/server/solr-webapp/webapp/WEB-INF/lib/commons-exec-1.3.jar +0 -0
  39. data/solr/server/solr-webapp/webapp/WEB-INF/lib/{hadoop-annotations-2.3.0.jar → hadoop-annotations-2.6.0.jar} +0 -0
  40. data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-auth-2.6.0.jar +0 -0
  41. data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-common-2.6.0.jar +0 -0
  42. data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-hdfs-2.6.0.jar +0 -0
  43. data/solr/server/solr-webapp/webapp/WEB-INF/lib/htrace-core-3.0.4.jar +0 -0
  44. data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpclient-4.4.1.jar +0 -0
  45. data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpcore-4.4.1.jar +0 -0
  46. data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpmime-4.4.1.jar +0 -0
  47. data/solr/server/solr-webapp/webapp/WEB-INF/lib/jackson-core-2.5.4.jar +0 -0
  48. data/solr/server/solr-webapp/webapp/WEB-INF/lib/jackson-dataformat-smile-2.5.4.jar +0 -0
  49. data/solr/server/solr-webapp/webapp/WEB-INF/lib/{lucene-analyzers-common-5.0.0.jar → lucene-analyzers-common-5.3.1.jar} +0 -0
  50. data/solr/server/solr-webapp/webapp/WEB-INF/lib/{lucene-analyzers-kuromoji-5.0.0.jar → lucene-analyzers-kuromoji-5.3.1.jar} +0 -0
  51. data/solr/server/solr-webapp/webapp/WEB-INF/lib/{lucene-analyzers-phonetic-5.0.0.jar → lucene-analyzers-phonetic-5.3.1.jar} +0 -0
  52. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-backward-codecs-5.3.1.jar +0 -0
  53. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-codecs-5.3.1.jar +0 -0
  54. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-core-5.3.1.jar +0 -0
  55. data/solr/server/solr-webapp/webapp/WEB-INF/lib/{lucene-expressions-5.0.0.jar → lucene-expressions-5.3.1.jar} +0 -0
  56. data/solr/server/solr-webapp/webapp/WEB-INF/lib/{lucene-grouping-5.0.0.jar → lucene-grouping-5.3.1.jar} +0 -0
  57. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-highlighter-5.3.1.jar +0 -0
  58. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-join-5.3.1.jar +0 -0
  59. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-memory-5.3.1.jar +0 -0
  60. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-misc-5.3.1.jar +0 -0
  61. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-queries-5.3.1.jar +0 -0
  62. data/solr/server/solr-webapp/webapp/WEB-INF/lib/{lucene-queryparser-5.0.0.jar → lucene-queryparser-5.3.1.jar} +0 -0
  63. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-sandbox-5.3.1.jar +0 -0
  64. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-spatial-5.3.1.jar +0 -0
  65. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-suggest-5.3.1.jar +0 -0
  66. data/solr/server/solr-webapp/webapp/WEB-INF/lib/org.restlet-2.3.0.jar +0 -0
  67. data/solr/server/solr-webapp/webapp/WEB-INF/lib/org.restlet.ext.servlet-2.3.0.jar +0 -0
  68. data/solr/server/solr-webapp/webapp/WEB-INF/lib/solr-core-5.3.1.jar +0 -0
  69. data/solr/server/solr-webapp/webapp/WEB-INF/lib/solr-solrj-5.3.1.jar +0 -0
  70. data/solr/server/solr-webapp/webapp/WEB-INF/lib/t-digest-3.1.jar +0 -0
  71. data/solr/server/solr-webapp/webapp/WEB-INF/web.xml +169 -181
  72. data/solr/server/solr-webapp/webapp/WEB-INF/weblogic.xml +28 -28
  73. data/solr/server/solr-webapp/webapp/admin.html +164 -163
  74. data/solr/server/solr-webapp/webapp/css/angular/analysis.css +304 -0
  75. data/solr/server/solr-webapp/webapp/css/angular/chosen.css +465 -0
  76. data/solr/server/solr-webapp/webapp/css/angular/cloud.css +398 -0
  77. data/solr/server/solr-webapp/webapp/css/angular/common.css +724 -0
  78. data/solr/server/solr-webapp/webapp/css/angular/cores.css +233 -0
  79. data/solr/server/solr-webapp/webapp/css/angular/dataimport.css +370 -0
  80. data/solr/server/solr-webapp/webapp/css/angular/documents.css +179 -0
  81. data/solr/server/solr-webapp/webapp/css/angular/files.css +53 -0
  82. data/solr/server/solr-webapp/webapp/css/angular/index.css +206 -0
  83. data/solr/server/solr-webapp/webapp/css/angular/logging.css +376 -0
  84. data/solr/server/solr-webapp/webapp/css/angular/menu.css +321 -0
  85. data/solr/server/solr-webapp/webapp/css/angular/plugins.css +212 -0
  86. data/solr/server/solr-webapp/webapp/css/angular/query.css +162 -0
  87. data/solr/server/solr-webapp/webapp/css/angular/replication.css +500 -0
  88. data/solr/server/solr-webapp/webapp/css/angular/schema-browser.css +567 -0
  89. data/solr/server/solr-webapp/webapp/css/angular/segments.css +173 -0
  90. data/solr/server/solr-webapp/webapp/css/angular/threads.css +161 -0
  91. data/solr/server/solr-webapp/webapp/css/chosen.css +421 -421
  92. data/solr/server/solr-webapp/webapp/css/styles/analysis.css +311 -311
  93. data/solr/server/solr-webapp/webapp/css/styles/cloud.css +410 -410
  94. data/solr/server/solr-webapp/webapp/css/styles/common.css +701 -701
  95. data/solr/server/solr-webapp/webapp/css/styles/cores.css +244 -244
  96. data/solr/server/solr-webapp/webapp/css/styles/dashboard.css +155 -155
  97. data/solr/server/solr-webapp/webapp/css/styles/dataimport.css +403 -403
  98. data/solr/server/solr-webapp/webapp/css/styles/documents.css +197 -197
  99. data/solr/server/solr-webapp/webapp/css/styles/files.css +54 -54
  100. data/solr/server/solr-webapp/webapp/css/styles/index.css +207 -207
  101. data/solr/server/solr-webapp/webapp/css/styles/java-properties.css +52 -52
  102. data/solr/server/solr-webapp/webapp/css/styles/logging.css +391 -391
  103. data/solr/server/solr-webapp/webapp/css/styles/menu.css +329 -328
  104. data/solr/server/solr-webapp/webapp/css/styles/plugins.css +195 -195
  105. data/solr/server/solr-webapp/webapp/css/styles/query.css +173 -173
  106. data/solr/server/solr-webapp/webapp/css/styles/replication.css +515 -515
  107. data/solr/server/solr-webapp/webapp/css/styles/schema-browser.css +578 -578
  108. data/solr/server/solr-webapp/webapp/css/styles/segments.css +145 -0
  109. data/solr/server/solr-webapp/webapp/css/styles/threads.css +172 -172
  110. data/solr/server/solr-webapp/webapp/img/chosen-sprite-2x.png +0 -0
  111. data/solr/server/solr-webapp/webapp/img/filetypes/README +27 -27
  112. data/solr/server/solr-webapp/webapp/img/solr.svg +39 -39
  113. data/solr/server/solr-webapp/webapp/index.html +208 -0
  114. data/solr/server/solr-webapp/webapp/js/angular/app.js +713 -0
  115. data/solr/server/solr-webapp/webapp/js/angular/controllers/analysis.js +199 -0
  116. data/solr/server/solr-webapp/webapp/js/angular/controllers/cloud.js +528 -0
  117. data/solr/server/solr-webapp/webapp/js/angular/controllers/core-overview.js +225 -0
  118. data/solr/server/solr-webapp/webapp/js/angular/controllers/cores.js +465 -0
  119. data/solr/server/solr-webapp/webapp/js/angular/controllers/dataimport.js +284 -0
  120. data/solr/server/solr-webapp/webapp/js/angular/controllers/documents.js +139 -0
  121. data/solr/server/solr-webapp/webapp/js/angular/controllers/files.js +92 -0
  122. data/solr/server/solr-webapp/webapp/js/angular/controllers/index.js +95 -0
  123. data/solr/server/solr-webapp/webapp/js/angular/controllers/java-properties.js +45 -0
  124. data/solr/server/solr-webapp/webapp/js/angular/controllers/logging.js +146 -0
  125. data/solr/server/solr-webapp/webapp/js/angular/controllers/plugins.js +166 -0
  126. data/solr/server/solr-webapp/webapp/js/angular/controllers/query.js +99 -0
  127. data/solr/server/solr-webapp/webapp/js/angular/controllers/replication.js +227 -0
  128. data/solr/server/solr-webapp/webapp/js/angular/controllers/schema-browser.js +432 -0
  129. data/solr/server/solr-webapp/webapp/js/angular/controllers/segments.js +94 -0
  130. data/solr/server/solr-webapp/webapp/js/angular/controllers/threads.js +51 -0
  131. data/solr/server/solr-webapp/webapp/js/angular/services.js +214 -0
  132. data/solr/server/solr-webapp/webapp/js/lib/ZeroClipboard.js +342 -342
  133. data/solr/server/solr-webapp/webapp/js/lib/chosen.js +982 -982
  134. data/solr/server/solr-webapp/webapp/js/lib/console.js +29 -29
  135. data/solr/server/solr-webapp/webapp/js/lib/d3.js +9373 -9373
  136. data/solr/server/solr-webapp/webapp/js/lib/highlight.js +31 -31
  137. data/solr/server/solr-webapp/webapp/js/lib/jquery-1.7.2.min.js +30 -30
  138. data/solr/server/solr-webapp/webapp/js/lib/jquery.ajaxfileupload.js +184 -184
  139. data/solr/server/solr-webapp/webapp/js/lib/jquery.blockUI.js +523 -523
  140. data/solr/server/solr-webapp/webapp/js/lib/jquery.cookie.js +71 -71
  141. data/solr/server/solr-webapp/webapp/js/lib/jquery.form.js +806 -806
  142. data/solr/server/solr-webapp/webapp/js/lib/jquery.jstree.js +3534 -3534
  143. data/solr/server/solr-webapp/webapp/js/lib/jquery.sammy.js +1863 -1863
  144. data/solr/server/solr-webapp/webapp/js/lib/jquery.timeago.js +189 -189
  145. data/solr/server/solr-webapp/webapp/js/lib/linker.js +48 -48
  146. data/solr/server/solr-webapp/webapp/js/lib/naturalSort.js +82 -0
  147. data/solr/server/solr-webapp/webapp/js/lib/order.js +216 -216
  148. data/solr/server/solr-webapp/webapp/js/main.js +60 -58
  149. data/solr/server/solr-webapp/webapp/js/require.js +11349 -11349
  150. data/solr/server/solr-webapp/webapp/js/scripts/analysis.js +545 -545
  151. data/solr/server/solr-webapp/webapp/js/scripts/app.js +680 -679
  152. data/solr/server/solr-webapp/webapp/js/scripts/cloud.js +877 -877
  153. data/solr/server/solr-webapp/webapp/js/scripts/cores.js +719 -719
  154. data/solr/server/solr-webapp/webapp/js/scripts/dashboard.js +562 -562
  155. data/solr/server/solr-webapp/webapp/js/scripts/dataimport.js +812 -812
  156. data/solr/server/solr-webapp/webapp/js/scripts/documents.js +370 -370
  157. data/solr/server/solr-webapp/webapp/js/scripts/files.js +265 -265
  158. data/solr/server/solr-webapp/webapp/js/scripts/index.js +340 -340
  159. data/solr/server/solr-webapp/webapp/js/scripts/java-properties.js +106 -106
  160. data/solr/server/solr-webapp/webapp/js/scripts/logging.js +578 -576
  161. data/solr/server/solr-webapp/webapp/js/scripts/ping.js +72 -72
  162. data/solr/server/solr-webapp/webapp/js/scripts/plugins.js +462 -462
  163. data/solr/server/solr-webapp/webapp/js/scripts/query.js +229 -229
  164. data/solr/server/solr-webapp/webapp/js/scripts/replication.js +527 -527
  165. data/solr/server/solr-webapp/webapp/js/scripts/schema-browser.js +1229 -1229
  166. data/solr/server/solr-webapp/webapp/js/scripts/segments.js +206 -0
  167. data/solr/server/solr-webapp/webapp/js/scripts/threads.js +158 -158
  168. data/solr/server/solr-webapp/webapp/libs/angular-chosen.js +139 -0
  169. data/solr/server/solr-webapp/webapp/libs/angular-cookies.js +229 -0
  170. data/solr/server/solr-webapp/webapp/libs/angular-cookies.min.js +31 -0
  171. data/solr/server/solr-webapp/webapp/libs/angular-resource.min.js +36 -0
  172. data/solr/server/solr-webapp/webapp/libs/angular-route.js +1018 -0
  173. data/solr/server/solr-webapp/webapp/libs/angular-route.min.js +38 -0
  174. data/solr/server/solr-webapp/webapp/libs/angular-sanitize.js +703 -0
  175. data/solr/server/solr-webapp/webapp/libs/angular-sanitize.min.js +39 -0
  176. data/solr/server/solr-webapp/webapp/libs/angular.js +26093 -0
  177. data/solr/server/solr-webapp/webapp/libs/angular.min.js +273 -0
  178. data/solr/server/solr-webapp/webapp/libs/chosen.jquery.js +1194 -0
  179. data/solr/server/solr-webapp/webapp/libs/chosen.jquery.min.js +30 -0
  180. data/solr/server/solr-webapp/webapp/libs/d3.js +9373 -0
  181. data/solr/server/solr-webapp/webapp/libs/highlight.js +31 -0
  182. data/solr/server/solr-webapp/webapp/libs/jquery-2.1.3.min.js +29 -0
  183. data/solr/server/solr-webapp/webapp/libs/jquery.jstree.js +3534 -0
  184. data/solr/server/solr-webapp/webapp/libs/ngtimeago.js +102 -0
  185. data/solr/server/solr-webapp/webapp/partials/analysis.html +128 -0
  186. data/solr/server/solr-webapp/webapp/partials/cloud.html +104 -0
  187. data/solr/server/solr-webapp/webapp/partials/core_overview.html +227 -0
  188. data/solr/server/solr-webapp/webapp/partials/cores.html +231 -0
  189. data/solr/server/solr-webapp/webapp/partials/dataimport.html +209 -0
  190. data/solr/server/solr-webapp/webapp/partials/documents.html +118 -0
  191. data/solr/server/solr-webapp/webapp/partials/files.html +47 -0
  192. data/solr/server/solr-webapp/webapp/partials/index.html +261 -0
  193. data/solr/server/solr-webapp/webapp/partials/java-properties.html +27 -0
  194. data/solr/server/solr-webapp/webapp/partials/logging-levels.html +56 -0
  195. data/solr/server/solr-webapp/webapp/partials/logging.html +56 -0
  196. data/solr/server/solr-webapp/webapp/partials/plugins.html +72 -0
  197. data/solr/server/solr-webapp/webapp/partials/query.html +356 -0
  198. data/solr/server/solr-webapp/webapp/partials/replication.html +239 -0
  199. data/solr/server/solr-webapp/webapp/partials/schema-browser.html +206 -0
  200. data/solr/server/solr-webapp/webapp/partials/segments.html +99 -0
  201. data/solr/server/solr-webapp/webapp/partials/threads.html +65 -0
  202. data/solr/server/solr-webapp/webapp/tpl/analysis.html +83 -83
  203. data/solr/server/solr-webapp/webapp/tpl/cloud.html +87 -87
  204. data/solr/server/solr-webapp/webapp/tpl/cores.html +226 -226
  205. data/solr/server/solr-webapp/webapp/tpl/dashboard.html +201 -201
  206. data/solr/server/solr-webapp/webapp/tpl/dataimport.html +183 -183
  207. data/solr/server/solr-webapp/webapp/tpl/documents.html +107 -107
  208. data/solr/server/solr-webapp/webapp/tpl/files.html +44 -44
  209. data/solr/server/solr-webapp/webapp/tpl/index.html +250 -250
  210. data/solr/server/solr-webapp/webapp/tpl/logging.html +23 -23
  211. data/solr/server/solr-webapp/webapp/tpl/plugins.html +39 -39
  212. data/solr/server/solr-webapp/webapp/tpl/query.html +361 -361
  213. data/solr/server/solr-webapp/webapp/tpl/replication.html +216 -216
  214. data/solr/server/solr-webapp/webapp/tpl/schema-browser.html +192 -192
  215. data/solr/server/solr-webapp/webapp/tpl/segments.html +49 -0
  216. data/solr/server/solr-webapp/webapp/tpl/threads.html +56 -56
  217. data/solr/server/solr/README.txt +77 -77
  218. data/solr/server/solr/solr.xml +51 -51
  219. data/solr/server/solr/zoo.cfg +17 -17
  220. data/solr/server/start.jar +0 -0
  221. data/spec/server_spec.rb +3 -8
  222. metadata +132 -43
  223. data/solr/server/lib/jetty-continuation-8.1.10.v20130312.jar +0 -0
  224. data/solr/server/lib/jetty-deploy-8.1.10.v20130312.jar +0 -0
  225. data/solr/server/lib/jetty-http-8.1.10.v20130312.jar +0 -0
  226. data/solr/server/lib/jetty-io-8.1.10.v20130312.jar +0 -0
  227. data/solr/server/lib/jetty-jmx-8.1.10.v20130312.jar +0 -0
  228. data/solr/server/lib/jetty-security-8.1.10.v20130312.jar +0 -0
  229. data/solr/server/lib/jetty-server-8.1.10.v20130312.jar +0 -0
  230. data/solr/server/lib/jetty-servlet-8.1.10.v20130312.jar +0 -0
  231. data/solr/server/lib/jetty-util-8.1.10.v20130312.jar +0 -0
  232. data/solr/server/lib/jetty-webapp-8.1.10.v20130312.jar +0 -0
  233. data/solr/server/lib/jetty-xml-8.1.10.v20130312.jar +0 -0
  234. data/solr/server/lib/servlet-api-3.0.jar +0 -0
  235. data/solr/server/solr-webapp/webapp/.gitignore +0 -1
  236. data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-auth-2.3.0.jar +0 -0
  237. data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-common-2.3.0.jar +0 -0
  238. data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-hdfs-2.3.0.jar +0 -0
  239. data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpclient-4.3.1.jar +0 -0
  240. data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpcore-4.3.jar +0 -0
  241. data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpmime-4.3.1.jar +0 -0
  242. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-backward-codecs-5.0.0.jar +0 -0
  243. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-codecs-5.0.0.jar +0 -0
  244. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-core-5.0.0.jar +0 -0
  245. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-highlighter-5.0.0.jar +0 -0
  246. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-join-5.0.0.jar +0 -0
  247. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-memory-5.0.0.jar +0 -0
  248. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-misc-5.0.0.jar +0 -0
  249. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-queries-5.0.0.jar +0 -0
  250. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-spatial-5.0.0.jar +0 -0
  251. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-suggest-5.0.0.jar +0 -0
  252. data/solr/server/solr-webapp/webapp/WEB-INF/lib/org.restlet-2.1.1.jar +0 -0
  253. data/solr/server/solr-webapp/webapp/WEB-INF/lib/org.restlet.ext.servlet-2.1.1.jar +0 -0
  254. data/solr/server/solr-webapp/webapp/WEB-INF/lib/solr-core-5.0.0.jar +0 -0
  255. data/solr/server/solr-webapp/webapp/WEB-INF/lib/solr-solrj-5.0.0.jar +0 -0
  256. data/solr/server/webapps/solr.war +0 -0
@@ -0,0 +1,82 @@
1
+ /*
2
+ naturalSort.js
3
+ - by Jim Palmer and other contributors
4
+
5
+ The MIT License (MIT)
6
+
7
+ Copyright (c) 2011 Jim Palmer and other contributors
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in all
17
+ copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ SOFTWARE.
26
+ */
27
+
28
+ // naturalSort.js 0.7.0
29
+ // https://github.com/jarinudom/naturalSort.js
30
+ // (c) 2011 Jim Palmer and other contributors
31
+ // naturalSort.js may be freely distributed under the MIT license.
32
+ // Generated by CoffeeScript 1.7.1
33
+ (function() {
34
+ window.naturalSort = function(a, b) {
35
+ var cLoc, dre, hre, i, numS, oFxNcL, oFyNcL, ore, re, sre, x, xD, xN, y, yD, yN;
36
+ re = /(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/g;
37
+ sre = /(^[ ]*|[ ]*$)/g;
38
+ dre = /(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/;
39
+ hre = /^0x[0-9a-f]+$/i;
40
+ ore = /^0/;
41
+ i = function(s) {
42
+ return naturalSort.insensitive && ('' + s).toLowerCase() || '' + s;
43
+ };
44
+ x = i(a).replace(sre, '') || '';
45
+ y = i(b).replace(sre, '') || '';
46
+ xN = x.replace(re, '\u0000$1\u0000').replace(/\0$/, '').replace(/^\0/, '').split('\u0000');
47
+ yN = y.replace(re, '\u0000$1\u0000').replace(/\0$/, '').replace(/^\0/, '').split('\u0000');
48
+ xD = parseInt(x.match(hre), 16) || (xN.length !== 1 && x.match(dre) && Date.parse(x));
49
+ yD = parseInt(y.match(hre), 16) || xD && y.match(dre) && Date.parse(y) || null;
50
+ oFxNcL = void 0;
51
+ oFyNcL = void 0;
52
+ if (yD) {
53
+ if (xD < yD) {
54
+ return -1;
55
+ }
56
+ if (xD > yD) {
57
+ return 1;
58
+ }
59
+ }
60
+ cLoc = 0;
61
+ numS = Math.max(xN.length, yN.length);
62
+ while (cLoc < numS) {
63
+ oFxNcL = !(xN[cLoc] || '').match(ore) && parseFloat(xN[cLoc]) || xN[cLoc] || 0;
64
+ oFyNcL = !(yN[cLoc] || '').match(ore) && parseFloat(yN[cLoc]) || yN[cLoc] || 0;
65
+ if (isNaN(oFxNcL) !== isNaN(oFyNcL)) {
66
+ return (isNaN(oFxNcL) ? 1 : -1);
67
+ } else if (typeof oFxNcL !== typeof oFyNcL) {
68
+ oFxNcL += '';
69
+ oFyNcL += '';
70
+ }
71
+ if (oFxNcL < oFyNcL) {
72
+ return -1;
73
+ }
74
+ if (oFxNcL > oFyNcL) {
75
+ return 1;
76
+ }
77
+ cLoc++;
78
+ }
79
+ return 0;
80
+ };
81
+
82
+ }).call(this);
@@ -1,216 +1,216 @@
1
- /*
2
-
3
- MIT License
4
- -----------
5
-
6
- Copyright (c) 2010-2011, The Dojo Foundation
7
-
8
- Permission is hereby granted, free of charge, to any person obtaining a copy
9
- of this software and associated documentation files (the "Software"), to deal
10
- in the Software without restriction, including without limitation the rights
11
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
- copies of the Software, and to permit persons to whom the Software is
13
- furnished to do so, subject to the following conditions:
14
-
15
- The above copyright notice and this permission notice shall be included in
16
- all copies or substantial portions of the Software.
17
-
18
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- THE SOFTWARE.
25
-
26
- */
27
-
28
- /**
29
- * @license RequireJS order 1.0.5 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
30
- * Available via the MIT or new BSD license.
31
- * see: http://github.com/jrburke/requirejs for details
32
- */
33
- /*jslint nomen: false, plusplus: false, strict: false */
34
- /*global require: false, define: false, window: false, document: false,
35
- setTimeout: false */
36
-
37
- //Specify that requirejs optimizer should wrap this code in a closure that
38
- //maps the namespaced requirejs API to non-namespaced local variables.
39
- /*requirejs namespace: true */
40
-
41
- (function () {
42
-
43
- //Sadly necessary browser inference due to differences in the way
44
- //that browsers load and execute dynamically inserted javascript
45
- //and whether the script/cache method works when ordered execution is
46
- //desired. Currently, Gecko and Opera do not load/fire onload for scripts with
47
- //type="script/cache" but they execute injected scripts in order
48
- //unless the 'async' flag is present.
49
- //However, this is all changing in latest browsers implementing HTML5
50
- //spec. With compliant browsers .async true by default, and
51
- //if false, then it will execute in order. Favor that test first for forward
52
- //compatibility.
53
- var testScript = typeof document !== "undefined" &&
54
- typeof window !== "undefined" &&
55
- document.createElement("script"),
56
-
57
- supportsInOrderExecution = testScript && (testScript.async ||
58
- ((window.opera &&
59
- Object.prototype.toString.call(window.opera) === "[object Opera]") ||
60
- //If Firefox 2 does not have to be supported, then
61
- //a better check may be:
62
- //('mozIsLocallyAvailable' in window.navigator)
63
- ("MozAppearance" in document.documentElement.style))),
64
-
65
- //This test is true for IE browsers, which will load scripts but only
66
- //execute them once the script is added to the DOM.
67
- supportsLoadSeparateFromExecute = testScript &&
68
- testScript.readyState === 'uninitialized',
69
-
70
- readyRegExp = /^(complete|loaded)$/,
71
- cacheWaiting = [],
72
- cached = {},
73
- scriptNodes = {},
74
- scriptWaiting = [];
75
-
76
- //Done with the test script.
77
- testScript = null;
78
-
79
- //Callback used by the type="script/cache" callback that indicates a script
80
- //has finished downloading.
81
- function scriptCacheCallback(evt) {
82
- var node = evt.currentTarget || evt.srcElement, i,
83
- moduleName, resource;
84
-
85
- if (evt.type === "load" || readyRegExp.test(node.readyState)) {
86
- //Pull out the name of the module and the context.
87
- moduleName = node.getAttribute("data-requiremodule");
88
-
89
- //Mark this cache request as loaded
90
- cached[moduleName] = true;
91
-
92
- //Find out how many ordered modules have loaded
93
- for (i = 0; (resource = cacheWaiting[i]); i++) {
94
- if (cached[resource.name]) {
95
- resource.req([resource.name], resource.onLoad);
96
- } else {
97
- //Something in the ordered list is not loaded,
98
- //so wait.
99
- break;
100
- }
101
- }
102
-
103
- //If just loaded some items, remove them from cacheWaiting.
104
- if (i > 0) {
105
- cacheWaiting.splice(0, i);
106
- }
107
-
108
- //Remove this script tag from the DOM
109
- //Use a setTimeout for cleanup because some older IE versions vomit
110
- //if removing a script node while it is being evaluated.
111
- setTimeout(function () {
112
- node.parentNode.removeChild(node);
113
- }, 15);
114
- }
115
- }
116
-
117
- /**
118
- * Used for the IE case, where fetching is done by creating script element
119
- * but not attaching it to the DOM. This function will be called when that
120
- * happens so it can be determined when the node can be attached to the
121
- * DOM to trigger its execution.
122
- */
123
- function onFetchOnly(node) {
124
- var i, loadedNode, resourceName;
125
-
126
- //Mark this script as loaded.
127
- node.setAttribute('data-orderloaded', 'loaded');
128
-
129
- //Cycle through waiting scripts. If the matching node for them
130
- //is loaded, and is in the right order, add it to the DOM
131
- //to execute the script.
132
- for (i = 0; (resourceName = scriptWaiting[i]); i++) {
133
- loadedNode = scriptNodes[resourceName];
134
- if (loadedNode &&
135
- loadedNode.getAttribute('data-orderloaded') === 'loaded') {
136
- delete scriptNodes[resourceName];
137
- require.addScriptToDom(loadedNode);
138
- } else {
139
- break;
140
- }
141
- }
142
-
143
- //If just loaded some items, remove them from waiting.
144
- if (i > 0) {
145
- scriptWaiting.splice(0, i);
146
- }
147
- }
148
-
149
- define({
150
- version: '1.0.5',
151
-
152
- load: function (name, req, onLoad, config) {
153
- var hasToUrl = !!req.nameToUrl,
154
- url, node, context;
155
-
156
- //If no nameToUrl, then probably a build with a loader that
157
- //does not support it, and all modules are inlined.
158
- if (!hasToUrl) {
159
- req([name], onLoad);
160
- return;
161
- }
162
-
163
- url = req.nameToUrl(name, null);
164
-
165
- //Make sure the async attribute is not set for any pathway involving
166
- //this script.
167
- require.s.skipAsync[url] = true;
168
- if (supportsInOrderExecution || config.isBuild) {
169
- //Just a normal script tag append, but without async attribute
170
- //on the script.
171
- req([name], onLoad);
172
- } else if (supportsLoadSeparateFromExecute) {
173
- //Just fetch the URL, but do not execute it yet. The
174
- //non-standards IE case. Really not so nice because it is
175
- //assuming and touching requrejs internals. OK though since
176
- //ordered execution should go away after a long while.
177
- context = require.s.contexts._;
178
-
179
- if (!context.urlFetched[url] && !context.loaded[name]) {
180
- //Indicate the script is being fetched.
181
- context.urlFetched[url] = true;
182
-
183
- //Stuff from require.load
184
- require.resourcesReady(false);
185
- context.scriptCount += 1;
186
-
187
- //Fetch the script now, remember it.
188
- node = require.attach(url, context, name, null, null, onFetchOnly);
189
- scriptNodes[name] = node;
190
- scriptWaiting.push(name);
191
- }
192
-
193
- //Do a normal require for it, once it loads, use it as return
194
- //value.
195
- req([name], onLoad);
196
- } else {
197
- //Credit to LABjs author Kyle Simpson for finding that scripts
198
- //with type="script/cache" allow scripts to be downloaded into
199
- //browser cache but not executed. Use that
200
- //so that subsequent addition of a real type="text/javascript"
201
- //tag will cause the scripts to be executed immediately in the
202
- //correct order.
203
- if (req.specified(name)) {
204
- req([name], onLoad);
205
- } else {
206
- cacheWaiting.push({
207
- name: name,
208
- req: req,
209
- onLoad: onLoad
210
- });
211
- require.attach(url, null, name, scriptCacheCallback, "script/cache");
212
- }
213
- }
214
- }
215
- });
216
- }());
1
+ /*
2
+
3
+ MIT License
4
+ -----------
5
+
6
+ Copyright (c) 2010-2011, The Dojo Foundation
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ of this software and associated documentation files (the "Software"), to deal
10
+ in the Software without restriction, including without limitation the rights
11
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ copies of the Software, and to permit persons to whom the Software is
13
+ furnished to do so, subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in
16
+ all copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
+ THE SOFTWARE.
25
+
26
+ */
27
+
28
+ /**
29
+ * @license RequireJS order 1.0.5 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
30
+ * Available via the MIT or new BSD license.
31
+ * see: http://github.com/jrburke/requirejs for details
32
+ */
33
+ /*jslint nomen: false, plusplus: false, strict: false */
34
+ /*global require: false, define: false, window: false, document: false,
35
+ setTimeout: false */
36
+
37
+ //Specify that requirejs optimizer should wrap this code in a closure that
38
+ //maps the namespaced requirejs API to non-namespaced local variables.
39
+ /*requirejs namespace: true */
40
+
41
+ (function () {
42
+
43
+ //Sadly necessary browser inference due to differences in the way
44
+ //that browsers load and execute dynamically inserted javascript
45
+ //and whether the script/cache method works when ordered execution is
46
+ //desired. Currently, Gecko and Opera do not load/fire onload for scripts with
47
+ //type="script/cache" but they execute injected scripts in order
48
+ //unless the 'async' flag is present.
49
+ //However, this is all changing in latest browsers implementing HTML5
50
+ //spec. With compliant browsers .async true by default, and
51
+ //if false, then it will execute in order. Favor that test first for forward
52
+ //compatibility.
53
+ var testScript = typeof document !== "undefined" &&
54
+ typeof window !== "undefined" &&
55
+ document.createElement("script"),
56
+
57
+ supportsInOrderExecution = testScript && (testScript.async ||
58
+ ((window.opera &&
59
+ Object.prototype.toString.call(window.opera) === "[object Opera]") ||
60
+ //If Firefox 2 does not have to be supported, then
61
+ //a better check may be:
62
+ //('mozIsLocallyAvailable' in window.navigator)
63
+ ("MozAppearance" in document.documentElement.style))),
64
+
65
+ //This test is true for IE browsers, which will load scripts but only
66
+ //execute them once the script is added to the DOM.
67
+ supportsLoadSeparateFromExecute = testScript &&
68
+ testScript.readyState === 'uninitialized',
69
+
70
+ readyRegExp = /^(complete|loaded)$/,
71
+ cacheWaiting = [],
72
+ cached = {},
73
+ scriptNodes = {},
74
+ scriptWaiting = [];
75
+
76
+ //Done with the test script.
77
+ testScript = null;
78
+
79
+ //Callback used by the type="script/cache" callback that indicates a script
80
+ //has finished downloading.
81
+ function scriptCacheCallback(evt) {
82
+ var node = evt.currentTarget || evt.srcElement, i,
83
+ moduleName, resource;
84
+
85
+ if (evt.type === "load" || readyRegExp.test(node.readyState)) {
86
+ //Pull out the name of the module and the context.
87
+ moduleName = node.getAttribute("data-requiremodule");
88
+
89
+ //Mark this cache request as loaded
90
+ cached[moduleName] = true;
91
+
92
+ //Find out how many ordered modules have loaded
93
+ for (i = 0; (resource = cacheWaiting[i]); i++) {
94
+ if (cached[resource.name]) {
95
+ resource.req([resource.name], resource.onLoad);
96
+ } else {
97
+ //Something in the ordered list is not loaded,
98
+ //so wait.
99
+ break;
100
+ }
101
+ }
102
+
103
+ //If just loaded some items, remove them from cacheWaiting.
104
+ if (i > 0) {
105
+ cacheWaiting.splice(0, i);
106
+ }
107
+
108
+ //Remove this script tag from the DOM
109
+ //Use a setTimeout for cleanup because some older IE versions vomit
110
+ //if removing a script node while it is being evaluated.
111
+ setTimeout(function () {
112
+ node.parentNode.removeChild(node);
113
+ }, 15);
114
+ }
115
+ }
116
+
117
+ /**
118
+ * Used for the IE case, where fetching is done by creating script element
119
+ * but not attaching it to the DOM. This function will be called when that
120
+ * happens so it can be determined when the node can be attached to the
121
+ * DOM to trigger its execution.
122
+ */
123
+ function onFetchOnly(node) {
124
+ var i, loadedNode, resourceName;
125
+
126
+ //Mark this script as loaded.
127
+ node.setAttribute('data-orderloaded', 'loaded');
128
+
129
+ //Cycle through waiting scripts. If the matching node for them
130
+ //is loaded, and is in the right order, add it to the DOM
131
+ //to execute the script.
132
+ for (i = 0; (resourceName = scriptWaiting[i]); i++) {
133
+ loadedNode = scriptNodes[resourceName];
134
+ if (loadedNode &&
135
+ loadedNode.getAttribute('data-orderloaded') === 'loaded') {
136
+ delete scriptNodes[resourceName];
137
+ require.addScriptToDom(loadedNode);
138
+ } else {
139
+ break;
140
+ }
141
+ }
142
+
143
+ //If just loaded some items, remove them from waiting.
144
+ if (i > 0) {
145
+ scriptWaiting.splice(0, i);
146
+ }
147
+ }
148
+
149
+ define({
150
+ version: '1.0.5',
151
+
152
+ load: function (name, req, onLoad, config) {
153
+ var hasToUrl = !!req.nameToUrl,
154
+ url, node, context;
155
+
156
+ //If no nameToUrl, then probably a build with a loader that
157
+ //does not support it, and all modules are inlined.
158
+ if (!hasToUrl) {
159
+ req([name], onLoad);
160
+ return;
161
+ }
162
+
163
+ url = req.nameToUrl(name, null);
164
+
165
+ //Make sure the async attribute is not set for any pathway involving
166
+ //this script.
167
+ require.s.skipAsync[url] = true;
168
+ if (supportsInOrderExecution || config.isBuild) {
169
+ //Just a normal script tag append, but without async attribute
170
+ //on the script.
171
+ req([name], onLoad);
172
+ } else if (supportsLoadSeparateFromExecute) {
173
+ //Just fetch the URL, but do not execute it yet. The
174
+ //non-standards IE case. Really not so nice because it is
175
+ //assuming and touching requrejs internals. OK though since
176
+ //ordered execution should go away after a long while.
177
+ context = require.s.contexts._;
178
+
179
+ if (!context.urlFetched[url] && !context.loaded[name]) {
180
+ //Indicate the script is being fetched.
181
+ context.urlFetched[url] = true;
182
+
183
+ //Stuff from require.load
184
+ require.resourcesReady(false);
185
+ context.scriptCount += 1;
186
+
187
+ //Fetch the script now, remember it.
188
+ node = require.attach(url, context, name, null, null, onFetchOnly);
189
+ scriptNodes[name] = node;
190
+ scriptWaiting.push(name);
191
+ }
192
+
193
+ //Do a normal require for it, once it loads, use it as return
194
+ //value.
195
+ req([name], onLoad);
196
+ } else {
197
+ //Credit to LABjs author Kyle Simpson for finding that scripts
198
+ //with type="script/cache" allow scripts to be downloaded into
199
+ //browser cache but not executed. Use that
200
+ //so that subsequent addition of a real type="text/javascript"
201
+ //tag will cause the scripts to be executed immediately in the
202
+ //correct order.
203
+ if (req.specified(name)) {
204
+ req([name], onLoad);
205
+ } else {
206
+ cacheWaiting.push({
207
+ name: name,
208
+ req: req,
209
+ onLoad: onLoad
210
+ });
211
+ require.attach(url, null, name, scriptCacheCallback, "script/cache");
212
+ }
213
+ }
214
+ }
215
+ });
216
+ }());