convert_theme 0.2.0 → 0.3.0
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.
- data/History.txt +16 -0
- data/Manifest.txt +0 -71
- data/README.rdoc +9 -1
- data/lib/convert_theme/cli.rb +10 -5
- data/lib/convert_theme.rb +49 -35
- data/spec/convert_theme_cli_spec.rb +6 -4
- data/spec/convert_theme_spec.rb +4 -1
- data/spec/expected/rails/bloganje/app/views/layouts/application.html.erb +2 -1
- data/spec/expected/rails/webresourcedepot/app/views/layouts/application.html.erb +1 -0
- metadata +2 -74
- data/PostInstall.txt +0 -7
- data/spec/tmp/my_app/README +0 -243
- data/spec/tmp/my_app/Rakefile +0 -10
- data/spec/tmp/my_app/app/controllers/application_controller.rb +0 -10
- data/spec/tmp/my_app/app/helpers/application_helper.rb +0 -3
- data/spec/tmp/my_app/app/views/layouts/application.html.erb +0 -47
- data/spec/tmp/my_app/config/boot.rb +0 -110
- data/spec/tmp/my_app/config/database.yml +0 -22
- data/spec/tmp/my_app/config/environment.rb +0 -41
- data/spec/tmp/my_app/config/environments/development.rb +0 -17
- data/spec/tmp/my_app/config/environments/production.rb +0 -28
- data/spec/tmp/my_app/config/environments/test.rb +0 -28
- data/spec/tmp/my_app/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/tmp/my_app/config/initializers/inflections.rb +0 -10
- data/spec/tmp/my_app/config/initializers/mime_types.rb +0 -5
- data/spec/tmp/my_app/config/initializers/new_rails_defaults.rb +0 -21
- data/spec/tmp/my_app/config/initializers/session_store.rb +0 -15
- data/spec/tmp/my_app/config/locales/en.yml +0 -5
- data/spec/tmp/my_app/config/routes.rb +0 -43
- data/spec/tmp/my_app/db/seeds.rb +0 -7
- data/spec/tmp/my_app/doc/README_FOR_APP +0 -2
- data/spec/tmp/my_app/public/404.html +0 -30
- data/spec/tmp/my_app/public/422.html +0 -30
- data/spec/tmp/my_app/public/500.html +0 -30
- data/spec/tmp/my_app/public/favicon.ico +0 -0
- data/spec/tmp/my_app/public/images/Thumbs.db +0 -0
- data/spec/tmp/my_app/public/images/add-icon.gif +0 -0
- data/spec/tmp/my_app/public/images/arrow.gif +0 -0
- data/spec/tmp/my_app/public/images/bg-center-column.jpg +0 -0
- data/spec/tmp/my_app/public/images/bg-dotted.gif +0 -0
- data/spec/tmp/my_app/public/images/bg-footer.gif +0 -0
- data/spec/tmp/my_app/public/images/bg-header.gif +0 -0
- data/spec/tmp/my_app/public/images/bg-left-header.gif +0 -0
- data/spec/tmp/my_app/public/images/bg-left-link.gif +0 -0
- data/spec/tmp/my_app/public/images/bg-middle.gif +0 -0
- data/spec/tmp/my_app/public/images/bg-orange-button.gif +0 -0
- data/spec/tmp/my_app/public/images/bg-select.gif +0 -0
- data/spec/tmp/my_app/public/images/bg-th-left.gif +0 -0
- data/spec/tmp/my_app/public/images/bg-th-right.gif +0 -0
- data/spec/tmp/my_app/public/images/edit-icon.gif +0 -0
- data/spec/tmp/my_app/public/images/hr.gif +0 -0
- data/spec/tmp/my_app/public/images/login-icon.gif +0 -0
- data/spec/tmp/my_app/public/images/logo.gif +0 -0
- data/spec/tmp/my_app/public/images/rails.png +0 -0
- data/spec/tmp/my_app/public/images/save-icon.gif +0 -0
- data/spec/tmp/my_app/public/images/tab-active-left.gif +0 -0
- data/spec/tmp/my_app/public/images/tab-active-right.gif +0 -0
- data/spec/tmp/my_app/public/images/tab-active.gif +0 -0
- data/spec/tmp/my_app/public/images/tab-left.gif +0 -0
- data/spec/tmp/my_app/public/images/tab-right.gif +0 -0
- data/spec/tmp/my_app/public/images/tab.gif +0 -0
- data/spec/tmp/my_app/public/index.html +0 -275
- data/spec/tmp/my_app/public/javascripts/application.js +0 -2
- data/spec/tmp/my_app/public/javascripts/controls.js +0 -963
- data/spec/tmp/my_app/public/javascripts/dragdrop.js +0 -973
- data/spec/tmp/my_app/public/javascripts/effects.js +0 -1128
- data/spec/tmp/my_app/public/javascripts/prototype.js +0 -4320
- data/spec/tmp/my_app/public/robots.txt +0 -5
- data/spec/tmp/my_app/public/stylesheets/all.css +0 -334
- data/spec/tmp/my_app/script/about +0 -4
- data/spec/tmp/my_app/script/console +0 -3
- data/spec/tmp/my_app/script/dbconsole +0 -3
- data/spec/tmp/my_app/script/destroy +0 -3
- data/spec/tmp/my_app/script/generate +0 -3
- data/spec/tmp/my_app/script/performance/benchmarker +0 -3
- data/spec/tmp/my_app/script/performance/profiler +0 -3
- data/spec/tmp/my_app/script/plugin +0 -3
- data/spec/tmp/my_app/script/runner +0 -3
- data/spec/tmp/my_app/script/server +0 -3
- data/spec/tmp/my_app/test/performance/browsing_test.rb +0 -9
- data/spec/tmp/my_app/test/test_helper.rb +0 -38
|
@@ -1,334 +0,0 @@
|
|
|
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;}
|
|
@@ -1,38 +0,0 @@
|
|
|
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
|