typus 3.0.2 → 3.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (343) hide show
  1. data/Gemfile +20 -9
  2. data/Gemfile.lock +93 -65
  3. data/MIT-LICENSE +1 -1
  4. data/README.md +61 -0
  5. data/Rakefile +5 -0
  6. data/app/controllers/admin/account_controller.rb +7 -10
  7. data/app/controllers/admin/base_controller.rb +16 -1
  8. data/app/controllers/admin/resources_controller.rb +270 -159
  9. data/app/controllers/admin/session_controller.rb +8 -9
  10. data/app/helpers/admin/base_helper.rb +13 -28
  11. data/app/helpers/admin/dashboard_helper.rb +4 -10
  12. data/app/helpers/admin/file_preview_helper.rb +70 -0
  13. data/app/helpers/admin/filters_helper.rb +64 -45
  14. data/app/helpers/admin/form_helper.rb +37 -62
  15. data/app/helpers/admin/relationships_helper.rb +63 -78
  16. data/app/helpers/admin/resources_helper.rb +10 -31
  17. data/app/helpers/admin/search_helper.rb +6 -9
  18. data/app/helpers/admin/sidebar_helper.rb +15 -20
  19. data/app/helpers/admin/table_helper.rb +79 -170
  20. data/app/mailers/admin/mailer.rb +1 -1
  21. data/app/views/admin/account/forgot_password.html.erb +2 -2
  22. data/app/views/admin/account/new.html.erb +8 -4
  23. data/app/views/admin/base/user_guide.html.erb +85 -0
  24. data/app/views/admin/dashboard/_sidebar.html.erb +3 -1
  25. data/app/views/admin/dashboard/show.html.erb +2 -2
  26. data/app/views/admin/dashboard/styles.html.erb +2 -2
  27. data/app/views/admin/helpers/_apps.html.erb +5 -4
  28. data/app/views/admin/helpers/_file_preview.html.erb +3 -0
  29. data/app/views/admin/helpers/_header.html.erb +3 -3
  30. data/app/views/admin/helpers/_login_info.html.erb +2 -2
  31. data/app/views/admin/helpers/dashboard/_applications.html.erb +6 -9
  32. data/app/views/admin/helpers/dashboard/_resources.html.erb +2 -3
  33. data/app/views/admin/helpers/filters/_filters.html.erb +1 -1
  34. data/app/views/admin/helpers/resources/_display_link_to_previous.html.erb +1 -1
  35. data/app/views/admin/helpers/resources/_errors.html.erb +10 -0
  36. data/app/views/admin/helpers/search/_search.html.erb +1 -1
  37. data/app/views/admin/helpers/sidebar/_sidebar.html.erb +6 -3
  38. data/app/views/admin/helpers/table/_table.html.erb +17 -5
  39. data/app/views/admin/mailer/reset_password_link.text.erb +2 -2
  40. data/app/views/admin/resources/_form.html.erb +3 -12
  41. data/app/views/admin/resources/edit.html.erb +7 -5
  42. data/app/views/admin/resources/index.html.erb +13 -18
  43. data/app/views/admin/resources/new.html.erb +4 -4
  44. data/app/views/admin/resources/show.html.erb +9 -13
  45. data/app/views/admin/session/new.html.erb +8 -4
  46. data/app/views/admin/templates/_belongs_to.html.erb +1 -1
  47. data/app/views/admin/templates/_boolean.html.erb +2 -2
  48. data/app/views/admin/templates/_date.html.erb +2 -2
  49. data/app/views/admin/templates/_datetime.html.erb +2 -2
  50. data/app/views/admin/templates/_file.html.erb +3 -19
  51. data/app/views/admin/templates/_has_n.html.erb +4 -4
  52. data/app/views/admin/templates/_has_one.html.erb +14 -0
  53. data/app/views/admin/templates/_password.html.erb +2 -2
  54. data/app/views/admin/templates/_profile_sidebar.html.erb +3 -0
  55. data/app/views/admin/templates/_relate_form.html.erb +2 -1
  56. data/app/views/admin/templates/_selector.html.erb +1 -1
  57. data/app/views/admin/templates/_string.html.erb +6 -6
  58. data/app/views/admin/templates/_text.html.erb +11 -4
  59. data/app/views/admin/templates/_time.html.erb +2 -2
  60. data/app/views/admin/templates/_tree.html.erb +1 -1
  61. data/app/views/layouts/admin/base.html.erb +7 -6
  62. data/app/views/layouts/admin/session.html.erb +4 -14
  63. data/config/{available_locales/ca_models.yml → locales/typus.ca.models.yml} +5 -4
  64. data/config/locales/typus.ca.yml +81 -0
  65. data/config/{available_locales/de_models.yml → locales/typus.de.models.yml} +6 -2
  66. data/config/locales/typus.de.yml +80 -0
  67. data/config/locales/typus.el.models.yml +17 -0
  68. data/config/locales/typus.el.yml +82 -0
  69. data/config/{available_locales/es_models.yml → locales/typus.es.models.yml} +9 -4
  70. data/config/locales/typus.es.yml +82 -0
  71. data/config/{available_locales/fr_models.yml → locales/typus.fr.models.yml} +8 -3
  72. data/config/locales/typus.fr.yml +87 -0
  73. data/config/{available_locales/hu_models.yml → locales/typus.hu.models.yml} +6 -2
  74. data/config/locales/typus.hu.yml +80 -0
  75. data/config/{available_locales/it_models.yml → locales/typus.it.models.yml} +7 -4
  76. data/config/locales/typus.it.yml +89 -0
  77. data/config/{available_locales/language_models.yml.template → locales/typus.locale.models.yml.template} +8 -4
  78. data/config/locales/typus.locale.yml.template +81 -0
  79. data/config/{available_locales/pt-BR_models.yml → locales/typus.pt-BR.models.yml} +6 -2
  80. data/config/locales/typus.pt-BR.yml +80 -0
  81. data/config/{available_locales/ru_models.yml → locales/typus.ru.models.yml} +6 -2
  82. data/config/locales/typus.ru.yml +80 -0
  83. data/config/locales/typus.zh-CN.models.yml +17 -0
  84. data/config/locales/typus.zh-CN.yml +79 -0
  85. data/config/routes.rb +11 -7
  86. data/lib/generators/templates/config/initializers/typus.rb +8 -5
  87. data/lib/generators/templates/config/initializers/typus_resources.rb +0 -3
  88. data/lib/generators/templates/config/typus/README +6 -6
  89. data/lib/generators/templates/config/typus/typus.yml +5 -5
  90. data/lib/generators/templates/controller.rb +1 -1
  91. data/lib/generators/templates/migration.rb +1 -0
  92. data/lib/generators/templates/public/admin/javascripts/application.js +0 -4
  93. data/lib/generators/templates/public/admin/javascripts/jquery-1.4.4.min.js +167 -0
  94. data/lib/generators/templates/public/admin/javascripts/jquery.application.js +16 -0
  95. data/lib/generators/templates/public/admin/javascripts/jquery.rails.js +50 -22
  96. data/lib/generators/templates/public/admin/stylesheets/screen.css +43 -34
  97. data/lib/generators/templates/public/admin/vendor/fancybox/fancy_loading.png +0 -0
  98. data/lib/generators/templates/public/admin/vendor/fancybox/jquery.easing-1.3.pack.js +32 -32
  99. data/lib/generators/templates/public/admin/vendor/fancybox/{jquery.fancybox-1.3.1.css → jquery.fancybox-1.3.4.css} +359 -363
  100. data/lib/generators/templates/public/admin/vendor/fancybox/jquery.fancybox-1.3.4.js +1156 -0
  101. data/lib/generators/templates/public/admin/vendor/fancybox/jquery.fancybox-1.3.4.pack.js +46 -0
  102. data/lib/generators/templates/public/admin/vendor/fancybox/jquery.mousewheel-3.0.4.pack.js +14 -0
  103. data/lib/generators/typus/assets_generator.rb +23 -0
  104. data/lib/generators/typus/controller_generator.rb +29 -0
  105. data/lib/generators/typus/migration_generator.rb +39 -20
  106. data/lib/generators/typus/typus_generator.rb +17 -57
  107. data/lib/generators/typus/views_generator.rb +2 -6
  108. data/lib/support/active_record.rb +8 -20
  109. data/lib/support/fake_user.rb +6 -1
  110. data/lib/support/hash.rb +1 -2
  111. data/lib/support/object.rb +4 -17
  112. data/lib/support/string.rb +34 -3
  113. data/lib/tasks/typus.rake +1 -1
  114. data/lib/typus.rb +60 -48
  115. data/lib/typus/actions.rb +27 -0
  116. data/lib/typus/authentication/base.rb +3 -4
  117. data/lib/typus/authentication/http_basic.rb +1 -1
  118. data/lib/typus/authentication/none.rb +1 -1
  119. data/lib/typus/authentication/session.rb +53 -108
  120. data/lib/typus/configuration.rb +13 -11
  121. data/lib/typus/filters.rb +12 -0
  122. data/lib/typus/format.rb +9 -13
  123. data/lib/typus/i18n.rb +30 -0
  124. data/lib/typus/orm/active_record.rb +97 -194
  125. data/lib/typus/orm/active_record/search.rb +91 -0
  126. data/lib/typus/resources.rb +6 -10
  127. data/lib/typus/user.rb +20 -40
  128. data/lib/typus/version.rb +1 -1
  129. metadata +77 -231
  130. data/CHANGELOG +0 -102
  131. data/README.rdoc +0 -48
  132. data/app/helpers/admin/preview_helper.rb +0 -46
  133. data/app/views/admin/helpers/_preview.html.erb +0 -13
  134. data/app/views/admin/templates/_has_many.html.erb +0 -22
  135. data/config/available_locales/ca.yml +0 -122
  136. data/config/available_locales/de.yml +0 -122
  137. data/config/available_locales/es.yml +0 -122
  138. data/config/available_locales/fr.yml +0 -127
  139. data/config/available_locales/hu.yml +0 -122
  140. data/config/available_locales/it.yml +0 -132
  141. data/config/available_locales/language.yml.template +0 -120
  142. data/config/available_locales/pt-BR.yml +0 -122
  143. data/config/available_locales/ru.yml +0 -122
  144. data/lib/generators/templates/functional_test.rb +0 -10
  145. data/lib/generators/templates/model.rb +0 -8
  146. data/lib/generators/templates/public/admin/images/ui-icons.png +0 -0
  147. data/lib/generators/templates/public/admin/javascripts/jquery-1.4.2.min.js +0 -154
  148. data/lib/generators/templates/public/admin/vendor/fancybox/jquery.fancybox-1.3.1.js +0 -1077
  149. data/lib/generators/templates/public/admin/vendor/fancybox/jquery.fancybox-1.3.1.pack.js +0 -44
  150. data/lib/generators/templates/public/admin/vendor/fancybox/jquery.mousewheel-3.0.2.pack.js +0 -13
  151. data/lib/typus/pagination.rb +0 -18
  152. data/test/factories.rb +0 -43
  153. data/test/fixtures/config/broken/application.yml +0 -68
  154. data/test/fixtures/config/broken/application_roles.yml +0 -20
  155. data/test/fixtures/config/broken/empty.yml +0 -0
  156. data/test/fixtures/config/broken/empty_roles.yml +0 -0
  157. data/test/fixtures/config/broken/undefined.yml +0 -3
  158. data/test/fixtures/config/broken/undefined_roles.yml +0 -6
  159. data/test/fixtures/config/default/typus.yml +0 -13
  160. data/test/fixtures/config/default/typus_roles.yml +0 -2
  161. data/test/fixtures/config/empty/empty_01.yml +0 -0
  162. data/test/fixtures/config/empty/empty_01_roles.yml +0 -0
  163. data/test/fixtures/config/empty/empty_02.yml +0 -0
  164. data/test/fixtures/config/empty/empty_02_roles.yml +0 -0
  165. data/test/fixtures/config/locales/es.yml +0 -10
  166. data/test/fixtures/config/namespaced/application.yml +0 -5
  167. data/test/fixtures/config/namespaced/application_roles.yml +0 -2
  168. data/test/fixtures/config/ordered/001_roles.yml +0 -2
  169. data/test/fixtures/config/ordered/002_roles.yml +0 -2
  170. data/test/fixtures/config/unordered/app_one_roles.yml +0 -2
  171. data/test/fixtures/config/unordered/app_two_roles.yml +0 -2
  172. data/test/fixtures/config/working/application.yml +0 -73
  173. data/test/fixtures/config/working/application_roles.yml +0 -24
  174. data/test/fixtures/config/working/typus.yml +0 -13
  175. data/test/fixtures/config/working/typus_roles.yml +0 -2
  176. data/test/fixtures/rails_app/Rakefile +0 -7
  177. data/test/fixtures/rails_app/app/controllers/admin/assets_controller.rb +0 -2
  178. data/test/fixtures/rails_app/app/controllers/admin/categories_controller.rb +0 -2
  179. data/test/fixtures/rails_app/app/controllers/admin/comments_controller.rb +0 -2
  180. data/test/fixtures/rails_app/app/controllers/admin/pages_controller.rb +0 -2
  181. data/test/fixtures/rails_app/app/controllers/admin/pictures_controller.rb +0 -2
  182. data/test/fixtures/rails_app/app/controllers/admin/posts_controller.rb +0 -2
  183. data/test/fixtures/rails_app/app/controllers/admin/status_controller.rb +0 -2
  184. data/test/fixtures/rails_app/app/controllers/admin/typus_users_controller.rb +0 -2
  185. data/test/fixtures/rails_app/app/controllers/admin/watch_dog_controller.rb +0 -2
  186. data/test/fixtures/rails_app/app/controllers/application_controller.rb +0 -3
  187. data/test/fixtures/rails_app/app/models/asset.rb +0 -5
  188. data/test/fixtures/rails_app/app/models/category.rb +0 -11
  189. data/test/fixtures/rails_app/app/models/comment.rb +0 -6
  190. data/test/fixtures/rails_app/app/models/custom_user.rb +0 -2
  191. data/test/fixtures/rails_app/app/models/delayed/task.rb +0 -5
  192. data/test/fixtures/rails_app/app/models/page.rb +0 -5
  193. data/test/fixtures/rails_app/app/models/picture.rb +0 -6
  194. data/test/fixtures/rails_app/app/models/post.rb +0 -21
  195. data/test/fixtures/rails_app/app/models/typus_user.rb +0 -8
  196. data/test/fixtures/rails_app/app/models/view.rb +0 -5
  197. data/test/fixtures/rails_app/app/views/admin/categories/_form.html.erb +0 -1
  198. data/test/fixtures/rails_app/app/views/admin/dashboard/_sidebar.html.erb +0 -1
  199. data/test/fixtures/rails_app/app/views/admin/mailer/reset_password_link.text.erb +0 -6
  200. data/test/fixtures/rails_app/app/views/admin/posts/_edit.html.erb +0 -1
  201. data/test/fixtures/rails_app/app/views/admin/posts/_index.html.erb +0 -1
  202. data/test/fixtures/rails_app/app/views/admin/posts/_new.html.erb +0 -1
  203. data/test/fixtures/rails_app/app/views/admin/posts/_show.html.erb +0 -1
  204. data/test/fixtures/rails_app/app/views/admin/posts/_sidebar.html.erb +0 -1
  205. data/test/fixtures/rails_app/app/views/admin/resources/_sidebar.html.erb +0 -1
  206. data/test/fixtures/rails_app/app/views/admin/status/index.html.erb +0 -1
  207. data/test/fixtures/rails_app/app/views/admin/templates/_datepicker.html.erb +0 -1
  208. data/test/fixtures/rails_app/config.ru +0 -4
  209. data/test/fixtures/rails_app/config/application.rb +0 -53
  210. data/test/fixtures/rails_app/config/boot.rb +0 -13
  211. data/test/fixtures/rails_app/config/database.yml +0 -14
  212. data/test/fixtures/rails_app/config/environment.rb +0 -5
  213. data/test/fixtures/rails_app/config/environments/test.rb +0 -34
  214. data/test/fixtures/rails_app/config/initializers/secret_token.rb +0 -7
  215. data/test/fixtures/rails_app/config/initializers/session_store.rb +0 -8
  216. data/test/fixtures/rails_app/config/initializers/typus.rb +0 -6
  217. data/test/fixtures/rails_app/config/routes.rb +0 -5
  218. data/test/fixtures/rails_app/config/typus/application.yml +0 -79
  219. data/test/fixtures/rails_app/config/typus/application_roles.yml +0 -25
  220. data/test/fixtures/rails_app/config/typus/typus.yml +0 -12
  221. data/test/fixtures/rails_app/config/typus/typus_roles.yml +0 -2
  222. data/test/fixtures/rails_app/db/test.sqlite3 +0 -0
  223. data/test/fixtures/rails_app/tmp/export-posts-20101012213057.csv +0 -2
  224. data/test/fixtures/rails_app/tmp/export-posts-20101012213132.csv +0 -2
  225. data/test/fixtures/rails_app/tmp/export-posts-20101012213234.csv +0 -2
  226. data/test/fixtures/rails_app/tmp/export-posts-20101012213506.csv +0 -2
  227. data/test/fixtures/rails_app/tmp/export-posts-20101012215057.csv +0 -2
  228. data/test/fixtures/rails_app/tmp/export-posts-20101012215217.csv +0 -2
  229. data/test/fixtures/rails_app/tmp/export-posts-20101012215415.csv +0 -2
  230. data/test/fixtures/rails_app/tmp/export-posts-20101012215443.csv +0 -2
  231. data/test/fixtures/rails_app/tmp/export-posts-20101012215509.csv +0 -2
  232. data/test/fixtures/rails_app/tmp/export-posts-20101012215528.csv +0 -2
  233. data/test/fixtures/rails_app/tmp/export-posts-20101012215551.csv +0 -2
  234. data/test/fixtures/rails_app/tmp/export-posts-20101012215615.csv +0 -2
  235. data/test/fixtures/rails_app/tmp/export-posts-20101012215640.csv +0 -2
  236. data/test/fixtures/rails_app/tmp/export-posts-20101012215714.csv +0 -2
  237. data/test/fixtures/rails_app/tmp/export-posts-20101012215744.csv +0 -2
  238. data/test/fixtures/rails_app/tmp/export-posts-20101012215814.csv +0 -2
  239. data/test/fixtures/rails_app/tmp/export-posts-20101012215836.csv +0 -2
  240. data/test/fixtures/rails_app/tmp/export-posts-20101012215906.csv +0 -2
  241. data/test/fixtures/rails_app/tmp/export-posts-20101012220659.csv +0 -2
  242. data/test/fixtures/rails_app/tmp/export-posts-20101012221043.csv +0 -2
  243. data/test/fixtures/rails_app/tmp/export-posts-20101012221258.csv +0 -2
  244. data/test/fixtures/rails_app/tmp/export-posts-20101012222558.csv +0 -2
  245. data/test/fixtures/rails_app/tmp/export-posts-20101012222752.csv +0 -2
  246. data/test/fixtures/rails_app/tmp/export-posts-20101012222848.csv +0 -2
  247. data/test/fixtures/rails_app/tmp/export-posts-20101012223433.csv +0 -2
  248. data/test/fixtures/rails_app/tmp/export-posts-20101012223535.csv +0 -2
  249. data/test/fixtures/rails_app/tmp/export-posts-20101012224003.csv +0 -2
  250. data/test/fixtures/rails_app/tmp/export-posts-20101012224052.csv +0 -2
  251. data/test/fixtures/rails_app/tmp/export-posts-20101012224109.csv +0 -2
  252. data/test/fixtures/rails_app/tmp/export-posts-20101012224139.csv +0 -2
  253. data/test/fixtures/rails_app/tmp/export-posts-20101012224205.csv +0 -2
  254. data/test/fixtures/rails_app/tmp/export-posts-20101012224243.csv +0 -2
  255. data/test/fixtures/rails_app/tmp/export-posts-20101012225119.csv +0 -2
  256. data/test/fixtures/rails_app/tmp/export-posts-20101013063215.csv +0 -2
  257. data/test/fixtures/rails_app/tmp/export-posts-20101013063300.csv +0 -2
  258. data/test/fixtures/rails_app/tmp/export-posts-20101013063352.csv +0 -2
  259. data/test/fixtures/rails_app/tmp/export-posts-20101013063427.csv +0 -2
  260. data/test/fixtures/rails_app/tmp/export-posts-20101013063448.csv +0 -2
  261. data/test/fixtures/rails_app/tmp/export-posts-20101013063530.csv +0 -2
  262. data/test/fixtures/rails_app/tmp/export-posts-20101013063559.csv +0 -2
  263. data/test/fixtures/rails_app/tmp/export-posts-20101013063646.csv +0 -2
  264. data/test/fixtures/rails_app/tmp/export-posts-20101013063737.csv +0 -2
  265. data/test/fixtures/rails_app/tmp/export-posts-20101013063822.csv +0 -2
  266. data/test/fixtures/rails_app/tmp/export-posts-20101013063837.csv +0 -2
  267. data/test/fixtures/rails_app/tmp/export-posts-20101013063919.csv +0 -2
  268. data/test/fixtures/rails_app/tmp/export-posts-20101013063939.csv +0 -2
  269. data/test/fixtures/rails_app/tmp/export-posts-20101013063952.csv +0 -2
  270. data/test/fixtures/rails_app/tmp/export-posts-20101013064220.csv +0 -2
  271. data/test/fixtures/rails_app/tmp/export-posts-20101013064253.csv +0 -2
  272. data/test/fixtures/rails_app/tmp/export-posts-20101013064318.csv +0 -2
  273. data/test/fixtures/rails_app/tmp/export-posts-20101013064404.csv +0 -2
  274. data/test/fixtures/rails_app/tmp/export-posts-20101013064452.csv +0 -2
  275. data/test/fixtures/rails_app/tmp/export-posts-20101013064536.csv +0 -2
  276. data/test/fixtures/rails_app/tmp/export-posts-20101013064652.csv +0 -2
  277. data/test/fixtures/rails_app/tmp/export-posts-20101013064845.csv +0 -2
  278. data/test/fixtures/rails_app/tmp/export-posts-20101013065023.csv +0 -2
  279. data/test/fixtures/rails_app/tmp/export-posts-20101013065137.csv +0 -2
  280. data/test/fixtures/rails_app/tmp/export-posts-20101013065713.csv +0 -2
  281. data/test/fixtures/rails_app/tmp/export-posts-20101013065954.csv +0 -2
  282. data/test/fixtures/rails_app/tmp/export-posts-20101013070057.csv +0 -2
  283. data/test/fixtures/rails_app/tmp/export-posts-20101013070116.csv +0 -2
  284. data/test/fixtures/rails_app/tmp/export-posts-20101013070156.csv +0 -2
  285. data/test/fixtures/rails_app/tmp/export-posts-20101013070349.csv +0 -2
  286. data/test/fixtures/rails_app/tmp/export-posts-20101013070429.csv +0 -2
  287. data/test/fixtures/rails_app/tmp/export-posts-20101013070448.csv +0 -2
  288. data/test/fixtures/rails_app/tmp/export-posts-20101013070514.csv +0 -2
  289. data/test/fixtures/rails_app/tmp/export-posts-20101013070709.csv +0 -2
  290. data/test/fixtures/rails_app/tmp/export-posts-20101013070745.csv +0 -2
  291. data/test/fixtures/rails_app/tmp/export-posts-20101013070809.csv +0 -2
  292. data/test/fixtures/rails_app/tmp/export-posts-20101013070905.csv +0 -2
  293. data/test/fixtures/rails_app/tmp/export-posts-20101013070955.csv +0 -2
  294. data/test/fixtures/rails_app/tmp/export-posts-20101013071116.csv +0 -2
  295. data/test/fixtures/rails_app/tmp/export-posts-20101013071209.csv +0 -2
  296. data/test/fixtures/rails_app/tmp/export-posts-20101013071335.csv +0 -2
  297. data/test/fixtures/rails_app/tmp/export-posts-20101013071632.csv +0 -2
  298. data/test/fixtures/rails_app/tmp/export-posts-20101013071643.csv +0 -2
  299. data/test/fixtures/rails_app/tmp/export-posts-20101013071735.csv +0 -2
  300. data/test/fixtures/rails_app/tmp/export-posts-20101013071749.csv +0 -2
  301. data/test/fixtures/rails_app/tmp/export-posts-20101013072030.csv +0 -2
  302. data/test/fixtures/rails_app/tmp/export-posts-20101013072050.csv +0 -2
  303. data/test/fixtures/rails_app/tmp/export-posts-20101013072108.csv +0 -2
  304. data/test/fixtures/rails_app/tmp/export-posts-20101013072713.csv +0 -2
  305. data/test/fixtures/rails_app/tmp/export-posts-20101013072751.csv +0 -2
  306. data/test/fixtures/rails_app/tmp/export-posts-20101013072912.csv +0 -2
  307. data/test/fixtures/rails_app/tmp/export-posts-20101013074546.csv +0 -2
  308. data/test/fixtures/rails_app/tmp/export-posts-20101018180512.csv +0 -2
  309. data/test/fixtures/rails_app/tmp/export-posts-20101018183359.csv +0 -2
  310. data/test/fixtures/rails_app/tmp/export-posts-20101018183608.csv +0 -2
  311. data/test/fixtures/rails_app/tmp/export-posts-20101018183759.csv +0 -2
  312. data/test/functional/admin/account_controller_test.rb +0 -90
  313. data/test/functional/admin/assets_controller_test.rb +0 -55
  314. data/test/functional/admin/categories_controller_test.rb +0 -62
  315. data/test/functional/admin/comments_controller_test.rb +0 -21
  316. data/test/functional/admin/dashboard_controller_test.rb +0 -138
  317. data/test/functional/admin/posts_controller_test.rb +0 -548
  318. data/test/functional/admin/session_controller_test.rb +0 -85
  319. data/test/functional/admin/status_controller_test.rb +0 -46
  320. data/test/functional/admin/typus_users_controller_test.rb +0 -159
  321. data/test/helpers/admin/base_helper_test.rb +0 -67
  322. data/test/helpers/admin/dashboard_helper_test.rb +0 -19
  323. data/test/helpers/admin/form_helper_test.rb +0 -117
  324. data/test/helpers/admin/resources_helper_test.rb +0 -64
  325. data/test/helpers/admin/sidebar_helper_test.rb +0 -274
  326. data/test/helpers/admin/table_helper_test.rb +0 -219
  327. data/test/integration/login_test.rb +0 -13
  328. data/test/integration_test_helper.rb +0 -21
  329. data/test/lib/support/active_record_test.rb +0 -86
  330. data/test/lib/support/array_test.rb +0 -11
  331. data/test/lib/support/hash_test.rb +0 -11
  332. data/test/lib/support/string_test.rb +0 -39
  333. data/test/lib/typus/active_record_test.rb +0 -451
  334. data/test/lib/typus/configuration_test.rb +0 -52
  335. data/test/lib/typus/resource_test.rb +0 -17
  336. data/test/lib/typus/routes_test.rb +0 -29
  337. data/test/lib/typus_test.rb +0 -107
  338. data/test/schema.rb +0 -100
  339. data/test/test_helper.rb +0 -16
  340. data/test/unit/admin/mailer_test.rb +0 -32
  341. data/test/unit/typus_user_roles_test.rb +0 -105
  342. data/test/unit/typus_user_test.rb +0 -142
  343. data/typus.gemspec +0 -25
@@ -0,0 +1,91 @@
1
+ module Typus
2
+ module Orm
3
+ module ClassMethods
4
+ module Search
5
+
6
+ def build_search_conditions(key, value)
7
+ Array.new.tap do |search|
8
+ query = ActiveRecord::Base.connection.quote_string(value.downcase)
9
+ typus_search_fields.each do |key, value|
10
+ _query = case value
11
+ when "=" then query
12
+ when "^" then "#{query}%"
13
+ when "@" then "%#{query}%"
14
+ end
15
+ table_key = (adapter == 'postgresql') ? "LOWER(TEXT(#{table_name}.#{key}))" : "#{table_name}.#{key}"
16
+ search << "#{table_key} LIKE '#{_query}'"
17
+ end
18
+ end.join(" OR ")
19
+ end
20
+
21
+ def build_boolean_conditions(key, value)
22
+ { key => (value == 'true') ? true : false }
23
+ end
24
+
25
+ def build_datetime_conditions(key, value)
26
+ tomorrow = Time.zone.now.beginning_of_day.tomorrow
27
+
28
+ interval = case value
29
+ when 'today' then 0.days.ago.beginning_of_day..tomorrow
30
+ when 'last_few_days' then 3.days.ago.beginning_of_day..tomorrow
31
+ when 'last_7_days' then 6.days.ago.beginning_of_day..tomorrow
32
+ when 'last_30_days' then 30.days.ago.beginning_of_day..tomorrow
33
+ end
34
+
35
+ ["#{table_name}.#{key} BETWEEN ? AND ?", interval.first.to_s(:db), interval.last.to_s(:db)]
36
+ end
37
+
38
+ def build_date_conditions(key, value)
39
+ tomorrow = 0.days.ago.tomorrow.to_date
40
+
41
+ interval = case value
42
+ when 'today' then 0.days.ago.to_date..tomorrow
43
+ when 'last_few_days' then 3.days.ago.to_date..tomorrow
44
+ when 'last_7_days' then 6.days.ago.to_date..tomorrow
45
+ when 'last_30_days' then 30.days.ago.to_date..tomorrow
46
+ end
47
+
48
+ ["#{table_name}.#{key} BETWEEN ? AND ?", interval.first.to_s(:db), interval.last.to_s(:db)]
49
+ end
50
+
51
+ def build_string_conditions(key, value)
52
+ { key => value }
53
+ end
54
+
55
+ alias :build_integer_conditions :build_string_conditions
56
+ alias :build_belongs_to_conditions :build_string_conditions
57
+
58
+ def build_has_many_conditions(key, value)
59
+ # TODO: Detect the primary_key for this object.
60
+ ["#{key}.id = ?", value]
61
+ end
62
+
63
+ ##
64
+ # To build conditions we reject all those params which are not model
65
+ # fields.
66
+ #
67
+ # Note: We still want to be able to search so the search param is not
68
+ # rejected.
69
+ #
70
+ def build_conditions(params)
71
+ Array.new.tap do |conditions|
72
+ query_params = params.dup
73
+ query_params.reject! { |k, v| !model_fields.keys.include?(k.to_sym) && !model_relationships.keys.include?(k.to_sym) && !(k.to_sym == :search) }
74
+
75
+ query_params.compact.each do |key, value|
76
+ filter_type = model_fields[key.to_sym] || model_relationships[key.to_sym] || key
77
+ conditions << send("build_#{filter_type}_conditions", key, value)
78
+ end
79
+ end
80
+ end
81
+
82
+ def build_joins(params)
83
+ query_params = params.dup
84
+ query_params.reject! { |k, v| !model_relationships.keys.include?(k.to_sym) }
85
+ query_params.compact.map { |k, v| k.to_sym }
86
+ end
87
+
88
+ end
89
+ end
90
+ end
91
+ end
@@ -12,6 +12,9 @@ module Typus
12
12
  yield self
13
13
  end
14
14
 
15
+ mattr_accessor :action_after_save
16
+ @@action_after_save = "edit"
17
+
15
18
  mattr_accessor :default_action_on_item
16
19
  @@default_action_on_item = "edit"
17
20
 
@@ -21,28 +24,21 @@ module Typus
21
24
  mattr_accessor :form_rows
22
25
  @@form_rows = 15
23
26
 
24
- mattr_accessor :action_after_save
25
- @@action_after_save = "edit"
26
-
27
27
  mattr_accessor :minute_step
28
28
  @@minute_step = 5
29
29
 
30
- mattr_accessor :human_nil
31
- @@human_nil = "nil"
32
-
33
30
  mattr_accessor :only_user_items
34
31
  @@only_user_items = false
35
32
 
36
33
  mattr_accessor :per_page
37
34
  @@per_page = 15
38
35
 
36
+ mattr_accessor :sortable
37
+ @@sortable = true
38
+
39
39
  mattr_accessor :start_year
40
40
  @@start_year = nil
41
41
 
42
- # Sets a has and belongs to many limit for the dropdowns.
43
- mattr_accessor :habtm_limit
44
- @@habtm_limit = 500
45
-
46
42
  def self.method_missing(*args)
47
43
  nil
48
44
  end
data/lib/typus/user.rb CHANGED
@@ -15,15 +15,18 @@ module Typus
15
15
  attr_accessor :password
16
16
  attr_protected :status
17
17
 
18
- validates_format_of :email, :with => /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/
19
- validates_presence_of :email
20
- validates_uniqueness_of :email
18
+ validates :email,
19
+ :presence => true,
20
+ :uniqueness => true,
21
+ :format => { :with => /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/ }
22
+
23
+ validates :password,
24
+ :confirmation => { :if => :password_required? },
25
+ :presence => { :if => :password_required? }
21
26
 
22
- validates_confirmation_of :password, :if => :password_required?
23
27
  validates_length_of :password, :within => 6..40, :if => :password_required?
24
- validates_presence_of :password, :if => :password_required?
25
28
 
26
- validates_presence_of :role
29
+ validates :role, :presence => true
27
30
 
28
31
  before_save :initialize_salt, :encrypt_password, :initialize_token
29
32
 
@@ -52,7 +55,7 @@ module Typus
52
55
  :password => options[:password],
53
56
  :password_confirmation => options[:password],
54
57
  :role => options[:role],
55
- :preferences => { :locale => I18n.default_locale.to_s }
58
+ :preferences => { :locale => ::I18n.default_locale.to_s }
56
59
  end
57
60
 
58
61
  end
@@ -60,7 +63,7 @@ module Typus
60
63
  module InstanceMethods
61
64
 
62
65
  def name
63
- full_name = [first_name, last_name].compact.delete_if { |s| s.empty? }
66
+ full_name = [first_name, last_name].delete_if { |s| s.blank? }
64
67
  full_name.any? ? full_name.join(" ") : email
65
68
  end
66
69
 
@@ -80,35 +83,15 @@ module Typus
80
83
  Typus.application(name).delete_if { |r| !resources.keys.include?(r) }
81
84
  end
82
85
 
83
- #--
84
- # TODO: Rename action to mapping and refactor the _action case
85
- # statement.
86
- #++
87
86
  def can?(action, resource, options = {})
88
-
89
- # Sometimes we are getting a Class, so we need to convert it
90
- # to string.
91
- resource = resource.to_s
87
+ resource = resource.model_name if resource.is_a?(Class)
92
88
 
93
89
  return false if !resources.include?(resource)
94
90
  return true if resources[resource].include?("all")
95
91
 
96
- _action = if options[:special]
97
- action
98
- else
99
- case action
100
- when "new", "create" then "create"
101
- when "index", "show" then "read"
102
- when "edit", "update",
103
- "position", "toggle",
104
- "relate", "unrelate", "detach" then "update"
105
- when "destroy" then "delete"
106
- else action
107
- end
108
- end
109
-
110
- resources[resource].extract_settings.include?(_action)
92
+ action = options[:special] ? action : action.acl_action_mapper
111
93
 
94
+ resources[resource].extract_settings.include?(action)
112
95
  end
113
96
 
114
97
  def cannot?(*args)
@@ -123,22 +106,19 @@ module Typus
123
106
  !is_root?
124
107
  end
125
108
 
126
- def language
127
- preferences[:locale]
128
- rescue
129
- I18n.default_locale.to_s
109
+ def locale
110
+ (preferences && preferences[:locale]) ? preferences[:locale] : ::I18n.default_locale
130
111
  end
131
112
 
132
- def language=(locale)
113
+ def locale=(locale)
133
114
  options = { :locale => locale }
134
- self.preferences.merge!(options)
135
- rescue
136
- self.preferences = {}
137
- retry
115
+ self.preferences ||= {}
116
+ self.preferences[:locale] = locale
138
117
  end
139
118
 
140
119
  protected
141
120
 
121
+ # TODO: Update the hash generation by a harder one ...
142
122
  def generate_hash(string)
143
123
  Digest::SHA1.hexdigest(string)
144
124
  end
data/lib/typus/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Typus
2
- VERSION = "3.0.2"
2
+ VERSION = "3.0.4"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typus
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 2
10
- version: 3.0.2
9
+ - 4
10
+ version: 3.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Francesc Esplugas
@@ -15,13 +15,43 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-22 00:00:00 +02:00
18
+ date: 2011-01-21 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: will_paginate
22
+ name: fastercsv
23
23
  prerelease: false
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - "="
28
+ - !ruby/object:Gem::Version
29
+ hash: 5
30
+ segments:
31
+ - 1
32
+ - 5
33
+ - 3
34
+ version: 1.5.3
35
+ type: :runtime
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: render_inheritable
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ hash: 3
46
+ segments:
47
+ - 0
48
+ version: "0"
49
+ type: :runtime
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
52
+ name: will_paginate
53
+ prerelease: false
54
+ requirement: &id003 !ruby/object:Gem::Requirement
25
55
  none: false
26
56
  requirements:
27
57
  - - ~>
@@ -33,8 +63,8 @@ dependencies:
33
63
  - pre2
34
64
  version: 3.0.pre2
35
65
  type: :runtime
36
- version_requirements: *id001
37
- description: Awesone admin scaffold generator for Ruby on Rails applications.
66
+ version_requirements: *id003
67
+ description: Awesome admin scaffold generator for Ruby on Rails applications.
38
68
  email:
39
69
  - core@typuscms.com
40
70
  executables: []
@@ -52,9 +82,9 @@ files:
52
82
  - app/controllers/admin/session_controller.rb
53
83
  - app/helpers/admin/base_helper.rb
54
84
  - app/helpers/admin/dashboard_helper.rb
85
+ - app/helpers/admin/file_preview_helper.rb
55
86
  - app/helpers/admin/filters_helper.rb
56
87
  - app/helpers/admin/form_helper.rb
57
- - app/helpers/admin/preview_helper.rb
58
88
  - app/helpers/admin/relationships_helper.rb
59
89
  - app/helpers/admin/resources_helper.rb
60
90
  - app/helpers/admin/search_helper.rb
@@ -63,18 +93,20 @@ files:
63
93
  - app/mailers/admin/mailer.rb
64
94
  - app/views/admin/account/forgot_password.html.erb
65
95
  - app/views/admin/account/new.html.erb
96
+ - app/views/admin/base/user_guide.html.erb
66
97
  - app/views/admin/dashboard/_sidebar.html.erb
67
98
  - app/views/admin/dashboard/show.html.erb
68
99
  - app/views/admin/dashboard/styles.html.erb
69
100
  - app/views/admin/helpers/_apps.html.erb
101
+ - app/views/admin/helpers/_file_preview.html.erb
70
102
  - app/views/admin/helpers/_flash_message.html.erb
71
103
  - app/views/admin/helpers/_header.html.erb
72
104
  - app/views/admin/helpers/_login_info.html.erb
73
- - app/views/admin/helpers/_preview.html.erb
74
105
  - app/views/admin/helpers/dashboard/_applications.html.erb
75
106
  - app/views/admin/helpers/dashboard/_resources.html.erb
76
107
  - app/views/admin/helpers/filters/_filters.html.erb
77
108
  - app/views/admin/helpers/resources/_display_link_to_previous.html.erb
109
+ - app/views/admin/helpers/resources/_errors.html.erb
78
110
  - app/views/admin/helpers/search/_search.html.erb
79
111
  - app/views/admin/helpers/sidebar/_sidebar.html.erb
80
112
  - app/views/admin/helpers/table/_table.html.erb
@@ -94,10 +126,10 @@ files:
94
126
  - app/views/admin/templates/_date.html.erb
95
127
  - app/views/admin/templates/_datetime.html.erb
96
128
  - app/views/admin/templates/_file.html.erb
97
- - app/views/admin/templates/_has_many.html.erb
98
129
  - app/views/admin/templates/_has_n.html.erb
99
130
  - app/views/admin/templates/_has_one.html.erb
100
131
  - app/views/admin/templates/_password.html.erb
132
+ - app/views/admin/templates/_profile_sidebar.html.erb
101
133
  - app/views/admin/templates/_relate_form.html.erb
102
134
  - app/views/admin/templates/_selector.html.erb
103
135
  - app/views/admin/templates/_string.html.erb
@@ -106,25 +138,28 @@ files:
106
138
  - app/views/admin/templates/_tree.html.erb
107
139
  - app/views/layouts/admin/base.html.erb
108
140
  - app/views/layouts/admin/session.html.erb
109
- - CHANGELOG
110
- - config/available_locales/ca.yml
111
- - config/available_locales/ca_models.yml
112
- - config/available_locales/de.yml
113
- - config/available_locales/de_models.yml
114
- - config/available_locales/es.yml
115
- - config/available_locales/es_models.yml
116
- - config/available_locales/fr.yml
117
- - config/available_locales/fr_models.yml
118
- - config/available_locales/hu.yml
119
- - config/available_locales/hu_models.yml
120
- - config/available_locales/it.yml
121
- - config/available_locales/it_models.yml
122
- - config/available_locales/language.yml.template
123
- - config/available_locales/language_models.yml.template
124
- - config/available_locales/pt-BR.yml
125
- - config/available_locales/pt-BR_models.yml
126
- - config/available_locales/ru.yml
127
- - config/available_locales/ru_models.yml
141
+ - config/locales/typus.ca.models.yml
142
+ - config/locales/typus.ca.yml
143
+ - config/locales/typus.de.models.yml
144
+ - config/locales/typus.de.yml
145
+ - config/locales/typus.el.models.yml
146
+ - config/locales/typus.el.yml
147
+ - config/locales/typus.es.models.yml
148
+ - config/locales/typus.es.yml
149
+ - config/locales/typus.fr.models.yml
150
+ - config/locales/typus.fr.yml
151
+ - config/locales/typus.hu.models.yml
152
+ - config/locales/typus.hu.yml
153
+ - config/locales/typus.it.models.yml
154
+ - config/locales/typus.it.yml
155
+ - config/locales/typus.locale.models.yml.template
156
+ - config/locales/typus.locale.yml.template
157
+ - config/locales/typus.pt-BR.models.yml
158
+ - config/locales/typus.pt-BR.yml
159
+ - config/locales/typus.ru.models.yml
160
+ - config/locales/typus.ru.yml
161
+ - config/locales/typus.zh-CN.models.yml
162
+ - config/locales/typus.zh-CN.yml
128
163
  - config/routes.rb
129
164
  - Gemfile
130
165
  - Gemfile.lock
@@ -137,12 +172,10 @@ files:
137
172
  - lib/generators/templates/config/typus/typus.yml
138
173
  - lib/generators/templates/config/typus/typus_roles.yml
139
174
  - lib/generators/templates/controller.rb
140
- - lib/generators/templates/functional_test.rb
141
175
  - lib/generators/templates/migration.rb
142
- - lib/generators/templates/model.rb
143
- - lib/generators/templates/public/admin/images/ui-icons.png
144
176
  - lib/generators/templates/public/admin/javascripts/application.js
145
- - lib/generators/templates/public/admin/javascripts/jquery-1.4.2.min.js
177
+ - lib/generators/templates/public/admin/javascripts/jquery-1.4.4.min.js
178
+ - lib/generators/templates/public/admin/javascripts/jquery.application.js
146
179
  - lib/generators/templates/public/admin/javascripts/jquery.rails.js
147
180
  - lib/generators/templates/public/admin/javascripts/jquery.searchField.js
148
181
  - lib/generators/templates/public/admin/stylesheets/application.css
@@ -168,11 +201,13 @@ files:
168
201
  - lib/generators/templates/public/admin/vendor/fancybox/fancybox-y.png
169
202
  - lib/generators/templates/public/admin/vendor/fancybox/fancybox.png
170
203
  - lib/generators/templates/public/admin/vendor/fancybox/jquery.easing-1.3.pack.js
171
- - lib/generators/templates/public/admin/vendor/fancybox/jquery.fancybox-1.3.1.css
172
- - lib/generators/templates/public/admin/vendor/fancybox/jquery.fancybox-1.3.1.js
173
- - lib/generators/templates/public/admin/vendor/fancybox/jquery.fancybox-1.3.1.pack.js
174
- - lib/generators/templates/public/admin/vendor/fancybox/jquery.mousewheel-3.0.2.pack.js
204
+ - lib/generators/templates/public/admin/vendor/fancybox/jquery.fancybox-1.3.4.css
205
+ - lib/generators/templates/public/admin/vendor/fancybox/jquery.fancybox-1.3.4.js
206
+ - lib/generators/templates/public/admin/vendor/fancybox/jquery.fancybox-1.3.4.pack.js
207
+ - lib/generators/templates/public/admin/vendor/fancybox/jquery.mousewheel-3.0.4.pack.js
175
208
  - lib/generators/templates/view.html.erb
209
+ - lib/generators/typus/assets_generator.rb
210
+ - lib/generators/typus/controller_generator.rb
176
211
  - lib/generators/typus/migration_generator.rb
177
212
  - lib/generators/typus/typus_generator.rb
178
213
  - lib/generators/typus/views_generator.rb
@@ -183,214 +218,25 @@ files:
183
218
  - lib/support/object.rb
184
219
  - lib/support/string.rb
185
220
  - lib/tasks/typus.rake
221
+ - lib/typus/actions.rb
186
222
  - lib/typus/authentication/base.rb
187
223
  - lib/typus/authentication/http_basic.rb
188
224
  - lib/typus/authentication/none.rb
189
225
  - lib/typus/authentication/session.rb
190
226
  - lib/typus/configuration.rb
191
227
  - lib/typus/engine.rb
228
+ - lib/typus/filters.rb
192
229
  - lib/typus/format.rb
230
+ - lib/typus/i18n.rb
231
+ - lib/typus/orm/active_record/search.rb
193
232
  - lib/typus/orm/active_record.rb
194
- - lib/typus/pagination.rb
195
233
  - lib/typus/resources.rb
196
234
  - lib/typus/user.rb
197
235
  - lib/typus/version.rb
198
236
  - lib/typus.rb
199
237
  - MIT-LICENSE
200
238
  - Rakefile
201
- - README.rdoc
202
- - test/factories.rb
203
- - test/fixtures/config/broken/application.yml
204
- - test/fixtures/config/broken/application_roles.yml
205
- - test/fixtures/config/broken/empty.yml
206
- - test/fixtures/config/broken/empty_roles.yml
207
- - test/fixtures/config/broken/undefined.yml
208
- - test/fixtures/config/broken/undefined_roles.yml
209
- - test/fixtures/config/default/typus.yml
210
- - test/fixtures/config/default/typus_roles.yml
211
- - test/fixtures/config/empty/empty_01.yml
212
- - test/fixtures/config/empty/empty_01_roles.yml
213
- - test/fixtures/config/empty/empty_02.yml
214
- - test/fixtures/config/empty/empty_02_roles.yml
215
- - test/fixtures/config/locales/es.yml
216
- - test/fixtures/config/namespaced/application.yml
217
- - test/fixtures/config/namespaced/application_roles.yml
218
- - test/fixtures/config/ordered/001_roles.yml
219
- - test/fixtures/config/ordered/002_roles.yml
220
- - test/fixtures/config/unordered/app_one_roles.yml
221
- - test/fixtures/config/unordered/app_two_roles.yml
222
- - test/fixtures/config/working/application.yml
223
- - test/fixtures/config/working/application_roles.yml
224
- - test/fixtures/config/working/typus.yml
225
- - test/fixtures/config/working/typus_roles.yml
226
- - test/fixtures/rails_app/app/controllers/admin/assets_controller.rb
227
- - test/fixtures/rails_app/app/controllers/admin/categories_controller.rb
228
- - test/fixtures/rails_app/app/controllers/admin/comments_controller.rb
229
- - test/fixtures/rails_app/app/controllers/admin/pages_controller.rb
230
- - test/fixtures/rails_app/app/controllers/admin/pictures_controller.rb
231
- - test/fixtures/rails_app/app/controllers/admin/posts_controller.rb
232
- - test/fixtures/rails_app/app/controllers/admin/status_controller.rb
233
- - test/fixtures/rails_app/app/controllers/admin/typus_users_controller.rb
234
- - test/fixtures/rails_app/app/controllers/admin/watch_dog_controller.rb
235
- - test/fixtures/rails_app/app/controllers/application_controller.rb
236
- - test/fixtures/rails_app/app/models/asset.rb
237
- - test/fixtures/rails_app/app/models/category.rb
238
- - test/fixtures/rails_app/app/models/comment.rb
239
- - test/fixtures/rails_app/app/models/custom_user.rb
240
- - test/fixtures/rails_app/app/models/delayed/task.rb
241
- - test/fixtures/rails_app/app/models/page.rb
242
- - test/fixtures/rails_app/app/models/picture.rb
243
- - test/fixtures/rails_app/app/models/post.rb
244
- - test/fixtures/rails_app/app/models/typus_user.rb
245
- - test/fixtures/rails_app/app/models/view.rb
246
- - test/fixtures/rails_app/app/views/admin/categories/_form.html.erb
247
- - test/fixtures/rails_app/app/views/admin/dashboard/_sidebar.html.erb
248
- - test/fixtures/rails_app/app/views/admin/mailer/reset_password_link.text.erb
249
- - test/fixtures/rails_app/app/views/admin/posts/_edit.html.erb
250
- - test/fixtures/rails_app/app/views/admin/posts/_index.html.erb
251
- - test/fixtures/rails_app/app/views/admin/posts/_new.html.erb
252
- - test/fixtures/rails_app/app/views/admin/posts/_show.html.erb
253
- - test/fixtures/rails_app/app/views/admin/posts/_sidebar.html.erb
254
- - test/fixtures/rails_app/app/views/admin/resources/_sidebar.html.erb
255
- - test/fixtures/rails_app/app/views/admin/status/index.html.erb
256
- - test/fixtures/rails_app/app/views/admin/templates/_datepicker.html.erb
257
- - test/fixtures/rails_app/config/application.rb
258
- - test/fixtures/rails_app/config/boot.rb
259
- - test/fixtures/rails_app/config/database.yml
260
- - test/fixtures/rails_app/config/environment.rb
261
- - test/fixtures/rails_app/config/environments/test.rb
262
- - test/fixtures/rails_app/config/initializers/secret_token.rb
263
- - test/fixtures/rails_app/config/initializers/session_store.rb
264
- - test/fixtures/rails_app/config/initializers/typus.rb
265
- - test/fixtures/rails_app/config/routes.rb
266
- - test/fixtures/rails_app/config/typus/application.yml
267
- - test/fixtures/rails_app/config/typus/application_roles.yml
268
- - test/fixtures/rails_app/config/typus/typus.yml
269
- - test/fixtures/rails_app/config/typus/typus_roles.yml
270
- - test/fixtures/rails_app/config.ru
271
- - test/fixtures/rails_app/db/test.sqlite3
272
- - test/fixtures/rails_app/Rakefile
273
- - test/fixtures/rails_app/tmp/export-posts-20101012213057.csv
274
- - test/fixtures/rails_app/tmp/export-posts-20101012213132.csv
275
- - test/fixtures/rails_app/tmp/export-posts-20101012213234.csv
276
- - test/fixtures/rails_app/tmp/export-posts-20101012213506.csv
277
- - test/fixtures/rails_app/tmp/export-posts-20101012215057.csv
278
- - test/fixtures/rails_app/tmp/export-posts-20101012215217.csv
279
- - test/fixtures/rails_app/tmp/export-posts-20101012215415.csv
280
- - test/fixtures/rails_app/tmp/export-posts-20101012215443.csv
281
- - test/fixtures/rails_app/tmp/export-posts-20101012215509.csv
282
- - test/fixtures/rails_app/tmp/export-posts-20101012215528.csv
283
- - test/fixtures/rails_app/tmp/export-posts-20101012215551.csv
284
- - test/fixtures/rails_app/tmp/export-posts-20101012215615.csv
285
- - test/fixtures/rails_app/tmp/export-posts-20101012215640.csv
286
- - test/fixtures/rails_app/tmp/export-posts-20101012215714.csv
287
- - test/fixtures/rails_app/tmp/export-posts-20101012215744.csv
288
- - test/fixtures/rails_app/tmp/export-posts-20101012215814.csv
289
- - test/fixtures/rails_app/tmp/export-posts-20101012215836.csv
290
- - test/fixtures/rails_app/tmp/export-posts-20101012215906.csv
291
- - test/fixtures/rails_app/tmp/export-posts-20101012220659.csv
292
- - test/fixtures/rails_app/tmp/export-posts-20101012221043.csv
293
- - test/fixtures/rails_app/tmp/export-posts-20101012221258.csv
294
- - test/fixtures/rails_app/tmp/export-posts-20101012222558.csv
295
- - test/fixtures/rails_app/tmp/export-posts-20101012222752.csv
296
- - test/fixtures/rails_app/tmp/export-posts-20101012222848.csv
297
- - test/fixtures/rails_app/tmp/export-posts-20101012223433.csv
298
- - test/fixtures/rails_app/tmp/export-posts-20101012223535.csv
299
- - test/fixtures/rails_app/tmp/export-posts-20101012224003.csv
300
- - test/fixtures/rails_app/tmp/export-posts-20101012224052.csv
301
- - test/fixtures/rails_app/tmp/export-posts-20101012224109.csv
302
- - test/fixtures/rails_app/tmp/export-posts-20101012224139.csv
303
- - test/fixtures/rails_app/tmp/export-posts-20101012224205.csv
304
- - test/fixtures/rails_app/tmp/export-posts-20101012224243.csv
305
- - test/fixtures/rails_app/tmp/export-posts-20101012225119.csv
306
- - test/fixtures/rails_app/tmp/export-posts-20101013063215.csv
307
- - test/fixtures/rails_app/tmp/export-posts-20101013063300.csv
308
- - test/fixtures/rails_app/tmp/export-posts-20101013063352.csv
309
- - test/fixtures/rails_app/tmp/export-posts-20101013063427.csv
310
- - test/fixtures/rails_app/tmp/export-posts-20101013063448.csv
311
- - test/fixtures/rails_app/tmp/export-posts-20101013063530.csv
312
- - test/fixtures/rails_app/tmp/export-posts-20101013063559.csv
313
- - test/fixtures/rails_app/tmp/export-posts-20101013063646.csv
314
- - test/fixtures/rails_app/tmp/export-posts-20101013063737.csv
315
- - test/fixtures/rails_app/tmp/export-posts-20101013063822.csv
316
- - test/fixtures/rails_app/tmp/export-posts-20101013063837.csv
317
- - test/fixtures/rails_app/tmp/export-posts-20101013063919.csv
318
- - test/fixtures/rails_app/tmp/export-posts-20101013063939.csv
319
- - test/fixtures/rails_app/tmp/export-posts-20101013063952.csv
320
- - test/fixtures/rails_app/tmp/export-posts-20101013064220.csv
321
- - test/fixtures/rails_app/tmp/export-posts-20101013064253.csv
322
- - test/fixtures/rails_app/tmp/export-posts-20101013064318.csv
323
- - test/fixtures/rails_app/tmp/export-posts-20101013064404.csv
324
- - test/fixtures/rails_app/tmp/export-posts-20101013064452.csv
325
- - test/fixtures/rails_app/tmp/export-posts-20101013064536.csv
326
- - test/fixtures/rails_app/tmp/export-posts-20101013064652.csv
327
- - test/fixtures/rails_app/tmp/export-posts-20101013064845.csv
328
- - test/fixtures/rails_app/tmp/export-posts-20101013065023.csv
329
- - test/fixtures/rails_app/tmp/export-posts-20101013065137.csv
330
- - test/fixtures/rails_app/tmp/export-posts-20101013065713.csv
331
- - test/fixtures/rails_app/tmp/export-posts-20101013065954.csv
332
- - test/fixtures/rails_app/tmp/export-posts-20101013070057.csv
333
- - test/fixtures/rails_app/tmp/export-posts-20101013070116.csv
334
- - test/fixtures/rails_app/tmp/export-posts-20101013070156.csv
335
- - test/fixtures/rails_app/tmp/export-posts-20101013070349.csv
336
- - test/fixtures/rails_app/tmp/export-posts-20101013070429.csv
337
- - test/fixtures/rails_app/tmp/export-posts-20101013070448.csv
338
- - test/fixtures/rails_app/tmp/export-posts-20101013070514.csv
339
- - test/fixtures/rails_app/tmp/export-posts-20101013070709.csv
340
- - test/fixtures/rails_app/tmp/export-posts-20101013070745.csv
341
- - test/fixtures/rails_app/tmp/export-posts-20101013070809.csv
342
- - test/fixtures/rails_app/tmp/export-posts-20101013070905.csv
343
- - test/fixtures/rails_app/tmp/export-posts-20101013070955.csv
344
- - test/fixtures/rails_app/tmp/export-posts-20101013071116.csv
345
- - test/fixtures/rails_app/tmp/export-posts-20101013071209.csv
346
- - test/fixtures/rails_app/tmp/export-posts-20101013071335.csv
347
- - test/fixtures/rails_app/tmp/export-posts-20101013071632.csv
348
- - test/fixtures/rails_app/tmp/export-posts-20101013071643.csv
349
- - test/fixtures/rails_app/tmp/export-posts-20101013071735.csv
350
- - test/fixtures/rails_app/tmp/export-posts-20101013071749.csv
351
- - test/fixtures/rails_app/tmp/export-posts-20101013072030.csv
352
- - test/fixtures/rails_app/tmp/export-posts-20101013072050.csv
353
- - test/fixtures/rails_app/tmp/export-posts-20101013072108.csv
354
- - test/fixtures/rails_app/tmp/export-posts-20101013072713.csv
355
- - test/fixtures/rails_app/tmp/export-posts-20101013072751.csv
356
- - test/fixtures/rails_app/tmp/export-posts-20101013072912.csv
357
- - test/fixtures/rails_app/tmp/export-posts-20101013074546.csv
358
- - test/fixtures/rails_app/tmp/export-posts-20101018180512.csv
359
- - test/fixtures/rails_app/tmp/export-posts-20101018183359.csv
360
- - test/fixtures/rails_app/tmp/export-posts-20101018183608.csv
361
- - test/fixtures/rails_app/tmp/export-posts-20101018183759.csv
362
- - test/functional/admin/account_controller_test.rb
363
- - test/functional/admin/assets_controller_test.rb
364
- - test/functional/admin/categories_controller_test.rb
365
- - test/functional/admin/comments_controller_test.rb
366
- - test/functional/admin/dashboard_controller_test.rb
367
- - test/functional/admin/posts_controller_test.rb
368
- - test/functional/admin/session_controller_test.rb
369
- - test/functional/admin/status_controller_test.rb
370
- - test/functional/admin/typus_users_controller_test.rb
371
- - test/helpers/admin/base_helper_test.rb
372
- - test/helpers/admin/dashboard_helper_test.rb
373
- - test/helpers/admin/form_helper_test.rb
374
- - test/helpers/admin/resources_helper_test.rb
375
- - test/helpers/admin/sidebar_helper_test.rb
376
- - test/helpers/admin/table_helper_test.rb
377
- - test/integration/login_test.rb
378
- - test/integration_test_helper.rb
379
- - test/lib/support/active_record_test.rb
380
- - test/lib/support/array_test.rb
381
- - test/lib/support/hash_test.rb
382
- - test/lib/support/string_test.rb
383
- - test/lib/typus/active_record_test.rb
384
- - test/lib/typus/configuration_test.rb
385
- - test/lib/typus/resource_test.rb
386
- - test/lib/typus/routes_test.rb
387
- - test/lib/typus_test.rb
388
- - test/schema.rb
389
- - test/test_helper.rb
390
- - test/unit/admin/mailer_test.rb
391
- - test/unit/typus_user_roles_test.rb
392
- - test/unit/typus_user_test.rb
393
- - typus.gemspec
239
+ - README.md
394
240
  has_rdoc: true
395
241
  homepage: http://core.typuscms.com/
396
242
  licenses: []