softcover-nonstop 1.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (753) hide show
  1. data/.gitignore +27 -0
  2. data/.pull_requests/1371777843 +0 -0
  3. data/.pull_requests/1371928784 +0 -0
  4. data/.pull_requests/1372807241 +0 -0
  5. data/.pull_requests/1374784202 +0 -0
  6. data/.pull_requests/1375325174 +0 -0
  7. data/.pull_requests/1375410822 +0 -0
  8. data/.pull_requests/1375469799 +0 -0
  9. data/.pull_requests/1375490251 +0 -0
  10. data/.pull_requests/1375493726 +0 -0
  11. data/.pull_requests/1375496302 +0 -0
  12. data/.pull_requests/1375496370 +0 -0
  13. data/.pull_requests/1375576640 +0 -0
  14. data/.pull_requests/1375841865 +0 -0
  15. data/.pull_requests/1376353301 +0 -0
  16. data/.pull_requests/1376358293 +0 -0
  17. data/.pull_requests/1376358392 +0 -0
  18. data/.pull_requests/1376451118 +0 -0
  19. data/.pull_requests/1376508357 +0 -0
  20. data/.pull_requests/1376513848 +0 -0
  21. data/.pull_requests/1376626000 +0 -0
  22. data/.pull_requests/1376626358 +0 -0
  23. data/.pull_requests/1376694273 +0 -0
  24. data/.pull_requests/1376696608 +0 -0
  25. data/.pull_requests/1376701133 +0 -0
  26. data/.pull_requests/1376705147 +0 -0
  27. data/.pull_requests/1377192571 +0 -0
  28. data/.pull_requests/1377195255 +0 -0
  29. data/.pull_requests/1377227817 +0 -0
  30. data/.pull_requests/1378780517 +0 -0
  31. data/.pull_requests/1379022091 +0 -0
  32. data/.pull_requests/1379023124 +0 -0
  33. data/.pull_requests/1379355960 +0 -0
  34. data/.pull_requests/1379457178 +0 -0
  35. data/.pull_requests/1379471050 +0 -0
  36. data/.pull_requests/1379630778 +0 -0
  37. data/.pull_requests/1380079375 +0 -0
  38. data/.pull_requests/1380081971 +0 -0
  39. data/.pull_requests/1380222458 +0 -0
  40. data/.pull_requests/1380229616 +0 -0
  41. data/.pull_requests/1380321946 +0 -0
  42. data/.pull_requests/1380587638 +0 -0
  43. data/.pull_requests/1380673383 +0 -0
  44. data/.pull_requests/1380675541 +0 -0
  45. data/.pull_requests/1380676529 +0 -0
  46. data/.pull_requests/1380944160 +0 -0
  47. data/.pull_requests/1381001404 +0 -0
  48. data/.pull_requests/1381001955 +0 -0
  49. data/.pull_requests/1381005206 +0 -0
  50. data/.pull_requests/1381103407 +0 -0
  51. data/.pull_requests/1381265319 +0 -0
  52. data/.pull_requests/1381276823 +0 -0
  53. data/.pull_requests/1381344368 +0 -0
  54. data/.pull_requests/1381385299 +0 -0
  55. data/.pull_requests/1381429963 +0 -0
  56. data/.pull_requests/1381532321 +0 -0
  57. data/.pull_requests/1381635684 +0 -0
  58. data/.pull_requests/1381875886 +0 -0
  59. data/.pull_requests/1382040914 +0 -0
  60. data/.pull_requests/1382056382 +0 -0
  61. data/.pull_requests/1382229425 +0 -0
  62. data/.pull_requests/1382501299 +0 -0
  63. data/.pull_requests/1382559045 +0 -0
  64. data/.pull_requests/1382569908 +0 -0
  65. data/.pull_requests/1382643470 +0 -0
  66. data/.pull_requests/1382660994 +0 -0
  67. data/.pull_requests/1382815660 +0 -0
  68. data/.pull_requests/1383162273 +0 -0
  69. data/.pull_requests/1383274302 +0 -0
  70. data/.pull_requests/1383274901 +0 -0
  71. data/.pull_requests/1383336387 +0 -0
  72. data/.pull_requests/1383420874 +0 -0
  73. data/.pull_requests/1383707748 +0 -0
  74. data/.pull_requests/1384207054 +0 -0
  75. data/.pull_requests/1384304643 +0 -0
  76. data/.pull_requests/1384447036 +0 -0
  77. data/.pull_requests/1384468478 +0 -0
  78. data/.pull_requests/1384801823 +0 -0
  79. data/.pull_requests/1385070261 +0 -0
  80. data/.pull_requests/1385518404 +0 -0
  81. data/.pull_requests/1385766008 +0 -0
  82. data/.pull_requests/1385778329 +0 -0
  83. data/.pull_requests/1385834422 +0 -0
  84. data/.pull_requests/1385835007 +0 -0
  85. data/.pull_requests/1385862948 +0 -0
  86. data/.pull_requests/1386099285 +0 -0
  87. data/.pull_requests/1386115582 +0 -0
  88. data/.pull_requests/1386448492 +0 -0
  89. data/.pull_requests/1387399930 +0 -0
  90. data/.pull_requests/1387400263 +0 -0
  91. data/.pull_requests/1387592428 +0 -0
  92. data/.pull_requests/1387944330 +0 -0
  93. data/.pull_requests/1388094706 +0 -0
  94. data/.pull_requests/1388441218 +0 -0
  95. data/.pull_requests/1388518194 +0 -0
  96. data/.pull_requests/1388713504 +0 -0
  97. data/.pull_requests/1388804598 +0 -0
  98. data/.pull_requests/1395697365 +0 -0
  99. data/.pull_requests/1403289532 +0 -0
  100. data/.rspec +1 -0
  101. data/.travis.yml +13 -0
  102. data/.vagrant.yml +1 -0
  103. data/Gemfile +26 -0
  104. data/LICENSE.txt +22 -0
  105. data/README.md +27 -0
  106. data/Rakefile +2 -0
  107. data/bin/sc +4 -0
  108. data/bin/softcover +4 -0
  109. data/lib/softcover/book.rb +238 -0
  110. data/lib/softcover/book_manifest.rb +385 -0
  111. data/lib/softcover/builder.rb +86 -0
  112. data/lib/softcover/builders/epub.rb +514 -0
  113. data/lib/softcover/builders/html.rb +239 -0
  114. data/lib/softcover/builders/mobi.rb +59 -0
  115. data/lib/softcover/builders/pdf.rb +160 -0
  116. data/lib/softcover/builders/preview.rb +38 -0
  117. data/lib/softcover/builders/utils/page.js +62 -0
  118. data/lib/softcover/cli.rb +270 -0
  119. data/lib/softcover/client.rb +119 -0
  120. data/lib/softcover/commands/auth.rb +18 -0
  121. data/lib/softcover/commands/build.rb +74 -0
  122. data/lib/softcover/commands/check.rb +112 -0
  123. data/lib/softcover/commands/deployment.rb +35 -0
  124. data/lib/softcover/commands/epub_validator.rb +32 -0
  125. data/lib/softcover/commands/generator.rb +140 -0
  126. data/lib/softcover/commands/opener.rb +17 -0
  127. data/lib/softcover/commands/publisher.rb +131 -0
  128. data/lib/softcover/commands/server.rb +66 -0
  129. data/lib/softcover/config.rb +62 -0
  130. data/lib/softcover/directories.rb +5 -0
  131. data/lib/softcover/formats.rb +5 -0
  132. data/lib/softcover/mathjax.rb +85 -0
  133. data/lib/softcover/output.rb +39 -0
  134. data/lib/softcover/rails/railtie.rb +9 -0
  135. data/lib/softcover/sanitizer.rb +48 -0
  136. data/lib/softcover/server/app.rb +78 -0
  137. data/lib/softcover/server/assets/bg.gif +0 -0
  138. data/lib/softcover/server/assets/icons.png +0 -0
  139. data/lib/softcover/server/assets/main.css +189 -0
  140. data/lib/softcover/server/assets/underscore-min.js +6 -0
  141. data/lib/softcover/server/assets/underscore-min.map +1 -0
  142. data/lib/softcover/server/views/book.html.erb +55 -0
  143. data/lib/softcover/server/views/main.js.erb +58 -0
  144. data/lib/softcover/template/.softcover-build +6 -0
  145. data/lib/softcover/template/.softcover-deploy +6 -0
  146. data/lib/softcover/template/Book.txt +9 -0
  147. data/lib/softcover/template/README.md +10 -0
  148. data/lib/softcover/template/chapters/a_chapter.md +142 -0
  149. data/lib/softcover/template/chapters/a_chapter.tex +182 -0
  150. data/lib/softcover/template/chapters/another_chapter.md +11 -0
  151. data/lib/softcover/template/chapters/another_chapter.tex +4 -0
  152. data/lib/softcover/template/chapters/preface.md +3 -0
  153. data/lib/softcover/template/chapters/preface.tex +3 -0
  154. data/lib/softcover/template/chapters/yet_another_chapter.md +3 -0
  155. data/lib/softcover/template/chapters/yet_another_chapter.tex +6 -0
  156. data/lib/softcover/template/config/book.yml.erb +11 -0
  157. data/lib/softcover/template/config/lang.yml +14 -0
  158. data/lib/softcover/template/config/marketing.yml +60 -0
  159. data/lib/softcover/template/config/preamble.tex +8 -0
  160. data/lib/softcover/template/epub/OEBPS/styles/.gitkeep +0 -0
  161. data/lib/softcover/template/epub/OEBPS/styles/custom_epub.css +7 -0
  162. data/lib/softcover/template/epub/OEBPS/styles/epub.css +23 -0
  163. data/lib/softcover/template/epub/OEBPS/styles/page-template.xpgt +49 -0
  164. data/lib/softcover/template/gitignore +36 -0
  165. data/lib/softcover/template/html/.gitkeep +0 -0
  166. data/lib/softcover/template/html/MathJax/MathJax.js +30 -0
  167. data/lib/softcover/template/html/MathJax/config/TeX-AMS-MML_SVG.js +68 -0
  168. data/lib/softcover/template/html/MathJax/config/TeX-AMS_HTML.js +59 -0
  169. data/lib/softcover/template/html/MathJax/extensions/FontWarnings.js +16 -0
  170. data/lib/softcover/template/html/MathJax/extensions/HTML-CSS/handle-floats.js +16 -0
  171. data/lib/softcover/template/html/MathJax/extensions/HelpDialog.js +16 -0
  172. data/lib/softcover/template/html/MathJax/extensions/MathEvents.js +16 -0
  173. data/lib/softcover/template/html/MathJax/extensions/MathML/content-mathml.js +16 -0
  174. data/lib/softcover/template/html/MathJax/extensions/MathMenu.js +16 -0
  175. data/lib/softcover/template/html/MathJax/extensions/MathZoom.js +16 -0
  176. data/lib/softcover/template/html/MathJax/extensions/Safe.js +16 -0
  177. data/lib/softcover/template/html/MathJax/extensions/TeX/AMScd.js +16 -0
  178. data/lib/softcover/template/html/MathJax/extensions/TeX/AMSmath.js +16 -0
  179. data/lib/softcover/template/html/MathJax/extensions/TeX/AMSsymbols.js +16 -0
  180. data/lib/softcover/template/html/MathJax/extensions/TeX/HTML.js +16 -0
  181. data/lib/softcover/template/html/MathJax/extensions/TeX/action.js +16 -0
  182. data/lib/softcover/template/html/MathJax/extensions/TeX/autobold.js +16 -0
  183. data/lib/softcover/template/html/MathJax/extensions/TeX/autoload-all.js +16 -0
  184. data/lib/softcover/template/html/MathJax/extensions/TeX/bbox.js +16 -0
  185. data/lib/softcover/template/html/MathJax/extensions/TeX/begingroup.js +16 -0
  186. data/lib/softcover/template/html/MathJax/extensions/TeX/boldsymbol.js +16 -0
  187. data/lib/softcover/template/html/MathJax/extensions/TeX/cancel.js +16 -0
  188. data/lib/softcover/template/html/MathJax/extensions/TeX/color.js +16 -0
  189. data/lib/softcover/template/html/MathJax/extensions/TeX/enclose.js +16 -0
  190. data/lib/softcover/template/html/MathJax/extensions/TeX/extpfeil.js +16 -0
  191. data/lib/softcover/template/html/MathJax/extensions/TeX/mathchoice.js +16 -0
  192. data/lib/softcover/template/html/MathJax/extensions/TeX/mhchem.js +16 -0
  193. data/lib/softcover/template/html/MathJax/extensions/TeX/newcommand.js +16 -0
  194. data/lib/softcover/template/html/MathJax/extensions/TeX/noErrors.js +16 -0
  195. data/lib/softcover/template/html/MathJax/extensions/TeX/noUndefined.js +16 -0
  196. data/lib/softcover/template/html/MathJax/extensions/TeX/unicode.js +16 -0
  197. data/lib/softcover/template/html/MathJax/extensions/TeX/verb.js +16 -0
  198. data/lib/softcover/template/html/MathJax/extensions/asciimath2jax.js +16 -0
  199. data/lib/softcover/template/html/MathJax/extensions/jsMath2jax.js +16 -0
  200. data/lib/softcover/template/html/MathJax/extensions/mml2jax.js +16 -0
  201. data/lib/softcover/template/html/MathJax/extensions/tex2jax.js +16 -0
  202. data/lib/softcover/template/html/MathJax/extensions/toMathML.js +16 -0
  203. data/lib/softcover/template/html/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_AMS-Regular.woff +0 -0
  204. data/lib/softcover/template/html/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Bold.woff +0 -0
  205. data/lib/softcover/template/html/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff +0 -0
  206. data/lib/softcover/template/html/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Bold.woff +0 -0
  207. data/lib/softcover/template/html/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Regular.woff +0 -0
  208. data/lib/softcover/template/html/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Bold.woff +0 -0
  209. data/lib/softcover/template/html/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Italic.woff +0 -0
  210. data/lib/softcover/template/html/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Regular.woff +0 -0
  211. data/lib/softcover/template/html/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Math-BoldItalic.woff +0 -0
  212. data/lib/softcover/template/html/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Italic.woff +0 -0
  213. data/lib/softcover/template/html/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Regular.woff +0 -0
  214. data/lib/softcover/template/html/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Bold.woff +0 -0
  215. data/lib/softcover/template/html/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Italic.woff +0 -0
  216. data/lib/softcover/template/html/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Regular.woff +0 -0
  217. data/lib/softcover/template/html/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Script-Regular.woff +0 -0
  218. data/lib/softcover/template/html/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size1-Regular.woff +0 -0
  219. data/lib/softcover/template/html/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size2-Regular.woff +0 -0
  220. data/lib/softcover/template/html/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size3-Regular.woff +0 -0
  221. data/lib/softcover/template/html/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size4-Regular.woff +0 -0
  222. data/lib/softcover/template/html/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Typewriter-Regular.woff +0 -0
  223. data/lib/softcover/template/html/MathJax/images/CloseX-31.png +0 -0
  224. data/lib/softcover/template/html/MathJax/images/MenuArrow-15.png +0 -0
  225. data/lib/softcover/template/html/MathJax/jax/element/mml/jax.js +16 -0
  226. data/lib/softcover/template/html/MathJax/jax/element/mml/optable/Arrows.js +16 -0
  227. data/lib/softcover/template/html/MathJax/jax/element/mml/optable/BasicLatin.js +16 -0
  228. data/lib/softcover/template/html/MathJax/jax/element/mml/optable/CombDiacritMarks.js +16 -0
  229. data/lib/softcover/template/html/MathJax/jax/element/mml/optable/CombDiactForSymbols.js +16 -0
  230. data/lib/softcover/template/html/MathJax/jax/element/mml/optable/Dingbats.js +16 -0
  231. data/lib/softcover/template/html/MathJax/jax/element/mml/optable/GeneralPunctuation.js +16 -0
  232. data/lib/softcover/template/html/MathJax/jax/element/mml/optable/GeometricShapes.js +16 -0
  233. data/lib/softcover/template/html/MathJax/jax/element/mml/optable/GreekAndCoptic.js +16 -0
  234. data/lib/softcover/template/html/MathJax/jax/element/mml/optable/Latin1Supplement.js +16 -0
  235. data/lib/softcover/template/html/MathJax/jax/element/mml/optable/LetterlikeSymbols.js +16 -0
  236. data/lib/softcover/template/html/MathJax/jax/element/mml/optable/MathOperators.js +16 -0
  237. data/lib/softcover/template/html/MathJax/jax/element/mml/optable/MiscMathSymbolsA.js +16 -0
  238. data/lib/softcover/template/html/MathJax/jax/element/mml/optable/MiscMathSymbolsB.js +16 -0
  239. data/lib/softcover/template/html/MathJax/jax/element/mml/optable/MiscSymbolsAndArrows.js +16 -0
  240. data/lib/softcover/template/html/MathJax/jax/element/mml/optable/MiscTechnical.js +16 -0
  241. data/lib/softcover/template/html/MathJax/jax/element/mml/optable/SpacingModLetters.js +16 -0
  242. data/lib/softcover/template/html/MathJax/jax/element/mml/optable/SuppMathOperators.js +16 -0
  243. data/lib/softcover/template/html/MathJax/jax/element/mml/optable/SupplementalArrowsA.js +16 -0
  244. data/lib/softcover/template/html/MathJax/jax/element/mml/optable/SupplementalArrowsB.js +16 -0
  245. data/lib/softcover/template/html/MathJax/jax/input/AsciiMath/config.js +16 -0
  246. data/lib/softcover/template/html/MathJax/jax/input/AsciiMath/jax.js +16 -0
  247. data/lib/softcover/template/html/MathJax/jax/input/MathML/config.js +16 -0
  248. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/a.js +16 -0
  249. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/b.js +16 -0
  250. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/c.js +16 -0
  251. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/d.js +16 -0
  252. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/e.js +16 -0
  253. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/f.js +16 -0
  254. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/fr.js +16 -0
  255. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/g.js +16 -0
  256. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/h.js +16 -0
  257. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/i.js +16 -0
  258. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/j.js +16 -0
  259. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/k.js +16 -0
  260. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/l.js +16 -0
  261. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/m.js +16 -0
  262. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/n.js +16 -0
  263. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/o.js +16 -0
  264. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/opf.js +16 -0
  265. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/p.js +16 -0
  266. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/q.js +16 -0
  267. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/r.js +16 -0
  268. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/s.js +16 -0
  269. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/scr.js +16 -0
  270. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/t.js +16 -0
  271. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/u.js +16 -0
  272. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/v.js +16 -0
  273. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/w.js +16 -0
  274. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/x.js +16 -0
  275. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/y.js +16 -0
  276. data/lib/softcover/template/html/MathJax/jax/input/MathML/entities/z.js +16 -0
  277. data/lib/softcover/template/html/MathJax/jax/input/MathML/jax.js +16 -0
  278. data/lib/softcover/template/html/MathJax/jax/input/TeX/config.js +16 -0
  279. data/lib/softcover/template/html/MathJax/jax/input/TeX/jax.js +16 -0
  280. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/autoload/annotation-xml.js +16 -0
  281. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/autoload/maction.js +16 -0
  282. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/autoload/menclose.js +16 -0
  283. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/autoload/mglyph.js +16 -0
  284. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/autoload/mmultiscripts.js +16 -0
  285. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/autoload/ms.js +16 -0
  286. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/autoload/mtable.js +16 -0
  287. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/autoload/multiline.js +16 -0
  288. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/config.js +16 -0
  289. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/AlphaPresentForms.js +16 -0
  290. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/Arrows.js +16 -0
  291. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/BBBold.js +16 -0
  292. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/BoldFraktur.js +16 -0
  293. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/BoxDrawing.js +16 -0
  294. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/CombDiacritMarks.js +16 -0
  295. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/CombDiactForSymbols.js +16 -0
  296. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/ControlPictures.js +16 -0
  297. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/CurrencySymbols.js +16 -0
  298. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/Cyrillic.js +16 -0
  299. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/EnclosedAlphanum.js +16 -0
  300. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/GeneralPunctuation.js +16 -0
  301. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/GeometricShapes.js +16 -0
  302. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/GreekAndCoptic.js +16 -0
  303. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/GreekBold.js +16 -0
  304. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/GreekSSBold.js +16 -0
  305. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/IPAExtensions.js +16 -0
  306. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/Latin1Supplement.js +16 -0
  307. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/LatinExtendedA.js +16 -0
  308. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/LatinExtendedAdditional.js +16 -0
  309. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/LatinExtendedB.js +16 -0
  310. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/LatinExtendedD.js +16 -0
  311. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/LetterlikeSymbols.js +16 -0
  312. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/Main.js +16 -0
  313. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MathBold.js +16 -0
  314. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MathOperators.js +16 -0
  315. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MathSSBold.js +16 -0
  316. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MiscMathSymbolsA.js +16 -0
  317. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MiscMathSymbolsB.js +16 -0
  318. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MiscSymbols.js +16 -0
  319. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MiscTechnical.js +16 -0
  320. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/NumberForms.js +16 -0
  321. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/PhoneticExtensions.js +16 -0
  322. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/SpacingModLetters.js +16 -0
  323. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/SuperAndSubscripts.js +16 -0
  324. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/SuppMathOperators.js +16 -0
  325. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/AlphaPresentForms.js +16 -0
  326. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/BasicLatin.js +16 -0
  327. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/BoxDrawing.js +16 -0
  328. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/CombDiactForSymbols.js +16 -0
  329. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/ControlPictures.js +16 -0
  330. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/CurrencySymbols.js +16 -0
  331. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/Cyrillic.js +16 -0
  332. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/EnclosedAlphanum.js +16 -0
  333. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/GeneralPunctuation.js +16 -0
  334. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/GreekAndCoptic.js +16 -0
  335. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/GreekBoldItalic.js +16 -0
  336. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/GreekSSBoldItalic.js +16 -0
  337. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/IPAExtensions.js +16 -0
  338. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/Latin1Supplement.js +16 -0
  339. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/LatinExtendedA.js +16 -0
  340. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/LatinExtendedAdditional.js +16 -0
  341. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/LatinExtendedB.js +16 -0
  342. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/LetterlikeSymbols.js +16 -0
  343. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/Main.js +16 -0
  344. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/MathBoldItalic.js +16 -0
  345. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/MathBoldScript.js +16 -0
  346. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/MathOperators.js +16 -0
  347. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/MathSSItalicBold.js +16 -0
  348. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/SpacingModLetters.js +16 -0
  349. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/AlphaPresentForms.js +16 -0
  350. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/BoxDrawing.js +16 -0
  351. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/CombDiactForSymbols.js +16 -0
  352. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/ControlPictures.js +16 -0
  353. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/CurrencySymbols.js +16 -0
  354. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/Cyrillic.js +16 -0
  355. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/EnclosedAlphanum.js +16 -0
  356. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/GeneralPunctuation.js +16 -0
  357. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/GreekAndCoptic.js +16 -0
  358. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/GreekItalic.js +16 -0
  359. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/IPAExtensions.js +16 -0
  360. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/Latin1Supplement.js +16 -0
  361. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/LatinExtendedA.js +16 -0
  362. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/LatinExtendedAdditional.js +16 -0
  363. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/LatinExtendedB.js +16 -0
  364. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/LetterlikeSymbols.js +16 -0
  365. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/Main.js +16 -0
  366. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/MathItalic.js +16 -0
  367. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/MathOperators.js +16 -0
  368. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/MathSSItalic.js +16 -0
  369. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/MathScript.js +16 -0
  370. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/SpacingModLetters.js +16 -0
  371. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/ij.js +16 -0
  372. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/AlphaPresentForms.js +16 -0
  373. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Arrows.js +16 -0
  374. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/BBBold.js +16 -0
  375. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/BlockElements.js +16 -0
  376. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/BoldFraktur.js +16 -0
  377. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/BoxDrawing.js +16 -0
  378. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/CJK.js +16 -0
  379. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/CombDiacritMarks.js +16 -0
  380. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/CombDiactForSymbols.js +16 -0
  381. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/ControlPictures.js +16 -0
  382. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/CurrencySymbols.js +16 -0
  383. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Cyrillic.js +16 -0
  384. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Dingbats.js +16 -0
  385. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/EnclosedAlphanum.js +16 -0
  386. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Fraktur.js +16 -0
  387. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GeneralPunctuation.js +16 -0
  388. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GeometricShapes.js +16 -0
  389. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekAndCoptic.js +16 -0
  390. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekBold.js +16 -0
  391. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekBoldItalic.js +16 -0
  392. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekItalic.js +16 -0
  393. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekSSBold.js +16 -0
  394. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekSSBoldItalic.js +16 -0
  395. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Hiragana.js +16 -0
  396. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/IPAExtensions.js +16 -0
  397. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Latin1Supplement.js +16 -0
  398. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/LatinExtendedA.js +16 -0
  399. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/LatinExtendedAdditional.js +16 -0
  400. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/LatinExtendedB.js +16 -0
  401. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/LatinExtendedD.js +16 -0
  402. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/LetterlikeSymbols.js +16 -0
  403. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Main.js +16 -0
  404. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathBold.js +16 -0
  405. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathBoldItalic.js +16 -0
  406. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathBoldScript.js +16 -0
  407. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathItalic.js +16 -0
  408. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathOperators.js +16 -0
  409. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathSS.js +16 -0
  410. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathSSBold.js +16 -0
  411. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathSSItalic.js +16 -0
  412. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathSSItalicBold.js +16 -0
  413. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathScript.js +16 -0
  414. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathTT.js +16 -0
  415. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MiscMathSymbolsA.js +16 -0
  416. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MiscMathSymbolsB.js +16 -0
  417. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MiscSymbols.js +16 -0
  418. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MiscSymbolsAndArrows.js +16 -0
  419. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MiscTechnical.js +16 -0
  420. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/NumberForms.js +16 -0
  421. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/PhoneticExtensions.js +16 -0
  422. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SpacingModLetters.js +16 -0
  423. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Specials.js +16 -0
  424. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SuperAndSubscripts.js +16 -0
  425. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SuppMathOperators.js +16 -0
  426. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SupplementalArrowsA.js +16 -0
  427. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SupplementalArrowsB.js +16 -0
  428. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/ij.js +16 -0
  429. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsD/Bold/All.js +16 -0
  430. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsD/Regular/All.js +16 -0
  431. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsD/Regular/Main.js +16 -0
  432. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsSm/Bold/All.js +16 -0
  433. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsSm/Regular/All.js +16 -0
  434. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsSm/Regular/Main.js +16 -0
  435. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUp/Bold/All.js +16 -0
  436. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUp/Regular/All.js +16 -0
  437. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUp/Regular/Main.js +16 -0
  438. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpD/Bold/All.js +16 -0
  439. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpD/Regular/All.js +16 -0
  440. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpD/Regular/Main.js +16 -0
  441. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpSm/Bold/All.js +16 -0
  442. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpSm/Regular/All.js +16 -0
  443. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpSm/Regular/Main.js +16 -0
  444. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Bold/All.js +16 -0
  445. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Bold/Main.js +16 -0
  446. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Bold/PrivateUse.js +16 -0
  447. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/BoldItalic/All.js +16 -0
  448. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/BoldItalic/Main.js +16 -0
  449. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/BoldItalic/PrivateUse.js +16 -0
  450. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Italic/All.js +16 -0
  451. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Italic/Main.js +16 -0
  452. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Italic/PrivateUse.js +16 -0
  453. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Regular/All.js +16 -0
  454. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Regular/Main.js +16 -0
  455. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Regular/PrivateUse.js +16 -0
  456. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFiveSym/Regular/All.js +16 -0
  457. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFiveSym/Regular/Main.js +16 -0
  458. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFourSym/Bold/Main.js +16 -0
  459. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFourSym/Regular/All.js +16 -0
  460. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFourSym/Regular/Main.js +16 -0
  461. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Bold/All.js +16 -0
  462. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Bold/Main.js +16 -0
  463. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Regular/All.js +16 -0
  464. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Regular/Main.js +16 -0
  465. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeThreeSym/Bold/Main.js +16 -0
  466. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeThreeSym/Regular/All.js +16 -0
  467. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeThreeSym/Regular/Main.js +16 -0
  468. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeTwoSym/Bold/Main.js +16 -0
  469. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeTwoSym/Regular/All.js +16 -0
  470. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeTwoSym/Regular/Main.js +16 -0
  471. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/Variants/Bold/All.js +16 -0
  472. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/Variants/Bold/Main.js +16 -0
  473. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/Variants/Regular/All.js +16 -0
  474. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/Variants/Regular/Main.js +16 -0
  475. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/fontdata-1.0.js +16 -0
  476. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/fontdata-beta.js +16 -0
  477. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/fontdata-extra.js +16 -0
  478. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/STIX/fontdata.js +16 -0
  479. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Arrows.js +16 -0
  480. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/BBBold.js +16 -0
  481. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/BoxDrawing.js +16 -0
  482. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/CombDiacritMarks.js +16 -0
  483. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Dingbats.js +16 -0
  484. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/EnclosedAlphanum.js +16 -0
  485. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GeneralPunctuation.js +16 -0
  486. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GeometricShapes.js +16 -0
  487. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GreekAndCoptic.js +16 -0
  488. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Latin1Supplement.js +16 -0
  489. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/LatinExtendedA.js +16 -0
  490. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/LetterlikeSymbols.js +16 -0
  491. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Main.js +16 -0
  492. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MathOperators.js +16 -0
  493. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscMathSymbolsB.js +16 -0
  494. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscSymbols.js +16 -0
  495. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscTechnical.js +16 -0
  496. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/PUA.js +16 -0
  497. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/SpacingModLetters.js +16 -0
  498. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/SuppMathOperators.js +16 -0
  499. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Caligraphic/Bold/Main.js +16 -0
  500. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Caligraphic/Regular/Main.js +16 -0
  501. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/BasicLatin.js +16 -0
  502. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/Main.js +16 -0
  503. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/Other.js +16 -0
  504. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/PUA.js +16 -0
  505. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/BasicLatin.js +16 -0
  506. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/Main.js +16 -0
  507. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/Other.js +16 -0
  508. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/PUA.js +16 -0
  509. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Greek/Bold/Main.js +16 -0
  510. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Greek/BoldItalic/Main.js +16 -0
  511. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Greek/Italic/Main.js +16 -0
  512. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Greek/Regular/Main.js +16 -0
  513. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/Arrows.js +16 -0
  514. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/CombDiacritMarks.js +16 -0
  515. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/CombDiactForSymbols.js +16 -0
  516. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/GeneralPunctuation.js +16 -0
  517. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/GeometricShapes.js +16 -0
  518. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/Latin1Supplement.js +16 -0
  519. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/LatinExtendedA.js +16 -0
  520. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/LatinExtendedB.js +16 -0
  521. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/LetterlikeSymbols.js +16 -0
  522. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/Main.js +16 -0
  523. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/MathOperators.js +16 -0
  524. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/MiscMathSymbolsA.js +16 -0
  525. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/MiscSymbols.js +16 -0
  526. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/MiscTechnical.js +16 -0
  527. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/SpacingModLetters.js +16 -0
  528. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/SuppMathOperators.js +16 -0
  529. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/SupplementalArrowsA.js +16 -0
  530. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/CombDiacritMarks.js +16 -0
  531. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/GeneralPunctuation.js +16 -0
  532. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/Latin1Supplement.js +16 -0
  533. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/LetterlikeSymbols.js +16 -0
  534. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/Main.js +16 -0
  535. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/CombDiacritMarks.js +16 -0
  536. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/GeometricShapes.js +16 -0
  537. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/Main.js +16 -0
  538. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/MiscSymbols.js +16 -0
  539. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/SpacingModLetters.js +16 -0
  540. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Math/BoldItalic/Main.js +16 -0
  541. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Math/Italic/Main.js +16 -0
  542. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/BasicLatin.js +16 -0
  543. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/CombDiacritMarks.js +16 -0
  544. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/Main.js +16 -0
  545. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/Other.js +16 -0
  546. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/BasicLatin.js +16 -0
  547. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/CombDiacritMarks.js +16 -0
  548. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/Main.js +16 -0
  549. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/Other.js +16 -0
  550. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/BasicLatin.js +16 -0
  551. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/CombDiacritMarks.js +16 -0
  552. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/Main.js +16 -0
  553. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/Other.js +16 -0
  554. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Script/Regular/BasicLatin.js +16 -0
  555. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Script/Regular/Main.js +16 -0
  556. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Script/Regular/Other.js +16 -0
  557. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Size1/Regular/Main.js +16 -0
  558. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Size2/Regular/Main.js +16 -0
  559. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Size3/Regular/Main.js +16 -0
  560. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Size4/Regular/Main.js +16 -0
  561. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Typewriter/Regular/BasicLatin.js +16 -0
  562. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Typewriter/Regular/CombDiacritMarks.js +16 -0
  563. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Typewriter/Regular/Main.js +16 -0
  564. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/Typewriter/Regular/Other.js +16 -0
  565. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/WinChrome/Regular/Main.js +16 -0
  566. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/AMS.js +16 -0
  567. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/Bold.js +16 -0
  568. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/Main.js +16 -0
  569. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/fontdata-extra.js +16 -0
  570. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/fonts/TeX/fontdata.js +16 -0
  571. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/imageFonts.js +16 -0
  572. data/lib/softcover/template/html/MathJax/jax/output/HTML-CSS/jax.js +16 -0
  573. data/lib/softcover/template/html/MathJax/jax/output/NativeMML/config.js +16 -0
  574. data/lib/softcover/template/html/MathJax/jax/output/NativeMML/jax.js +16 -0
  575. data/lib/softcover/template/html/MathJax/jax/output/SVG/autoload/annotation-xml.js +16 -0
  576. data/lib/softcover/template/html/MathJax/jax/output/SVG/autoload/maction.js +16 -0
  577. data/lib/softcover/template/html/MathJax/jax/output/SVG/autoload/menclose.js +16 -0
  578. data/lib/softcover/template/html/MathJax/jax/output/SVG/autoload/mglyph.js +16 -0
  579. data/lib/softcover/template/html/MathJax/jax/output/SVG/autoload/mmultiscripts.js +16 -0
  580. data/lib/softcover/template/html/MathJax/jax/output/SVG/autoload/ms.js +16 -0
  581. data/lib/softcover/template/html/MathJax/jax/output/SVG/autoload/mtable.js +16 -0
  582. data/lib/softcover/template/html/MathJax/jax/output/SVG/autoload/multiline.js +16 -0
  583. data/lib/softcover/template/html/MathJax/jax/output/SVG/config.js +16 -0
  584. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/AMS/Regular/Arrows.js +16 -0
  585. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/AMS/Regular/BoxDrawing.js +16 -0
  586. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/AMS/Regular/CombDiacritMarks.js +16 -0
  587. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/AMS/Regular/Dingbats.js +16 -0
  588. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/AMS/Regular/EnclosedAlphanum.js +16 -0
  589. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/AMS/Regular/GeneralPunctuation.js +16 -0
  590. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/AMS/Regular/GeometricShapes.js +16 -0
  591. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/AMS/Regular/GreekAndCoptic.js +16 -0
  592. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/AMS/Regular/Latin1Supplement.js +16 -0
  593. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/AMS/Regular/LatinExtendedA.js +16 -0
  594. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/AMS/Regular/LetterlikeSymbols.js +16 -0
  595. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/AMS/Regular/Main.js +16 -0
  596. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/AMS/Regular/MathOperators.js +16 -0
  597. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/AMS/Regular/MiscMathSymbolsB.js +16 -0
  598. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/AMS/Regular/MiscSymbols.js +16 -0
  599. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/AMS/Regular/MiscTechnical.js +16 -0
  600. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/AMS/Regular/PUA.js +16 -0
  601. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/AMS/Regular/SpacingModLetters.js +16 -0
  602. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/AMS/Regular/SuppMathOperators.js +16 -0
  603. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Caligraphic/Bold/Main.js +16 -0
  604. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Caligraphic/Regular/Main.js +16 -0
  605. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Fraktur/Bold/BasicLatin.js +16 -0
  606. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Fraktur/Bold/Main.js +16 -0
  607. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Fraktur/Bold/Other.js +16 -0
  608. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Fraktur/Bold/PUA.js +16 -0
  609. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Fraktur/Regular/BasicLatin.js +16 -0
  610. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Fraktur/Regular/Main.js +16 -0
  611. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Fraktur/Regular/Other.js +16 -0
  612. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Fraktur/Regular/PUA.js +16 -0
  613. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Bold/Arrows.js +16 -0
  614. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Bold/BasicLatin.js +16 -0
  615. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Bold/CombDiacritMarks.js +16 -0
  616. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Bold/CombDiactForSymbols.js +16 -0
  617. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Bold/GeneralPunctuation.js +16 -0
  618. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Bold/GeometricShapes.js +16 -0
  619. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Bold/GreekAndCoptic.js +16 -0
  620. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Bold/Latin1Supplement.js +16 -0
  621. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Bold/LatinExtendedA.js +16 -0
  622. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Bold/LatinExtendedB.js +16 -0
  623. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Bold/LetterlikeSymbols.js +16 -0
  624. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Bold/Main.js +16 -0
  625. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Bold/MathOperators.js +16 -0
  626. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Bold/MiscMathSymbolsA.js +16 -0
  627. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Bold/MiscSymbols.js +16 -0
  628. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Bold/MiscTechnical.js +16 -0
  629. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Bold/SpacingModLetters.js +16 -0
  630. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Bold/SuppMathOperators.js +16 -0
  631. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Bold/SupplementalArrowsA.js +16 -0
  632. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Italic/BasicLatin.js +16 -0
  633. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Italic/CombDiacritMarks.js +16 -0
  634. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Italic/GeneralPunctuation.js +16 -0
  635. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Italic/GreekAndCoptic.js +16 -0
  636. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Italic/LatinExtendedA.js +16 -0
  637. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Italic/LatinExtendedB.js +16 -0
  638. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Italic/LetterlikeSymbols.js +16 -0
  639. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Italic/Main.js +16 -0
  640. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Italic/MathOperators.js +16 -0
  641. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Regular/BasicLatin.js +16 -0
  642. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Regular/CombDiacritMarks.js +16 -0
  643. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Regular/GeometricShapes.js +16 -0
  644. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Regular/GreekAndCoptic.js +16 -0
  645. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Regular/LatinExtendedA.js +16 -0
  646. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Regular/LatinExtendedB.js +16 -0
  647. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Regular/LetterlikeSymbols.js +16 -0
  648. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Regular/Main.js +16 -0
  649. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Regular/MathOperators.js +16 -0
  650. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Regular/MiscSymbols.js +16 -0
  651. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Regular/SpacingModLetters.js +16 -0
  652. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Main/Regular/SuppMathOperators.js +16 -0
  653. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Math/BoldItalic/Main.js +16 -0
  654. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Math/Italic/Main.js +16 -0
  655. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/SansSerif/Bold/BasicLatin.js +16 -0
  656. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/SansSerif/Bold/CombDiacritMarks.js +16 -0
  657. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/SansSerif/Bold/Main.js +16 -0
  658. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/SansSerif/Bold/Other.js +16 -0
  659. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/SansSerif/Italic/BasicLatin.js +16 -0
  660. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/SansSerif/Italic/CombDiacritMarks.js +16 -0
  661. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/SansSerif/Italic/Main.js +16 -0
  662. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/SansSerif/Italic/Other.js +16 -0
  663. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/SansSerif/Regular/BasicLatin.js +16 -0
  664. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/SansSerif/Regular/CombDiacritMarks.js +16 -0
  665. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/SansSerif/Regular/Main.js +16 -0
  666. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/SansSerif/Regular/Other.js +16 -0
  667. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Script/Regular/BasicLatin.js +16 -0
  668. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Script/Regular/Main.js +16 -0
  669. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Size1/Regular/Main.js +16 -0
  670. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Size2/Regular/Main.js +16 -0
  671. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Size3/Regular/Main.js +16 -0
  672. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Size4/Regular/Main.js +16 -0
  673. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Typewriter/Regular/BasicLatin.js +16 -0
  674. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Typewriter/Regular/CombDiacritMarks.js +16 -0
  675. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Typewriter/Regular/Main.js +16 -0
  676. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/Typewriter/Regular/Other.js +16 -0
  677. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/fontdata-extra.js +16 -0
  678. data/lib/softcover/template/html/MathJax/jax/output/SVG/fonts/TeX/fontdata.js +16 -0
  679. data/lib/softcover/template/html/MathJax/jax/output/SVG/jax.js +16 -0
  680. data/lib/softcover/template/html/MathJax/localization/de/FontWarnings.js +16 -0
  681. data/lib/softcover/template/html/MathJax/localization/de/HTML-CSS.js +16 -0
  682. data/lib/softcover/template/html/MathJax/localization/de/HelpDialog.js +16 -0
  683. data/lib/softcover/template/html/MathJax/localization/de/MathML.js +16 -0
  684. data/lib/softcover/template/html/MathJax/localization/de/MathMenu.js +16 -0
  685. data/lib/softcover/template/html/MathJax/localization/de/TeX.js +16 -0
  686. data/lib/softcover/template/html/MathJax/localization/de/de.js +16 -0
  687. data/lib/softcover/template/html/MathJax/localization/en/FontWarnings.js +16 -0
  688. data/lib/softcover/template/html/MathJax/localization/en/HTML-CSS.js +16 -0
  689. data/lib/softcover/template/html/MathJax/localization/en/HelpDialog.js +16 -0
  690. data/lib/softcover/template/html/MathJax/localization/en/MathML.js +16 -0
  691. data/lib/softcover/template/html/MathJax/localization/en/MathMenu.js +16 -0
  692. data/lib/softcover/template/html/MathJax/localization/en/TeX.js +16 -0
  693. data/lib/softcover/template/html/MathJax/localization/en/en.js +16 -0
  694. data/lib/softcover/template/html/MathJax/localization/fr/FontWarnings.js +16 -0
  695. data/lib/softcover/template/html/MathJax/localization/fr/HTML-CSS.js +16 -0
  696. data/lib/softcover/template/html/MathJax/localization/fr/HelpDialog.js +16 -0
  697. data/lib/softcover/template/html/MathJax/localization/fr/MathML.js +16 -0
  698. data/lib/softcover/template/html/MathJax/localization/fr/MathMenu.js +16 -0
  699. data/lib/softcover/template/html/MathJax/localization/fr/TeX.js +16 -0
  700. data/lib/softcover/template/html/MathJax/localization/fr/fr.js +16 -0
  701. data/lib/softcover/template/html/jquery/1.10.2/jquery-1.10.2.js +9789 -0
  702. data/lib/softcover/template/html/jquery/1.10.2/jquery-1.10.2.min.map +1 -0
  703. data/lib/softcover/template/html/stylesheets/.gitkeep +0 -0
  704. data/lib/softcover/template/html/stylesheets/custom.css +15 -0
  705. data/lib/softcover/template/html/stylesheets/softcover.css +440 -0
  706. data/lib/softcover/template/images/.gitkeep +0 -0
  707. data/lib/softcover/template/images/2011_michael_hartl.png +0 -0
  708. data/lib/softcover/template/images/cover-web.png +0 -0
  709. data/lib/softcover/template/images/cover.jpg +0 -0
  710. data/lib/softcover/template/images/cover.pdf +1020 -15
  711. data/lib/softcover/template/images/cover.png +0 -0
  712. data/lib/softcover/template/images/figures/.gitkeep +0 -0
  713. data/lib/softcover/template/images/testimonial_1.png +0 -0
  714. data/lib/softcover/template/latex_styles/custom.sty +19 -0
  715. data/lib/softcover/template/latex_styles/custom_pdf.sty +9 -0
  716. data/lib/softcover/template/latex_styles/framed.sty +548 -0
  717. data/lib/softcover/template/latex_styles/language_customization.sty +11 -0
  718. data/lib/softcover/template/latex_styles/softcover.sty +167 -0
  719. data/lib/softcover/template/media/screencasts/.gitkeep +0 -0
  720. data/lib/softcover/uploader.rb +90 -0
  721. data/lib/softcover/utils.rb +284 -0
  722. data/lib/softcover/version.rb +3 -0
  723. data/lib/softcover.rb +68 -0
  724. data/softcover.gemspec +41 -0
  725. data/spec/app_spec.rb +91 -0
  726. data/spec/auth_spec.rb +44 -0
  727. data/spec/book_manifest_spec.rb +78 -0
  728. data/spec/book_spec.rb +40 -0
  729. data/spec/builder_spec.rb +10 -0
  730. data/spec/builders/epub_spec.rb +219 -0
  731. data/spec/builders/html_spec.rb +170 -0
  732. data/spec/builders/mobi_spec.rb +59 -0
  733. data/spec/builders/pdf_spec.rb +113 -0
  734. data/spec/builders/preview_spec.rb +30 -0
  735. data/spec/cli_spec.rb +183 -0
  736. data/spec/commands/build_spec.rb +59 -0
  737. data/spec/commands/check_spec.rb +55 -0
  738. data/spec/commands/deployment_spec.rb +21 -0
  739. data/spec/commands/generator_spec.rb +130 -0
  740. data/spec/commands/opener_spec.rb +17 -0
  741. data/spec/commands/publisher_spec.rb +140 -0
  742. data/spec/commands/server_spec.rb +21 -0
  743. data/spec/config_spec.rb +30 -0
  744. data/spec/fixtures/.gitkeep +0 -0
  745. data/spec/mathjax_spec.rb +61 -0
  746. data/spec/output_spec.rb +41 -0
  747. data/spec/sanitizer_spec.rb +37 -0
  748. data/spec/spec_helper.rb +54 -0
  749. data/spec/support/exist_matcher.rb +7 -0
  750. data/spec/utils_spec.rb +10 -0
  751. data/spec/webmock_helpers.rb +210 -0
  752. data/tasks/run_specs.rake +5 -0
  753. metadata +1133 -0
@@ -0,0 +1,140 @@
1
+ require 'spec_helper'
2
+
3
+ describe Softcover::Commands::Publisher do
4
+ let(:book) { Softcover::Utils.current_book }
5
+ before(:all) { generate_book }
6
+ after(:all) { remove_book }
7
+
8
+ let(:publish_options) { { remove_unused_media_bundles: true } }
9
+
10
+ describe "#publish" do
11
+ context "publishing from non book directory" do
12
+ before do
13
+ chdir_to_non_book
14
+ end
15
+
16
+ it "rejects the publish" do
17
+ expect(subject.publish!).to be_false
18
+ end
19
+ end
20
+
21
+ context "publishing from book directory" do
22
+ before do
23
+ chdir_to_book
24
+ stub_create_book book
25
+ stub_media_upload book
26
+ end
27
+
28
+ it "publishes" do
29
+ expect(subject.publish!(publish_options)).to be_true
30
+ end
31
+ end
32
+ end
33
+
34
+ describe "#unpublish" do
35
+ context "unpublishing from non book directory" do
36
+ before do
37
+ chdir_to_non_book
38
+ end
39
+
40
+ it "rejects the unpublish" do
41
+ expect(subject.unpublish!).to be_false
42
+ end
43
+ end
44
+
45
+ context "unpublishing from book directory" do
46
+ before do
47
+ chdir_to_book
48
+ stub_create_book book
49
+ stub_media_upload book
50
+ subject.publish! publish_options
51
+ stub_destroy_book book
52
+ end
53
+
54
+ it "unpublishes" do
55
+ expect(subject.unpublish!).to be_true
56
+ end
57
+
58
+ it "removes book config" do
59
+ subject.unpublish!
60
+ expect(Softcover::BookConfig.exists?).to be_false
61
+ end
62
+ end
63
+
64
+ context "unpublishing from book directory with invalid ID" do
65
+ before do
66
+ chdir_to_book
67
+ stub_create_book book
68
+ stub_media_upload book
69
+ subject.publish!(publish_options)
70
+ Softcover::BookConfig['id'] = 0
71
+ stub_destroy_book_not_found book
72
+ end
73
+
74
+ it "does not unpublish" do
75
+ expect(subject.unpublish!).to be_false
76
+ end
77
+ end
78
+
79
+ context "unpublishing outside book directory" do
80
+ before do
81
+ chdir_to_book
82
+ stub_create_book book
83
+ stub_media_upload book
84
+ subject.publish! publish_options
85
+ Dir.chdir(File.dirname(__FILE__))
86
+ end
87
+
88
+ context "with valid slug option" do
89
+ before { stub_destroy_book_by_slug book }
90
+
91
+ it "unpublishes" do
92
+ expect(subject.unpublish!(book.slug)).to be_true
93
+ end
94
+ end
95
+
96
+ context "with invalid slug option" do
97
+ let(:slug) { "error" }
98
+ before { stub_destroy_book_by_invalid_slug slug }
99
+
100
+ it "does not unpublish" do
101
+ expect(subject.unpublish!(slug)).to be_false
102
+ end
103
+ end
104
+ end
105
+ end
106
+
107
+ describe "#publish_media" do
108
+ before do
109
+ chdir_to_book
110
+ book.id = 1
111
+ stub_media_upload book
112
+ end
113
+
114
+ # it "should start with 0 processed_media" do
115
+ # expect(book.processed_media.length).to eq 0
116
+ # end
117
+
118
+ # it "processes media" do
119
+ # subject.publish_media!
120
+ # expect(book.processed_media.length).to be > 0
121
+ # end
122
+
123
+ # it "daemonizes" do
124
+ # subject.should_receive(:fork) do |&blk|
125
+ # blk.call
126
+ # end
127
+ # subject.publish_media! daemon: true
128
+ # expect(book.processed_media.length).to be > 0
129
+ # end
130
+
131
+ # it "watches" do
132
+ # subject.should_receive(:loop) do |&blk|
133
+ # blk.call
134
+ # end
135
+ # subject.publish_media! watch: true
136
+ # expect(book.processed_media.length).to be > 0
137
+ # end
138
+
139
+ end
140
+ end
@@ -0,0 +1,21 @@
1
+ require 'spec_helper'
2
+
3
+ describe Softcover::Commands::Server do
4
+ before(:all) { generate_book }
5
+ after(:all) { remove_book }
6
+
7
+ before { chdir_to_book }
8
+
9
+ it '#listen_for_changes' do
10
+ expect { subject.listen_for_changes }.to_not raise_error(Exception)
11
+ end
12
+
13
+ it '#run' do
14
+ Softcover::App.should_receive :run!
15
+
16
+ port = 5000
17
+ subject.run port
18
+
19
+ expect(Softcover::App.port).to eq port
20
+ end
21
+ end
@@ -0,0 +1,30 @@
1
+ require 'spec_helper'
2
+
3
+ describe Softcover::Config do
4
+ before do
5
+ chdir_to_book
6
+ end
7
+
8
+ describe "path" do
9
+ context "local path override" do
10
+ before do
11
+ `touch .softcover`
12
+ end
13
+
14
+ it "uses local path" do
15
+ expect(Softcover::Config.path).to eq ".softcover"
16
+ end
17
+
18
+ after do
19
+ `rm .softcover`
20
+ end
21
+ end
22
+
23
+ context "system path" do
24
+ it "uses home dir" do
25
+ expect(Softcover::Config.path).to eq "~/.softcover"
26
+ end
27
+ end
28
+ end
29
+
30
+ end
File without changes
@@ -0,0 +1,61 @@
1
+ require 'spec_helper'
2
+
3
+ describe Softcover::Mathjax do
4
+
5
+ subject(:mathjax) { Softcover::Mathjax }
6
+
7
+ let(:custom_sty) do
8
+ %(\\newcommand{\\foo}{\\ensuremath{x}}
9
+ \\newcommand{\\bar}[1]{\\textbf{#1}}
10
+ % \\newcommand{\\baz}{quux}
11
+ )
12
+ end
13
+ let(:baz) { 'quux' }
14
+
15
+ shared_examples "config" do
16
+
17
+ it "should include the default macros" do
18
+ expect(config).to include polytex
19
+ expect(config).to include polytexnic
20
+ end
21
+
22
+ context "with a custom.sty" do
23
+
24
+ before { Softcover.stub(:custom_styles).and_return(custom_sty) }
25
+
26
+ it "should include the custom macros" do
27
+ expect(config).to include foo
28
+ expect(config).to include bar
29
+ end
30
+
31
+ it "should not include a commented-out macro" do
32
+ expect(config).not_to include baz
33
+ end
34
+ end
35
+ end
36
+
37
+ context '#config' do
38
+
39
+ let(:polytex) { 'PolyTeX: "Poly{\\\\TeX}"' }
40
+ let(:polytexnic) { 'PolyTeXnic: "Poly{\\\\TeX}nic"' }
41
+ let(:foo) { 'foo: "{x}"' }
42
+ let(:bar) { 'bar: ["\\\\textbf{#1}", 1]' }
43
+ let(:config) { mathjax.config }
44
+
45
+ it "should not raise an error" do
46
+ expect { config }.not_to raise_error
47
+ end
48
+
49
+ it_should_behave_like "config"
50
+ end
51
+
52
+ context '#escaped_config' do
53
+ let(:polytex) { 'PolyTeX: "Poly{\\\\\\\\TeX}"' }
54
+ let(:polytexnic) { 'PolyTeXnic: "Poly{\\\\\\\\TeX}nic"' }
55
+ let(:foo) { 'foo: "{x}"' }
56
+ let(:bar) { 'bar: ["\\\\\\\\textbf{#1}", 1]' }
57
+ let(:config) { mathjax.escaped_config }
58
+
59
+ it_should_behave_like "config"
60
+ end
61
+ end
@@ -0,0 +1,41 @@
1
+ require 'spec_helper'
2
+
3
+ module OutputTest
4
+ include Softcover::Output
5
+ extend self
6
+
7
+ def puts_hello
8
+ puts 'hello'
9
+ end
10
+
11
+ def print_hello
12
+ print 'hello'
13
+ end
14
+
15
+ def printf_hello
16
+ print 'hello'
17
+ end
18
+
19
+ def system_cmd
20
+ system "echo hello"
21
+ end
22
+ end
23
+
24
+ describe Softcover::Output do
25
+ before { Softcover::Output.unsilence! }
26
+
27
+ it 'redirects output' do
28
+ Softcover::Output.stream = $stderr
29
+ $stderr.should_receive(:puts).with('hello')
30
+ $stderr.should_receive(:print).twice.with('hello')
31
+
32
+ OutputTest.puts_hello
33
+ OutputTest.print_hello
34
+ OutputTest.printf_hello
35
+ end
36
+
37
+ it 'redirects system command output' do
38
+ Softcover::Output.stream.should_receive(:puts)
39
+ OutputTest.system_cmd
40
+ end
41
+ end
@@ -0,0 +1,37 @@
1
+ require 'spec_helper'
2
+ require 'softcover/sanitizer'
3
+
4
+ describe Softcover::Sanitizer do
5
+ context "malicious html" do
6
+ let(:html) { "<div onclick='alert(document.cookie)'></div>"}
7
+
8
+ it "cleans xss vectors" do
9
+ expect(subject.clean(html)).to eq "<div></div>"
10
+ end
11
+ end
12
+
13
+ context "safe html" do
14
+ let(:html) do Nokogiri::HTML.fragment(<<-EOS
15
+ <div id="a" class="b"></div>
16
+ <div data-tralics-id="c" data-number="d" data-chapter="e"></div>
17
+ <a id="a" class="b" href="c"></a>
18
+ <span id="a" class="b" style="c"></span>
19
+ <ol id="a" class="b"></ol>
20
+ <ul id="a" class="b"></ul>
21
+ <li id="a" class="b"></li>
22
+ <sup id="a" class="b"></sup>
23
+ <h1 id="a" class="b"></h1>
24
+ <h2 id="a" class="b"></h2>
25
+ <h3 id="a" class="b"></h3>
26
+ <h4 id="a" class="b"></h4>
27
+ <img id="a" class="b" src="c" alt="d" />
28
+ <em id="a" class="b"></em>
29
+ EOS
30
+ ).to_xhtml
31
+ end
32
+
33
+ it "allows class and id" do
34
+ expect(subject.clean(html)).to match html
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,54 @@
1
+ require 'coveralls'
2
+ Coveralls::Output.silent = !ENV['CI']
3
+ Coveralls.wear!
4
+
5
+ require 'rubygems'
6
+ require 'bundler/setup'
7
+ require 'webmock/rspec'
8
+ require 'webmock_helpers'
9
+ require 'ostruct'
10
+ require 'pry'
11
+
12
+ require 'json'
13
+ require 'softcover'
14
+ require 'softcover/utils'
15
+ require 'softcover/config'
16
+ require 'softcover/server/app'
17
+ require 'softcover/commands/publisher'
18
+ Softcover::Output.silence!
19
+
20
+ # Load support files.
21
+ Dir.glob(File.join(File.dirname(__FILE__), "./support/**/*.rb")).each do |f|
22
+ require_relative(f)
23
+ end
24
+
25
+ RSpec.configure do |config|
26
+ include Softcover::Utils
27
+ config.expect_with :rspec do |c|
28
+ c.syntax = :expect
29
+ end
30
+
31
+ Softcover::set_test_mode!
32
+
33
+ config.before do
34
+ Softcover::set_test_mode!
35
+ Softcover::Utils.reset_current_book!
36
+ Softcover::Config.remove
37
+ Softcover::BookConfig.remove
38
+ end
39
+
40
+ config.before(:each) do
41
+ Softcover::Output.silence!
42
+ Softcover::Commands::Server.no_listener = true
43
+ end
44
+
45
+ config.after do
46
+ Softcover::Config.remove
47
+ Softcover::BookConfig.remove
48
+ end
49
+
50
+ config.include WebmockHelpers
51
+ end
52
+
53
+ TEST_API_KEY = 'asdfasdfasdfasdfasdf'
54
+
@@ -0,0 +1,7 @@
1
+ # encoding=utf-8
2
+
3
+ RSpec::Matchers.define :exist do
4
+ match do |filename|
5
+ expect(File.exist?(filename)).to be_true
6
+ end
7
+ end
@@ -0,0 +1,10 @@
1
+ require 'spec_helper'
2
+
3
+ describe Softcover::Utils do
4
+ context "book_file_lines" do
5
+ let(:raw_lines) { ['foo.md', '# bar.tex'] }
6
+ subject { Softcover::Utils.non_comment_lines(raw_lines) }
7
+ it { should include 'foo.md' }
8
+ it { should_not include 'bar.tex' }
9
+ end
10
+ end
@@ -0,0 +1,210 @@
1
+ module WebmockHelpers
2
+ def api_base_url
3
+ "#{Softcover::BaseConfig::DEFAULTS[:host]}/api/v1"
4
+ end
5
+
6
+ def test_bucket; 'test-bucket' end
7
+ def test_access_key; 'asdf' end
8
+ def test_id; 1 end
9
+
10
+ def headers(with_content_length=true)
11
+ hash = { 'Accept'=>'application/json',
12
+ 'Accept-Encoding'=>'gzip, deflate',
13
+ 'Content-Type'=>'application/json',
14
+ 'User-Agent'=>'Ruby'
15
+ }
16
+ hash['Content-Length'] = /.+/ if with_content_length
17
+ hash
18
+ end
19
+
20
+ def stub_valid_login(email, pass, api_key=TEST_API_KEY)
21
+ stub_request(:post, "#{api_base_url}/login").
22
+ with(:body => { "email" => email, "password" => pass },
23
+ :headers => headers ).
24
+ to_return(:status => 200, :body => {api_key: api_key}.to_json)
25
+ end
26
+
27
+ def stub_invalid_login(email, pass)
28
+ stub_request(:post, "#{api_base_url}/login").
29
+ with(:body => { "email" => email, "password" => pass },
30
+ :headers => headers ).
31
+ to_return(:status => 422, body: '')
32
+ end
33
+
34
+ def stub_create_book(book)
35
+
36
+ return_body = {
37
+ upload_params: book.files.map { |f|
38
+ {
39
+ :policy => "asdf",
40
+ :signature => "asdf",
41
+ :acl => "public-read",
42
+ :content_type => "asdf",
43
+ :key => File.join(book.slug, f.path),
44
+ :path => f.path
45
+ }
46
+ },
47
+ bucket: test_bucket,
48
+ access_key: test_access_key,
49
+ book: {
50
+ id: test_id
51
+ }
52
+ }.to_json
53
+
54
+ stub_request(:post, "#{api_base_url}/books").
55
+ with(:body => {
56
+ id: book.id,
57
+ files: book.files,
58
+ title: book.title,
59
+ slug: book.slug,
60
+ subtitle: book.subtitle,
61
+ description: book.description,
62
+ chapters: book.chapter_attributes,
63
+ prices: book.prices,
64
+ faq: book.faq,
65
+ testimonials: book.testimonials,
66
+ marketing_content: '',
67
+ contact_email: book.contact_email,
68
+ hide_softcover_footer: book.hide_custom_domain_footer,
69
+ authors: book.authors,
70
+ ga_account: book.ga_account,
71
+ remove_unused_media_bundles: true
72
+ }.to_json,
73
+ :headers => headers).
74
+ to_return(:status => 200, :body => return_body, :headers => {})
75
+
76
+ stub_s3_post
77
+
78
+ book.files.each { |file| stub_notify_file_upload file }
79
+
80
+ stub_request(:put, "#{api_base_url}/books/#{test_id}").
81
+ with(:body => "{\"upload_complete\":true}",
82
+ :headers => headers).
83
+ to_return(:status => 200, :body => {}.to_json, :headers => {})
84
+ end
85
+
86
+ def stub_destroy_book(book)
87
+ stub_request(:delete, "#{api_base_url}/books/#{book.id}?api_key=").
88
+ with(:headers => headers(false)).
89
+ to_return(:status => 200, :body => "", :headers => {})
90
+ end
91
+
92
+ def stub_destroy_book_by_slug(book)
93
+ stub_request(:delete, "#{api_base_url}/books/#{book.slug}?api_key=").
94
+ with(:headers => headers(false)).
95
+ to_return(:status => 200, :body => "", :headers => {})
96
+ end
97
+
98
+ def stub_destroy_book_by_invalid_slug(slug)
99
+ stub_request(:delete, "#{api_base_url}/books/#{slug}?api_key=").
100
+ with(:headers => headers(false)).
101
+ to_return(:status => 404, :body => "", :headers => {})
102
+ end
103
+
104
+ def stub_destroy_book_not_found(book)
105
+ stub_request(:delete, "#{api_base_url}/books/#{book.id}?api_key=").
106
+ with(:headers => headers(false)).
107
+ to_return(:status => 404, :body => "", :headers => {})
108
+ end
109
+
110
+ def stub_notify_file_upload(file)
111
+ notify_file_url = "#{api_base_url}/books/#{test_id}/notify_file_upload"
112
+
113
+ stub_request(:post, notify_file_url).
114
+ with(:body =>
115
+ { path: file.path, checksum: file.checksum }.to_json,
116
+ :headers => headers).
117
+ to_return(:status => 200, :body => {}.to_json, :headers => {})
118
+ end
119
+
120
+ def stub_s3_post
121
+ stub_request(:post, /s3\.amazonaws\.com/).
122
+ with(:body => /.*/).
123
+ to_return(:status => 200, :body => "", :headers => {})
124
+ end
125
+
126
+ def stub_media_upload(book, dir='ebooks', options={})
127
+ stub_s3_post
128
+ stub_create_book(book)
129
+
130
+ files = book.get_book_files(dir)
131
+ stub_request(:post,
132
+ /\/books\/#{book.id || '.+'}\/media/).
133
+ with(:body => {
134
+ path: dir,
135
+ files: files,
136
+ manifest: nil,
137
+ remove_unused_media_files:
138
+ options[:remove_unused_media_files]
139
+ }.to_json,
140
+ :headers => headers).
141
+ to_return(:status => 200, :body => {
142
+ upload_params: files.map { |file|
143
+ {
144
+ :policy => "asdf",
145
+ :signature => "asdf",
146
+ :acl => "public-read",
147
+ :content_type => "asdf",
148
+ :key => File.join(book.slug,
149
+ file.path),
150
+ :path => file.path
151
+ }
152
+ },
153
+ bucket: test_bucket,
154
+ access_key: test_access_key
155
+ }.to_json, :headers => {})
156
+
157
+ files.each { |file| stub_notify_file_upload file }
158
+ end
159
+
160
+ def prepare_book_stubs
161
+ chdir_to_book
162
+ end
163
+
164
+ def chdir_to_fixtures
165
+ Dir.chdir File.join File.dirname(__FILE__), "fixtures"
166
+ end
167
+
168
+ def chdir_to_book
169
+ dir = File.join File.dirname(__FILE__), "fixtures", "book"
170
+ File.mkdir(dir) unless File.directory?(dir)
171
+ Dir.chdir dir
172
+ end
173
+
174
+ def chdir_to_non_book
175
+ dir = File.join File.dirname(__FILE__), "fixtures", "non-book"
176
+ File.mkdir(dir) unless File.directory?(dir)
177
+ Dir.chdir dir
178
+ end
179
+
180
+ # Generates a sample book using the same method as `softcover new`.
181
+ # It also creates test books of all standard formats and a screencasts
182
+ # directory with a stub file.
183
+ def generate_book(options = {})
184
+ name = options[:name] || 'book'
185
+ source = options[:source] || :polytex
186
+ remove_book
187
+ Dir.chdir File.join File.dirname(__FILE__), "fixtures/"
188
+ flags = []
189
+ flags << '-p' unless options[:markdown]
190
+ silence { system "softcover new #{name} #{flags.join(' ')}" }
191
+ chdir_to_book
192
+ File.mkdir 'html' unless File.exist?('html')
193
+ File.write(File.join('html', 'chapter-1.html'), 'test')
194
+ File.write(File.join('html', 'chapter-1_fragment.html'), 'test')
195
+ File.write(File.join('html', 'test_fragment.html'), 'test')
196
+ File.write(File.join('html', "#{name}.html"), 'test')
197
+ File.mkdir 'ebooks' unless File.exist?('ebooks')
198
+ Softcover::FORMATS.each do |format|
199
+ dir = format == 'html' ? 'html' : 'ebooks'
200
+ File.write(File.join(dir, "test-book.#{format}"), 'test')
201
+ end
202
+ Dir.mkdir("screencasts") unless File.directory?("screencasts")
203
+ File.open(File.join('screencasts', 'ch1.mov'), 'w') { |f| f.write('test') }
204
+ end
205
+
206
+ def remove_book
207
+ FileUtils.rm_rf(File.join File.dirname(__FILE__), "fixtures/book")
208
+ chdir_to_fixtures
209
+ end
210
+ end
@@ -0,0 +1,5 @@
1
+ task default: [:spec]
2
+
3
+ task :spec do
4
+ exit system('rspec spec')
5
+ end