intesys_asset_manager 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (339) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +127 -0
  4. data/Rakefile +31 -0
  5. data/app/assets/images/loader.gif +0 -0
  6. data/app/assets/javascripts/asset_manager.js.coffee +149 -0
  7. data/app/assets/stylesheets/asset_manager.css.sass +85 -0
  8. data/app/assets/stylesheets/asset_manager/base/colors.css.sass +0 -0
  9. data/app/assets/stylesheets/asset_manager/base/fonts.css.sass +0 -0
  10. data/app/assets/stylesheets/asset_manager/controllers/asset_categories.css.sass +0 -0
  11. data/app/assets/stylesheets/asset_manager/controllers/assets.css.sass +104 -0
  12. data/app/assets/stylesheets/asset_manager/controllers/index.css.sass +0 -0
  13. data/app/assets/stylesheets/asset_manager/layout/footer.css.sass +0 -0
  14. data/app/assets/stylesheets/asset_manager/layout/generic.css.sass +17 -0
  15. data/app/assets/stylesheets/asset_manager/layout/header.css.sass +0 -0
  16. data/app/assets/stylesheets/asset_manager/layout/main.css.sass +26 -0
  17. data/app/assets/stylesheets/asset_manager/modules/alerts.css.sass +3 -0
  18. data/app/assets/stylesheets/asset_manager/modules/btn_group.css.sass +3 -0
  19. data/app/assets/stylesheets/asset_manager/modules/page_header.sass +12 -0
  20. data/app/assets/stylesheets/asset_manager/modules/quick_upload.css.sass +26 -0
  21. data/app/assets/stylesheets/asset_manager/modules/translations.css.sass +4 -0
  22. data/app/assets/stylesheets/asset_manager/plugins/plugins.css.sass +7 -0
  23. data/app/assets/stylesheets/asset_manager/resources/asset_categories/asset_category.css.sass +0 -0
  24. data/app/assets/stylesheets/asset_manager/resources/asset_instances/asset_instance.css.sass +4 -0
  25. data/app/assets/stylesheets/asset_manager/resources/assets/asset.css.sass +35 -0
  26. data/app/assets/stylesheets/asset_manager/resources/resource/resource.css.sass +0 -0
  27. data/app/controllers/asset_manager/application_controller.rb +4 -0
  28. data/app/controllers/asset_manager/asset_categories_controller.rb +56 -0
  29. data/app/controllers/asset_manager/asset_instances_controller.rb +22 -0
  30. data/app/controllers/asset_manager/assets_controller.rb +122 -0
  31. data/app/controllers/asset_manager/index_controller.rb +8 -0
  32. data/app/helpers/asset_manager/application_helper.rb +9 -0
  33. data/app/helpers/asset_manager/asset_instances_helper.rb +59 -0
  34. data/app/helpers/asset_manager/assets_helper.rb +145 -0
  35. data/app/helpers/asset_manager/links_helper.rb +21 -0
  36. data/app/inputs/asset_manager_input.rb +27 -0
  37. data/app/models/asset_manager/asset.rb +99 -0
  38. data/app/models/asset_manager/asset_association.rb +15 -0
  39. data/app/models/asset_manager/asset_category.rb +22 -0
  40. data/app/models/asset_manager/asset_instance.rb +33 -0
  41. data/app/models/asset_manager/asset_private_instance.rb +6 -0
  42. data/app/models/asset_manager/asset_public_instance.rb +6 -0
  43. data/app/uploaders/asset_manager/asset_private_uploader.rb +9 -0
  44. data/app/uploaders/asset_manager/asset_public_uploader.rb +12 -0
  45. data/app/uploaders/asset_manager/asset_uploader.rb +36 -0
  46. data/app/views/admin/asset_manager/assets/_asset.html.haml +7 -0
  47. data/app/views/admin/asset_manager/assets/_assets.html.haml +2 -0
  48. data/app/views/asset_manager/asset_categories/_form.html.haml +10 -0
  49. data/app/views/asset_manager/asset_categories/_translated_fields.html.haml +3 -0
  50. data/app/views/asset_manager/asset_categories/edit.html.haml +8 -0
  51. data/app/views/asset_manager/asset_categories/index.html.haml +43 -0
  52. data/app/views/asset_manager/asset_categories/new.html.haml +4 -0
  53. data/app/views/asset_manager/asset_categories/show.html.haml +30 -0
  54. data/app/views/asset_manager/asset_instances/_asset_instance.html.haml +14 -0
  55. data/app/views/asset_manager/asset_instances/_asset_instance_as_flag.html.haml +3 -0
  56. data/app/views/asset_manager/asset_instances/_asset_instances.html.haml +5 -0
  57. data/app/views/asset_manager/asset_instances/_asset_instances_as_flag.html.haml +12 -0
  58. data/app/views/asset_manager/assets/_asset.html.haml +3 -0
  59. data/app/views/asset_manager/assets/_asset_draggable.html.haml +8 -0
  60. data/app/views/asset_manager/assets/_asset_group_by_instance_context.html.haml +7 -0
  61. data/app/views/asset_manager/assets/_asset_instance_fields.haml +10 -0
  62. data/app/views/asset_manager/assets/_assets.html.haml +4 -0
  63. data/app/views/asset_manager/assets/_assets_draggable.html.haml +7 -0
  64. data/app/views/asset_manager/assets/_form.html.haml +63 -0
  65. data/app/views/asset_manager/assets/_new_actions.html.haml +8 -0
  66. data/app/views/asset_manager/assets/_quick_upload.html.haml +20 -0
  67. data/app/views/asset_manager/assets/_translated_fields.html.haml +4 -0
  68. data/app/views/asset_manager/assets/edit.html.haml +6 -0
  69. data/app/views/asset_manager/assets/index.html.haml +68 -0
  70. data/app/views/asset_manager/assets/new.html.haml +4 -0
  71. data/app/views/asset_manager/assets/quick_upload.js.erb +7 -0
  72. data/app/views/asset_manager/assets/select.html.haml +57 -0
  73. data/app/views/asset_manager/assets/select.js.erb +1 -0
  74. data/app/views/asset_manager/assets/show.html.haml +51 -0
  75. data/app/views/asset_manager/index/index.html.haml +6 -0
  76. data/app/views/asset_manager/partials/_form_errors.html.haml +7 -0
  77. data/app/views/asset_manager/partials/_locales_tabs.html.haml +4 -0
  78. data/app/views/asset_manager/partials/_pagination_status.html.haml +2 -0
  79. data/app/views/layouts/asset_manager/_base.html.haml +6 -0
  80. data/app/views/layouts/asset_manager/application.html.haml +15 -0
  81. data/app/views/layouts/asset_manager/partials/_flash_messages.html.haml +4 -0
  82. data/app/views/layouts/asset_manager/partials/_head.html.haml +11 -0
  83. data/app/views/layouts/asset_manager/partials/_header.html.haml +15 -0
  84. data/app/views/layouts/asset_manager/simple.html.haml +4 -0
  85. data/config/locales/en.yml +179 -0
  86. data/config/locales/it.yml +181 -0
  87. data/config/routes.rb +20 -0
  88. data/db/migrate/20120919130657_asset_manager_init.rb +44 -0
  89. data/db/migrate/20121005072255_acts_as_taggable_on_migration.rb +30 -0
  90. data/db/migrate/20121102141009_add_file_type_to_asset.rb +5 -0
  91. data/db/migrate/20130417082644_asset_manager_add_index_to_foreign_keys.rb +5 -0
  92. data/db/migrate/20140512090936_add_missing_unique_indices.acts_as_taggable_on_engine.rb +20 -0
  93. data/db/migrate/20140512090937_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb +15 -0
  94. data/lib/asset_manager.rb +57 -0
  95. data/lib/asset_manager/all.rb +5 -0
  96. data/lib/asset_manager/engine.rb +29 -0
  97. data/lib/asset_manager/extensions/active_record.rb +152 -0
  98. data/lib/asset_manager/extensions/all.rb +1 -0
  99. data/lib/assets/images/bootstrap/glyphicons-halflings-white.png +0 -0
  100. data/lib/assets/images/bootstrap/glyphicons-halflings.png +0 -0
  101. data/lib/assets/javascripts/bootstrap2/bootstrap.js +2280 -0
  102. data/lib/assets/stylesheets/bootstrap2/bootstrap-responsive.css +1109 -0
  103. data/lib/assets/stylesheets/bootstrap2/bootstrap.css.erb +6167 -0
  104. data/lib/custom_versions.rb +20 -0
  105. data/lib/deprecated.rb +61 -0
  106. data/lib/intesys_asset_manager.rb +1 -0
  107. data/lib/intesys_asset_manager/version.rb +3 -0
  108. data/lib/tasks/asset_manager_tasks.rake +32 -0
  109. data/lib/touch_translation.rb +18 -0
  110. data/lib/translations.rb +19 -0
  111. data/spec/controllers/asset_manager/asset_categories_controller_spec.rb +164 -0
  112. data/spec/controllers/asset_manager/assets_controller_spec.rb +164 -0
  113. data/spec/controllers/asset_manager/index_controller_spec.rb +12 -0
  114. data/spec/factories/asset_manager_asset_associations.rb +10 -0
  115. data/spec/factories/asset_manager_asset_categories.rb +7 -0
  116. data/spec/factories/asset_manager_asset_instances.rb +9 -0
  117. data/spec/factories/asset_manager_assets.rb +8 -0
  118. data/spec/helpers/asset_manager/asset_categories_helper_spec.rb +5 -0
  119. data/spec/helpers/asset_manager/assets_helper_spec.rb +5 -0
  120. data/spec/helpers/asset_manager/index_helper_spec.rb +5 -0
  121. data/spec/models/asset_manager/asset_association_spec.rb +5 -0
  122. data/spec/models/asset_manager/asset_category_spec.rb +5 -0
  123. data/spec/models/asset_manager/asset_instance_spec.rb +7 -0
  124. data/spec/models/asset_manager/asset_spec.rb +5 -0
  125. data/spec/requests/asset_manager/asset_manager_asset_categories_spec.rb +11 -0
  126. data/spec/requests/asset_manager/asset_manager_assets_spec.rb +11 -0
  127. data/spec/routing/asset_manager/asset_categories_routing_spec.rb +35 -0
  128. data/spec/routing/asset_manager/assets_routing_spec.rb +35 -0
  129. data/spec/spec_helper.rb +18 -0
  130. data/spec/support/capybara.rb +8 -0
  131. data/spec/views/asset_manager/asset_categories/edit.html.haml_spec.rb +15 -0
  132. data/spec/views/asset_manager/asset_categories/index.html.haml_spec.rb +15 -0
  133. data/spec/views/asset_manager/asset_categories/new.html.haml_spec.rb +15 -0
  134. data/spec/views/asset_manager/asset_categories/show.html.haml_spec.rb +12 -0
  135. data/spec/views/asset_manager/assets/edit.html.haml_spec.rb +20 -0
  136. data/spec/views/asset_manager/assets/index.html.haml_spec.rb +23 -0
  137. data/spec/views/asset_manager/assets/new.html.haml_spec.rb +20 -0
  138. data/spec/views/asset_manager/assets/show.html.haml_spec.rb +17 -0
  139. data/spec/views/asset_manager/index/index.html.haml_spec.rb +5 -0
  140. data/vendor/assets/images/asset_manager/file_icons/16x16/aac.png +0 -0
  141. data/vendor/assets/images/asset_manager/file_icons/16x16/ai.png +0 -0
  142. data/vendor/assets/images/asset_manager/file_icons/16x16/aif.png +0 -0
  143. data/vendor/assets/images/asset_manager/file_icons/16x16/asp.png +0 -0
  144. data/vendor/assets/images/asset_manager/file_icons/16x16/aspx.png +0 -0
  145. data/vendor/assets/images/asset_manager/file_icons/16x16/avi.png +0 -0
  146. data/vendor/assets/images/asset_manager/file_icons/16x16/bin.png +0 -0
  147. data/vendor/assets/images/asset_manager/file_icons/16x16/bmp.png +0 -0
  148. data/vendor/assets/images/asset_manager/file_icons/16x16/css.png +0 -0
  149. data/vendor/assets/images/asset_manager/file_icons/16x16/db.png +0 -0
  150. data/vendor/assets/images/asset_manager/file_icons/16x16/default.png +0 -0
  151. data/vendor/assets/images/asset_manager/file_icons/16x16/dll.png +0 -0
  152. data/vendor/assets/images/asset_manager/file_icons/16x16/dll2.png +0 -0
  153. data/vendor/assets/images/asset_manager/file_icons/16x16/doc.png +0 -0
  154. data/vendor/assets/images/asset_manager/file_icons/16x16/eps.png +0 -0
  155. data/vendor/assets/images/asset_manager/file_icons/16x16/exe1.png +0 -0
  156. data/vendor/assets/images/asset_manager/file_icons/16x16/exe2.png +0 -0
  157. data/vendor/assets/images/asset_manager/file_icons/16x16/fav.png +0 -0
  158. data/vendor/assets/images/asset_manager/file_icons/16x16/genericBlue.png +0 -0
  159. data/vendor/assets/images/asset_manager/file_icons/16x16/genericGray.png +0 -0
  160. data/vendor/assets/images/asset_manager/file_icons/16x16/genericOrange.png +0 -0
  161. data/vendor/assets/images/asset_manager/file_icons/16x16/genericRed.png +0 -0
  162. data/vendor/assets/images/asset_manager/file_icons/16x16/genericTurquesa.png +0 -0
  163. data/vendor/assets/images/asset_manager/file_icons/16x16/gif.png +0 -0
  164. data/vendor/assets/images/asset_manager/file_icons/16x16/gz.png +0 -0
  165. data/vendor/assets/images/asset_manager/file_icons/16x16/help.png +0 -0
  166. data/vendor/assets/images/asset_manager/file_icons/16x16/help2.png +0 -0
  167. data/vendor/assets/images/asset_manager/file_icons/16x16/hqx.png +0 -0
  168. data/vendor/assets/images/asset_manager/file_icons/16x16/html.png +0 -0
  169. data/vendor/assets/images/asset_manager/file_icons/16x16/htmlFirefox.png +0 -0
  170. data/vendor/assets/images/asset_manager/file_icons/16x16/htmlIE.png +0 -0
  171. data/vendor/assets/images/asset_manager/file_icons/16x16/htmlSafari1.png +0 -0
  172. data/vendor/assets/images/asset_manager/file_icons/16x16/htmlSafari2.png +0 -0
  173. data/vendor/assets/images/asset_manager/file_icons/16x16/jpg.png +0 -0
  174. data/vendor/assets/images/asset_manager/file_icons/16x16/js.png +0 -0
  175. data/vendor/assets/images/asset_manager/file_icons/16x16/mov.png +0 -0
  176. data/vendor/assets/images/asset_manager/file_icons/16x16/mov2.png +0 -0
  177. data/vendor/assets/images/asset_manager/file_icons/16x16/mp2.png +0 -0
  178. data/vendor/assets/images/asset_manager/file_icons/16x16/mp3.png +0 -0
  179. data/vendor/assets/images/asset_manager/file_icons/16x16/mp4.png +0 -0
  180. data/vendor/assets/images/asset_manager/file_icons/16x16/mpg.png +0 -0
  181. data/vendor/assets/images/asset_manager/file_icons/16x16/pdf.png +0 -0
  182. data/vendor/assets/images/asset_manager/file_icons/16x16/php.png +0 -0
  183. data/vendor/assets/images/asset_manager/file_icons/16x16/pic.png +0 -0
  184. data/vendor/assets/images/asset_manager/file_icons/16x16/png.png +0 -0
  185. data/vendor/assets/images/asset_manager/file_icons/16x16/pps.png +0 -0
  186. data/vendor/assets/images/asset_manager/file_icons/16x16/ppt.png +0 -0
  187. data/vendor/assets/images/asset_manager/file_icons/16x16/psd.png +0 -0
  188. data/vendor/assets/images/asset_manager/file_icons/16x16/rar.png +0 -0
  189. data/vendor/assets/images/asset_manager/file_icons/16x16/rb.png +0 -0
  190. data/vendor/assets/images/asset_manager/file_icons/16x16/rtf.png +0 -0
  191. data/vendor/assets/images/asset_manager/file_icons/16x16/template.png +0 -0
  192. data/vendor/assets/images/asset_manager/file_icons/16x16/tif.png +0 -0
  193. data/vendor/assets/images/asset_manager/file_icons/16x16/ttf.png +0 -0
  194. data/vendor/assets/images/asset_manager/file_icons/16x16/txt.png +0 -0
  195. data/vendor/assets/images/asset_manager/file_icons/16x16/vbs.png +0 -0
  196. data/vendor/assets/images/asset_manager/file_icons/16x16/vbs2.png +0 -0
  197. data/vendor/assets/images/asset_manager/file_icons/16x16/warning.png +0 -0
  198. data/vendor/assets/images/asset_manager/file_icons/16x16/wav.png +0 -0
  199. data/vendor/assets/images/asset_manager/file_icons/16x16/xls.png +0 -0
  200. data/vendor/assets/images/asset_manager/file_icons/16x16/xml.png +0 -0
  201. data/vendor/assets/images/asset_manager/file_icons/16x16/zip.png +0 -0
  202. data/vendor/assets/images/asset_manager/file_icons/16x16/zip2.png +0 -0
  203. data/vendor/assets/images/asset_manager/file_icons/20x20/aac.png +0 -0
  204. data/vendor/assets/images/asset_manager/file_icons/20x20/ai.png +0 -0
  205. data/vendor/assets/images/asset_manager/file_icons/20x20/aif.png +0 -0
  206. data/vendor/assets/images/asset_manager/file_icons/20x20/asp.png +0 -0
  207. data/vendor/assets/images/asset_manager/file_icons/20x20/aspx.png +0 -0
  208. data/vendor/assets/images/asset_manager/file_icons/20x20/avi.png +0 -0
  209. data/vendor/assets/images/asset_manager/file_icons/20x20/bin.png +0 -0
  210. data/vendor/assets/images/asset_manager/file_icons/20x20/bmp.png +0 -0
  211. data/vendor/assets/images/asset_manager/file_icons/20x20/css.png +0 -0
  212. data/vendor/assets/images/asset_manager/file_icons/20x20/db.png +0 -0
  213. data/vendor/assets/images/asset_manager/file_icons/20x20/default.png +0 -0
  214. data/vendor/assets/images/asset_manager/file_icons/20x20/dll.png +0 -0
  215. data/vendor/assets/images/asset_manager/file_icons/20x20/dll2.png +0 -0
  216. data/vendor/assets/images/asset_manager/file_icons/20x20/doc.png +0 -0
  217. data/vendor/assets/images/asset_manager/file_icons/20x20/eps.png +0 -0
  218. data/vendor/assets/images/asset_manager/file_icons/20x20/exe1.png +0 -0
  219. data/vendor/assets/images/asset_manager/file_icons/20x20/exe2.png +0 -0
  220. data/vendor/assets/images/asset_manager/file_icons/20x20/fav.png +0 -0
  221. data/vendor/assets/images/asset_manager/file_icons/20x20/genericBlue.png +0 -0
  222. data/vendor/assets/images/asset_manager/file_icons/20x20/genericGray.png +0 -0
  223. data/vendor/assets/images/asset_manager/file_icons/20x20/genericOrange.png +0 -0
  224. data/vendor/assets/images/asset_manager/file_icons/20x20/genericRed.png +0 -0
  225. data/vendor/assets/images/asset_manager/file_icons/20x20/genericTurquesa.png +0 -0
  226. data/vendor/assets/images/asset_manager/file_icons/20x20/gif.png +0 -0
  227. data/vendor/assets/images/asset_manager/file_icons/20x20/gz.png +0 -0
  228. data/vendor/assets/images/asset_manager/file_icons/20x20/help.png +0 -0
  229. data/vendor/assets/images/asset_manager/file_icons/20x20/help2.png +0 -0
  230. data/vendor/assets/images/asset_manager/file_icons/20x20/hqx.png +0 -0
  231. data/vendor/assets/images/asset_manager/file_icons/20x20/html.png +0 -0
  232. data/vendor/assets/images/asset_manager/file_icons/20x20/htmlFirefox.png +0 -0
  233. data/vendor/assets/images/asset_manager/file_icons/20x20/htmlIE.png +0 -0
  234. data/vendor/assets/images/asset_manager/file_icons/20x20/htmlSafari1.png +0 -0
  235. data/vendor/assets/images/asset_manager/file_icons/20x20/htmlSafari2.png +0 -0
  236. data/vendor/assets/images/asset_manager/file_icons/20x20/jpg.png +0 -0
  237. data/vendor/assets/images/asset_manager/file_icons/20x20/js.png +0 -0
  238. data/vendor/assets/images/asset_manager/file_icons/20x20/mov.png +0 -0
  239. data/vendor/assets/images/asset_manager/file_icons/20x20/mov2.png +0 -0
  240. data/vendor/assets/images/asset_manager/file_icons/20x20/mp2.png +0 -0
  241. data/vendor/assets/images/asset_manager/file_icons/20x20/mp3.png +0 -0
  242. data/vendor/assets/images/asset_manager/file_icons/20x20/mp4.png +0 -0
  243. data/vendor/assets/images/asset_manager/file_icons/20x20/mpg.png +0 -0
  244. data/vendor/assets/images/asset_manager/file_icons/20x20/pdf.png +0 -0
  245. data/vendor/assets/images/asset_manager/file_icons/20x20/php.png +0 -0
  246. data/vendor/assets/images/asset_manager/file_icons/20x20/pic.png +0 -0
  247. data/vendor/assets/images/asset_manager/file_icons/20x20/png.png +0 -0
  248. data/vendor/assets/images/asset_manager/file_icons/20x20/pps.png +0 -0
  249. data/vendor/assets/images/asset_manager/file_icons/20x20/ppt.png +0 -0
  250. data/vendor/assets/images/asset_manager/file_icons/20x20/psd.png +0 -0
  251. data/vendor/assets/images/asset_manager/file_icons/20x20/rar.png +0 -0
  252. data/vendor/assets/images/asset_manager/file_icons/20x20/rb.png +0 -0
  253. data/vendor/assets/images/asset_manager/file_icons/20x20/rtf.png +0 -0
  254. data/vendor/assets/images/asset_manager/file_icons/20x20/template.png +0 -0
  255. data/vendor/assets/images/asset_manager/file_icons/20x20/tif.png +0 -0
  256. data/vendor/assets/images/asset_manager/file_icons/20x20/ttf.png +0 -0
  257. data/vendor/assets/images/asset_manager/file_icons/20x20/txt.png +0 -0
  258. data/vendor/assets/images/asset_manager/file_icons/20x20/vbs.png +0 -0
  259. data/vendor/assets/images/asset_manager/file_icons/20x20/vbs2.png +0 -0
  260. data/vendor/assets/images/asset_manager/file_icons/20x20/warning.png +0 -0
  261. data/vendor/assets/images/asset_manager/file_icons/20x20/wav.png +0 -0
  262. data/vendor/assets/images/asset_manager/file_icons/20x20/xls.png +0 -0
  263. data/vendor/assets/images/asset_manager/file_icons/20x20/xml.png +0 -0
  264. data/vendor/assets/images/asset_manager/file_icons/20x20/zip.png +0 -0
  265. data/vendor/assets/images/asset_manager/file_icons/20x20/zip2.png +0 -0
  266. data/vendor/assets/images/asset_manager/file_icons/32x32/aac.png +0 -0
  267. data/vendor/assets/images/asset_manager/file_icons/32x32/ai.png +0 -0
  268. data/vendor/assets/images/asset_manager/file_icons/32x32/aif.png +0 -0
  269. data/vendor/assets/images/asset_manager/file_icons/32x32/asp.png +0 -0
  270. data/vendor/assets/images/asset_manager/file_icons/32x32/aspx.png +0 -0
  271. data/vendor/assets/images/asset_manager/file_icons/32x32/avi.png +0 -0
  272. data/vendor/assets/images/asset_manager/file_icons/32x32/bin.png +0 -0
  273. data/vendor/assets/images/asset_manager/file_icons/32x32/bmp.png +0 -0
  274. data/vendor/assets/images/asset_manager/file_icons/32x32/css.png +0 -0
  275. data/vendor/assets/images/asset_manager/file_icons/32x32/db.png +0 -0
  276. data/vendor/assets/images/asset_manager/file_icons/32x32/default.png +0 -0
  277. data/vendor/assets/images/asset_manager/file_icons/32x32/dll.png +0 -0
  278. data/vendor/assets/images/asset_manager/file_icons/32x32/dll2.png +0 -0
  279. data/vendor/assets/images/asset_manager/file_icons/32x32/doc.png +0 -0
  280. data/vendor/assets/images/asset_manager/file_icons/32x32/eps.png +0 -0
  281. data/vendor/assets/images/asset_manager/file_icons/32x32/exe1.png +0 -0
  282. data/vendor/assets/images/asset_manager/file_icons/32x32/exe2.png +0 -0
  283. data/vendor/assets/images/asset_manager/file_icons/32x32/fav.png +0 -0
  284. data/vendor/assets/images/asset_manager/file_icons/32x32/genericBlue.png +0 -0
  285. data/vendor/assets/images/asset_manager/file_icons/32x32/genericGray.png +0 -0
  286. data/vendor/assets/images/asset_manager/file_icons/32x32/genericOrange.png +0 -0
  287. data/vendor/assets/images/asset_manager/file_icons/32x32/genericRed.png +0 -0
  288. data/vendor/assets/images/asset_manager/file_icons/32x32/genericTurquesa.png +0 -0
  289. data/vendor/assets/images/asset_manager/file_icons/32x32/gif.png +0 -0
  290. data/vendor/assets/images/asset_manager/file_icons/32x32/gz.png +0 -0
  291. data/vendor/assets/images/asset_manager/file_icons/32x32/help.png +0 -0
  292. data/vendor/assets/images/asset_manager/file_icons/32x32/help2.png +0 -0
  293. data/vendor/assets/images/asset_manager/file_icons/32x32/hqx.png +0 -0
  294. data/vendor/assets/images/asset_manager/file_icons/32x32/html.png +0 -0
  295. data/vendor/assets/images/asset_manager/file_icons/32x32/htmlFirefox.png +0 -0
  296. data/vendor/assets/images/asset_manager/file_icons/32x32/htmlIE.png +0 -0
  297. data/vendor/assets/images/asset_manager/file_icons/32x32/htmlSafari1.png +0 -0
  298. data/vendor/assets/images/asset_manager/file_icons/32x32/htmlSafari2.png +0 -0
  299. data/vendor/assets/images/asset_manager/file_icons/32x32/jpg.png +0 -0
  300. data/vendor/assets/images/asset_manager/file_icons/32x32/js.png +0 -0
  301. data/vendor/assets/images/asset_manager/file_icons/32x32/mov.png +0 -0
  302. data/vendor/assets/images/asset_manager/file_icons/32x32/mov2.png +0 -0
  303. data/vendor/assets/images/asset_manager/file_icons/32x32/mp2.png +0 -0
  304. data/vendor/assets/images/asset_manager/file_icons/32x32/mp3.png +0 -0
  305. data/vendor/assets/images/asset_manager/file_icons/32x32/mp4.png +0 -0
  306. data/vendor/assets/images/asset_manager/file_icons/32x32/mpg.png +0 -0
  307. data/vendor/assets/images/asset_manager/file_icons/32x32/pdf.png +0 -0
  308. data/vendor/assets/images/asset_manager/file_icons/32x32/php.png +0 -0
  309. data/vendor/assets/images/asset_manager/file_icons/32x32/pic.png +0 -0
  310. data/vendor/assets/images/asset_manager/file_icons/32x32/png.png +0 -0
  311. data/vendor/assets/images/asset_manager/file_icons/32x32/pps.png +0 -0
  312. data/vendor/assets/images/asset_manager/file_icons/32x32/ppt.png +0 -0
  313. data/vendor/assets/images/asset_manager/file_icons/32x32/psd.png +0 -0
  314. data/vendor/assets/images/asset_manager/file_icons/32x32/rar.png +0 -0
  315. data/vendor/assets/images/asset_manager/file_icons/32x32/rb.png +0 -0
  316. data/vendor/assets/images/asset_manager/file_icons/32x32/rtf.png +0 -0
  317. data/vendor/assets/images/asset_manager/file_icons/32x32/tif.png +0 -0
  318. data/vendor/assets/images/asset_manager/file_icons/32x32/ttf.png +0 -0
  319. data/vendor/assets/images/asset_manager/file_icons/32x32/txt.png +0 -0
  320. data/vendor/assets/images/asset_manager/file_icons/32x32/vbs.png +0 -0
  321. data/vendor/assets/images/asset_manager/file_icons/32x32/vbs2.png +0 -0
  322. data/vendor/assets/images/asset_manager/file_icons/32x32/warning.png +0 -0
  323. data/vendor/assets/images/asset_manager/file_icons/32x32/wav.png +0 -0
  324. data/vendor/assets/images/asset_manager/file_icons/32x32/xls.png +0 -0
  325. data/vendor/assets/images/asset_manager/file_icons/32x32/xml.png +0 -0
  326. data/vendor/assets/images/asset_manager/file_icons/32x32/zip.png +0 -0
  327. data/vendor/assets/images/asset_manager/file_icons/32x32/zip2.png +0 -0
  328. data/vendor/assets/images/blank.gif +0 -0
  329. data/vendor/assets/images/clippy.swf +0 -0
  330. data/vendor/assets/images/fancybox_buttons.png +0 -0
  331. data/vendor/assets/images/fancybox_loading.gif +0 -0
  332. data/vendor/assets/images/fancybox_loading@2x.gif +0 -0
  333. data/vendor/assets/images/fancybox_overlay.png +0 -0
  334. data/vendor/assets/images/fancybox_sprite.png +0 -0
  335. data/vendor/assets/images/fancybox_sprite@2x.png +0 -0
  336. data/vendor/assets/images/ias/loader.gif +0 -0
  337. data/vendor/assets/javascripts/ias/jquery.ias.js +620 -0
  338. data/vendor/assets/stylesheets/ias/jquery.ias.css +8 -0
  339. metadata +748 -0
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe AssetManager::IndexController do
4
+
5
+ describe "GET 'index'" do
6
+ it 'returns http success' do
7
+ get 'index'
8
+ response.should be_success
9
+ end
10
+ end
11
+
12
+ end
@@ -0,0 +1,10 @@
1
+ # Read about factories at https://github.com/thoughtbot/factory_girl
2
+
3
+ FactoryGirl.define do
4
+ factory :asset_manager_asset_association, class: 'AssetAssociation' do
5
+ owner_type 'MyString'
6
+ owner_id 1
7
+ asset nil
8
+ context 'MyString'
9
+ end
10
+ end
@@ -0,0 +1,7 @@
1
+ # Read about factories at https://github.com/thoughtbot/factory_girl
2
+
3
+ FactoryGirl.define do
4
+ factory :asset_manager_asset_category, class: 'AssetCategory' do
5
+ title 'MyString'
6
+ end
7
+ end
@@ -0,0 +1,9 @@
1
+ # Read about factories at https://github.com/thoughtbot/factory_girl
2
+
3
+ FactoryGirl.define do
4
+ factory :asset_manager_asset_instance, class: 'AssetInstance' do
5
+ # asset FactoryGirl.create(:asset_manager_asset)
6
+ instance_context :all
7
+ instance_content :file
8
+ end
9
+ end
@@ -0,0 +1,8 @@
1
+ # Read about factories at https://github.com/thoughtbot/factory_girl
2
+
3
+ FactoryGirl.define do
4
+ factory :asset_manager_asset, class: 'Asset' do
5
+ title 'MyString'
6
+ description 'MyText'
7
+ end
8
+ end
@@ -0,0 +1,5 @@
1
+ require 'spec_helper'
2
+
3
+ describe AssetManager::AssetCategoriesHelper do
4
+ pending "add some examples to (or delete) #{__FILE__}"
5
+ end
@@ -0,0 +1,5 @@
1
+ require 'spec_helper'
2
+
3
+ describe AssetManager::AssetsHelper do
4
+ pending "add some examples to (or delete) #{__FILE__}"
5
+ end
@@ -0,0 +1,5 @@
1
+ require 'spec_helper'
2
+
3
+ describe AssetManager::IndexHelper do
4
+ pending "add some examples to (or delete) #{__FILE__}"
5
+ end
@@ -0,0 +1,5 @@
1
+ require 'spec_helper'
2
+
3
+ describe AssetManager::AssetAssociation do
4
+ pending "add some examples to (or delete) #{__FILE__}"
5
+ end
@@ -0,0 +1,5 @@
1
+ require 'spec_helper'
2
+
3
+ describe AssetManager::AssetCategory do
4
+ pending "add some examples to (or delete) #{__FILE__}"
5
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe AssetManager::AssetInstance do
4
+ it { should validate_presence_of(:asset_id) }
5
+ it { should validate_presence_of(:instance_context) }
6
+ it { should validate_presence_of(:file) }
7
+ end
@@ -0,0 +1,5 @@
1
+ require 'spec_helper'
2
+
3
+ describe AssetManager::Asset do
4
+ pending "add some examples to (or delete) #{__FILE__}"
5
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'AssetCategories' do
4
+ describe 'GET /asset_manager_asset_categories' do
5
+ it 'works! (now write some real specs)' do
6
+ # Run the generator again with the --webrat flag if you want to use webrat methods/matchers
7
+ get asset_manager_asset_categories_path
8
+ response.status.should be(200)
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Assets' do
4
+ describe 'GET /asset_manager_assets' do
5
+ it 'works! (now write some real specs)' do
6
+ # Run the generator again with the --webrat flag if you want to use webrat methods/matchers
7
+ get asset_manager_assets_path
8
+ response.status.should be(200)
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,35 @@
1
+ require 'spec_helper'
2
+
3
+ describe AssetManager::AssetCategoriesController do
4
+ describe 'routing' do
5
+
6
+ it 'routes to #index' do
7
+ get('/asset_categories').should route_to('asset_categories#index')
8
+ end
9
+
10
+ it 'routes to #new' do
11
+ get('/asset_categories/new').should route_to('asset_categories#new')
12
+ end
13
+
14
+ it 'routes to #show' do
15
+ get('/asset_categories/1').should route_to('asset_categories#show', id: '1')
16
+ end
17
+
18
+ it 'routes to #edit' do
19
+ get('/asset_categories/1/edit').should route_to('asset_categories#edit', id: '1')
20
+ end
21
+
22
+ it 'routes to #create' do
23
+ post('/asset_categories').should route_to('asset_categories#create')
24
+ end
25
+
26
+ it 'routes to #update' do
27
+ put('/asset_categories/1').should route_to('asset_categories#update', id: '1')
28
+ end
29
+
30
+ it 'routes to #destroy' do
31
+ delete('/asset_categories/1').should route_to('asset_categories#destroy', id: '1')
32
+ end
33
+
34
+ end
35
+ end
@@ -0,0 +1,35 @@
1
+ require 'spec_helper'
2
+
3
+ describe AssetManager::AssetsController do
4
+ describe 'routing' do
5
+
6
+ it 'routes to #index' do
7
+ get('/assets').should route_to('assets#index')
8
+ end
9
+
10
+ it 'routes to #new' do
11
+ get('/assets/new').should route_to('assets#new')
12
+ end
13
+
14
+ it 'routes to #show' do
15
+ get('/assets/1').should route_to('assets#show', id: '1')
16
+ end
17
+
18
+ it 'routes to #edit' do
19
+ get('/assets/1/edit').should route_to('assets#edit', id: '1')
20
+ end
21
+
22
+ it 'routes to #create' do
23
+ post('/assets').should route_to('assets#create')
24
+ end
25
+
26
+ it 'routes to #update' do
27
+ put('/assets/1').should route_to('assets#update', id: '1')
28
+ end
29
+
30
+ it 'routes to #destroy' do
31
+ delete('/assets/1').should route_to('assets#destroy', id: '1')
32
+ end
33
+
34
+ end
35
+ end
@@ -0,0 +1,18 @@
1
+ # Configure Rails Environment
2
+ ENV['RAILS_ENV'] = 'test'
3
+
4
+ require File.expand_path('../dummy/config/environment.rb', __FILE__)
5
+ require 'rspec/rails'
6
+ # require 'factory_girl'
7
+ # require 'capybara/rspec'
8
+ # require 'rspec/autorun'
9
+ require 'shoulda-matchers'
10
+
11
+ Rails.backtrace_cleaner.remove_silencers!
12
+
13
+ # Load support files
14
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
15
+
16
+ RSpec.configure do |config|
17
+ config.use_transactional_fixtures = true
18
+ end
@@ -0,0 +1,8 @@
1
+ require 'capybara/rails'
2
+ require 'capybara/dsl'
3
+
4
+ RSpec.configure do |c|
5
+ c.include Capybara, example_group: {
6
+ file_path: /\bspec\/integration\//
7
+ }
8
+ end
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'asset_categories/edit' do
4
+ before(:each) do
5
+ @asset_category = assign(:asset_category, stub_model(AssetCategory))
6
+ end
7
+
8
+ it 'renders the edit asset_category form' do
9
+ render
10
+
11
+ # Run the generator again with the --webrat flag if you want to use webrat matchers
12
+ assert_select 'form', action: asset_categories_path(@asset_category), method: 'post' do
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'asset_categories/index' do
4
+ before(:each) do
5
+ assign(:asset_categories, [
6
+ stub_model(AssetCategory),
7
+ stub_model(AssetCategory)
8
+ ])
9
+ end
10
+
11
+ it 'renders a list of asset_categories' do
12
+ render
13
+ # Run the generator again with the --webrat flag if you want to use webrat matchers
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'asset_categories/new' do
4
+ before(:each) do
5
+ assign(:asset_category, stub_model(AssetCategory).as_new_record)
6
+ end
7
+
8
+ it 'renders new asset_category form' do
9
+ render
10
+
11
+ # Run the generator again with the --webrat flag if you want to use webrat matchers
12
+ assert_select 'form', action: asset_categories_path, method: 'post' do
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'asset_categories/show' do
4
+ before(:each) do
5
+ @asset_category = assign(:asset_category, stub_model(AssetCategory))
6
+ end
7
+
8
+ it 'renders attributes in <p>' do
9
+ render
10
+ # Run the generator again with the --webrat flag if you want to use webrat matchers
11
+ end
12
+ end
@@ -0,0 +1,20 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'assets/edit' do
4
+ before(:each) do
5
+ @asset = assign(:asset, stub_model(Asset,
6
+ title: 'MyString',
7
+ description: 'MyText'
8
+ ))
9
+ end
10
+
11
+ it 'renders the edit asset form' do
12
+ render
13
+
14
+ # Run the generator again with the --webrat flag if you want to use webrat matchers
15
+ assert_select 'form', action: assets_path(@asset), method: 'post' do
16
+ assert_select 'input#asset_title', name: 'asset[title]'
17
+ assert_select 'textarea#asset_description', name: 'asset[description]'
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,23 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'assets/index' do
4
+ before(:each) do
5
+ assign(:assets, [
6
+ stub_model(Asset,
7
+ title: 'Title',
8
+ description: 'MyText'
9
+ ),
10
+ stub_model(Asset,
11
+ title: 'Title',
12
+ description: 'MyText'
13
+ )
14
+ ])
15
+ end
16
+
17
+ it 'renders a list of assets' do
18
+ render
19
+ # Run the generator again with the --webrat flag if you want to use webrat matchers
20
+ assert_select 'tr>td', text: 'Title'.to_s, count: 2
21
+ assert_select 'tr>td', text: 'MyText'.to_s, count: 2
22
+ end
23
+ end
@@ -0,0 +1,20 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'assets/new' do
4
+ before(:each) do
5
+ assign(:asset, stub_model(Asset,
6
+ title: 'MyString',
7
+ description: 'MyText'
8
+ ).as_new_record)
9
+ end
10
+
11
+ it 'renders new asset form' do
12
+ render
13
+
14
+ # Run the generator again with the --webrat flag if you want to use webrat matchers
15
+ assert_select 'form', action: assets_path, method: 'post' do
16
+ assert_select 'input#asset_title', name: 'asset[title]'
17
+ assert_select 'textarea#asset_description', name: 'asset[description]'
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,17 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'assets/show' do
4
+ before(:each) do
5
+ @asset = assign(:asset, stub_model(Asset,
6
+ title: 'Title',
7
+ description: 'MyText'
8
+ ))
9
+ end
10
+
11
+ it 'renders attributes in <p>' do
12
+ render
13
+ # Run the generator again with the --webrat flag if you want to use webrat matchers
14
+ rendered.should match(/Title/)
15
+ rendered.should match(/MyText/)
16
+ end
17
+ end
@@ -0,0 +1,5 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'index/index.html.haml' do
4
+ pending "add some examples to (or delete) #{__FILE__}"
5
+ end