install_theme 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. data/History.txt +19 -0
  2. data/Manifest.txt +0 -161
  3. data/Rakefile +1 -1
  4. data/lib/install_theme.rb +82 -26
  5. data/spec/install_theme_haml_spec.rb +28 -24
  6. data/spec/install_theme_spec.rb +35 -112
  7. metadata +9 -170
  8. data/spec/expected/rails/djclub/README +0 -243
  9. data/spec/expected/rails/djclub/Rakefile +0 -10
  10. data/spec/expected/rails/djclub/app/controllers/application_controller.rb +0 -10
  11. data/spec/expected/rails/djclub/app/helpers/application_helper.rb +0 -3
  12. data/spec/expected/rails/djclub/app/views/layouts/application.html.erb +0 -19
  13. data/spec/expected/rails/djclub/config/boot.rb +0 -110
  14. data/spec/expected/rails/djclub/config/database.yml +0 -22
  15. data/spec/expected/rails/djclub/config/environment.rb +0 -41
  16. data/spec/expected/rails/djclub/config/environments/development.rb +0 -17
  17. data/spec/expected/rails/djclub/config/environments/production.rb +0 -28
  18. data/spec/expected/rails/djclub/config/environments/test.rb +0 -28
  19. data/spec/expected/rails/djclub/config/initializers/backtrace_silencers.rb +0 -7
  20. data/spec/expected/rails/djclub/config/initializers/inflections.rb +0 -10
  21. data/spec/expected/rails/djclub/config/initializers/mime_types.rb +0 -5
  22. data/spec/expected/rails/djclub/config/initializers/new_rails_defaults.rb +0 -21
  23. data/spec/expected/rails/djclub/config/initializers/session_store.rb +0 -15
  24. data/spec/expected/rails/djclub/config/locales/en.yml +0 -5
  25. data/spec/expected/rails/djclub/config/routes.rb +0 -43
  26. data/spec/expected/rails/djclub/db/seeds.rb +0 -7
  27. data/spec/expected/rails/djclub/doc/README_FOR_APP +0 -2
  28. data/spec/expected/rails/djclub/public/404.html +0 -30
  29. data/spec/expected/rails/djclub/public/422.html +0 -30
  30. data/spec/expected/rails/djclub/public/500.html +0 -30
  31. data/spec/expected/rails/djclub/public/favicon.ico +0 -0
  32. data/spec/expected/rails/djclub/public/images/bodybg.gif +0 -0
  33. data/spec/expected/rails/djclub/public/images/contentbg.gif +0 -0
  34. data/spec/expected/rails/djclub/public/images/djset.gif +0 -0
  35. data/spec/expected/rails/djclub/public/images/footerbg.gif +0 -0
  36. data/spec/expected/rails/djclub/public/images/header.jpg +0 -0
  37. data/spec/expected/rails/djclub/public/images/leftbg.gif +0 -0
  38. data/spec/expected/rails/djclub/public/images/middlebg.gif +0 -0
  39. data/spec/expected/rails/djclub/public/images/navbottom.gif +0 -0
  40. data/spec/expected/rails/djclub/public/images/navtop.gif +0 -0
  41. data/spec/expected/rails/djclub/public/images/photos.jpg +0 -0
  42. data/spec/expected/rails/djclub/public/images/rails.png +0 -0
  43. data/spec/expected/rails/djclub/public/images/rightbg.gif +0 -0
  44. data/spec/expected/rails/djclub/public/images/timetoparty.jpg +0 -0
  45. data/spec/expected/rails/djclub/public/index.html +0 -275
  46. data/spec/expected/rails/djclub/public/javascripts/application.js +0 -2
  47. data/spec/expected/rails/djclub/public/javascripts/controls.js +0 -963
  48. data/spec/expected/rails/djclub/public/javascripts/dragdrop.js +0 -973
  49. data/spec/expected/rails/djclub/public/javascripts/effects.js +0 -1128
  50. data/spec/expected/rails/djclub/public/javascripts/prototype.js +0 -4320
  51. data/spec/expected/rails/djclub/public/robots.txt +0 -5
  52. data/spec/expected/rails/djclub/public/stylesheets/style.css +0 -191
  53. data/spec/expected/rails/djclub/script/about +0 -4
  54. data/spec/expected/rails/djclub/script/console +0 -3
  55. data/spec/expected/rails/djclub/script/dbconsole +0 -3
  56. data/spec/expected/rails/djclub/script/destroy +0 -3
  57. data/spec/expected/rails/djclub/script/generate +0 -3
  58. data/spec/expected/rails/djclub/script/performance/benchmarker +0 -3
  59. data/spec/expected/rails/djclub/script/performance/profiler +0 -3
  60. data/spec/expected/rails/djclub/script/plugin +0 -3
  61. data/spec/expected/rails/djclub/script/runner +0 -3
  62. data/spec/expected/rails/djclub/script/server +0 -3
  63. data/spec/expected/rails/djclub/test/performance/browsing_test.rb +0 -9
  64. data/spec/expected/rails/djclub/test/test_helper.rb +0 -38
  65. data/spec/expected/rails/webresourcedepot/README +0 -243
  66. data/spec/expected/rails/webresourcedepot/Rakefile +0 -10
  67. data/spec/expected/rails/webresourcedepot/app/controllers/application_controller.rb +0 -10
  68. data/spec/expected/rails/webresourcedepot/app/helpers/application_helper.rb +0 -3
  69. data/spec/expected/rails/webresourcedepot/app/views/layouts/application.html.erb +0 -48
  70. data/spec/expected/rails/webresourcedepot/config/boot.rb +0 -110
  71. data/spec/expected/rails/webresourcedepot/config/database.yml +0 -22
  72. data/spec/expected/rails/webresourcedepot/config/environment.rb +0 -41
  73. data/spec/expected/rails/webresourcedepot/config/environments/development.rb +0 -17
  74. data/spec/expected/rails/webresourcedepot/config/environments/production.rb +0 -28
  75. data/spec/expected/rails/webresourcedepot/config/environments/test.rb +0 -28
  76. data/spec/expected/rails/webresourcedepot/config/initializers/backtrace_silencers.rb +0 -7
  77. data/spec/expected/rails/webresourcedepot/config/initializers/inflections.rb +0 -10
  78. data/spec/expected/rails/webresourcedepot/config/initializers/mime_types.rb +0 -5
  79. data/spec/expected/rails/webresourcedepot/config/initializers/new_rails_defaults.rb +0 -21
  80. data/spec/expected/rails/webresourcedepot/config/initializers/session_store.rb +0 -15
  81. data/spec/expected/rails/webresourcedepot/config/locales/en.yml +0 -5
  82. data/spec/expected/rails/webresourcedepot/config/routes.rb +0 -43
  83. data/spec/expected/rails/webresourcedepot/db/seeds.rb +0 -7
  84. data/spec/expected/rails/webresourcedepot/doc/README_FOR_APP +0 -2
  85. data/spec/expected/rails/webresourcedepot/public/404.html +0 -30
  86. data/spec/expected/rails/webresourcedepot/public/422.html +0 -30
  87. data/spec/expected/rails/webresourcedepot/public/500.html +0 -30
  88. data/spec/expected/rails/webresourcedepot/public/favicon.ico +0 -0
  89. data/spec/expected/rails/webresourcedepot/public/images/Thumbs.db +0 -0
  90. data/spec/expected/rails/webresourcedepot/public/images/add-icon.gif +0 -0
  91. data/spec/expected/rails/webresourcedepot/public/images/arrow.gif +0 -0
  92. data/spec/expected/rails/webresourcedepot/public/images/bg-center-column.jpg +0 -0
  93. data/spec/expected/rails/webresourcedepot/public/images/bg-dotted.gif +0 -0
  94. data/spec/expected/rails/webresourcedepot/public/images/bg-footer.gif +0 -0
  95. data/spec/expected/rails/webresourcedepot/public/images/bg-header.gif +0 -0
  96. data/spec/expected/rails/webresourcedepot/public/images/bg-left-header.gif +0 -0
  97. data/spec/expected/rails/webresourcedepot/public/images/bg-left-link.gif +0 -0
  98. data/spec/expected/rails/webresourcedepot/public/images/bg-middle.gif +0 -0
  99. data/spec/expected/rails/webresourcedepot/public/images/bg-orange-button.gif +0 -0
  100. data/spec/expected/rails/webresourcedepot/public/images/bg-select.gif +0 -0
  101. data/spec/expected/rails/webresourcedepot/public/images/bg-th-left.gif +0 -0
  102. data/spec/expected/rails/webresourcedepot/public/images/bg-th-right.gif +0 -0
  103. data/spec/expected/rails/webresourcedepot/public/images/edit-icon.gif +0 -0
  104. data/spec/expected/rails/webresourcedepot/public/images/hr.gif +0 -0
  105. data/spec/expected/rails/webresourcedepot/public/images/login-icon.gif +0 -0
  106. data/spec/expected/rails/webresourcedepot/public/images/logo.gif +0 -0
  107. data/spec/expected/rails/webresourcedepot/public/images/rails.png +0 -0
  108. data/spec/expected/rails/webresourcedepot/public/images/save-icon.gif +0 -0
  109. data/spec/expected/rails/webresourcedepot/public/images/tab-active-left.gif +0 -0
  110. data/spec/expected/rails/webresourcedepot/public/images/tab-active-right.gif +0 -0
  111. data/spec/expected/rails/webresourcedepot/public/images/tab-active.gif +0 -0
  112. data/spec/expected/rails/webresourcedepot/public/images/tab-left.gif +0 -0
  113. data/spec/expected/rails/webresourcedepot/public/images/tab-right.gif +0 -0
  114. data/spec/expected/rails/webresourcedepot/public/images/tab.gif +0 -0
  115. data/spec/expected/rails/webresourcedepot/public/index.html +0 -275
  116. data/spec/expected/rails/webresourcedepot/public/javascripts/application.js +0 -2
  117. data/spec/expected/rails/webresourcedepot/public/javascripts/controls.js +0 -963
  118. data/spec/expected/rails/webresourcedepot/public/javascripts/dragdrop.js +0 -973
  119. data/spec/expected/rails/webresourcedepot/public/javascripts/effects.js +0 -1128
  120. data/spec/expected/rails/webresourcedepot/public/javascripts/prototype.js +0 -4320
  121. data/spec/expected/rails/webresourcedepot/public/robots.txt +0 -5
  122. data/spec/expected/rails/webresourcedepot/public/stylesheets/all.css +0 -334
  123. data/spec/expected/rails/webresourcedepot/test/performance/browsing_test.rb +0 -9
  124. data/spec/expected/rails/webresourcedepot/test/test_helper.rb +0 -38
  125. data/spec/fixtures/djclub/djclub.psd +0 -0
  126. data/spec/fixtures/djclub/images/bodybg.gif +0 -0
  127. data/spec/fixtures/djclub/images/contentbg.gif +0 -0
  128. data/spec/fixtures/djclub/images/djset.gif +0 -0
  129. data/spec/fixtures/djclub/images/footerbg.gif +0 -0
  130. data/spec/fixtures/djclub/images/header.jpg +0 -0
  131. data/spec/fixtures/djclub/images/leftbg.gif +0 -0
  132. data/spec/fixtures/djclub/images/middlebg.gif +0 -0
  133. data/spec/fixtures/djclub/images/navbottom.gif +0 -0
  134. data/spec/fixtures/djclub/images/navtop.gif +0 -0
  135. data/spec/fixtures/djclub/images/photos.jpg +0 -0
  136. data/spec/fixtures/djclub/images/rightbg.gif +0 -0
  137. data/spec/fixtures/djclub/images/timetoparty.jpg +0 -0
  138. data/spec/fixtures/djclub/index.html +0 -54
  139. data/spec/fixtures/djclub/style.css +0 -191
  140. data/spec/fixtures/webresourcedepot/README.md +0 -1
  141. data/spec/fixtures/webresourcedepot/css/all.css +0 -334
  142. data/spec/fixtures/webresourcedepot/img/Thumbs.db +0 -0
  143. data/spec/fixtures/webresourcedepot/img/add-icon.gif +0 -0
  144. data/spec/fixtures/webresourcedepot/img/arrow.gif +0 -0
  145. data/spec/fixtures/webresourcedepot/img/bg-center-column.jpg +0 -0
  146. data/spec/fixtures/webresourcedepot/img/bg-dotted.gif +0 -0
  147. data/spec/fixtures/webresourcedepot/img/bg-footer.gif +0 -0
  148. data/spec/fixtures/webresourcedepot/img/bg-header.gif +0 -0
  149. data/spec/fixtures/webresourcedepot/img/bg-left-header.gif +0 -0
  150. data/spec/fixtures/webresourcedepot/img/bg-left-link.gif +0 -0
  151. data/spec/fixtures/webresourcedepot/img/bg-middle.gif +0 -0
  152. data/spec/fixtures/webresourcedepot/img/bg-orange-button.gif +0 -0
  153. data/spec/fixtures/webresourcedepot/img/bg-select.gif +0 -0
  154. data/spec/fixtures/webresourcedepot/img/bg-th-left.gif +0 -0
  155. data/spec/fixtures/webresourcedepot/img/bg-th-right.gif +0 -0
  156. data/spec/fixtures/webresourcedepot/img/edit-icon.gif +0 -0
  157. data/spec/fixtures/webresourcedepot/img/hr.gif +0 -0
  158. data/spec/fixtures/webresourcedepot/img/login-icon.gif +0 -0
  159. data/spec/fixtures/webresourcedepot/img/logo.gif +0 -0
  160. data/spec/fixtures/webresourcedepot/img/save-icon.gif +0 -0
  161. data/spec/fixtures/webresourcedepot/img/tab-active-left.gif +0 -0
  162. data/spec/fixtures/webresourcedepot/img/tab-active-right.gif +0 -0
  163. data/spec/fixtures/webresourcedepot/img/tab-active.gif +0 -0
  164. data/spec/fixtures/webresourcedepot/img/tab-left.gif +0 -0
  165. data/spec/fixtures/webresourcedepot/img/tab-right.gif +0 -0
  166. data/spec/fixtures/webresourcedepot/img/tab.gif +0 -0
  167. data/spec/fixtures/webresourcedepot/index.html +0 -179
  168. data/spec/matchers/have_same_contents_as.rb +0 -18
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: install_theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr Nic Williams
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-28 00:00:00 +10:00
12
+ date: 2009-09-29 00:00:00 +10:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -33,24 +33,24 @@ dependencies:
33
33
  version: 1.5.2
34
34
  version:
35
35
  - !ruby/object:Gem::Dependency
36
- name: rails
37
- type: :development
36
+ name: haml
37
+ type: :runtime
38
38
  version_requirement:
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - "="
41
+ - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: 2.3.4
43
+ version: 2.2.6
44
44
  version:
45
45
  - !ruby/object:Gem::Dependency
46
- name: haml
46
+ name: rails
47
47
  type: :development
48
48
  version_requirement:
49
49
  version_requirements: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - ">="
51
+ - - "="
52
52
  - !ruby/object:Gem::Version
53
- version: "0"
53
+ version: 2.3.4
54
54
  version:
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: hoe
@@ -239,63 +239,6 @@ files:
239
239
  - spec/expected/rails/bloganje/public/stylesheets/theme4.css
240
240
  - spec/expected/rails/bloganje/test/performance/browsing_test.rb
241
241
  - spec/expected/rails/bloganje/test/test_helper.rb
242
- - spec/expected/rails/djclub/README
243
- - spec/expected/rails/djclub/Rakefile
244
- - spec/expected/rails/djclub/app/controllers/application_controller.rb
245
- - spec/expected/rails/djclub/app/helpers/application_helper.rb
246
- - spec/expected/rails/djclub/app/views/layouts/application.html.erb
247
- - spec/expected/rails/djclub/config/boot.rb
248
- - spec/expected/rails/djclub/config/database.yml
249
- - spec/expected/rails/djclub/config/environment.rb
250
- - spec/expected/rails/djclub/config/environments/development.rb
251
- - spec/expected/rails/djclub/config/environments/production.rb
252
- - spec/expected/rails/djclub/config/environments/test.rb
253
- - spec/expected/rails/djclub/config/initializers/backtrace_silencers.rb
254
- - spec/expected/rails/djclub/config/initializers/inflections.rb
255
- - spec/expected/rails/djclub/config/initializers/mime_types.rb
256
- - spec/expected/rails/djclub/config/initializers/new_rails_defaults.rb
257
- - spec/expected/rails/djclub/config/initializers/session_store.rb
258
- - spec/expected/rails/djclub/config/locales/en.yml
259
- - spec/expected/rails/djclub/config/routes.rb
260
- - spec/expected/rails/djclub/db/seeds.rb
261
- - spec/expected/rails/djclub/doc/README_FOR_APP
262
- - spec/expected/rails/djclub/public/404.html
263
- - spec/expected/rails/djclub/public/422.html
264
- - spec/expected/rails/djclub/public/500.html
265
- - spec/expected/rails/djclub/public/favicon.ico
266
- - spec/expected/rails/djclub/public/images/bodybg.gif
267
- - spec/expected/rails/djclub/public/images/contentbg.gif
268
- - spec/expected/rails/djclub/public/images/djset.gif
269
- - spec/expected/rails/djclub/public/images/footerbg.gif
270
- - spec/expected/rails/djclub/public/images/header.jpg
271
- - spec/expected/rails/djclub/public/images/leftbg.gif
272
- - spec/expected/rails/djclub/public/images/middlebg.gif
273
- - spec/expected/rails/djclub/public/images/navbottom.gif
274
- - spec/expected/rails/djclub/public/images/navtop.gif
275
- - spec/expected/rails/djclub/public/images/photos.jpg
276
- - spec/expected/rails/djclub/public/images/rails.png
277
- - spec/expected/rails/djclub/public/images/rightbg.gif
278
- - spec/expected/rails/djclub/public/images/timetoparty.jpg
279
- - spec/expected/rails/djclub/public/index.html
280
- - spec/expected/rails/djclub/public/javascripts/application.js
281
- - spec/expected/rails/djclub/public/javascripts/controls.js
282
- - spec/expected/rails/djclub/public/javascripts/dragdrop.js
283
- - spec/expected/rails/djclub/public/javascripts/effects.js
284
- - spec/expected/rails/djclub/public/javascripts/prototype.js
285
- - spec/expected/rails/djclub/public/robots.txt
286
- - spec/expected/rails/djclub/public/stylesheets/style.css
287
- - spec/expected/rails/djclub/script/about
288
- - spec/expected/rails/djclub/script/console
289
- - spec/expected/rails/djclub/script/dbconsole
290
- - spec/expected/rails/djclub/script/destroy
291
- - spec/expected/rails/djclub/script/generate
292
- - spec/expected/rails/djclub/script/performance/benchmarker
293
- - spec/expected/rails/djclub/script/performance/profiler
294
- - spec/expected/rails/djclub/script/plugin
295
- - spec/expected/rails/djclub/script/runner
296
- - spec/expected/rails/djclub/script/server
297
- - spec/expected/rails/djclub/test/performance/browsing_test.rb
298
- - spec/expected/rails/djclub/test/test_helper.rb
299
242
  - spec/expected/rails/the-hobbit-website-template/README
300
243
  - spec/expected/rails/the-hobbit-website-template/Rakefile
301
244
  - spec/expected/rails/the-hobbit-website-template/app/controllers/application_controller.rb
@@ -352,66 +295,6 @@ files:
352
295
  - spec/expected/rails/the-hobbit-website-template/script/server
353
296
  - spec/expected/rails/the-hobbit-website-template/test/performance/browsing_test.rb
354
297
  - spec/expected/rails/the-hobbit-website-template/test/test_helper.rb
355
- - spec/expected/rails/webresourcedepot/README
356
- - spec/expected/rails/webresourcedepot/Rakefile
357
- - spec/expected/rails/webresourcedepot/app/controllers/application_controller.rb
358
- - spec/expected/rails/webresourcedepot/app/helpers/application_helper.rb
359
- - spec/expected/rails/webresourcedepot/app/views/layouts/application.html.erb
360
- - spec/expected/rails/webresourcedepot/config/boot.rb
361
- - spec/expected/rails/webresourcedepot/config/database.yml
362
- - spec/expected/rails/webresourcedepot/config/environment.rb
363
- - spec/expected/rails/webresourcedepot/config/environments/development.rb
364
- - spec/expected/rails/webresourcedepot/config/environments/production.rb
365
- - spec/expected/rails/webresourcedepot/config/environments/test.rb
366
- - spec/expected/rails/webresourcedepot/config/initializers/backtrace_silencers.rb
367
- - spec/expected/rails/webresourcedepot/config/initializers/inflections.rb
368
- - spec/expected/rails/webresourcedepot/config/initializers/mime_types.rb
369
- - spec/expected/rails/webresourcedepot/config/initializers/new_rails_defaults.rb
370
- - spec/expected/rails/webresourcedepot/config/initializers/session_store.rb
371
- - spec/expected/rails/webresourcedepot/config/locales/en.yml
372
- - spec/expected/rails/webresourcedepot/config/routes.rb
373
- - spec/expected/rails/webresourcedepot/db/seeds.rb
374
- - spec/expected/rails/webresourcedepot/doc/README_FOR_APP
375
- - spec/expected/rails/webresourcedepot/public/404.html
376
- - spec/expected/rails/webresourcedepot/public/422.html
377
- - spec/expected/rails/webresourcedepot/public/500.html
378
- - spec/expected/rails/webresourcedepot/public/favicon.ico
379
- - spec/expected/rails/webresourcedepot/public/images/Thumbs.db
380
- - spec/expected/rails/webresourcedepot/public/images/add-icon.gif
381
- - spec/expected/rails/webresourcedepot/public/images/arrow.gif
382
- - spec/expected/rails/webresourcedepot/public/images/bg-center-column.jpg
383
- - spec/expected/rails/webresourcedepot/public/images/bg-dotted.gif
384
- - spec/expected/rails/webresourcedepot/public/images/bg-footer.gif
385
- - spec/expected/rails/webresourcedepot/public/images/bg-header.gif
386
- - spec/expected/rails/webresourcedepot/public/images/bg-left-header.gif
387
- - spec/expected/rails/webresourcedepot/public/images/bg-left-link.gif
388
- - spec/expected/rails/webresourcedepot/public/images/bg-middle.gif
389
- - spec/expected/rails/webresourcedepot/public/images/bg-orange-button.gif
390
- - spec/expected/rails/webresourcedepot/public/images/bg-select.gif
391
- - spec/expected/rails/webresourcedepot/public/images/bg-th-left.gif
392
- - spec/expected/rails/webresourcedepot/public/images/bg-th-right.gif
393
- - spec/expected/rails/webresourcedepot/public/images/edit-icon.gif
394
- - spec/expected/rails/webresourcedepot/public/images/hr.gif
395
- - spec/expected/rails/webresourcedepot/public/images/login-icon.gif
396
- - spec/expected/rails/webresourcedepot/public/images/logo.gif
397
- - spec/expected/rails/webresourcedepot/public/images/rails.png
398
- - spec/expected/rails/webresourcedepot/public/images/save-icon.gif
399
- - spec/expected/rails/webresourcedepot/public/images/tab-active-left.gif
400
- - spec/expected/rails/webresourcedepot/public/images/tab-active-right.gif
401
- - spec/expected/rails/webresourcedepot/public/images/tab-active.gif
402
- - spec/expected/rails/webresourcedepot/public/images/tab-left.gif
403
- - spec/expected/rails/webresourcedepot/public/images/tab-right.gif
404
- - spec/expected/rails/webresourcedepot/public/images/tab.gif
405
- - spec/expected/rails/webresourcedepot/public/index.html
406
- - spec/expected/rails/webresourcedepot/public/javascripts/application.js
407
- - spec/expected/rails/webresourcedepot/public/javascripts/controls.js
408
- - spec/expected/rails/webresourcedepot/public/javascripts/dragdrop.js
409
- - spec/expected/rails/webresourcedepot/public/javascripts/effects.js
410
- - spec/expected/rails/webresourcedepot/public/javascripts/prototype.js
411
- - spec/expected/rails/webresourcedepot/public/robots.txt
412
- - spec/expected/rails/webresourcedepot/public/stylesheets/all.css
413
- - spec/expected/rails/webresourcedepot/test/performance/browsing_test.rb
414
- - spec/expected/rails/webresourcedepot/test/test_helper.rb
415
298
  - spec/fixtures/bloganje/README.md
416
299
  - spec/fixtures/bloganje/blank.html
417
300
  - spec/fixtures/bloganje/css/Copy of theme.css
@@ -484,21 +367,6 @@ files:
484
367
  - spec/fixtures/bloganje/index.html
485
368
  - spec/fixtures/bloganje/psd/template.psd
486
369
  - spec/fixtures/bloganje/users.html
487
- - spec/fixtures/djclub/djclub.psd
488
- - spec/fixtures/djclub/images/bodybg.gif
489
- - spec/fixtures/djclub/images/contentbg.gif
490
- - spec/fixtures/djclub/images/djset.gif
491
- - spec/fixtures/djclub/images/footerbg.gif
492
- - spec/fixtures/djclub/images/header.jpg
493
- - spec/fixtures/djclub/images/leftbg.gif
494
- - spec/fixtures/djclub/images/middlebg.gif
495
- - spec/fixtures/djclub/images/navbottom.gif
496
- - spec/fixtures/djclub/images/navtop.gif
497
- - spec/fixtures/djclub/images/photos.jpg
498
- - spec/fixtures/djclub/images/rightbg.gif
499
- - spec/fixtures/djclub/images/timetoparty.jpg
500
- - spec/fixtures/djclub/index.html
501
- - spec/fixtures/djclub/style.css
502
370
  - spec/fixtures/the-hobbit-website-template/default.css
503
371
  - spec/fixtures/the-hobbit-website-template/img/bg.jpg
504
372
  - spec/fixtures/the-hobbit-website-template/img/bgcontainer.jpg
@@ -513,38 +381,9 @@ files:
513
381
  - spec/fixtures/the-hobbit-website-template/img/stripes.gif
514
382
  - spec/fixtures/the-hobbit-website-template/index.html
515
383
  - spec/fixtures/the-hobbit-website-template/license-readme.txt
516
- - spec/fixtures/webresourcedepot/README.md
517
- - spec/fixtures/webresourcedepot/css/all.css
518
- - spec/fixtures/webresourcedepot/img/Thumbs.db
519
- - spec/fixtures/webresourcedepot/img/add-icon.gif
520
- - spec/fixtures/webresourcedepot/img/arrow.gif
521
- - spec/fixtures/webresourcedepot/img/bg-center-column.jpg
522
- - spec/fixtures/webresourcedepot/img/bg-dotted.gif
523
- - spec/fixtures/webresourcedepot/img/bg-footer.gif
524
- - spec/fixtures/webresourcedepot/img/bg-header.gif
525
- - spec/fixtures/webresourcedepot/img/bg-left-header.gif
526
- - spec/fixtures/webresourcedepot/img/bg-left-link.gif
527
- - spec/fixtures/webresourcedepot/img/bg-middle.gif
528
- - spec/fixtures/webresourcedepot/img/bg-orange-button.gif
529
- - spec/fixtures/webresourcedepot/img/bg-select.gif
530
- - spec/fixtures/webresourcedepot/img/bg-th-left.gif
531
- - spec/fixtures/webresourcedepot/img/bg-th-right.gif
532
- - spec/fixtures/webresourcedepot/img/edit-icon.gif
533
- - spec/fixtures/webresourcedepot/img/hr.gif
534
- - spec/fixtures/webresourcedepot/img/login-icon.gif
535
- - spec/fixtures/webresourcedepot/img/logo.gif
536
- - spec/fixtures/webresourcedepot/img/save-icon.gif
537
- - spec/fixtures/webresourcedepot/img/tab-active-left.gif
538
- - spec/fixtures/webresourcedepot/img/tab-active-right.gif
539
- - spec/fixtures/webresourcedepot/img/tab-active.gif
540
- - spec/fixtures/webresourcedepot/img/tab-left.gif
541
- - spec/fixtures/webresourcedepot/img/tab-right.gif
542
- - spec/fixtures/webresourcedepot/img/tab.gif
543
- - spec/fixtures/webresourcedepot/index.html
544
384
  - spec/install_theme_cli_spec.rb
545
385
  - spec/install_theme_haml_spec.rb
546
386
  - spec/install_theme_spec.rb
547
- - spec/matchers/have_same_contents_as.rb
548
387
  - spec/spec.opts
549
388
  - spec/spec_helper.rb
550
389
  - tasks/rspec.rake
@@ -1,243 +0,0 @@
1
- == Welcome to Rails
2
-
3
- Rails is a web-application framework that includes everything needed to create
4
- database-backed web applications according to the Model-View-Control pattern.
5
-
6
- This pattern splits the view (also called the presentation) into "dumb" templates
7
- that are primarily responsible for inserting pre-built data in between HTML tags.
8
- The model contains the "smart" domain objects (such as Account, Product, Person,
9
- Post) that holds all the business logic and knows how to persist themselves to
10
- a database. The controller handles the incoming requests (such as Save New Account,
11
- Update Product, Show Post) by manipulating the model and directing data to the view.
12
-
13
- In Rails, the model is handled by what's called an object-relational mapping
14
- layer entitled Active Record. This layer allows you to present the data from
15
- database rows as objects and embellish these data objects with business logic
16
- methods. You can read more about Active Record in
17
- link:files/vendor/rails/activerecord/README.html.
18
-
19
- The controller and view are handled by the Action Pack, which handles both
20
- layers by its two parts: Action View and Action Controller. These two layers
21
- are bundled in a single package due to their heavy interdependence. This is
22
- unlike the relationship between the Active Record and Action Pack that is much
23
- more separate. Each of these packages can be used independently outside of
24
- Rails. You can read more about Action Pack in
25
- link:files/vendor/rails/actionpack/README.html.
26
-
27
-
28
- == Getting Started
29
-
30
- 1. At the command prompt, start a new Rails application using the <tt>rails</tt> command
31
- and your application name. Ex: rails myapp
32
- 2. Change directory into myapp and start the web server: <tt>script/server</tt> (run with --help for options)
33
- 3. Go to http://localhost:3000/ and get "Welcome aboard: You're riding the Rails!"
34
- 4. Follow the guidelines to start developing your application
35
-
36
-
37
- == Web Servers
38
-
39
- By default, Rails will try to use Mongrel if it's are installed when started with script/server, otherwise Rails will use WEBrick, the webserver that ships with Ruby. But you can also use Rails
40
- with a variety of other web servers.
41
-
42
- Mongrel is a Ruby-based webserver with a C component (which requires compilation) that is
43
- suitable for development and deployment of Rails applications. If you have Ruby Gems installed,
44
- getting up and running with mongrel is as easy as: <tt>gem install mongrel</tt>.
45
- More info at: http://mongrel.rubyforge.org
46
-
47
- Say other Ruby web servers like Thin and Ebb or regular web servers like Apache or LiteSpeed or
48
- Lighttpd or IIS. The Ruby web servers are run through Rack and the latter can either be setup to use
49
- FCGI or proxy to a pack of Mongrels/Thin/Ebb servers.
50
-
51
- == Apache .htaccess example for FCGI/CGI
52
-
53
- # General Apache options
54
- AddHandler fastcgi-script .fcgi
55
- AddHandler cgi-script .cgi
56
- Options +FollowSymLinks +ExecCGI
57
-
58
- # If you don't want Rails to look in certain directories,
59
- # use the following rewrite rules so that Apache won't rewrite certain requests
60
- #
61
- # Example:
62
- # RewriteCond %{REQUEST_URI} ^/notrails.*
63
- # RewriteRule .* - [L]
64
-
65
- # Redirect all requests not available on the filesystem to Rails
66
- # By default the cgi dispatcher is used which is very slow
67
- #
68
- # For better performance replace the dispatcher with the fastcgi one
69
- #
70
- # Example:
71
- # RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
72
- RewriteEngine On
73
-
74
- # If your Rails application is accessed via an Alias directive,
75
- # then you MUST also set the RewriteBase in this htaccess file.
76
- #
77
- # Example:
78
- # Alias /myrailsapp /path/to/myrailsapp/public
79
- # RewriteBase /myrailsapp
80
-
81
- RewriteRule ^$ index.html [QSA]
82
- RewriteRule ^([^.]+)$ $1.html [QSA]
83
- RewriteCond %{REQUEST_FILENAME} !-f
84
- RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
85
-
86
- # In case Rails experiences terminal errors
87
- # Instead of displaying this message you can supply a file here which will be rendered instead
88
- #
89
- # Example:
90
- # ErrorDocument 500 /500.html
91
-
92
- ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly"
93
-
94
-
95
- == Debugging Rails
96
-
97
- Sometimes your application goes wrong. Fortunately there are a lot of tools that
98
- will help you debug it and get it back on the rails.
99
-
100
- First area to check is the application log files. Have "tail -f" commands running
101
- on the server.log and development.log. Rails will automatically display debugging
102
- and runtime information to these files. Debugging info will also be shown in the
103
- browser on requests from 127.0.0.1.
104
-
105
- You can also log your own messages directly into the log file from your code using
106
- the Ruby logger class from inside your controllers. Example:
107
-
108
- class WeblogController < ActionController::Base
109
- def destroy
110
- @weblog = Weblog.find(params[:id])
111
- @weblog.destroy
112
- logger.info("#{Time.now} Destroyed Weblog ID ##{@weblog.id}!")
113
- end
114
- end
115
-
116
- The result will be a message in your log file along the lines of:
117
-
118
- Mon Oct 08 14:22:29 +1000 2007 Destroyed Weblog ID #1
119
-
120
- More information on how to use the logger is at http://www.ruby-doc.org/core/
121
-
122
- Also, Ruby documentation can be found at http://www.ruby-lang.org/ including:
123
-
124
- * The Learning Ruby (Pickaxe) Book: http://www.ruby-doc.org/docs/ProgrammingRuby/
125
- * Learn to Program: http://pine.fm/LearnToProgram/ (a beginners guide)
126
-
127
- These two online (and free) books will bring you up to speed on the Ruby language
128
- and also on programming in general.
129
-
130
-
131
- == Debugger
132
-
133
- Debugger support is available through the debugger command when you start your Mongrel or
134
- Webrick server with --debugger. This means that you can break out of execution at any point
135
- in the code, investigate and change the model, AND then resume execution!
136
- You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'
137
- Example:
138
-
139
- class WeblogController < ActionController::Base
140
- def index
141
- @posts = Post.find(:all)
142
- debugger
143
- end
144
- end
145
-
146
- So the controller will accept the action, run the first line, then present you
147
- with a IRB prompt in the server window. Here you can do things like:
148
-
149
- >> @posts.inspect
150
- => "[#<Post:0x14a6be8 @attributes={\"title\"=>nil, \"body\"=>nil, \"id\"=>\"1\"}>,
151
- #<Post:0x14a6620 @attributes={\"title\"=>\"Rails you know!\", \"body\"=>\"Only ten..\", \"id\"=>\"2\"}>]"
152
- >> @posts.first.title = "hello from a debugger"
153
- => "hello from a debugger"
154
-
155
- ...and even better is that you can examine how your runtime objects actually work:
156
-
157
- >> f = @posts.first
158
- => #<Post:0x13630c4 @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>
159
- >> f.
160
- Display all 152 possibilities? (y or n)
161
-
162
- Finally, when you're ready to resume execution, you enter "cont"
163
-
164
-
165
- == Console
166
-
167
- You can interact with the domain model by starting the console through <tt>script/console</tt>.
168
- Here you'll have all parts of the application configured, just like it is when the
169
- application is running. You can inspect domain models, change values, and save to the
170
- database. Starting the script without arguments will launch it in the development environment.
171
- Passing an argument will specify a different environment, like <tt>script/console production</tt>.
172
-
173
- To reload your controllers and models after launching the console run <tt>reload!</tt>
174
-
175
- == dbconsole
176
-
177
- You can go to the command line of your database directly through <tt>script/dbconsole</tt>.
178
- You would be connected to the database with the credentials defined in database.yml.
179
- Starting the script without arguments will connect you to the development database. Passing an
180
- argument will connect you to a different database, like <tt>script/dbconsole production</tt>.
181
- Currently works for mysql, postgresql and sqlite.
182
-
183
- == Description of Contents
184
-
185
- app
186
- Holds all the code that's specific to this particular application.
187
-
188
- app/controllers
189
- Holds controllers that should be named like weblogs_controller.rb for
190
- automated URL mapping. All controllers should descend from ApplicationController
191
- which itself descends from ActionController::Base.
192
-
193
- app/models
194
- Holds models that should be named like post.rb.
195
- Most models will descend from ActiveRecord::Base.
196
-
197
- app/views
198
- Holds the template files for the view that should be named like
199
- weblogs/index.html.erb for the WeblogsController#index action. All views use eRuby
200
- syntax.
201
-
202
- app/views/layouts
203
- Holds the template files for layouts to be used with views. This models the common
204
- header/footer method of wrapping views. In your views, define a layout using the
205
- <tt>layout :default</tt> and create a file named default.html.erb. Inside default.html.erb,
206
- call <% yield %> to render the view using this layout.
207
-
208
- app/helpers
209
- Holds view helpers that should be named like weblogs_helper.rb. These are generated
210
- for you automatically when using script/generate for controllers. Helpers can be used to
211
- wrap functionality for your views into methods.
212
-
213
- config
214
- Configuration files for the Rails environment, the routing map, the database, and other dependencies.
215
-
216
- db
217
- Contains the database schema in schema.rb. db/migrate contains all
218
- the sequence of Migrations for your schema.
219
-
220
- doc
221
- This directory is where your application documentation will be stored when generated
222
- using <tt>rake doc:app</tt>
223
-
224
- lib
225
- Application specific libraries. Basically, any kind of custom code that doesn't
226
- belong under controllers, models, or helpers. This directory is in the load path.
227
-
228
- public
229
- The directory available for the web server. Contains subdirectories for images, stylesheets,
230
- and javascripts. Also contains the dispatchers and the default HTML files. This should be
231
- set as the DOCUMENT_ROOT of your web server.
232
-
233
- script
234
- Helper scripts for automation and generation.
235
-
236
- test
237
- Unit and functional tests along with fixtures. When using the script/generate scripts, template
238
- test files will be generated for you and placed in this directory.
239
-
240
- vendor
241
- External libraries that the application depends on. Also includes the plugins subdirectory.
242
- If the app has frozen rails, those gems also go here, under vendor/rails/.
243
- This directory is in the load path.