tr8n_client_sdk 1.1.1 → 3.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (485) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +2 -2
  3. data/README.md +10 -1
  4. data/Rakefile +0 -16
  5. data/app/views/tr8n_client_sdk/tags/_language_selector.html.erb +5 -0
  6. data/app/views/tr8n_client_sdk/tags/_language_strip.html.erb +10 -10
  7. data/app/views/tr8n_client_sdk/tags/_powered_by_tr8n.html.erb +1 -1
  8. data/app/views/tr8n_client_sdk/tags/_scripts.html.erb +75 -20
  9. data/lib/tasks/tr8n_client_sdk.rake +10 -2
  10. data/lib/tr8n_client_sdk/engine.rb +9 -1
  11. data/lib/tr8n_client_sdk/extensions/action_common_methods.rb +31 -22
  12. data/lib/tr8n_client_sdk/extensions/action_controller_extension.rb +30 -32
  13. data/lib/tr8n_client_sdk/extensions/action_view_extension.rb +64 -97
  14. data/lib/{generators/tr8n_client_sdk/tr8n_client_sdk_generator.rb → tr8n_client_sdk/extensions/string.rb} +17 -10
  15. data/lib/tr8n_client_sdk/railtie.rb +12 -12
  16. data/lib/tr8n_client_sdk/version.rb +1 -2
  17. data/lib/tr8n_client_sdk.rb +1 -0
  18. metadata +21 -962
  19. data/app/assets/images/tr8n/tr8n_logo.png +0 -0
  20. data/lib/generators/tr8n_client_sdk/templates/config/tr8n/config.yml +0 -53
  21. data/lib/generators/tr8n_client_sdk/templates/config/tr8n/tokens/data.yml +0 -45
  22. data/lib/generators/tr8n_client_sdk/templates/config/tr8n/tokens/decorations.yml +0 -37
  23. data/lib/tr8n_client_sdk/config.rb +0 -197
  24. data/test/dummy/README.rdoc +0 -261
  25. data/test/dummy/Rakefile +0 -7
  26. data/test/dummy/app/assets/images/bg-pattern.png +0 -0
  27. data/test/dummy/app/assets/images/facebook.png +0 -0
  28. data/test/dummy/app/assets/images/github.png +0 -0
  29. data/test/dummy/app/assets/images/glyphicons-halflings-white.png +0 -0
  30. data/test/dummy/app/assets/images/glyphicons-halflings.png +0 -0
  31. data/test/dummy/app/assets/images/how_it_works_1.gif +0 -0
  32. data/test/dummy/app/assets/images/how_it_works_2.gif +0 -0
  33. data/test/dummy/app/assets/images/how_it_works_3.gif +0 -0
  34. data/test/dummy/app/assets/images/hr.png +0 -0
  35. data/test/dummy/app/assets/images/linkedin.png +0 -0
  36. data/test/dummy/app/assets/images/silhouette.gif +0 -0
  37. data/test/dummy/app/assets/images/twitter.png +0 -0
  38. data/test/dummy/app/assets/images/wordpress.png +0 -0
  39. data/test/dummy/app/assets/images/youtube.png +0 -0
  40. data/test/dummy/app/assets/javascripts/ace/ace.js +0 -11
  41. data/test/dummy/app/assets/javascripts/ace/ext-static_highlight.js +0 -1
  42. data/test/dummy/app/assets/javascripts/ace/ext-textarea.js +0 -1
  43. data/test/dummy/app/assets/javascripts/ace/keybinding-emacs.js +0 -1
  44. data/test/dummy/app/assets/javascripts/ace/keybinding-vim.js +0 -1
  45. data/test/dummy/app/assets/javascripts/ace/mode-abap.js +0 -1
  46. data/test/dummy/app/assets/javascripts/ace/mode-asciidoc.js +0 -1
  47. data/test/dummy/app/assets/javascripts/ace/mode-c9search.js +0 -1
  48. data/test/dummy/app/assets/javascripts/ace/mode-c_cpp.js +0 -1
  49. data/test/dummy/app/assets/javascripts/ace/mode-clojure.js +0 -1
  50. data/test/dummy/app/assets/javascripts/ace/mode-coffee.js +0 -1
  51. data/test/dummy/app/assets/javascripts/ace/mode-coldfusion.js +0 -1
  52. data/test/dummy/app/assets/javascripts/ace/mode-csharp.js +0 -1
  53. data/test/dummy/app/assets/javascripts/ace/mode-css.js +0 -1
  54. data/test/dummy/app/assets/javascripts/ace/mode-dart.js +0 -1
  55. data/test/dummy/app/assets/javascripts/ace/mode-diff.js +0 -1
  56. data/test/dummy/app/assets/javascripts/ace/mode-dot.js +0 -1
  57. data/test/dummy/app/assets/javascripts/ace/mode-glsl.js +0 -1
  58. data/test/dummy/app/assets/javascripts/ace/mode-golang.js +0 -1
  59. data/test/dummy/app/assets/javascripts/ace/mode-groovy.js +0 -1
  60. data/test/dummy/app/assets/javascripts/ace/mode-haml.js +0 -1
  61. data/test/dummy/app/assets/javascripts/ace/mode-haxe.js +0 -1
  62. data/test/dummy/app/assets/javascripts/ace/mode-html.js +0 -1
  63. data/test/dummy/app/assets/javascripts/ace/mode-jade.js +0 -1
  64. data/test/dummy/app/assets/javascripts/ace/mode-java.js +0 -1
  65. data/test/dummy/app/assets/javascripts/ace/mode-javascript.js +0 -1
  66. data/test/dummy/app/assets/javascripts/ace/mode-json.js +0 -1
  67. data/test/dummy/app/assets/javascripts/ace/mode-jsp.js +0 -1
  68. data/test/dummy/app/assets/javascripts/ace/mode-jsx.js +0 -1
  69. data/test/dummy/app/assets/javascripts/ace/mode-latex.js +0 -1
  70. data/test/dummy/app/assets/javascripts/ace/mode-less.js +0 -1
  71. data/test/dummy/app/assets/javascripts/ace/mode-liquid.js +0 -1
  72. data/test/dummy/app/assets/javascripts/ace/mode-lisp.js +0 -1
  73. data/test/dummy/app/assets/javascripts/ace/mode-lua.js +0 -1
  74. data/test/dummy/app/assets/javascripts/ace/mode-luapage.js +0 -1
  75. data/test/dummy/app/assets/javascripts/ace/mode-lucene.js +0 -1
  76. data/test/dummy/app/assets/javascripts/ace/mode-makefile.js +0 -1
  77. data/test/dummy/app/assets/javascripts/ace/mode-markdown.js +0 -1
  78. data/test/dummy/app/assets/javascripts/ace/mode-objectivec.js +0 -1
  79. data/test/dummy/app/assets/javascripts/ace/mode-ocaml.js +0 -1
  80. data/test/dummy/app/assets/javascripts/ace/mode-perl.js +0 -1
  81. data/test/dummy/app/assets/javascripts/ace/mode-pgsql.js +0 -1
  82. data/test/dummy/app/assets/javascripts/ace/mode-php.js +0 -1
  83. data/test/dummy/app/assets/javascripts/ace/mode-powershell.js +0 -1
  84. data/test/dummy/app/assets/javascripts/ace/mode-python.js +0 -1
  85. data/test/dummy/app/assets/javascripts/ace/mode-r.js +0 -1
  86. data/test/dummy/app/assets/javascripts/ace/mode-rdoc.js +0 -1
  87. data/test/dummy/app/assets/javascripts/ace/mode-rhtml.js +0 -1
  88. data/test/dummy/app/assets/javascripts/ace/mode-ruby.js +0 -1
  89. data/test/dummy/app/assets/javascripts/ace/mode-scad.js +0 -1
  90. data/test/dummy/app/assets/javascripts/ace/mode-scala.js +0 -1
  91. data/test/dummy/app/assets/javascripts/ace/mode-scss.js +0 -1
  92. data/test/dummy/app/assets/javascripts/ace/mode-sh.js +0 -1
  93. data/test/dummy/app/assets/javascripts/ace/mode-sql.js +0 -1
  94. data/test/dummy/app/assets/javascripts/ace/mode-stylus.js +0 -1
  95. data/test/dummy/app/assets/javascripts/ace/mode-svg.js +0 -1
  96. data/test/dummy/app/assets/javascripts/ace/mode-tcl.js +0 -1
  97. data/test/dummy/app/assets/javascripts/ace/mode-tex.js +0 -1
  98. data/test/dummy/app/assets/javascripts/ace/mode-text.js +0 -0
  99. data/test/dummy/app/assets/javascripts/ace/mode-textile.js +0 -1
  100. data/test/dummy/app/assets/javascripts/ace/mode-typescript.js +0 -1
  101. data/test/dummy/app/assets/javascripts/ace/mode-xml.js +0 -1
  102. data/test/dummy/app/assets/javascripts/ace/mode-xquery.js +0 -1
  103. data/test/dummy/app/assets/javascripts/ace/mode-yaml.js +0 -1
  104. data/test/dummy/app/assets/javascripts/ace/theme-ambiance.js +0 -1
  105. data/test/dummy/app/assets/javascripts/ace/theme-chaos.js +0 -1
  106. data/test/dummy/app/assets/javascripts/ace/theme-chrome.js +0 -1
  107. data/test/dummy/app/assets/javascripts/ace/theme-clouds.js +0 -1
  108. data/test/dummy/app/assets/javascripts/ace/theme-clouds_midnight.js +0 -1
  109. data/test/dummy/app/assets/javascripts/ace/theme-cobalt.js +0 -1
  110. data/test/dummy/app/assets/javascripts/ace/theme-crimson_editor.js +0 -1
  111. data/test/dummy/app/assets/javascripts/ace/theme-dawn.js +0 -1
  112. data/test/dummy/app/assets/javascripts/ace/theme-dreamweaver.js +0 -1
  113. data/test/dummy/app/assets/javascripts/ace/theme-eclipse.js +0 -1
  114. data/test/dummy/app/assets/javascripts/ace/theme-github.js +0 -1
  115. data/test/dummy/app/assets/javascripts/ace/theme-idle_fingers.js +0 -1
  116. data/test/dummy/app/assets/javascripts/ace/theme-kr.js +0 -1
  117. data/test/dummy/app/assets/javascripts/ace/theme-merbivore.js +0 -1
  118. data/test/dummy/app/assets/javascripts/ace/theme-merbivore_soft.js +0 -1
  119. data/test/dummy/app/assets/javascripts/ace/theme-mono_industrial.js +0 -1
  120. data/test/dummy/app/assets/javascripts/ace/theme-monokai.js +0 -1
  121. data/test/dummy/app/assets/javascripts/ace/theme-pastel_on_dark.js +0 -1
  122. data/test/dummy/app/assets/javascripts/ace/theme-solarized_dark.js +0 -1
  123. data/test/dummy/app/assets/javascripts/ace/theme-solarized_light.js +0 -1
  124. data/test/dummy/app/assets/javascripts/ace/theme-textmate.js +0 -1
  125. data/test/dummy/app/assets/javascripts/ace/theme-tomorrow.js +0 -1
  126. data/test/dummy/app/assets/javascripts/ace/theme-tomorrow_night.js +0 -1
  127. data/test/dummy/app/assets/javascripts/ace/theme-tomorrow_night_blue.js +0 -1
  128. data/test/dummy/app/assets/javascripts/ace/theme-tomorrow_night_bright.js +0 -1
  129. data/test/dummy/app/assets/javascripts/ace/theme-tomorrow_night_eighties.js +0 -1
  130. data/test/dummy/app/assets/javascripts/ace/theme-twilight.js +0 -1
  131. data/test/dummy/app/assets/javascripts/ace/theme-vibrant_ink.js +0 -1
  132. data/test/dummy/app/assets/javascripts/ace/theme-xcode.js +0 -1
  133. data/test/dummy/app/assets/javascripts/ace/worker-coffee.js +0 -1
  134. data/test/dummy/app/assets/javascripts/ace/worker-css.js +0 -1
  135. data/test/dummy/app/assets/javascripts/ace/worker-javascript.js +0 -1
  136. data/test/dummy/app/assets/javascripts/ace/worker-json.js +0 -1
  137. data/test/dummy/app/assets/javascripts/ace/worker-xquery.js +0 -1
  138. data/test/dummy/app/assets/javascripts/application.js +0 -15
  139. data/test/dummy/app/assets/javascripts/bootstrap.js +0 -2291
  140. data/test/dummy/app/assets/javascripts/bootstrap.min.js +0 -7
  141. data/test/dummy/app/assets/javascripts/jquery-ace.js +0 -195
  142. data/test/dummy/app/assets/javascripts/jquery-ui-1.10.3.custom.min.js +0 -7
  143. data/test/dummy/app/assets/javascripts/jquery.tocify.min.js +0 -4
  144. data/test/dummy/app/assets/javascripts/jquery191.js +0 -16
  145. data/test/dummy/app/assets/javascripts/prism.js +0 -20
  146. data/test/dummy/app/assets/javascripts/prism_rails.js +0 -49
  147. data/test/dummy/app/assets/javascripts/sh.js +0 -573
  148. data/test/dummy/app/assets/stylesheets/application.css +0 -8
  149. data/test/dummy/app/assets/stylesheets/bootstrap/bootstrap.css +0 -6315
  150. data/test/dummy/app/assets/stylesheets/bootstrap/bootstrap.min.css +0 -874
  151. data/test/dummy/app/assets/stylesheets/bootstrap/bootstrap_and_overrides.css.scss +0 -16
  152. data/test/dummy/app/assets/stylesheets/jquery.tocify.css +0 -62
  153. data/test/dummy/app/assets/stylesheets/prism.css +0 -108
  154. data/test/dummy/app/assets/stylesheets/prism_rails.css.scss +0 -42
  155. data/test/dummy/app/assets/stylesheets/sh.css +0 -193
  156. data/test/dummy/app/controllers/application_controller.rb +0 -82
  157. data/test/dummy/app/controllers/docs_controller.rb +0 -42
  158. data/test/dummy/app/controllers/home_controller.rb +0 -34
  159. data/test/dummy/app/controllers/login_controller.rb +0 -55
  160. data/test/dummy/app/controllers/signup_controller.rb +0 -58
  161. data/test/dummy/app/controllers/welcome_controller.rb +0 -30
  162. data/test/dummy/app/helpers/application_helper.rb +0 -26
  163. data/test/dummy/app/mailers/request_mailer.rb +0 -38
  164. data/test/dummy/app/models/user.rb +0 -48
  165. data/test/dummy/app/views/docs/index.html.erb +0 -591
  166. data/test/dummy/app/views/docs/installation.html.erb +0 -59
  167. data/test/dummy/app/views/docs/test.html.erb +0 -17
  168. data/test/dummy/app/views/docs/tml.html.erb +0 -176
  169. data/test/dummy/app/views/docs/tml_content.html.erb +0 -33
  170. data/test/dummy/app/views/home/index.html.erb +0 -107
  171. data/test/dummy/app/views/layouts/_flashes.html.erb +0 -35
  172. data/test/dummy/app/views/layouts/_footer.html.erb +0 -31
  173. data/test/dummy/app/views/layouts/_head.html.erb +0 -8
  174. data/test/dummy/app/views/layouts/_header.html.erb +0 -73
  175. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  176. data/test/dummy/app/views/login/_common.html.erb +0 -29
  177. data/test/dummy/app/views/login/cookies.html.erb +0 -20
  178. data/test/dummy/app/views/login/index.html.erb +0 -1
  179. data/test/dummy/app/views/login/out.html.erb +0 -1
  180. data/test/dummy/app/views/signup/index.html.erb +0 -22
  181. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/a@_[6b714be8673fcc4a3].json +0 -69
  182. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/l@_[de].json +0 -290
  183. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/l@_[en-US].json +0 -1435
  184. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/l@_[en].json +0 -1424
  185. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/l@_[fr].json +0 -298
  186. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/l@_[ru].json +0 -550
  187. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/l@_[zh].json +0 -272
  188. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-].json +0 -6
  189. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-docs-index].json +0 -1150
  190. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-docs-installation].json +0 -422
  191. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-docs-tml].json +0 -445
  192. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-docs-tml_content].json +0 -40
  193. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-docs].json +0 -6
  194. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-home-index].json +0 -746
  195. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-home-upgrade_cache].json +0 -6
  196. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-home].json +0 -6
  197. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[de]_[-login-cookies].json +0 -6
  198. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-].json +0 -6
  199. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-docs-index].json +0 -1135
  200. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-docs-installation].json +0 -389
  201. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-docs-tml].json +0 -413
  202. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-docs-tml_content].json +0 -41
  203. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-docs].json +0 -6
  204. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-home-index].json +0 -689
  205. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-home-upgrade_cache].json +0 -6
  206. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-home].json +0 -6
  207. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en-US]_[-login-cookies].json +0 -6
  208. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-].json +0 -6
  209. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-docs-index].json +0 -1041
  210. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-docs-installation].json +0 -357
  211. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-docs-tml].json +0 -379
  212. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-docs-tml_content].json +0 -38
  213. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-docs].json +0 -6
  214. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-home-index].json +0 -632
  215. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-home-upgrade_cache].json +0 -6
  216. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-home].json +0 -6
  217. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[en]_[-login-cookies].json +0 -6
  218. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-].json +0 -6
  219. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-docs-index].json +0 -1165
  220. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-docs-installation].json +0 -434
  221. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-docs-tml].json +0 -476
  222. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-docs-tml_content].json +0 -40
  223. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-docs].json +0 -6
  224. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-home-index].json +0 -742
  225. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-home-upgrade_cache].json +0 -6
  226. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-home].json +0 -6
  227. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[fr]_[-login-cookies].json +0 -6
  228. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-].json +0 -6
  229. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-docs-index].json +0 -1251
  230. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-docs-installation].json +0 -457
  231. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-docs-tml].json +0 -521
  232. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-docs-tml_content].json +0 -45
  233. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-docs].json +0 -6
  234. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-home-index].json +0 -809
  235. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-home-upgrade_cache].json +0 -6
  236. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-home].json +0 -6
  237. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[ru]_[-login-cookies].json +0 -6
  238. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-].json +0 -6
  239. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-docs-index].json +0 -1135
  240. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-docs-installation].json +0 -391
  241. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-docs-tml].json +0 -415
  242. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-docs-tml_content].json +0 -41
  243. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-docs].json +0 -6
  244. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-home-index].json +0 -693
  245. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-home-upgrade_cache].json +0 -6
  246. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-home].json +0 -6
  247. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_48_20/s@_[zh]_[-login-cookies].json +0 -6
  248. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/a@_[6b714be8673fcc4a3].json +0 -69
  249. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/l@_[de].json +0 -290
  250. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/l@_[en-US].json +0 -1435
  251. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/l@_[en].json +0 -1424
  252. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/l@_[fr].json +0 -298
  253. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/l@_[ru].json +0 -550
  254. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/l@_[zh].json +0 -272
  255. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-].json +0 -6
  256. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-docs-index].json +0 -1150
  257. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-docs-installation].json +0 -422
  258. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-docs-tml].json +0 -445
  259. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-docs-tml_content].json +0 -40
  260. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-docs].json +0 -6
  261. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-home-index].json +0 -746
  262. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-home-upgrade_cache].json +0 -6
  263. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-home].json +0 -6
  264. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[de]_[-login-cookies].json +0 -6
  265. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-].json +0 -6
  266. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-docs-index].json +0 -1135
  267. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-docs-installation].json +0 -389
  268. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-docs-tml].json +0 -413
  269. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-docs-tml_content].json +0 -41
  270. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-docs].json +0 -6
  271. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-home-index].json +0 -689
  272. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-home-upgrade_cache].json +0 -6
  273. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-home].json +0 -6
  274. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en-US]_[-login-cookies].json +0 -6
  275. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-].json +0 -6
  276. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-docs-index].json +0 -1041
  277. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-docs-installation].json +0 -357
  278. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-docs-tml].json +0 -379
  279. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-docs-tml_content].json +0 -38
  280. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-docs].json +0 -6
  281. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-home-index].json +0 -632
  282. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-home-upgrade_cache].json +0 -6
  283. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-home].json +0 -6
  284. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[en]_[-login-cookies].json +0 -6
  285. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-].json +0 -6
  286. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-docs-index].json +0 -1165
  287. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-docs-installation].json +0 -434
  288. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-docs-tml].json +0 -476
  289. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-docs-tml_content].json +0 -40
  290. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-docs].json +0 -6
  291. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-home-index].json +0 -742
  292. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-home-upgrade_cache].json +0 -6
  293. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-home].json +0 -6
  294. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[fr]_[-login-cookies].json +0 -6
  295. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-].json +0 -6
  296. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-docs-index].json +0 -1251
  297. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-docs-installation].json +0 -457
  298. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-docs-tml].json +0 -521
  299. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-docs-tml_content].json +0 -45
  300. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-docs].json +0 -6
  301. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-home-index].json +0 -809
  302. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-home-upgrade_cache].json +0 -6
  303. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-home].json +0 -6
  304. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[ru]_[-login-cookies].json +0 -6
  305. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-].json +0 -6
  306. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-docs-index].json +0 -1135
  307. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-docs-installation].json +0 -391
  308. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-docs-tml].json +0 -415
  309. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-docs-tml_content].json +0 -41
  310. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-docs].json +0 -6
  311. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-home-index].json +0 -693
  312. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-home-upgrade_cache].json +0 -6
  313. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-home].json +0 -6
  314. data/test/dummy/cache/files/tr8n_6b714be8673fcc4a3_2013_12_30_00_52_41/s@_[zh]_[-login-cookies].json +0 -6
  315. data/test/dummy/config/application.rb +0 -59
  316. data/test/dummy/config/boot.rb +0 -10
  317. data/test/dummy/config/database.yml +0 -25
  318. data/test/dummy/config/environment.rb +0 -5
  319. data/test/dummy/config/environments/development.rb +0 -39
  320. data/test/dummy/config/environments/production.rb +0 -67
  321. data/test/dummy/config/environments/test.rb +0 -37
  322. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  323. data/test/dummy/config/initializers/inflections.rb +0 -15
  324. data/test/dummy/config/initializers/mail.rb +0 -14
  325. data/test/dummy/config/initializers/mime_types.rb +0 -5
  326. data/test/dummy/config/initializers/secret_token.rb +0 -7
  327. data/test/dummy/config/initializers/session_store.rb +0 -8
  328. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  329. data/test/dummy/config/locales/en.yml +0 -5
  330. data/test/dummy/config/routes.rb +0 -8
  331. data/test/dummy/config/tr8n/config.yml +0 -55
  332. data/test/dummy/config/tr8n/tokens/data.yml +0 -45
  333. data/test/dummy/config/tr8n/tokens/decorations.yml +0 -37
  334. data/test/dummy/config.ru +0 -4
  335. data/test/dummy/db/development.sqlite3 +0 -0
  336. data/test/dummy/db/migrate/20130506202619_create_users.rb +0 -16
  337. data/test/dummy/db/schema.rb +0 -29
  338. data/test/dummy/log/development.log +0 -64950
  339. data/test/dummy/log/tr8n.log +0 -19947
  340. data/test/dummy/public/404.html +0 -26
  341. data/test/dummy/public/422.html +0 -26
  342. data/test/dummy/public/500.html +0 -25
  343. data/test/dummy/public/favicon.ico +0 -0
  344. data/test/dummy/script/rails +0 -6
  345. data/test/dummy/spec/models/request_spec.rb +0 -5
  346. data/test/dummy/spec/models/user_spec.rb +0 -5
  347. data/test/dummy/tmp/cache/assets/BCA/680/sprockets%2F0e766e5046b2556242937265334a7776 +0 -0
  348. data/test/dummy/tmp/cache/assets/C41/5A0/sprockets%2Ff3979161c897640872293fb74f7e4185 +0 -0
  349. data/test/dummy/tmp/cache/assets/C69/980/sprockets%2F1289412d200b47c7f5ba1714da031188 +0 -0
  350. data/test/dummy/tmp/cache/assets/C80/840/sprockets%2F562c2d168da585f80579347d10790a0a +0 -0
  351. data/test/dummy/tmp/cache/assets/C85/8C0/sprockets%2F262c6124c54467ed84e71473a5748a2f +0 -0
  352. data/test/dummy/tmp/cache/assets/C9B/B70/sprockets%2F3c5f068b5a07f9215020042ed660bb45 +0 -0
  353. data/test/dummy/tmp/cache/assets/CAC/8A0/sprockets%2Fb3da0b5a24a9277687d1b973d1638126 +0 -0
  354. data/test/dummy/tmp/cache/assets/CB0/D20/sprockets%2F0850d836310c2fc600217ce3f894f9c8 +0 -0
  355. data/test/dummy/tmp/cache/assets/CB1/E50/sprockets%2Fea7a0c10450c627f752b87495d915b66 +0 -0
  356. data/test/dummy/tmp/cache/assets/CBF/A00/sprockets%2F82c0bd0c273938e78e80698057bf165e +0 -0
  357. data/test/dummy/tmp/cache/assets/CC3/730/sprockets%2F730877507dec32fd7d2e038899bb8067 +0 -0
  358. data/test/dummy/tmp/cache/assets/CC6/350/sprockets%2F7486d25d54ef6d9548205d5a17ff3468 +0 -0
  359. data/test/dummy/tmp/cache/assets/CC7/620/sprockets%2F395359137b16e965efa7fa58db855904 +0 -0
  360. data/test/dummy/tmp/cache/assets/CC7/A90/sprockets%2F77713cc98a179981d615f84f952add24 +0 -0
  361. data/test/dummy/tmp/cache/assets/CD5/2C0/sprockets%2F166c056119ebdfb8b7104c97b424b423 +0 -0
  362. data/test/dummy/tmp/cache/assets/CD6/450/sprockets%2Ff0c4fb28a62f912b5542965358a10a1f +0 -0
  363. data/test/dummy/tmp/cache/assets/CD6/C30/sprockets%2Fe15182011d74255aa67fde5a783dd612 +0 -0
  364. data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  365. data/test/dummy/tmp/cache/assets/CD8/F00/sprockets%2F2344b925523c2c28a3fd1e73ad5f9181 +0 -0
  366. data/test/dummy/tmp/cache/assets/CD9/BA0/sprockets%2Fb9fa8aa2057e7d8702f10317694a8c10 +0 -0
  367. data/test/dummy/tmp/cache/assets/CE2/720/sprockets%2F922b15b49871931e5df1d0a2be4826f8 +0 -0
  368. data/test/dummy/tmp/cache/assets/CE3/EB0/sprockets%2F28ee30e42c7c583083e76a377df3035d +0 -0
  369. data/test/dummy/tmp/cache/assets/CE5/650/sprockets%2F8ab512c9b33ac90e699b73469d71f061 +0 -0
  370. data/test/dummy/tmp/cache/assets/CE8/2F0/sprockets%2Fb74ee6e80ba2911167d148d791d6728c +0 -0
  371. data/test/dummy/tmp/cache/assets/CEE/D60/sprockets%2F7b699b03f091fe228759da88a323a56f +0 -0
  372. data/test/dummy/tmp/cache/assets/CF0/450/sprockets%2F65704938b67ef6b06e386cea3c1848b6 +0 -0
  373. data/test/dummy/tmp/cache/assets/CF1/5A0/sprockets%2Fec49552e4a6b67bee359e0485610d887 +0 -0
  374. data/test/dummy/tmp/cache/assets/CFC/880/sprockets%2Fd89c211d7a3dc2a94a7625d7155000ab +0 -0
  375. data/test/dummy/tmp/cache/assets/D05/210/sprockets%2F5d0d1d45d694d6d4f803a9a1340b741c +0 -0
  376. data/test/dummy/tmp/cache/assets/D05/820/sprockets%2Fee427231dd340c1b50573f187a8a6d5d +0 -0
  377. data/test/dummy/tmp/cache/assets/D09/6F0/sprockets%2F0f69fe87b4b574153bdc60711a6ca208 +0 -0
  378. data/test/dummy/tmp/cache/assets/D0A/C20/sprockets%2Fd177dbfcd8235d07a0072c4d9c307385 +0 -0
  379. data/test/dummy/tmp/cache/assets/D0C/820/sprockets%2F1002e68d7cf06571cb63a864f93bb4e3 +0 -0
  380. data/test/dummy/tmp/cache/assets/D0E/A30/sprockets%2F71398e105f60c431f86d78e3abbbf125 +0 -0
  381. data/test/dummy/tmp/cache/assets/D0E/FF0/sprockets%2F2c4cc11f6c24fbb41d97713864854d1f +0 -0
  382. data/test/dummy/tmp/cache/assets/D18/E00/sprockets%2Ff017e80af40be5c829882bd1885a38f4 +0 -0
  383. data/test/dummy/tmp/cache/assets/D19/120/sprockets%2F69f0907662f738cd217edca24ef2328d +0 -0
  384. data/test/dummy/tmp/cache/assets/D25/FD0/sprockets%2F03006f6bba722ebc14ceac8221b81917 +0 -0
  385. data/test/dummy/tmp/cache/assets/D26/7C0/sprockets%2F771cba4a2e4f22141377c4eccc1065c0 +0 -0
  386. data/test/dummy/tmp/cache/assets/D28/B20/sprockets%2Fbd19c0bc42912a8ba7c5c3b100f71592 +0 -0
  387. data/test/dummy/tmp/cache/assets/D29/280/sprockets%2F04fd073ef39e04ced71111a204cb70e6 +0 -0
  388. data/test/dummy/tmp/cache/assets/D29/320/sprockets%2Feb3792401fd26ebf610c8531b0a4bd32 +0 -0
  389. data/test/dummy/tmp/cache/assets/D29/AF0/sprockets%2F841d8c0c4ba32a5e25aa41b7069ba581 +0 -0
  390. data/test/dummy/tmp/cache/assets/D32/4F0/sprockets%2Fb8023435d8d01feca8fd3a1ce9144181 +0 -0
  391. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  392. data/test/dummy/tmp/cache/assets/D38/DB0/sprockets%2Fe848eed2f10d359a60040b50d486b3fd +0 -0
  393. data/test/dummy/tmp/cache/assets/D39/6E0/sprockets%2F4d3170e44fdaa2f62cc266b62e5925e4 +0 -0
  394. data/test/dummy/tmp/cache/assets/D3C/2C0/sprockets%2F9c4d26aabdb46cc90d0228c79344950e +0 -0
  395. data/test/dummy/tmp/cache/assets/D3D/2D0/sprockets%2Fc83c38e1374d350196211ce9ffed3aa6 +0 -0
  396. data/test/dummy/tmp/cache/assets/D3D/970/sprockets%2F23fb0067086af38f593481abd034deff +0 -0
  397. data/test/dummy/tmp/cache/assets/D41/C20/sprockets%2F5b768ca318275843ae6b901bb9cca29e +0 -0
  398. data/test/dummy/tmp/cache/assets/D42/030/sprockets%2Ff991fbde306579de4c94d611ced13023 +0 -0
  399. data/test/dummy/tmp/cache/assets/D47/A20/sprockets%2F9f6654abeaa85f117a98806392ac2a8d +0 -0
  400. data/test/dummy/tmp/cache/assets/D47/D00/sprockets%2Fd76fe4489f3b7f2cd62450204cef631f +0 -0
  401. data/test/dummy/tmp/cache/assets/D4A/640/sprockets%2F94ec7bb9872d4b005d267d56cb80f7e4 +0 -0
  402. data/test/dummy/tmp/cache/assets/D4C/020/sprockets%2F2c26fac647b394d5f49b2743950aefe9 +0 -0
  403. data/test/dummy/tmp/cache/assets/D4D/A20/sprockets%2F0de50df58d85f5cce135f460979bd472 +0 -0
  404. data/test/dummy/tmp/cache/assets/D4D/E30/sprockets%2F828b744b9a72d6b05ace77264f878bdb +0 -0
  405. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  406. data/test/dummy/tmp/cache/assets/D53/1E0/sprockets%2F6d4776ffd4fc7486550b6508cb2dd57e +0 -0
  407. data/test/dummy/tmp/cache/assets/D5A/B70/sprockets%2F7b76786736bb5e9eeb4887dd32c83ec2 +0 -0
  408. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  409. data/test/dummy/tmp/cache/assets/D62/720/sprockets%2F34a95b2bb07a4fbd408c81f1c37bd860 +0 -0
  410. data/test/dummy/tmp/cache/assets/D69/B50/sprockets%2F1c7aa58ab12825ccfb465ca5e7c77551 +0 -0
  411. data/test/dummy/tmp/cache/assets/D6F/220/sprockets%2F99d4cd656c271484bee1a14ac84e5ad2 +0 -0
  412. data/test/dummy/tmp/cache/assets/D74/280/sprockets%2F049b078c38d43fbe7e6b1eb49da1b775 +0 -0
  413. data/test/dummy/tmp/cache/assets/D74/9A0/sprockets%2F049cf32cc869e7138b76f1bb04ae78ad +0 -0
  414. data/test/dummy/tmp/cache/assets/D77/770/sprockets%2F67b869074d0a5b5bb8698e55ccca47aa +0 -0
  415. data/test/dummy/tmp/cache/assets/D7A/290/sprockets%2F5acdbbb05bd53866c8225e95f8e805e8 +0 -0
  416. data/test/dummy/tmp/cache/assets/D7A/2A0/sprockets%2F91a461699d36fdd71c4cec0a8d737cf4 +0 -0
  417. data/test/dummy/tmp/cache/assets/D7C/5B0/sprockets%2F2b864c6eb9b8d679b2716db1a1e93c8f +0 -0
  418. data/test/dummy/tmp/cache/assets/D82/930/sprockets%2Fecdc4c7caa1aa683b13d14a91234b452 +0 -0
  419. data/test/dummy/tmp/cache/assets/D8D/610/sprockets%2Ffb7e1b81f737cb510ac8166a241bbc4c +0 -0
  420. data/test/dummy/tmp/cache/assets/D91/080/sprockets%2Fbcca522c6302f184f12fe0e8a7d7e71a +0 -0
  421. data/test/dummy/tmp/cache/assets/D91/2B0/sprockets%2F354460cd2db93ca02614a4bb76ffde3e +0 -0
  422. data/test/dummy/tmp/cache/assets/D96/DA0/sprockets%2F55af2375310fff6b9706cbacfb2ec540 +0 -0
  423. data/test/dummy/tmp/cache/assets/D9E/F30/sprockets%2Fc32ceef2bde9f93b4c5b866c8200371c +0 -0
  424. data/test/dummy/tmp/cache/assets/D9F/300/sprockets%2Fc13fc73ceafa45876a901b3e775b83ae +0 -0
  425. data/test/dummy/tmp/cache/assets/D9F/390/sprockets%2Fe2fc3cc13d4d3677be6574e0fd2732cf +0 -0
  426. data/test/dummy/tmp/cache/assets/DAA/A50/sprockets%2F231c56d70690f8b4f8f6fea2cea9d39b +0 -0
  427. data/test/dummy/tmp/cache/assets/DB5/350/sprockets%2F3b5ebcf21def6fff9868a18e239495f1 +0 -0
  428. data/test/dummy/tmp/cache/assets/DB9/150/sprockets%2Fdaff6d12c8afc96d0c91d77e91d79966 +0 -0
  429. data/test/dummy/tmp/cache/assets/DC9/DB0/sprockets%2F43a2aed943cbb05dcc84468c73ddea55 +0 -0
  430. data/test/dummy/tmp/cache/assets/DCE/310/sprockets%2F2f221a6c5ffcaf07ef30f4ee9a793b44 +0 -0
  431. data/test/dummy/tmp/cache/assets/DD2/750/sprockets%2Ff70dee8c3d675153ad76abe3f730dc4f +0 -0
  432. data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  433. data/test/dummy/tmp/cache/assets/DFF/270/sprockets%2Fb84f2daecc65ed711132bff2d8f5fe08 +0 -0
  434. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  435. data/test/dummy/tmp/cache/assets/E13/010/sprockets%2Feecfc58398a4d26289a5e0fe9ecd09ec +0 -0
  436. data/test/dummy/tmp/cache/assets/E23/880/sprockets%2F436adfe0b6333bf5af1eaaf3ea4e919b +0 -0
  437. data/test/dummy/tmp/cache/assets/E25/4F0/sprockets%2Fa24db6eec8d3a80f7fe3a50b4cdd243f +0 -0
  438. data/test/dummy/tmp/cache/assets/E2C/210/sprockets%2Fdd7b14fc1e5b2b7dcdac381cc7f9c267 +0 -0
  439. data/test/dummy/tmp/cache/assets/E3A/950/sprockets%2F8a6c7c212feec8ae888ad7e7fa50a3ff +0 -0
  440. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_accordion.scssc +0 -0
  441. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_alerts.scssc +0 -0
  442. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_breadcrumbs.scssc +0 -0
  443. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_button-groups.scssc +0 -0
  444. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_buttons.scssc +0 -0
  445. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_carousel.scssc +0 -0
  446. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_close.scssc +0 -0
  447. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_code.scssc +0 -0
  448. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_component-animations.scssc +0 -0
  449. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_dropdowns.scssc +0 -0
  450. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_forms.scssc +0 -0
  451. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_grid.scssc +0 -0
  452. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_hero-unit.scssc +0 -0
  453. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_labels-badges.scssc +0 -0
  454. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_layouts.scssc +0 -0
  455. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_media.scssc +0 -0
  456. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_mixins.scssc +0 -0
  457. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_modals.scssc +0 -0
  458. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_navbar.scssc +0 -0
  459. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_navs.scssc +0 -0
  460. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_pager.scssc +0 -0
  461. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_pagination.scssc +0 -0
  462. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_popovers.scssc +0 -0
  463. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_progress-bars.scssc +0 -0
  464. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_reset.scssc +0 -0
  465. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_responsive-1200px-min.scssc +0 -0
  466. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_responsive-767px-max.scssc +0 -0
  467. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_responsive-768px-979px.scssc +0 -0
  468. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_responsive-navbar.scssc +0 -0
  469. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_responsive-utilities.scssc +0 -0
  470. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_scaffolding.scssc +0 -0
  471. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_sprites.scssc +0 -0
  472. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_tables.scssc +0 -0
  473. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_thumbnails.scssc +0 -0
  474. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_tooltip.scssc +0 -0
  475. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_type.scssc +0 -0
  476. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_utilities.scssc +0 -0
  477. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_variables.scssc +0 -0
  478. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/_wells.scssc +0 -0
  479. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/bootstrap.scssc +0 -0
  480. data/test/dummy/tmp/cache/sass/076477e2114ee474e8df1a7a673f9162f60724cc/responsive.scssc +0 -0
  481. data/test/dummy/tmp/cache/sass/2a9f8d893763e4aeafa77aedd38023c2d92257b4/bootstrap-responsive.scssc +0 -0
  482. data/test/dummy/tmp/cache/sass/2bca5584fcb1177ad07e4f21325c39e4eda592bf/bootstrap_and_overrides.css.scssc +0 -0
  483. data/test/integration/navigation_test.rb +0 -10
  484. data/test/test_helper.rb +0 -15
  485. data/test/tr8n_client_sdk_test.rb +0 -7
Binary file
@@ -1,53 +0,0 @@
1
- defaults:
2
- enabled: true
3
- default_locale: en-US
4
- default_level: 0
5
- application:
6
- host: http://localhost:3000
7
- key: 6b714be8673fcc4a3
8
- secret: 5c873790ebdc7d7b8
9
- logger:
10
- enabled: false
11
- path: /log/tr8n.log
12
- cache:
13
- enabled: false
14
- adapter: memcache
15
- host: localhost:11211
16
- path: /cache
17
- version: 1
18
- timeout: 3600
19
- localization:
20
- default_day_names: [Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday]
21
- default_abbr_day_names: [Sun, Mon, Tue, Wed, Thu, Fri, Sat]
22
- default_month_names: [January, February, March, April, May, June, July, August, September, October, November, December]
23
- default_abbr_month_names: [Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]
24
- custom_date_formats:
25
- default: '%m/%d/%Y' # 07/4/2008
26
- short_numeric: '%m/%d' # 07/4
27
- short_numeric_year: '%m/%d/%y' # 07/4/08
28
- long_numeric: '%m/%d/%Y' # 07/4/2008
29
- verbose: '%A, %B %d, %Y' # Friday, July 4, 2008
30
- monthname: '%B %d' # July 4
31
- monthname_year: '%B %d, %Y' # July 4, 2008
32
- monthname_abbr: '%b %d' # Jul 4
33
- monthname_abbr_year: '%b %d, %Y' # Jul 4, 2008
34
- date_time: '%m/%d/%Y at %H:%M' # 01/03/1010 at 5:30
35
- site_info: # used by the embedded mode
36
- title: "Tr8n Sample Application" # site title
37
- contact_email: "admin@tr8nhub.com" # default contact email
38
- base_url: "http://localhost:3001" # base site url
39
- default_url: "/home"
40
- default_locale: "en-US" # locale of the site default language
41
- current_locale_method: "current_locale" # application controller method that sets and returns current locale
42
- user_info: # used by integrated and embedded modes
43
- class_name: User # class name for the User object type
44
- current_user_method: current_user # returns current user object
45
- methods: # User object methods mapping
46
- id: "id"
47
- name: "name"
48
- gender: "gender"
49
- admin: "admin?"
50
- guest: "guest?" # if current_user is nil, the user is automatically a guest
51
- mugshot: "mugshot"
52
- link: "link"
53
- locale: "locale"
@@ -1,45 +0,0 @@
1
- #############################################################################
2
- #
3
- # Tr8n Default Data Tokens
4
- #
5
- #############################################################################
6
-
7
- html:
8
- ndash: "–" # –
9
- mdash: "—" # —
10
- iexcl: "¡" # ¡
11
- iquest: "¿" # ¿
12
- quot: """ # "
13
- ldquo: "“" # “
14
- rdquo: "”" # ”
15
- lsquo: "‘" # ‘
16
- rsquo: "’" # ’
17
- laquo: "«" # «
18
- raquo: "»" # »
19
- nbsp: " " # space
20
- lsaquo: "‹" # ‹
21
- rsaquo: "›" # ›
22
- br: "<br/>" # line break
23
- lbrace: "{"
24
- rbrace: "}"
25
- trade: "&trade;" # TM
26
-
27
- plain:
28
- ndash: "–" # –
29
- mdash: "—" # —
30
- iexcl: "¡" # ¡
31
- iquest: "¿" # ¿
32
- quot: '"' # "
33
- ldquo: "“" # “
34
- rdquo: "”" # ”
35
- lsquo: "‘" # ‘
36
- rsquo: "’" # ’
37
- laquo: "«" # «
38
- raquo: "»" # »
39
- nbsp: " " # space
40
- lsaquo: "‹" # ‹
41
- rsaquo: "›" # ›
42
- br: "\n" # line break
43
- lbrace: "{"
44
- rbrace: "}"
45
- trade: "™" # TM
@@ -1,37 +0,0 @@
1
- #############################################################################
2
- #
3
- # Tr8n Default Decoration Tokens
4
- #
5
- #############################################################################
6
-
7
- html:
8
- strong: "<strong>{$0}</strong>"
9
- bold: "<strong>{$0}</strong>"
10
- b: "<strong>{$0}</strong>"
11
- em: "<em>{$0}</em>"
12
- italic: "<i>{$0}</i>"
13
- i: "<i>{$0}</i>"
14
- link: "<a href='{$href}'>{$0}</a>"
15
- br: "<br>{$0}"
16
- strike: "<strike>{$0}</strike>"
17
- div: "<div id='{$id}' class='{$class}' style='{$style}'>{$0}</div>"
18
- span: "<span id='{$id}' class='{$class}' style='{$style}'>{$0}</span>"
19
- h1: "<h1>{$0}</h1>"
20
- h2: "<h2>{$0}</h2>"
21
- h3: "<h3>{$0}</h3>"
22
-
23
- plain:
24
- strong: "{$0}"
25
- bold: "{$0}"
26
- b: "{$0}"
27
- em: "{$0}"
28
- italic: "{$0}"
29
- i: "{$0}"
30
- link: "{$0}:{$1}"
31
- br: "\n{$0}"
32
- strike: "{$0}"
33
- div: "{$0}"
34
- span: "{$0}"
35
- h1: "{$0}"
36
- h2: "{$0}"
37
- h3: "{$0}"
@@ -1,197 +0,0 @@
1
- #--
2
- # Copyright (c) 2013 Michael Berkovich, tr8nhub.com
3
- #
4
- # Permission is hereby granted, free of charge, to any person obtaining
5
- # a copy of this software and associated documentation files (the
6
- # "Software"), to deal in the Software without restriction, including
7
- # without limitation the rights to use, copy, modify, merge, publish,
8
- # distribute, sublicense, and/or sell copies of the Software, and to
9
- # permit persons to whom the Software is furnished to do so, subject to
10
- # the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be
13
- # included in all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
- #++
23
-
24
- module Tr8nClientSdk
25
- class Config < ::Tr8n::Config
26
- thread_safe_attributes :application, :current_user, :current_language, :current_translator, :current_source, :current_component
27
- thread_safe_attributes :block_options
28
-
29
- def root
30
- Rails.root
31
- end
32
-
33
- def env
34
- Rails.env
35
- end
36
-
37
- def defaults
38
- @defaults ||= HashWithIndifferentAccess.new(Tr8n::Utils.load_yaml("#{root}/config/tr8n/config.yml", env))
39
- end
40
-
41
- def default_data_tokens
42
- @default_data_tokens ||= Tr8n::Utils.load_yaml("#{root}/config/tr8n/tokens/data.yml")
43
- end
44
-
45
- def default_decoration_tokens
46
- @default_decoration_tokens ||= Tr8n::Utils.load_yaml("#{root}/config/tr8n/tokens/decorations.yml")
47
- end
48
-
49
- def init_request(user, translator, locale, source = nil, component = nil)
50
- self.current_user = user
51
- self.current_translator = translator
52
- self.current_language = (application.language(locale) || default_language)
53
- self.current_source = source
54
- self.current_component = component
55
-
56
- # # register source with component
57
- # unless component.nil?
58
- # set_component(application.component_by_key(component))
59
- # current_component.register_source(current_source)
60
- # else
61
- # set_component(nil)
62
- # end
63
- end
64
-
65
- #def current_user_is_authorized_to_view_component?(component = current_component)
66
- # return true if component.nil? # no component present, so be it
67
- # component = application.component_by_key(component.to_s) if component.is_a?(Symbol)
68
- #
69
- # return true unless component.restricted?
70
- # return false unless Tr8n.config.current_translator
71
- # return true if component.translator_authorized?
72
- #
73
- # false
74
- #end
75
- #
76
- #def current_user_is_authorized_to_view_language?(component = current_component, language = current_language)
77
- # return true if component.nil? # no component present, so be it
78
- # component = application.component_by_key(component.to_s) if component.is_a?(Symbol)
79
- #
80
- # # if Tr8n.config.current_translator
81
- # # return true if component.translator_authorized?
82
- # # end
83
- #
84
- # # component.component_languages.each do |cl|
85
- # # return cl.live? if cl.language_id == language.id
86
- # # end
87
- #
88
- # true
89
- #end
90
-
91
- def decorator_class
92
- Tr8n::Decorators::Html
93
- end
94
-
95
- def reset_request
96
- reset
97
- end
98
-
99
- def url_for(path)
100
- "#{defaults["host"]}#{path}"
101
- end
102
-
103
- #########################################################
104
- # Site Info
105
- #########################################################
106
- def site_info
107
- defaults[:site_info]
108
- end
109
-
110
- def site_title
111
- site_info[:title]
112
- end
113
-
114
- def base_url
115
- site_info[:base_url]
116
- end
117
-
118
- def default_url
119
- site_info[:default_url]
120
- end
121
-
122
- def contact_email
123
- site_info[:contact_email]
124
- end
125
-
126
- def default_locale
127
- return block_options[:default_locale] if block_options[:default_locale]
128
- site_info[:default_locale]
129
- end
130
-
131
- def default_admin_locale
132
- return block_options[:default_admin_locale] if block_options[:default_admin_locale]
133
- site_info[:default_admin_locale]
134
- end
135
-
136
- def current_locale_method
137
- site_info[:current_locale_method]
138
- end
139
-
140
- #########################################################
141
- # site user info
142
- # The following methods could be overloaded in the initializer
143
- #########################################################
144
- def site_user_info
145
- site_info[:user_info]
146
- end
147
-
148
- def current_user_method
149
- site_user_info[:current_user_method]
150
- end
151
-
152
- def user_class_name
153
- site_user_info[:class_name]
154
- end
155
-
156
- def user_class
157
- user_class_name.constantize
158
- end
159
-
160
- def user_id(user)
161
- return 0 unless user
162
- user.send(site_user_info[:methods][:id])
163
- rescue Exception => ex
164
- Tr8n::Logger.error("Failed to fetch user id: #{ex.to_s}")
165
- 0
166
- end
167
-
168
- def user_name(user)
169
- return "Unknown user" unless user
170
- user.send(site_user_info[:methods][:name])
171
- rescue Exception => ex
172
- Tr8n::Logger.error("Failed to fetch #{user_class_name} name: #{ex.to_s}")
173
- "Invalid user"
174
- end
175
-
176
- def user_gender(user)
177
- return "unknown" unless user
178
- user.send(site_user_info[:methods][:gender])
179
- rescue Exception => ex
180
- Tr8n::Logger.error("Failed to fetch #{user_class_name} name: #{ex.to_s}")
181
- "unknown"
182
- end
183
-
184
- def guest_user?(user = Tr8n.config.current_user)
185
- return true unless user
186
- user.send(site_user_info[:methods][:guest])
187
- rescue Exception => ex
188
- Tr8n::Logger.error("Failed to fetch #{user_class_name} guest flag: #{ex.to_s}")
189
- true
190
- end
191
-
192
- def current_user_is_guest?
193
- guest_user?
194
- end
195
-
196
- end
197
- end
@@ -1,261 +0,0 @@
1
- == Welcome to Rails
2
-
3
- Rails is a web-application framework that includes everything needed to create
4
- database-backed web applications according to the Model-View-Control pattern.
5
-
6
- This pattern splits the view (also called the presentation) into "dumb"
7
- templates that are primarily responsible for inserting pre-built data in between
8
- HTML tags. The model contains the "smart" domain objects (such as Account,
9
- Product, Person, Post) that holds all the business logic and knows how to
10
- persist themselves to a database. The controller handles the incoming requests
11
- (such as Save New Account, Update Product, Show Post) by manipulating the model
12
- and directing data to the view.
13
-
14
- In Rails, the model is handled by what's called an object-relational mapping
15
- layer entitled Active Record. This layer allows you to present the data from
16
- database rows as objects and embellish these data objects with business logic
17
- methods. You can read more about Active Record in
18
- link:files/vendor/rails/activerecord/README.html.
19
-
20
- The controller and view are handled by the Action Pack, which handles both
21
- layers by its two parts: Action View and Action Controller. These two layers
22
- are bundled in a single package due to their heavy interdependence. This is
23
- unlike the relationship between the Active Record and Action Pack that is much
24
- more separate. Each of these packages can be used independently outside of
25
- Rails. You can read more about Action Pack in
26
- link:files/vendor/rails/actionpack/README.html.
27
-
28
-
29
- == Getting Started
30
-
31
- 1. At the command prompt, create a new Rails application:
32
- <tt>rails new myapp</tt> (where <tt>myapp</tt> is the application name)
33
-
34
- 2. Change directory to <tt>myapp</tt> and start the web server:
35
- <tt>cd myapp; rails server</tt> (run with --help for options)
36
-
37
- 3. Go to http://localhost:3000/ and you'll see:
38
- "Welcome aboard: You're riding Ruby on Rails!"
39
-
40
- 4. Follow the guidelines to start developing your application. You can find
41
- the following resources handy:
42
-
43
- * The Getting Started Guide: http://guides.rubyonrails.org/getting_started.html
44
- * Ruby on Rails Tutorial Book: http://www.railstutorial.org/
45
-
46
-
47
- == Debugging Rails
48
-
49
- Sometimes your application goes wrong. Fortunately there are a lot of tools that
50
- will help you debug it and get it back on the rails.
51
-
52
- First area to check is the application log files. Have "tail -f" commands
53
- running on the server.log and development.log. Rails will automatically display
54
- debugging and runtime information to these files. Debugging info will also be
55
- shown in the browser on requests from 127.0.0.1.
56
-
57
- You can also log your own messages directly into the log file from your code
58
- using the Ruby logger class from inside your controllers. Example:
59
-
60
- class WeblogController < ActionController::Base
61
- def destroy
62
- @weblog = Weblog.find(params[:id])
63
- @weblog.destroy
64
- logger.info("#{Time.now} Destroyed Weblog ID ##{@weblog.id}!")
65
- end
66
- end
67
-
68
- The result will be a message in your log file along the lines of:
69
-
70
- Mon Oct 08 14:22:29 +1000 2007 Destroyed Weblog ID #1!
71
-
72
- More information on how to use the logger is at http://www.ruby-doc.org/core/
73
-
74
- Also, Ruby documentation can be found at http://www.ruby-lang.org/. There are
75
- several books available online as well:
76
-
77
- * Programming Ruby: http://www.ruby-doc.org/docs/ProgrammingRuby/ (Pickaxe)
78
- * Learn to Program: http://pine.fm/LearnToProgram/ (a beginners guide)
79
-
80
- These two books will bring you up to speed on the Ruby language and also on
81
- programming in general.
82
-
83
-
84
- == Debugger
85
-
86
- Debugger support is available through the debugger command when you start your
87
- Mongrel or WEBrick server with --debugger. This means that you can break out of
88
- execution at any point in the code, investigate and change the model, and then,
89
- resume execution! You need to install ruby-debug to run the server in debugging
90
- mode. With gems, use <tt>sudo gem install ruby-debug</tt>. Example:
91
-
92
- class WeblogController < ActionController::Base
93
- def index
94
- @posts = Post.all
95
- debugger
96
- end
97
- end
98
-
99
- So the controller will accept the action, run the first line, then present you
100
- with a IRB prompt in the server window. Here you can do things like:
101
-
102
- >> @posts.inspect
103
- => "[#<Post:0x14a6be8
104
- @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>,
105
- #<Post:0x14a6620
106
- @attributes={"title"=>"Rails", "body"=>"Only ten..", "id"=>"2"}>]"
107
- >> @posts.first.title = "hello from a debugger"
108
- => "hello from a debugger"
109
-
110
- ...and even better, you can examine how your runtime objects actually work:
111
-
112
- >> f = @posts.first
113
- => #<Post:0x13630c4 @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>
114
- >> f.
115
- Display all 152 possibilities? (y or n)
116
-
117
- Finally, when you're ready to resume execution, you can enter "cont".
118
-
119
-
120
- == Console
121
-
122
- The console is a Ruby shell, which allows you to interact with your
123
- application's domain model. Here you'll have all parts of the application
124
- configured, just like it is when the application is running. You can inspect
125
- domain models, change values, and save to the database. Starting the script
126
- without arguments will launch it in the development environment.
127
-
128
- To start the console, run <tt>rails console</tt> from the application
129
- directory.
130
-
131
- Options:
132
-
133
- * Passing the <tt>-s, --sandbox</tt> argument will rollback any modifications
134
- made to the database.
135
- * Passing an environment name as an argument will load the corresponding
136
- environment. Example: <tt>rails console production</tt>.
137
-
138
- To reload your controllers and models after launching the console run
139
- <tt>reload!</tt>
140
-
141
- More information about irb can be found at:
142
- link:http://www.rubycentral.org/pickaxe/irb.html
143
-
144
-
145
- == dbconsole
146
-
147
- You can go to the command line of your database directly through <tt>rails
148
- dbconsole</tt>. You would be connected to the database with the credentials
149
- defined in database.yml. Starting the script without arguments will connect you
150
- to the development database. Passing an argument will connect you to a different
151
- database, like <tt>rails dbconsole production</tt>. Currently works for MySQL,
152
- PostgreSQL and SQLite 3.
153
-
154
- == Description of Contents
155
-
156
- The default directory structure of a generated Ruby on Rails application:
157
-
158
- |-- app
159
- | |-- assets
160
- | | |-- images
161
- | | |-- javascripts
162
- | | `-- stylesheets
163
- | |-- controllers
164
- | |-- helpers
165
- | |-- mailers
166
- | |-- models
167
- | `-- views
168
- | `-- layouts
169
- |-- config
170
- | |-- environments
171
- | |-- initializers
172
- | `-- locales
173
- |-- db
174
- |-- doc
175
- |-- lib
176
- | |-- assets
177
- | `-- tasks
178
- |-- log
179
- |-- public
180
- |-- script
181
- |-- test
182
- | |-- fixtures
183
- | |-- functional
184
- | |-- integration
185
- | |-- performance
186
- | `-- unit
187
- |-- tmp
188
- | `-- cache
189
- | `-- assets
190
- `-- vendor
191
- |-- assets
192
- | |-- javascripts
193
- | `-- stylesheets
194
- `-- plugins
195
-
196
- app
197
- Holds all the code that's specific to this particular application.
198
-
199
- app/assets
200
- Contains subdirectories for images, stylesheets, and JavaScript files.
201
-
202
- app/controllers
203
- Holds controllers that should be named like weblogs_controller.rb for
204
- automated URL mapping. All controllers should descend from
205
- ApplicationController which itself descends from ActionController::Base.
206
-
207
- app/models
208
- Holds models that should be named like post.rb. Models descend from
209
- ActiveRecord::Base by default.
210
-
211
- app/views
212
- Holds the template files for the view that should be named like
213
- weblogs/index.html.erb for the WeblogsController#index action. All views use
214
- eRuby syntax by default.
215
-
216
- app/views/layouts
217
- Holds the template files for layouts to be used with views. This models the
218
- common header/footer method of wrapping views. In your views, define a layout
219
- using the <tt>layout :default</tt> and create a file named default.html.erb.
220
- Inside default.html.erb, call <% yield %> to render the view using this
221
- layout.
222
-
223
- app/helpers
224
- Holds view helpers that should be named like weblogs_helper.rb. These are
225
- generated for you automatically when using generators for controllers.
226
- Helpers can be used to wrap functionality for your views into methods.
227
-
228
- config
229
- Configuration files for the Rails environment, the routing map, the database,
230
- and other dependencies.
231
-
232
- db
233
- Contains the database schema in schema.rb. db/migrate contains all the
234
- sequence of Migrations for your schema.
235
-
236
- doc
237
- This directory is where your application documentation will be stored when
238
- generated using <tt>rake doc:app</tt>
239
-
240
- lib
241
- Application specific libraries. Basically, any kind of custom code that
242
- doesn't belong under controllers, models, or helpers. This directory is in
243
- the load path.
244
-
245
- public
246
- The directory available for the web server. Also contains the dispatchers and the
247
- default HTML files. This should be set as the DOCUMENT_ROOT of your web
248
- server.
249
-
250
- script
251
- Helper scripts for automation and generation.
252
-
253
- test
254
- Unit and functional tests along with fixtures. When using the rails generate
255
- command, template test files will be generated for you and placed in this
256
- directory.
257
-
258
- vendor
259
- External libraries that the application depends on. Also includes the plugins
260
- subdirectory. If the app has frozen rails, those gems also go here, under
261
- vendor/rails/. This directory is in the load path.
data/test/dummy/Rakefile DELETED
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env rake
2
- # Add your own tasks in files placed in lib/tasks ending in .rake,
3
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
-
5
- require File.expand_path('../config/application', __FILE__)
6
-
7
- Dummy::Application.load_tasks
Binary file