install_theme 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (323) hide show
  1. data/History.txt +50 -0
  2. data/Manifest.txt +322 -0
  3. data/README.rdoc +55 -0
  4. data/Rakefile +25 -0
  5. data/bin/install_theme +10 -0
  6. data/lib/install_theme.rb +194 -0
  7. data/lib/install_theme/cli.rb +41 -0
  8. data/lib/install_theme/install_theme_generator.rb +20 -0
  9. data/script/console +10 -0
  10. data/script/destroy +14 -0
  11. data/script/generate +14 -0
  12. data/spec/expected/rails/README.md +1 -0
  13. data/spec/expected/rails/base_app/README +243 -0
  14. data/spec/expected/rails/base_app/Rakefile +10 -0
  15. data/spec/expected/rails/base_app/app/controllers/application_controller.rb +10 -0
  16. data/spec/expected/rails/base_app/app/helpers/application_helper.rb +3 -0
  17. data/spec/expected/rails/base_app/config/boot.rb +110 -0
  18. data/spec/expected/rails/base_app/config/database.yml +22 -0
  19. data/spec/expected/rails/base_app/config/environment.rb +41 -0
  20. data/spec/expected/rails/base_app/config/environments/development.rb +17 -0
  21. data/spec/expected/rails/base_app/config/environments/production.rb +28 -0
  22. data/spec/expected/rails/base_app/config/environments/test.rb +28 -0
  23. data/spec/expected/rails/base_app/config/initializers/backtrace_silencers.rb +7 -0
  24. data/spec/expected/rails/base_app/config/initializers/inflections.rb +10 -0
  25. data/spec/expected/rails/base_app/config/initializers/mime_types.rb +5 -0
  26. data/spec/expected/rails/base_app/config/initializers/new_rails_defaults.rb +21 -0
  27. data/spec/expected/rails/base_app/config/initializers/session_store.rb +15 -0
  28. data/spec/expected/rails/base_app/config/locales/en.yml +5 -0
  29. data/spec/expected/rails/base_app/config/routes.rb +43 -0
  30. data/spec/expected/rails/base_app/db/seeds.rb +7 -0
  31. data/spec/expected/rails/base_app/doc/README_FOR_APP +2 -0
  32. data/spec/expected/rails/base_app/public/404.html +30 -0
  33. data/spec/expected/rails/base_app/public/422.html +30 -0
  34. data/spec/expected/rails/base_app/public/500.html +30 -0
  35. data/spec/expected/rails/base_app/public/favicon.ico +0 -0
  36. data/spec/expected/rails/base_app/public/images/rails.png +0 -0
  37. data/spec/expected/rails/base_app/public/index.html +275 -0
  38. data/spec/expected/rails/base_app/public/javascripts/application.js +2 -0
  39. data/spec/expected/rails/base_app/public/javascripts/controls.js +963 -0
  40. data/spec/expected/rails/base_app/public/javascripts/dragdrop.js +973 -0
  41. data/spec/expected/rails/base_app/public/javascripts/effects.js +1128 -0
  42. data/spec/expected/rails/base_app/public/javascripts/prototype.js +4320 -0
  43. data/spec/expected/rails/base_app/public/robots.txt +5 -0
  44. data/spec/expected/rails/base_app/script/about +4 -0
  45. data/spec/expected/rails/base_app/script/console +3 -0
  46. data/spec/expected/rails/base_app/script/dbconsole +3 -0
  47. data/spec/expected/rails/base_app/script/destroy +3 -0
  48. data/spec/expected/rails/base_app/script/generate +3 -0
  49. data/spec/expected/rails/base_app/script/performance/benchmarker +3 -0
  50. data/spec/expected/rails/base_app/script/performance/profiler +3 -0
  51. data/spec/expected/rails/base_app/script/plugin +3 -0
  52. data/spec/expected/rails/base_app/script/runner +3 -0
  53. data/spec/expected/rails/base_app/script/server +3 -0
  54. data/spec/expected/rails/base_app/test/performance/browsing_test.rb +9 -0
  55. data/spec/expected/rails/base_app/test/test_helper.rb +38 -0
  56. data/spec/expected/rails/bloganje/README +243 -0
  57. data/spec/expected/rails/bloganje/Rakefile +10 -0
  58. data/spec/expected/rails/bloganje/app/controllers/application_controller.rb +10 -0
  59. data/spec/expected/rails/bloganje/app/helpers/application_helper.rb +3 -0
  60. data/spec/expected/rails/bloganje/app/views/layouts/application.html.erb +66 -0
  61. data/spec/expected/rails/bloganje/config/boot.rb +110 -0
  62. data/spec/expected/rails/bloganje/config/database.yml +22 -0
  63. data/spec/expected/rails/bloganje/config/environment.rb +41 -0
  64. data/spec/expected/rails/bloganje/config/environments/development.rb +17 -0
  65. data/spec/expected/rails/bloganje/config/environments/production.rb +28 -0
  66. data/spec/expected/rails/bloganje/config/environments/test.rb +28 -0
  67. data/spec/expected/rails/bloganje/config/initializers/backtrace_silencers.rb +7 -0
  68. data/spec/expected/rails/bloganje/config/initializers/inflections.rb +10 -0
  69. data/spec/expected/rails/bloganje/config/initializers/mime_types.rb +5 -0
  70. data/spec/expected/rails/bloganje/config/initializers/new_rails_defaults.rb +21 -0
  71. data/spec/expected/rails/bloganje/config/initializers/session_store.rb +15 -0
  72. data/spec/expected/rails/bloganje/config/locales/en.yml +5 -0
  73. data/spec/expected/rails/bloganje/config/routes.rb +43 -0
  74. data/spec/expected/rails/bloganje/db/seeds.rb +7 -0
  75. data/spec/expected/rails/bloganje/doc/README_FOR_APP +2 -0
  76. data/spec/expected/rails/bloganje/public/404.html +30 -0
  77. data/spec/expected/rails/bloganje/public/422.html +30 -0
  78. data/spec/expected/rails/bloganje/public/500.html +30 -0
  79. data/spec/expected/rails/bloganje/public/favicon.ico +0 -0
  80. data/spec/expected/rails/bloganje/public/images/Thumbs.db +0 -0
  81. data/spec/expected/rails/bloganje/public/images/bg.jpg +0 -0
  82. data/spec/expected/rails/bloganje/public/images/bg_blue.jpg +0 -0
  83. data/spec/expected/rails/bloganje/public/images/bg_brown.jpg +0 -0
  84. data/spec/expected/rails/bloganje/public/images/bg_light_green.jpg +0 -0
  85. data/spec/expected/rails/bloganje/public/images/bg_menu_blue.jpg +0 -0
  86. data/spec/expected/rails/bloganje/public/images/bg_menu_green.jpg +0 -0
  87. data/spec/expected/rails/bloganje/public/images/bg_menu_mix.jpg +0 -0
  88. data/spec/expected/rails/bloganje/public/images/bg_menu_red.jpg +0 -0
  89. data/spec/expected/rails/bloganje/public/images/bg_mix.jpg +0 -0
  90. data/spec/expected/rails/bloganje/public/images/form_blue.gif +0 -0
  91. data/spec/expected/rails/bloganje/public/images/form_brown.gif +0 -0
  92. data/spec/expected/rails/bloganje/public/images/form_green.gif +0 -0
  93. data/spec/expected/rails/bloganje/public/images/form_mix.gif +0 -0
  94. data/spec/expected/rails/bloganje/public/images/form_red.gif +0 -0
  95. data/spec/expected/rails/bloganje/public/images/graph.jpg +0 -0
  96. data/spec/expected/rails/bloganje/public/images/graph2.jpg +0 -0
  97. data/spec/expected/rails/bloganje/public/images/icons/Thumbs.db +0 -0
  98. data/spec/expected/rails/bloganje/public/images/icons/add.png +0 -0
  99. data/spec/expected/rails/bloganje/public/images/icons/application_add.png +0 -0
  100. data/spec/expected/rails/bloganje/public/images/icons/arrow_down.png +0 -0
  101. data/spec/expected/rails/bloganje/public/images/icons/arrow_down_mini.gif +0 -0
  102. data/spec/expected/rails/bloganje/public/images/icons/arrow_left.gif +0 -0
  103. data/spec/expected/rails/bloganje/public/images/icons/arrow_right.gif +0 -0
  104. data/spec/expected/rails/bloganje/public/images/icons/brick.png +0 -0
  105. data/spec/expected/rails/bloganje/public/images/icons/brick_edit.png +0 -0
  106. data/spec/expected/rails/bloganje/public/images/icons/bricks.png +0 -0
  107. data/spec/expected/rails/bloganje/public/images/icons/bricks_gear.png +0 -0
  108. data/spec/expected/rails/bloganje/public/images/icons/car.png +0 -0
  109. data/spec/expected/rails/bloganje/public/images/icons/cart.png +0 -0
  110. data/spec/expected/rails/bloganje/public/images/icons/cart_add.png +0 -0
  111. data/spec/expected/rails/bloganje/public/images/icons/cog.png +0 -0
  112. data/spec/expected/rails/bloganje/public/images/icons/coins.png +0 -0
  113. data/spec/expected/rails/bloganje/public/images/icons/color_swatch.png +0 -0
  114. data/spec/expected/rails/bloganje/public/images/icons/expand.jpg +0 -0
  115. data/spec/expected/rails/bloganje/public/images/icons/feed.png +0 -0
  116. data/spec/expected/rails/bloganje/public/images/icons/folder.png +0 -0
  117. data/spec/expected/rails/bloganje/public/images/icons/folder_page.png +0 -0
  118. data/spec/expected/rails/bloganje/public/images/icons/folder_page_add.png +0 -0
  119. data/spec/expected/rails/bloganje/public/images/icons/folder_table.png +0 -0
  120. data/spec/expected/rails/bloganje/public/images/icons/group.png +0 -0
  121. data/spec/expected/rails/bloganje/public/images/icons/house.png +0 -0
  122. data/spec/expected/rails/bloganje/public/images/icons/magnifier.png +0 -0
  123. data/spec/expected/rails/bloganje/public/images/icons/page_add.png +0 -0
  124. data/spec/expected/rails/bloganje/public/images/icons/page_gear.png +0 -0
  125. data/spec/expected/rails/bloganje/public/images/icons/page_white_delete.png +0 -0
  126. data/spec/expected/rails/bloganje/public/images/icons/page_white_edit.png +0 -0
  127. data/spec/expected/rails/bloganje/public/images/icons/page_white_link.png +0 -0
  128. data/spec/expected/rails/bloganje/public/images/icons/page_white_text_width.png +0 -0
  129. data/spec/expected/rails/bloganje/public/images/icons/report.png +0 -0
  130. data/spec/expected/rails/bloganje/public/images/icons/report_link.png +0 -0
  131. data/spec/expected/rails/bloganje/public/images/icons/rss.png +0 -0
  132. data/spec/expected/rails/bloganje/public/images/icons/user.png +0 -0
  133. data/spec/expected/rails/bloganje/public/images/icons/user_add.png +0 -0
  134. data/spec/expected/rails/bloganje/public/images/icons/user_delete.png +0 -0
  135. data/spec/expected/rails/bloganje/public/images/icons/user_edit.png +0 -0
  136. data/spec/expected/rails/bloganje/public/images/icons/world.png +0 -0
  137. data/spec/expected/rails/bloganje/public/images/rails.png +0 -0
  138. data/spec/expected/rails/bloganje/public/index.html +275 -0
  139. data/spec/expected/rails/bloganje/public/javascripts/application.js +2 -0
  140. data/spec/expected/rails/bloganje/public/javascripts/controls.js +963 -0
  141. data/spec/expected/rails/bloganje/public/javascripts/dragdrop.js +973 -0
  142. data/spec/expected/rails/bloganje/public/javascripts/effects.js +1128 -0
  143. data/spec/expected/rails/bloganje/public/javascripts/prototype.js +4320 -0
  144. data/spec/expected/rails/bloganje/public/robots.txt +5 -0
  145. data/spec/expected/rails/bloganje/public/stylesheets/Copy of theme.css +121 -0
  146. data/spec/expected/rails/bloganje/public/stylesheets/ie-sucks.css +21 -0
  147. data/spec/expected/rails/bloganje/public/stylesheets/iepngfix.htc +68 -0
  148. data/spec/expected/rails/bloganje/public/stylesheets/style.css +379 -0
  149. data/spec/expected/rails/bloganje/public/stylesheets/switch.css +51 -0
  150. data/spec/expected/rails/bloganje/public/stylesheets/theme.css +121 -0
  151. data/spec/expected/rails/bloganje/public/stylesheets/theme1.css +121 -0
  152. data/spec/expected/rails/bloganje/public/stylesheets/theme2.css +121 -0
  153. data/spec/expected/rails/bloganje/public/stylesheets/theme3.css +121 -0
  154. data/spec/expected/rails/bloganje/public/stylesheets/theme4.css +122 -0
  155. data/spec/expected/rails/bloganje/test/performance/browsing_test.rb +9 -0
  156. data/spec/expected/rails/bloganje/test/test_helper.rb +38 -0
  157. data/spec/expected/rails/webresourcedepot/README +243 -0
  158. data/spec/expected/rails/webresourcedepot/Rakefile +10 -0
  159. data/spec/expected/rails/webresourcedepot/app/controllers/application_controller.rb +10 -0
  160. data/spec/expected/rails/webresourcedepot/app/helpers/application_helper.rb +3 -0
  161. data/spec/expected/rails/webresourcedepot/app/views/layouts/application.html.erb +48 -0
  162. data/spec/expected/rails/webresourcedepot/config/boot.rb +110 -0
  163. data/spec/expected/rails/webresourcedepot/config/database.yml +22 -0
  164. data/spec/expected/rails/webresourcedepot/config/environment.rb +41 -0
  165. data/spec/expected/rails/webresourcedepot/config/environments/development.rb +17 -0
  166. data/spec/expected/rails/webresourcedepot/config/environments/production.rb +28 -0
  167. data/spec/expected/rails/webresourcedepot/config/environments/test.rb +28 -0
  168. data/spec/expected/rails/webresourcedepot/config/initializers/backtrace_silencers.rb +7 -0
  169. data/spec/expected/rails/webresourcedepot/config/initializers/inflections.rb +10 -0
  170. data/spec/expected/rails/webresourcedepot/config/initializers/mime_types.rb +5 -0
  171. data/spec/expected/rails/webresourcedepot/config/initializers/new_rails_defaults.rb +21 -0
  172. data/spec/expected/rails/webresourcedepot/config/initializers/session_store.rb +15 -0
  173. data/spec/expected/rails/webresourcedepot/config/locales/en.yml +5 -0
  174. data/spec/expected/rails/webresourcedepot/config/routes.rb +43 -0
  175. data/spec/expected/rails/webresourcedepot/db/seeds.rb +7 -0
  176. data/spec/expected/rails/webresourcedepot/doc/README_FOR_APP +2 -0
  177. data/spec/expected/rails/webresourcedepot/public/404.html +30 -0
  178. data/spec/expected/rails/webresourcedepot/public/422.html +30 -0
  179. data/spec/expected/rails/webresourcedepot/public/500.html +30 -0
  180. data/spec/expected/rails/webresourcedepot/public/favicon.ico +0 -0
  181. data/spec/expected/rails/webresourcedepot/public/images/Thumbs.db +0 -0
  182. data/spec/expected/rails/webresourcedepot/public/images/add-icon.gif +0 -0
  183. data/spec/expected/rails/webresourcedepot/public/images/arrow.gif +0 -0
  184. data/spec/expected/rails/webresourcedepot/public/images/bg-center-column.jpg +0 -0
  185. data/spec/expected/rails/webresourcedepot/public/images/bg-dotted.gif +0 -0
  186. data/spec/expected/rails/webresourcedepot/public/images/bg-footer.gif +0 -0
  187. data/spec/expected/rails/webresourcedepot/public/images/bg-header.gif +0 -0
  188. data/spec/expected/rails/webresourcedepot/public/images/bg-left-header.gif +0 -0
  189. data/spec/expected/rails/webresourcedepot/public/images/bg-left-link.gif +0 -0
  190. data/spec/expected/rails/webresourcedepot/public/images/bg-middle.gif +0 -0
  191. data/spec/expected/rails/webresourcedepot/public/images/bg-orange-button.gif +0 -0
  192. data/spec/expected/rails/webresourcedepot/public/images/bg-select.gif +0 -0
  193. data/spec/expected/rails/webresourcedepot/public/images/bg-th-left.gif +0 -0
  194. data/spec/expected/rails/webresourcedepot/public/images/bg-th-right.gif +0 -0
  195. data/spec/expected/rails/webresourcedepot/public/images/edit-icon.gif +0 -0
  196. data/spec/expected/rails/webresourcedepot/public/images/hr.gif +0 -0
  197. data/spec/expected/rails/webresourcedepot/public/images/login-icon.gif +0 -0
  198. data/spec/expected/rails/webresourcedepot/public/images/logo.gif +0 -0
  199. data/spec/expected/rails/webresourcedepot/public/images/rails.png +0 -0
  200. data/spec/expected/rails/webresourcedepot/public/images/save-icon.gif +0 -0
  201. data/spec/expected/rails/webresourcedepot/public/images/tab-active-left.gif +0 -0
  202. data/spec/expected/rails/webresourcedepot/public/images/tab-active-right.gif +0 -0
  203. data/spec/expected/rails/webresourcedepot/public/images/tab-active.gif +0 -0
  204. data/spec/expected/rails/webresourcedepot/public/images/tab-left.gif +0 -0
  205. data/spec/expected/rails/webresourcedepot/public/images/tab-right.gif +0 -0
  206. data/spec/expected/rails/webresourcedepot/public/images/tab.gif +0 -0
  207. data/spec/expected/rails/webresourcedepot/public/index.html +275 -0
  208. data/spec/expected/rails/webresourcedepot/public/javascripts/application.js +2 -0
  209. data/spec/expected/rails/webresourcedepot/public/javascripts/controls.js +963 -0
  210. data/spec/expected/rails/webresourcedepot/public/javascripts/dragdrop.js +973 -0
  211. data/spec/expected/rails/webresourcedepot/public/javascripts/effects.js +1128 -0
  212. data/spec/expected/rails/webresourcedepot/public/javascripts/prototype.js +4320 -0
  213. data/spec/expected/rails/webresourcedepot/public/robots.txt +5 -0
  214. data/spec/expected/rails/webresourcedepot/public/stylesheets/all.css +334 -0
  215. data/spec/expected/rails/webresourcedepot/test/performance/browsing_test.rb +9 -0
  216. data/spec/expected/rails/webresourcedepot/test/test_helper.rb +38 -0
  217. data/spec/fixtures/bloganje/README.md +1 -0
  218. data/spec/fixtures/bloganje/blank.html +100 -0
  219. data/spec/fixtures/bloganje/css/Copy of theme.css +121 -0
  220. data/spec/fixtures/bloganje/css/ie-sucks.css +21 -0
  221. data/spec/fixtures/bloganje/css/iepngfix.htc +68 -0
  222. data/spec/fixtures/bloganje/css/style.css +379 -0
  223. data/spec/fixtures/bloganje/css/switch.css +51 -0
  224. data/spec/fixtures/bloganje/css/theme.css +121 -0
  225. data/spec/fixtures/bloganje/css/theme1.css +121 -0
  226. data/spec/fixtures/bloganje/css/theme2.css +121 -0
  227. data/spec/fixtures/bloganje/css/theme3.css +121 -0
  228. data/spec/fixtures/bloganje/css/theme4.css +122 -0
  229. data/spec/fixtures/bloganje/img/Thumbs.db +0 -0
  230. data/spec/fixtures/bloganje/img/bg.jpg +0 -0
  231. data/spec/fixtures/bloganje/img/bg_blue.jpg +0 -0
  232. data/spec/fixtures/bloganje/img/bg_brown.jpg +0 -0
  233. data/spec/fixtures/bloganje/img/bg_light_green.jpg +0 -0
  234. data/spec/fixtures/bloganje/img/bg_menu_blue.jpg +0 -0
  235. data/spec/fixtures/bloganje/img/bg_menu_green.jpg +0 -0
  236. data/spec/fixtures/bloganje/img/bg_menu_mix.jpg +0 -0
  237. data/spec/fixtures/bloganje/img/bg_menu_red.jpg +0 -0
  238. data/spec/fixtures/bloganje/img/bg_mix.jpg +0 -0
  239. data/spec/fixtures/bloganje/img/form_blue.gif +0 -0
  240. data/spec/fixtures/bloganje/img/form_brown.gif +0 -0
  241. data/spec/fixtures/bloganje/img/form_green.gif +0 -0
  242. data/spec/fixtures/bloganje/img/form_mix.gif +0 -0
  243. data/spec/fixtures/bloganje/img/form_red.gif +0 -0
  244. data/spec/fixtures/bloganje/img/graph.jpg +0 -0
  245. data/spec/fixtures/bloganje/img/graph2.jpg +0 -0
  246. data/spec/fixtures/bloganje/img/icons/Thumbs.db +0 -0
  247. data/spec/fixtures/bloganje/img/icons/add.png +0 -0
  248. data/spec/fixtures/bloganje/img/icons/application_add.png +0 -0
  249. data/spec/fixtures/bloganje/img/icons/arrow_down.png +0 -0
  250. data/spec/fixtures/bloganje/img/icons/arrow_down_mini.gif +0 -0
  251. data/spec/fixtures/bloganje/img/icons/arrow_left.gif +0 -0
  252. data/spec/fixtures/bloganje/img/icons/arrow_right.gif +0 -0
  253. data/spec/fixtures/bloganje/img/icons/brick.png +0 -0
  254. data/spec/fixtures/bloganje/img/icons/brick_edit.png +0 -0
  255. data/spec/fixtures/bloganje/img/icons/bricks.png +0 -0
  256. data/spec/fixtures/bloganje/img/icons/bricks_gear.png +0 -0
  257. data/spec/fixtures/bloganje/img/icons/car.png +0 -0
  258. data/spec/fixtures/bloganje/img/icons/cart.png +0 -0
  259. data/spec/fixtures/bloganje/img/icons/cart_add.png +0 -0
  260. data/spec/fixtures/bloganje/img/icons/cog.png +0 -0
  261. data/spec/fixtures/bloganje/img/icons/coins.png +0 -0
  262. data/spec/fixtures/bloganje/img/icons/color_swatch.png +0 -0
  263. data/spec/fixtures/bloganje/img/icons/expand.jpg +0 -0
  264. data/spec/fixtures/bloganje/img/icons/feed.png +0 -0
  265. data/spec/fixtures/bloganje/img/icons/folder.png +0 -0
  266. data/spec/fixtures/bloganje/img/icons/folder_page.png +0 -0
  267. data/spec/fixtures/bloganje/img/icons/folder_page_add.png +0 -0
  268. data/spec/fixtures/bloganje/img/icons/folder_table.png +0 -0
  269. data/spec/fixtures/bloganje/img/icons/group.png +0 -0
  270. data/spec/fixtures/bloganje/img/icons/house.png +0 -0
  271. data/spec/fixtures/bloganje/img/icons/magnifier.png +0 -0
  272. data/spec/fixtures/bloganje/img/icons/page_add.png +0 -0
  273. data/spec/fixtures/bloganje/img/icons/page_gear.png +0 -0
  274. data/spec/fixtures/bloganje/img/icons/page_white_delete.png +0 -0
  275. data/spec/fixtures/bloganje/img/icons/page_white_edit.png +0 -0
  276. data/spec/fixtures/bloganje/img/icons/page_white_link.png +0 -0
  277. data/spec/fixtures/bloganje/img/icons/page_white_text_width.png +0 -0
  278. data/spec/fixtures/bloganje/img/icons/report.png +0 -0
  279. data/spec/fixtures/bloganje/img/icons/report_link.png +0 -0
  280. data/spec/fixtures/bloganje/img/icons/rss.png +0 -0
  281. data/spec/fixtures/bloganje/img/icons/user.png +0 -0
  282. data/spec/fixtures/bloganje/img/icons/user_add.png +0 -0
  283. data/spec/fixtures/bloganje/img/icons/user_delete.png +0 -0
  284. data/spec/fixtures/bloganje/img/icons/user_edit.png +0 -0
  285. data/spec/fixtures/bloganje/img/icons/world.png +0 -0
  286. data/spec/fixtures/bloganje/index.html +281 -0
  287. data/spec/fixtures/bloganje/psd/template.psd +0 -0
  288. data/spec/fixtures/bloganje/users.html +309 -0
  289. data/spec/fixtures/webresourcedepot/README.md +1 -0
  290. data/spec/fixtures/webresourcedepot/css/all.css +334 -0
  291. data/spec/fixtures/webresourcedepot/img/Thumbs.db +0 -0
  292. data/spec/fixtures/webresourcedepot/img/add-icon.gif +0 -0
  293. data/spec/fixtures/webresourcedepot/img/arrow.gif +0 -0
  294. data/spec/fixtures/webresourcedepot/img/bg-center-column.jpg +0 -0
  295. data/spec/fixtures/webresourcedepot/img/bg-dotted.gif +0 -0
  296. data/spec/fixtures/webresourcedepot/img/bg-footer.gif +0 -0
  297. data/spec/fixtures/webresourcedepot/img/bg-header.gif +0 -0
  298. data/spec/fixtures/webresourcedepot/img/bg-left-header.gif +0 -0
  299. data/spec/fixtures/webresourcedepot/img/bg-left-link.gif +0 -0
  300. data/spec/fixtures/webresourcedepot/img/bg-middle.gif +0 -0
  301. data/spec/fixtures/webresourcedepot/img/bg-orange-button.gif +0 -0
  302. data/spec/fixtures/webresourcedepot/img/bg-select.gif +0 -0
  303. data/spec/fixtures/webresourcedepot/img/bg-th-left.gif +0 -0
  304. data/spec/fixtures/webresourcedepot/img/bg-th-right.gif +0 -0
  305. data/spec/fixtures/webresourcedepot/img/edit-icon.gif +0 -0
  306. data/spec/fixtures/webresourcedepot/img/hr.gif +0 -0
  307. data/spec/fixtures/webresourcedepot/img/login-icon.gif +0 -0
  308. data/spec/fixtures/webresourcedepot/img/logo.gif +0 -0
  309. data/spec/fixtures/webresourcedepot/img/save-icon.gif +0 -0
  310. data/spec/fixtures/webresourcedepot/img/tab-active-left.gif +0 -0
  311. data/spec/fixtures/webresourcedepot/img/tab-active-right.gif +0 -0
  312. data/spec/fixtures/webresourcedepot/img/tab-active.gif +0 -0
  313. data/spec/fixtures/webresourcedepot/img/tab-left.gif +0 -0
  314. data/spec/fixtures/webresourcedepot/img/tab-right.gif +0 -0
  315. data/spec/fixtures/webresourcedepot/img/tab.gif +0 -0
  316. data/spec/fixtures/webresourcedepot/index.html +179 -0
  317. data/spec/install_theme_cli_spec.rb +28 -0
  318. data/spec/install_theme_spec.rb +87 -0
  319. data/spec/matchers/have_same_contents_as.rb +18 -0
  320. data/spec/spec.opts +1 -0
  321. data/spec/spec_helper.rb +46 -0
  322. data/tasks/rspec.rake +21 -0
  323. metadata +436 -0
@@ -0,0 +1,5 @@
1
+ # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2
+ #
3
+ # To ban all spiders from the entire site uncomment the next two lines:
4
+ # User-Agent: *
5
+ # Disallow: /
@@ -0,0 +1,334 @@
1
+ /* main styles */
2
+ body {
3
+ margin:0;
4
+ padding:0;
5
+ background:#BBD9EE;
6
+ color:#000;
7
+ font-family:tahoma,arial,sans-serif;
8
+ font-size:11px;
9
+ }
10
+ form {
11
+ margin:0;
12
+ padding:0
13
+ }
14
+ img {border:none;}
15
+ a {color:#060606;text-decoration: none}
16
+ a:hover {text-decoration: underline}
17
+ input {vertical-align:middle}
18
+ .floatleft {float:left !important}
19
+ .floatright {float:right !important}
20
+ .clear {clear:both !important}
21
+ .bold {font-weight:bold !important}
22
+ .normal {font-weight:normal !important}
23
+ .block {display:block !important}
24
+ input.text,
25
+ select,
26
+ textarea {
27
+ font-family:arial,sans-serif;
28
+ color:#333;
29
+ font-size:12px;
30
+ vertical-align:middle;
31
+ }
32
+ input.text {
33
+ padding:1px 0 0 4px;
34
+ height:14px;
35
+ font-weight:normal;
36
+ }
37
+ /* main container */
38
+ #main {
39
+ width:992px;
40
+ margin:0 auto;
41
+ }
42
+ /* header */
43
+ #header {
44
+ position:relative;
45
+ width:992px;
46
+ height:106px;
47
+ background:url(/images/bg-header.gif) no-repeat left bottom;
48
+ }
49
+ /* site logo */
50
+ a.logo {
51
+ position:absolute;
52
+ top:5px;
53
+ left:20px;
54
+ }
55
+
56
+ /* header tabs */
57
+ #top-navigation {
58
+ position:absolute;
59
+ top:60px;
60
+ left:20px;
61
+ margin:0;
62
+ padding:0;
63
+ list-style:none;
64
+ }
65
+ #top-navigation li {
66
+ float:left;
67
+ margin:0 3px 0 0;
68
+ height:34px;
69
+ background:url(/images/tab.gif) repeat-x top;
70
+ }
71
+ #top-navigation li a {
72
+ float:left;
73
+ display:block;
74
+ height:20px;
75
+ line-height:19px;
76
+ color:#606060;
77
+ padding:4px 0 0 0;
78
+ }
79
+ #top-navigation li span {
80
+ float:left;
81
+ background:url(/images/tab-left.gif) no-repeat left top;
82
+ }
83
+ #top-navigation li span span {
84
+ background:url(/images/tab-right.gif) no-repeat right top;
85
+ padding:7px 10px 0 10px;
86
+ }
87
+ #top-navigation li.active {
88
+ padding:0;
89
+ height:34px;
90
+ background:url(/images/tab-active.gif) repeat-x top;
91
+ margin-right:2px;
92
+ }
93
+ #top-navigation li.active span {
94
+ background:url(/images/tab-active-left.gif) no-repeat left top;
95
+ height:34px;
96
+ }
97
+ #top-navigation li.active span span {
98
+ background:url(/images/tab-active-right.gif) no-repeat right top;
99
+ height:23px;
100
+ padding:11px 10px 0 10px;
101
+ line-height:19px;
102
+ color:#606060;
103
+ }
104
+
105
+ /* middle */
106
+ #middle {
107
+ float:left;
108
+ width:967px;
109
+ background:url(/images/bg-middle.gif) repeat-y left;
110
+ padding:0 13px 0 12px;
111
+ }
112
+ /* left column */
113
+ #left-column {
114
+ float:left;
115
+ padding:1px 14px 0 12px;
116
+ width:151px;
117
+ }
118
+ /* right column */
119
+ #right-column {
120
+ float:right;
121
+ padding:0 9px 0 0;
122
+ width:133px;
123
+ }
124
+ /* center column */
125
+ #center-column {
126
+ float:left;
127
+ width:614px;
128
+ background:url(/images/bg-center-column.jpg) no-repeat left top;
129
+ min-height:584px;
130
+ padding:12px 16px 0 13px;
131
+ }
132
+ * html #center-column {height:584px;}
133
+
134
+ /* footer */
135
+ #footer {
136
+ float:left;
137
+ width:100%;
138
+ background:url(/images/bg-footer.gif) no-repeat;
139
+ height:15px;
140
+ }
141
+
142
+ /* left column styles */
143
+ #left-column a {color:#3E3E3E;}
144
+ #left-column h3 {
145
+ font-size:11px;
146
+ margin:0;
147
+ color:#fff;
148
+ background:url(/images/bg-left-header.gif) no-repeat left top;
149
+ height:25px;
150
+ line-height:23px;
151
+ padding:0 0 0 9px;
152
+ }
153
+ ul.nav {
154
+ margin:0 0 11px 0;
155
+ border-bottom:2px solid #FF9600;
156
+ background:#ECEFE7;
157
+ list-style:none;
158
+ padding:0 2px;
159
+ }
160
+ ul.nav li {
161
+ padding:4px 4px 6px 5px;
162
+ background:url(/images/bg-dotted.gif) repeat-x bottom;
163
+ }
164
+ ul.nav a {
165
+ padding:0 0 0 12px;
166
+ background:url(/images/arrow.gif) no-repeat 0 4px;
167
+ }
168
+ ul.nav a:hover {
169
+ font-weight:bold;
170
+ }
171
+ ul.nav li.last {background:none;}
172
+
173
+ #left-column .link {
174
+ display:block;
175
+ width:142px;
176
+ height:25px;
177
+ background:url(/images/bg-left-link.gif);
178
+ margin:0 0 4px 0;
179
+ font-weight:bold;
180
+ padding:0 0 0 9px;
181
+ line-height:25px;
182
+ color:#60635A;
183
+ }
184
+
185
+ /* center column styles */
186
+ .top-bar {
187
+ float:left;
188
+ width:603px;
189
+ border-left:2px solid #f70;
190
+ padding:0 0 0 9px;
191
+ margin:0 0 4px 0;
192
+ }
193
+ /* text page header */
194
+ .top-bar h1 {
195
+ font:20px/21px verdana,sans-serif;
196
+ color:#43729F;
197
+ margin:0 0 4px 0;
198
+ }
199
+ /* orange button */
200
+ .top-bar a.button {
201
+ float:right;
202
+ display:block;
203
+ width:75px;
204
+ height:35px;
205
+ text-align:center;
206
+ color:#fff;
207
+ text-transform:uppercase;
208
+ font-weight:bold;
209
+ line-height:27px;
210
+ background:url(/images/bg-orange-button.gif) no-repeat;
211
+ }
212
+
213
+ /* bar with select */
214
+ .select-bar {
215
+ clear:both;
216
+ border-top:2px solid #f70;
217
+ border-bottom:2px solid #f70;
218
+ padding:5px 0 3px 0;
219
+ margin:0 0 17px 0;
220
+ }
221
+ .select-bar select {width:145px;margin:0 2px;}
222
+
223
+ /* table container */
224
+ div.table {
225
+ float:left;
226
+ position:relative;
227
+ width:614px;
228
+ margin:0 0 37px 0;
229
+ }
230
+ table.listing {
231
+ border-bottom:1px solid #9097A9;
232
+ width:613px;
233
+ padding:0;
234
+ margin:0;
235
+ border:1px solid #9097A9;
236
+ }
237
+ table.listing th {
238
+ border-top:0 !important;
239
+ }
240
+ table.listing th.full {border-left:0;border-right:0 !important;text-align:left;text-transform:uppercase;}
241
+ div.table img.left {
242
+ position:absolute;
243
+ top:0;
244
+ left:0;
245
+ }
246
+ div.table img.right {
247
+ position:absolute;
248
+ top:0;
249
+ right:1px;
250
+ }
251
+ /* table styles */
252
+ table.listing td,
253
+ table.listing th {
254
+ border:1px solid #fff;
255
+ text-align:center;
256
+ }
257
+ table.listing th {
258
+ background:#9097A9;
259
+ color:#fff;
260
+ padding:5px;
261
+ }
262
+ table.listing td {
263
+ background:#D8D8D8;
264
+ color:#000;
265
+ padding:3px 5px;
266
+ }
267
+ table.listing .bg td {
268
+ background:#ECECEC;
269
+ }
270
+ table.listing .white td {
271
+ background:#fff;
272
+ }
273
+ table.listing .first {border-left:0px solid #9097A9;text-align:left;}
274
+ table.listing .last {border-right:0px solid #9097A9;}
275
+
276
+ table.listing th.first {background:#9097A9 url(/images/bg-th-left.gif) no-repeat left top;border-left:0;}
277
+ table.listing th.last {background:#9097A9 url(/images/bg-th-right.gif) no-repeat right top;border-right:0;}
278
+
279
+ table.listing .style1 {font-weight:bold;color:#FF7A00;}
280
+ table.listing .style2 {font-weight:bold;padding-left:16px;}
281
+ table.listing .style3 {padding-left:25px;}
282
+ table.listing .style4 {padding-left:35px;}
283
+ table.form .last {padding:1px 0 1px 5px;text-align:left;}
284
+ table.form th,
285
+ table.form td {padding-left:10px;}
286
+ table.form input.text {width:262px}
287
+
288
+ /* table select */
289
+ div.table .select {
290
+ float:right;
291
+ margin:2px 1px 0 0;
292
+ width:176px;
293
+ height:25px;
294
+ background:#9097A9 url(/images/bg-select.gif);
295
+ color:#fff;
296
+ }
297
+ div.table .select strong {
298
+ float:left;
299
+ padding:5px 0 0 5px;
300
+ }
301
+ div.table .select select {
302
+ float:right;
303
+ width:78px;
304
+ margin:2px 3px 0 0;
305
+ text-align:right;
306
+ }
307
+
308
+ /* right column header */
309
+ #right-column .h {
310
+ float:left;
311
+ background:#7E878A;
312
+ border:1px solid #B8B8B8;
313
+ border-bottom:0;
314
+ padding:3px 10px;
315
+ color:#fff;
316
+ text-transform:uppercase;
317
+ }
318
+ /* right column box */
319
+ #right-column .box {
320
+ float:left;
321
+ width:121px;
322
+ padding:5px;
323
+ border:1px solid #B8B8B8;
324
+ background:#EBEBEB;
325
+ margin:0 0 15px 0;
326
+ }
327
+
328
+ /* right column buttons */
329
+ .buttons {
330
+ clear:both;
331
+ text-align:center;
332
+ padding:30px 0 15px 0;
333
+ }
334
+ .buttons input {margin:0 0 6px 0;}
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+ require 'performance_test_help'
3
+
4
+ # Profiling results for each test method are written to tmp/performance.
5
+ class BrowsingTest < ActionController::PerformanceTest
6
+ def test_homepage
7
+ get '/'
8
+ end
9
+ end
@@ -0,0 +1,38 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+ require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
3
+ require 'test_help'
4
+
5
+ class ActiveSupport::TestCase
6
+ # Transactional fixtures accelerate your tests by wrapping each test method
7
+ # in a transaction that's rolled back on completion. This ensures that the
8
+ # test database remains unchanged so your fixtures don't have to be reloaded
9
+ # between every test method. Fewer database queries means faster tests.
10
+ #
11
+ # Read Mike Clark's excellent walkthrough at
12
+ # http://clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting
13
+ #
14
+ # Every Active Record database supports transactions except MyISAM tables
15
+ # in MySQL. Turn off transactional fixtures in this case; however, if you
16
+ # don't care one way or the other, switching from MyISAM to InnoDB tables
17
+ # is recommended.
18
+ #
19
+ # The only drawback to using transactional fixtures is when you actually
20
+ # need to test transactions. Since your test is bracketed by a transaction,
21
+ # any transactions started in your code will be automatically rolled back.
22
+ self.use_transactional_fixtures = true
23
+
24
+ # Instantiated fixtures are slow, but give you @david where otherwise you
25
+ # would need people(:david). If you don't want to migrate your existing
26
+ # test cases which use the @david style and don't mind the speed hit (each
27
+ # instantiated fixtures translates to a database query per test method),
28
+ # then set this back to true.
29
+ self.use_instantiated_fixtures = false
30
+
31
+ # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
32
+ #
33
+ # Note: You'll currently still have to declare fixtures explicitly in integration tests
34
+ # -- they do not yet inherit this setting
35
+ fixtures :all
36
+
37
+ # Add more helper methods to be used by all tests here...
38
+ end
@@ -0,0 +1 @@
1
+ Template from http://www.bloganje.com/free-admin-template.html
@@ -0,0 +1,100 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
+ <title>Dashboard - Admin Template</title>
6
+ <link rel="stylesheet" type="text/css" href="css/theme.css" />
7
+ <link rel="stylesheet" type="text/css" href="css/style.css" />
8
+ <script>
9
+ var StyleFile = "theme" + document.cookie.charAt(6) + ".css";
10
+ document.writeln('<link rel="stylesheet" type="text/css" href="css/' + StyleFile + '">');
11
+ </script>
12
+ <!--[if IE]>
13
+ <link rel="stylesheet" type="text/css" href="css/ie-sucks.css" />
14
+ <![endif]-->
15
+ </head>
16
+
17
+ <body>
18
+ <div id="container">
19
+ <div id="header">
20
+ <h2>My eCommerce Admin area</h2>
21
+ <div id="topmenu">
22
+ <ul>
23
+ <li class="current"><a href="index.html">Dashboard</a></li>
24
+ <li><a href="#">Orders</a></li>
25
+ <li><a href="users.html">Users</a></li>
26
+ <li><a href="#">Manage</a></li>
27
+ <li><a href="#">CMS</a></li>
28
+ <li><a href="#">Statistics</a></li>
29
+ <li><a href="#">Settings</a></li>
30
+ </ul>
31
+ </div>
32
+ </div>
33
+ <div id="top-panel">
34
+ <div id="panel">
35
+ <ul>
36
+ <li><a href="#" class="report">Sales Report</a></li>
37
+ <li><a href="#" class="report_seo">SEO Report</a></li>
38
+ <li><a href="#" class="search">Search</a></li>
39
+ <li><a href="#" class="feed">RSS Feed</a></li>
40
+ </ul>
41
+ </div>
42
+ </div>
43
+ <div id="wrapper">
44
+ <div id="content">
45
+ <p>&nbsp;</p>
46
+ <p>&nbsp;</p>
47
+ </div>
48
+ <div id="sidebar">
49
+ <ul>
50
+ <li><h3><a href="#" class="house">Dashboard</a></h3>
51
+ <ul>
52
+ <li><a href="#" class="report">Sales Report</a></li>
53
+ <li><a href="#" class="report_seo">SEO Report</a></li>
54
+ <li><a href="#" class="search">Search</a></li>
55
+ </ul>
56
+ </li>
57
+ <li><h3><a href="#" class="folder_table">Orders</a></h3>
58
+ <ul>
59
+ <li><a href="#" class="addorder">New order</a></li>
60
+ <li><a href="#" class="shipping">Shipments</a></li>
61
+ <li><a href="#" class="invoices">Invoices</a></li>
62
+ </ul>
63
+ </li>
64
+ <li><h3><a href="#" class="manage">Manage</a></h3>
65
+ <ul>
66
+ <li><a href="#" class="manage_page">Pages</a></li>
67
+ <li><a href="#" class="cart">Products</a></li>
68
+ <li><a href="#" class="folder">Product categories</a></li>
69
+ <li><a href="#" class="promotions">Promotions</a></li>
70
+ </ul>
71
+ </li>
72
+ <li><h3><a href="#" class="user">Users</a></h3>
73
+ <ul>
74
+ <li><a href="#" class="useradd">Add user</a></li>
75
+ <li><a href="#" class="group">User groups</a></li>
76
+ <li><a href="#" class="search">Find user</a></li>
77
+ <li><a href="#" class="online">Users online</a></li>
78
+ </ul>
79
+ </li>
80
+ </ul>
81
+ </div>
82
+ </div>
83
+ <div id="footer">
84
+ <div id="credits">
85
+ Template by <a href="http://www.bloganje.com">Bloganje</a>
86
+ </div>
87
+ <div id="styleswitcher">
88
+ <ul>
89
+ <li><a href="javascript: document.cookie='theme='; window.location.reload();" title="Default" id="defswitch">d</a></li>
90
+ <li><a href="javascript: document.cookie='theme=1'; window.location.reload();" title="Blue" id="blueswitch">b</a></li>
91
+ <li><a href="javascript: document.cookie='theme=2'; window.location.reload();" title="Green" id="greenswitch">g</a></li>
92
+ <li><a href="javascript: document.cookie='theme=3'; window.location.reload();" title="Brown" id="brownswitch">b</a></li>
93
+ <li><a href="javascript: document.cookie='theme=4'; window.location.reload();" title="Mix" id="mixswitch">m</a></li>
94
+ </ul>
95
+ </div><br />
96
+
97
+ </div>
98
+ </div>
99
+ </body>
100
+ </html>