install_theme 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -1,179 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
- <html>
3
- <head>
4
- <title>Admin</title>
5
- <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
6
- <style media="all" type="text/css">@import "css/all.css";</style>
7
- </head>
8
- <body>
9
- <div id="main">
10
- <div id="header">
11
- <a href="index.html" class="logo"><img src="img/logo.gif" width="101" height="29" alt="" /></a>
12
- <ul id="top-navigation">
13
- <li class="active"><span><span>Homepage</span></span></li>
14
- <li><span><span><a href="#">Users</a></span></span></li>
15
- <li><span><span><a href="#">Orders</a></span></span></li>
16
- <li><span><span><a href="#">Settings</a></span></span></li>
17
- <li><span><span><a href="#">Statistics</a></span></span></li>
18
- <li><span><span><a href="#">Design</a></span></span></li>
19
- <li><span><span><a href="#">Contents</a></span></span></li>
20
- </ul>
21
- </div>
22
- <div id="middle">
23
- <div id="left-column">
24
- <h3>Header</h3>
25
- <ul class="nav">
26
- <li><a href="#">Lorem Ipsum dollar</a></li>
27
- <li><a href="#">Dollar</a></li>
28
- <li><a href="#">Lorem dollar</a></li>
29
- <li><a href="#">Ipsum dollar</a></li>
30
- <li><a href="#">Lorem Ipsum dollar</a></li>
31
- <li class="last"><a href="#">Dollar Lorem Ipsum</a></li>
32
- </ul>
33
- <a href="#" class="link">Link here</a>
34
- <a href="#" class="link">Link here</a>
35
- </div>
36
- <div id="center-column">
37
- <div class="top-bar">
38
- <a href="#" class="button">ADD NEW </a>
39
- <h1>Contents</h1>
40
- <div class="breadcrumbs"><a href="#">Homepage</a> / <a href="#">Contents</a></div>
41
- </div><br />
42
- <div class="select-bar">
43
- <label>
44
- <input type="text" name="textfield" />
45
- </label>
46
- <label>
47
- <input type="submit" name="Submit" value="Search" />
48
- </label>
49
- </div>
50
- <div class="table">
51
- <img src="img/bg-th-left.gif" width="8" height="7" alt="" class="left" />
52
- <img src="img/bg-th-right.gif" width="7" height="7" alt="" class="right" />
53
- <table class="listing" cellpadding="0" cellspacing="0">
54
- <tr>
55
- <th class="first" width="177">Header Here</th>
56
- <th>Header</th>
57
- <th>Head</th>
58
- <th>Header</th>
59
- <th>Header</th>
60
- <th>Head</th>
61
- <th>Header</th>
62
- <th class="last">Head</th>
63
- </tr>
64
- <tr>
65
- <td class="first style1">- Lorem Ipsum </td>
66
- <td><img src="img/add-icon.gif" width="16" height="16" alt="" /></td>
67
- <td><img src="img/hr.gif" width="16" height="16" alt="" /></td>
68
- <td><img src="img/save-icon.gif" width="16" height="16" alt="" /></td>
69
- <td><img src="img/edit-icon.gif" width="16" height="16" alt="" /></td>
70
- <td><img src="img/login-icon.gif" width="16" height="16" alt="" /></td>
71
- <td><img src="img/save-icon.gif" width="16" height="16" alt="save" /></td>
72
- <td class="last"><img src="img/add-icon.gif" width="16" height="16" alt="add" /></td>
73
- </tr>
74
- <tr class="bg">
75
- <td class="first style2">- Lorem Ipsum </td>
76
- <td><img src="img/add-icon.gif" width="16" height="16" alt="add" /></td>
77
- <td><img src="img/hr.gif" width="16" height="16" alt="" /></td>
78
- <td><img src="img/save-icon.gif" width="16" height="16" alt="save" /></td>
79
- <td><img src="img/edit-icon.gif" width="16" height="16" alt="edit" /></td>
80
- <td><img src="img/login-icon.gif" width="16" height="16" alt="login" /></td>
81
- <td><img src="img/save-icon.gif" width="16" height="16" alt="save" /></td>
82
- <td class="last"><img src="img/add-icon.gif" width="16" height="16" alt="add" /></td>
83
- </tr>
84
- <tr>
85
- <td class="first style3">- Lorem Ipsum </td>
86
- <td><img src="img/add-icon.gif" width="16" height="16" alt="add" /></td>
87
- <td><img src="img/hr.gif" width="16" height="16" alt="" /></td>
88
- <td><img src="img/save-icon.gif" width="16" height="16" alt="save" /></td>
89
- <td><img src="img/edit-icon.gif" width="16" height="16" alt="edit" /></td>
90
- <td><img src="img/login-icon.gif" width="16" height="16" alt="login" /></td>
91
- <td><img src="img/save-icon.gif" width="16" height="16" alt="save" /></td>
92
- <td class="last"><img src="img/add-icon.gif" width="16" height="16" alt="add" /></td>
93
- </tr>
94
- <tr class="bg">
95
- <td class="first style1">- Lorem Ipsum </td>
96
- <td><img src="img/add-icon.gif" width="16" height="16" alt="add" /></td>
97
- <td><img src="img/hr.gif" width="16" height="16" alt="" /></td>
98
- <td><img src="img/save-icon.gif" width="16" height="16" alt="save" /></td>
99
- <td><img src="img/edit-icon.gif" width="16" height="16" alt="edit" /></td>
100
- <td><img src="img/login-icon.gif" width="16" height="16" alt="login" /></td>
101
- <td><img src="img/save-icon.gif" width="16" height="16" alt="save" /></td>
102
- <td class="last"><img src="img/add-icon.gif" width="16" height="16" alt="add" /></td>
103
- </tr>
104
- <tr>
105
- <td class="first style2">- Lorem Ipsum </td>
106
- <td><img src="img/add-icon.gif" width="16" height="16" alt="add" /></td>
107
- <td><img src="img/hr.gif" width="16" height="16" alt="" /></td>
108
- <td><img src="img/save-icon.gif" width="16" height="16" alt="save" /></td>
109
- <td><img src="img/edit-icon.gif" width="16" height="16" alt="edit" /></td>
110
- <td><img src="img/login-icon.gif" width="16" height="16" alt="login" /></td>
111
- <td><img src="img/save-icon.gif" width="16" height="16" alt="save" /></td>
112
- <td class="last"><img src="img/add-icon.gif" width="16" height="16" alt="add" /></td>
113
- </tr>
114
- <tr class="bg">
115
- <td class="first style3">- Lorem Ipsum </td>
116
- <td><img src="img/add-icon.gif" width="16" height="16" alt="add" /></td>
117
- <td><img src="img/hr.gif" width="16" height="16" alt="" /></td>
118
- <td><img src="img/save-icon.gif" width="16" height="16" alt="save" /></td>
119
- <td><img src="img/edit-icon.gif" width="16" height="16" alt="edit" /></td>
120
- <td><img src="img/login-icon.gif" width="16" height="16" alt="login" /></td>
121
- <td><img src="img/save-icon.gif" width="16" height="16" alt="save" /></td>
122
- <td class="last"><img src="img/add-icon.gif" width="16" height="16" alt="add" /></td>
123
- </tr>
124
- <tr>
125
- <td class="first style4">- Lorem Ipsum </td>
126
- <td><img src="img/add-icon.gif" width="16" height="16" alt="add" /></td>
127
- <td><img src="img/hr.gif" width="16" height="16" alt="" /></td>
128
- <td><img src="img/save-icon.gif" width="16" height="16" alt="save" /></td>
129
- <td><img src="img/edit-icon.gif" width="16" height="16" alt="edit" /></td>
130
- <td><img src="img/login-icon.gif" width="16" height="16" alt="login" /></td>
131
- <td><img src="img/save-icon.gif" width="16" height="16" alt="save" /></td>
132
- <td class="last"><img src="img/add-icon.gif" width="16" height="16" alt="add" /></td>
133
- </tr>
134
- </table>
135
- <div class="select">
136
- <strong>Other Pages: </strong>
137
- <select>
138
- <option>1</option>
139
- </select>
140
- </div>
141
- </div>
142
- <div class="table">
143
- <img src="img/bg-th-left.gif" width="8" height="7" alt="" class="left" />
144
- <img src="img/bg-th-right.gif" width="7" height="7" alt="" class="right" />
145
- <table class="listing form" cellpadding="0" cellspacing="0">
146
- <tr>
147
- <th class="full" colspan="2">Header Here</th>
148
- </tr>
149
- <tr>
150
- <td class="first" width="172"><strong>Lorem Ipsum</strong></td>
151
- <td class="last"><input type="text" class="text" /></td>
152
- </tr>
153
- <tr class="bg">
154
- <td class="first"><strong>Lorem Ipsum</strong></td>
155
- <td class="last"><input type="text" class="text" /></td>
156
- </tr>
157
- <tr>
158
- <td class="first"><strong>Lorem Ipsum</strong></td>
159
- <td class="last"><input type="text" class="text" /></td>
160
- </tr>
161
- <tr class="bg">
162
- <td class="first"><strong>Lorem Ipsum</strong></td>
163
- <td class="last"><input type="text" class="text" /></td>
164
- </tr>
165
- </table>
166
- <p>&nbsp;</p>
167
- </div>
168
- </div>
169
- <div id="right-column">
170
- <strong class="h">INFO</strong>
171
- <div class="box">Detect and eliminate viruses and Trojan horses, even new and unknown ones. Detect and eliminate viruses and Trojan horses, even new and </div>
172
- </div>
173
- </div>
174
- <div id="footer"></div>
175
- </div>
176
-
177
-
178
- </body>
179
- </html>
@@ -1,18 +0,0 @@
1
- Spec::Matchers.define :have_same_contents_as do |expected_file|
2
- diffable
3
-
4
- match do |actual_root_path|
5
- puts expected = File.read(expected_file)
6
- false
7
- end
8
-
9
- description do
10
- "match the file in the two projects"
11
- end
12
- end
13
-
14
- Spec::Matchers.define :have_same_basename do |expected|
15
- match do |actual|
16
- File.basename(expected) == File.basename(actual)
17
- end
18
- end