sweetie 0.1.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. data/.gitignore +0 -1
  2. data/.rspec +3 -0
  3. data/.travis.yml +3 -2
  4. data/Gemfile +5 -0
  5. data/README.md +73 -16
  6. data/lib/sweetie.rb +2 -3
  7. data/lib/sweetie/bitbucket.rb +143 -0
  8. data/lib/sweetie/conversion.rb +86 -0
  9. data/lib/sweetie/helper.rb +85 -0
  10. data/lib/sweetie/version.rb +4 -0
  11. data/spec/source/bitbucket/user_changeset.json +30 -0
  12. data/spec/source/bitbucket/user_changeset_expectation.txt +1 -0
  13. data/spec/source/bitbucket/user_repositories.json +143 -0
  14. data/spec/sweetie_bitbucket_spec.rb +66 -0
  15. data/spec/sweetie_conversion_spec.rb +31 -0
  16. data/sweetie.gemspec +22 -18
  17. metadata +109 -112
  18. data/doc/Sweetie.html +0 -125
  19. data/doc/_index.html +0 -121
  20. data/doc/class_list.html +0 -47
  21. data/doc/css/common.css +0 -1
  22. data/doc/css/full_list.css +0 -53
  23. data/doc/css/style.css +0 -320
  24. data/doc/file.README.html +0 -95
  25. data/doc/file_list.html +0 -49
  26. data/doc/frames.html +0 -13
  27. data/doc/index.html +0 -95
  28. data/doc/js/app.js +0 -205
  29. data/doc/js/full_list.js +0 -150
  30. data/doc/js/jquery.js +0 -16
  31. data/doc/method_list.html +0 -126
  32. data/doc/top-level-namespace.html +0 -103
  33. data/spec/source/site/css/config.rb +0 -24
  34. data/spec/source/site/css/sass/site.sass +0 -180
  35. data/spec/source/site/css/stylesheets/iphone.css +0 -17
  36. data/spec/source/site/css/stylesheets/site.css +0 -246
  37. data/spec/source/site/css/stylesheets/syntax.css +0 -60
  38. data/spec/source/site/js/FancyZoom.js +0 -761
  39. data/spec/source/site/js/FancyZoomHTML.js +0 -318
  40. data/spec/source/site/test/config.rb +0 -24
  41. data/spec/source/site/test/sass/ie.scss +0 -5
  42. data/spec/source/site/test/sass/print.scss +0 -3
  43. data/spec/source/site/test/sass/screen.scss +0 -6
  44. data/spec/source/site/test/stylesheets/ie.css +0 -5
  45. data/spec/source/site/test/stylesheets/print.css +0 -3
  46. data/spec/source/site/test/stylesheets/screen.css +0 -69
  47. data/spec/sweetie_spec.rb +0 -30
@@ -1,318 +0,0 @@
1
- // FancyZoomHTML.js - v1.0
2
- // Used to draw necessary HTML elements for FancyZoom
3
- //
4
- // Copyright (c) 2008 Cabel Sasser / Panic Inc
5
- // All rights reserved.
6
-
7
- function insertZoomHTML() {
8
-
9
- // All of this junk creates the three <div>'s used to hold the closebox, image, and zoom shadow.
10
-
11
- var inBody = document.getElementsByTagName("body").item(0);
12
-
13
- // WAIT SPINNER
14
-
15
- var inSpinbox = document.createElement("div");
16
- inSpinbox.setAttribute('id', 'ZoomSpin');
17
- inSpinbox.style.position = 'absolute';
18
- inSpinbox.style.left = '10px';
19
- inSpinbox.style.top = '10px';
20
- inSpinbox.style.visibility = 'hidden';
21
- inSpinbox.style.zIndex = '525';
22
- inBody.insertBefore(inSpinbox, inBody.firstChild);
23
-
24
- var inSpinImage = document.createElement("img");
25
- inSpinImage.setAttribute('id', 'SpinImage');
26
- inSpinImage.setAttribute('src', zoomImagesURI+'zoom-spin-1.png');
27
- inSpinbox.appendChild(inSpinImage);
28
-
29
- // ZOOM IMAGE
30
- //
31
- // <div id="ZoomBox">
32
- // <a href="javascript:zoomOut();"><img src="/images/spacer.gif" id="ZoomImage" border="0"></a> <!-- THE IMAGE -->
33
- // <div id="ZoomClose">
34
- // <a href="javascript:zoomOut();"><img src="/images/closebox.png" width="30" height="30" border="0"></a>
35
- // </div>
36
- // </div>
37
-
38
- var inZoombox = document.createElement("div");
39
- inZoombox.setAttribute('id', 'ZoomBox');
40
-
41
- inZoombox.style.position = 'absolute';
42
- inZoombox.style.left = '10px';
43
- inZoombox.style.top = '10px';
44
- inZoombox.style.visibility = 'hidden';
45
- inZoombox.style.zIndex = '499';
46
-
47
- inBody.insertBefore(inZoombox, inSpinbox.nextSibling);
48
-
49
- var inImage1 = document.createElement("img");
50
- inImage1.onclick = function (event) { zoomOut(this, event); return false; };
51
- inImage1.setAttribute('src',zoomImagesURI+'spacer.gif');
52
- inImage1.setAttribute('id','ZoomImage');
53
- inImage1.setAttribute('border', '0');
54
- // inImage1.setAttribute('onMouseOver', 'zoomMouseOver();')
55
- // inImage1.setAttribute('onMouseOut', 'zoomMouseOut();')
56
-
57
- // This must be set first, so we can later test it using webkitBoxShadow.
58
- inImage1.setAttribute('style', '-webkit-box-shadow: '+shadowSettings+'0.0)');
59
- inImage1.style.display = 'block';
60
- inImage1.style.width = '10px';
61
- inImage1.style.height = '10px';
62
- inImage1.style.cursor = 'pointer'; // -webkit-zoom-out?
63
- inZoombox.appendChild(inImage1);
64
-
65
- var inClosebox = document.createElement("div");
66
- inClosebox.setAttribute('id', 'ZoomClose');
67
- inClosebox.style.position = 'absolute';
68
-
69
- // In MSIE, we need to put the close box inside the image.
70
- // It's 2008 and I'm having to do a browser detect? Sigh.
71
- if (browserIsIE) {
72
- inClosebox.style.left = '-1px';
73
- inClosebox.style.top = '0px';
74
- } else {
75
- inClosebox.style.left = '-15px';
76
- inClosebox.style.top = '-15px';
77
- }
78
-
79
- inClosebox.style.visibility = 'hidden';
80
- inZoombox.appendChild(inClosebox);
81
-
82
- var inImage2 = document.createElement("img");
83
- inImage2.onclick = function (event) { zoomOut(this, event); return false; };
84
- inImage2.setAttribute('src',zoomImagesURI+'closebox.png');
85
- inImage2.setAttribute('width','30');
86
- inImage2.setAttribute('height','30');
87
- inImage2.setAttribute('border','0');
88
- inImage2.style.cursor = 'pointer';
89
- inClosebox.appendChild(inImage2);
90
-
91
- // SHADOW
92
- // Only draw the table-based shadow if the programatic webkitBoxShadow fails!
93
- // Also, don't draw it if we're IE -- it wouldn't look quite right anyway.
94
-
95
- if (! document.getElementById('ZoomImage').style.webkitBoxShadow && ! browserIsIE) {
96
-
97
- // SHADOW BASE
98
-
99
- var inFixedBox = document.createElement("div");
100
- inFixedBox.setAttribute('id', 'ShadowBox');
101
- inFixedBox.style.position = 'absolute';
102
- inFixedBox.style.left = '50px';
103
- inFixedBox.style.top = '50px';
104
- inFixedBox.style.width = '100px';
105
- inFixedBox.style.height = '100px';
106
- inFixedBox.style.visibility = 'hidden';
107
- inFixedBox.style.zIndex = '498';
108
- inBody.insertBefore(inFixedBox, inZoombox.nextSibling);
109
-
110
- // SHADOW
111
- // Now, the shadow table. Skip if not compatible, or irrevelant with -box-shadow.
112
-
113
- // <div id="ShadowBox"><table border="0" width="100%" height="100%" cellpadding="0" cellspacing="0"> X
114
- // <tr height="25">
115
- // <td width="27"><img src="/images/zoom-shadow1.png" width="27" height="25"></td>
116
- // <td background="/images/zoom-shadow2.png">&nbsp;</td>
117
- // <td width="27"><img src="/images/zoom-shadow3.png" width="27" height="25"></td>
118
- // </tr>
119
-
120
- var inShadowTable = document.createElement("table");
121
- inShadowTable.setAttribute('border', '0');
122
- inShadowTable.setAttribute('width', '100%');
123
- inShadowTable.setAttribute('height', '100%');
124
- inShadowTable.setAttribute('cellpadding', '0');
125
- inShadowTable.setAttribute('cellspacing', '0');
126
- inFixedBox.appendChild(inShadowTable);
127
-
128
- var inShadowTbody = document.createElement("tbody"); // Needed for IE (for HTML4).
129
- inShadowTable.appendChild(inShadowTbody);
130
-
131
- var inRow1 = document.createElement("tr");
132
- inRow1.style.height = '25px';
133
- inShadowTbody.appendChild(inRow1);
134
-
135
- var inCol1 = document.createElement("td");
136
- inCol1.style.width = '27px';
137
- inRow1.appendChild(inCol1);
138
- var inShadowImg1 = document.createElement("img");
139
- inShadowImg1.setAttribute('src', zoomImagesURI+'zoom-shadow1.png');
140
- inShadowImg1.setAttribute('width', '27');
141
- inShadowImg1.setAttribute('height', '25');
142
- inShadowImg1.style.display = 'block';
143
- inCol1.appendChild(inShadowImg1);
144
-
145
- var inCol2 = document.createElement("td");
146
- inCol2.setAttribute('background', zoomImagesURI+'zoom-shadow2.png');
147
- inRow1.appendChild(inCol2);
148
- // inCol2.innerHTML = '<img src=';
149
- var inSpacer1 = document.createElement("img");
150
- inSpacer1.setAttribute('src',zoomImagesURI+'spacer.gif');
151
- inSpacer1.setAttribute('height', '1');
152
- inSpacer1.setAttribute('width', '1');
153
- inSpacer1.style.display = 'block';
154
- inCol2.appendChild(inSpacer1);
155
-
156
- var inCol3 = document.createElement("td");
157
- inCol3.style.width = '27px';
158
- inRow1.appendChild(inCol3);
159
- var inShadowImg3 = document.createElement("img");
160
- inShadowImg3.setAttribute('src', zoomImagesURI+'zoom-shadow3.png');
161
- inShadowImg3.setAttribute('width', '27');
162
- inShadowImg3.setAttribute('height', '25');
163
- inShadowImg3.style.display = 'block';
164
- inCol3.appendChild(inShadowImg3);
165
-
166
- // <tr>
167
- // <td background="/images/zoom-shadow4.png">&nbsp;</td>
168
- // <td bgcolor="#ffffff">&nbsp;</td>
169
- // <td background="/images/zoom-shadow5.png">&nbsp;</td>
170
- // </tr>
171
-
172
- inRow2 = document.createElement("tr");
173
- inShadowTbody.appendChild(inRow2);
174
-
175
- var inCol4 = document.createElement("td");
176
- inCol4.setAttribute('background', zoomImagesURI+'zoom-shadow4.png');
177
- inRow2.appendChild(inCol4);
178
- // inCol4.innerHTML = '&nbsp;';
179
- var inSpacer2 = document.createElement("img");
180
- inSpacer2.setAttribute('src',zoomImagesURI+'spacer.gif');
181
- inSpacer2.setAttribute('height', '1');
182
- inSpacer2.setAttribute('width', '1');
183
- inSpacer2.style.display = 'block';
184
- inCol4.appendChild(inSpacer2);
185
-
186
- var inCol5 = document.createElement("td");
187
- inCol5.setAttribute('bgcolor', '#ffffff');
188
- inRow2.appendChild(inCol5);
189
- // inCol5.innerHTML = '&nbsp;';
190
- var inSpacer3 = document.createElement("img");
191
- inSpacer3.setAttribute('src',zoomImagesURI+'spacer.gif');
192
- inSpacer3.setAttribute('height', '1');
193
- inSpacer3.setAttribute('width', '1');
194
- inSpacer3.style.display = 'block';
195
- inCol5.appendChild(inSpacer3);
196
-
197
- var inCol6 = document.createElement("td");
198
- inCol6.setAttribute('background', zoomImagesURI+'zoom-shadow5.png');
199
- inRow2.appendChild(inCol6);
200
- // inCol6.innerHTML = '&nbsp;';
201
- var inSpacer4 = document.createElement("img");
202
- inSpacer4.setAttribute('src',zoomImagesURI+'spacer.gif');
203
- inSpacer4.setAttribute('height', '1');
204
- inSpacer4.setAttribute('width', '1');
205
- inSpacer4.style.display = 'block';
206
- inCol6.appendChild(inSpacer4);
207
-
208
- // <tr height="26">
209
- // <td width="27"><img src="/images/zoom-shadow6.png" width="27" height="26"</td>
210
- // <td background="/images/zoom-shadow7.png">&nbsp;</td>
211
- // <td width="27"><img src="/images/zoom-shadow8.png" width="27" height="26"></td>
212
- // </tr>
213
- // </table>
214
-
215
- var inRow3 = document.createElement("tr");
216
- inRow3.style.height = '26px';
217
- inShadowTbody.appendChild(inRow3);
218
-
219
- var inCol7 = document.createElement("td");
220
- inCol7.style.width = '27px';
221
- inRow3.appendChild(inCol7);
222
- var inShadowImg7 = document.createElement("img");
223
- inShadowImg7.setAttribute('src', zoomImagesURI+'zoom-shadow6.png');
224
- inShadowImg7.setAttribute('width', '27');
225
- inShadowImg7.setAttribute('height', '26');
226
- inShadowImg7.style.display = 'block';
227
- inCol7.appendChild(inShadowImg7);
228
-
229
- var inCol8 = document.createElement("td");
230
- inCol8.setAttribute('background', zoomImagesURI+'zoom-shadow7.png');
231
- inRow3.appendChild(inCol8);
232
- // inCol8.innerHTML = '&nbsp;';
233
- var inSpacer5 = document.createElement("img");
234
- inSpacer5.setAttribute('src',zoomImagesURI+'spacer.gif');
235
- inSpacer5.setAttribute('height', '1');
236
- inSpacer5.setAttribute('width', '1');
237
- inSpacer5.style.display = 'block';
238
- inCol8.appendChild(inSpacer5);
239
-
240
- var inCol9 = document.createElement("td");
241
- inCol9.style.width = '27px';
242
- inRow3.appendChild(inCol9);
243
- var inShadowImg9 = document.createElement("img");
244
- inShadowImg9.setAttribute('src', zoomImagesURI+'zoom-shadow8.png');
245
- inShadowImg9.setAttribute('width', '27');
246
- inShadowImg9.setAttribute('height', '26');
247
- inShadowImg9.style.display = 'block';
248
- inCol9.appendChild(inShadowImg9);
249
- }
250
-
251
- if (includeCaption) {
252
-
253
- // CAPTION
254
- //
255
- // <div id="ZoomCapDiv" style="margin-left: 13px; margin-right: 13px;">
256
- // <table border="1" cellpadding="0" cellspacing="0">
257
- // <tr height="26">
258
- // <td><img src="zoom-caption-l.png" width="13" height="26"></td>
259
- // <td rowspan="3" background="zoom-caption-fill.png"><div id="ZoomCaption"></div></td>
260
- // <td><img src="zoom-caption-r.png" width="13" height="26"></td>
261
- // </tr>
262
- // </table>
263
- // </div>
264
-
265
- var inCapDiv = document.createElement("div");
266
- inCapDiv.setAttribute('id', 'ZoomCapDiv');
267
- inCapDiv.style.position = 'absolute';
268
- inCapDiv.style.visibility = 'hidden';
269
- inCapDiv.style.marginLeft = 'auto';
270
- inCapDiv.style.marginRight = 'auto';
271
- inCapDiv.style.zIndex = '501';
272
-
273
- inBody.insertBefore(inCapDiv, inZoombox.nextSibling);
274
-
275
- var inCapTable = document.createElement("table");
276
- inCapTable.setAttribute('border', '0');
277
- inCapTable.setAttribute('cellPadding', '0'); // Wow. These honestly need to
278
- inCapTable.setAttribute('cellSpacing', '0'); // be intercapped to work in IE. WTF?
279
- inCapDiv.appendChild(inCapTable);
280
-
281
- var inTbody = document.createElement("tbody"); // Needed for IE (for HTML4).
282
- inCapTable.appendChild(inTbody);
283
-
284
- var inCapRow1 = document.createElement("tr");
285
- inTbody.appendChild(inCapRow1);
286
-
287
- var inCapCol1 = document.createElement("td");
288
- inCapCol1.setAttribute('align', 'right');
289
- inCapRow1.appendChild(inCapCol1);
290
- var inCapImg1 = document.createElement("img");
291
- inCapImg1.setAttribute('src', zoomImagesURI+'zoom-caption-l.png');
292
- inCapImg1.setAttribute('width', '13');
293
- inCapImg1.setAttribute('height', '26');
294
- inCapImg1.style.display = 'block';
295
- inCapCol1.appendChild(inCapImg1);
296
-
297
- var inCapCol2 = document.createElement("td");
298
- inCapCol2.setAttribute('background', zoomImagesURI+'zoom-caption-fill.png');
299
- inCapCol2.setAttribute('id', 'ZoomCaption');
300
- inCapCol2.setAttribute('valign', 'middle');
301
- inCapCol2.style.fontSize = '14px';
302
- inCapCol2.style.fontFamily = 'Helvetica';
303
- inCapCol2.style.fontWeight = 'bold';
304
- inCapCol2.style.color = '#ffffff';
305
- inCapCol2.style.textShadow = '0px 2px 4px #000000';
306
- inCapCol2.style.whiteSpace = 'nowrap';
307
- inCapRow1.appendChild(inCapCol2);
308
-
309
- var inCapCol3 = document.createElement("td");
310
- inCapRow1.appendChild(inCapCol3);
311
- var inCapImg2 = document.createElement("img");
312
- inCapImg2.setAttribute('src', zoomImagesURI+'zoom-caption-r.png');
313
- inCapImg2.setAttribute('width', '13');
314
- inCapImg2.setAttribute('height', '26');
315
- inCapImg2.style.display = 'block';
316
- inCapCol3.appendChild(inCapImg2);
317
- }
318
- }
@@ -1,24 +0,0 @@
1
- # Require any additional compass plugins here.
2
-
3
- # Set this to the root of your project when deployed:
4
- http_path = "/"
5
- css_dir = "stylesheets"
6
- sass_dir = "sass"
7
- images_dir = "images"
8
- javascripts_dir = "javascripts"
9
-
10
- # You can select your preferred output style here (can be overridden via the command line):
11
- # output_style = :expanded or :nested or :compact or :compressed
12
-
13
- # To enable relative paths to assets via compass helper functions. Uncomment:
14
- # relative_assets = true
15
-
16
- # To disable debugging comments that display the original location of your selectors. Uncomment:
17
- # line_comments = false
18
-
19
-
20
- # If you prefer the indented syntax, you might want to regenerate this
21
- # project again passing --syntax sass, or you can uncomment this:
22
- # preferred_syntax = :sass
23
- # and then run:
24
- # sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
@@ -1,5 +0,0 @@
1
- /* Welcome to Compass. Use this file to write IE specific override styles.
2
- * Import this file using the following HTML or equivalent:
3
- * <!--[if IE]>
4
- * <link href="/stylesheets/ie.css" media="screen, projection" rel="stylesheet" type="text/css" />
5
- * <![endif]--> */
@@ -1,3 +0,0 @@
1
- /* Welcome to Compass. Use this file to define print styles.
2
- * Import this file using the following HTML or equivalent:
3
- * <link href="/stylesheets/print.css" media="print" rel="stylesheet" type="text/css" /> */
@@ -1,6 +0,0 @@
1
- /* Welcome to Compass.
2
- * In this file you should write your main styles. (or centralize your imports)
3
- * Import this file using the following HTML or equivalent:
4
- * <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" /> */
5
-
6
- @import "compass/reset";
@@ -1,5 +0,0 @@
1
- /* Welcome to Compass. Use this file to write IE specific override styles.
2
- * Import this file using the following HTML or equivalent:
3
- * <!--[if IE]>
4
- * <link href="/stylesheets/ie.css" media="screen, projection" rel="stylesheet" type="text/css" />
5
- * <![endif]--> */
@@ -1,3 +0,0 @@
1
- /* Welcome to Compass. Use this file to define print styles.
2
- * Import this file using the following HTML or equivalent:
3
- * <link href="/stylesheets/print.css" media="print" rel="stylesheet" type="text/css" /> */
@@ -1,69 +0,0 @@
1
- /* Welcome to Compass.
2
- * In this file you should write your main styles. (or centralize your imports)
3
- * Import this file using the following HTML or equivalent:
4
- * <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" /> */
5
- /* line 17, ../../../../.rvm/gems/ruby-1.9.2-p180/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
6
- html, body, div, span, applet, object, iframe,
7
- h1, h2, h3, h4, h5, h6, p, blockquote, pre,
8
- a, abbr, acronym, address, big, cite, code,
9
- del, dfn, em, img, ins, kbd, q, s, samp,
10
- small, strike, strong, sub, sup, tt, var,
11
- b, u, i, center,
12
- dl, dt, dd, ol, ul, li,
13
- fieldset, form, label, legend,
14
- table, caption, tbody, tfoot, thead, tr, th, td,
15
- article, aside, canvas, details, embed,
16
- figure, figcaption, footer, header, hgroup,
17
- menu, nav, output, ruby, section, summary,
18
- time, mark, audio, video {
19
- margin: 0;
20
- padding: 0;
21
- border: 0;
22
- font-size: 100%;
23
- font: inherit;
24
- vertical-align: baseline;
25
- }
26
-
27
- /* line 20, ../../../../.rvm/gems/ruby-1.9.2-p180/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
28
- body {
29
- line-height: 1;
30
- }
31
-
32
- /* line 22, ../../../../.rvm/gems/ruby-1.9.2-p180/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
33
- ol, ul {
34
- list-style: none;
35
- }
36
-
37
- /* line 24, ../../../../.rvm/gems/ruby-1.9.2-p180/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
38
- table {
39
- border-collapse: collapse;
40
- border-spacing: 0;
41
- }
42
-
43
- /* line 26, ../../../../.rvm/gems/ruby-1.9.2-p180/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
44
- caption, th, td {
45
- text-align: left;
46
- font-weight: normal;
47
- vertical-align: middle;
48
- }
49
-
50
- /* line 28, ../../../../.rvm/gems/ruby-1.9.2-p180/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
51
- q, blockquote {
52
- quotes: none;
53
- }
54
- /* line 101, ../../../../.rvm/gems/ruby-1.9.2-p180/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
55
- q:before, q:after, blockquote:before, blockquote:after {
56
- content: "";
57
- content: none;
58
- }
59
-
60
- /* line 30, ../../../../.rvm/gems/ruby-1.9.2-p180/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
61
- a img {
62
- border: none;
63
- }
64
-
65
- /* line 115, ../../../../.rvm/gems/ruby-1.9.2-p180/gems/compass-0.11.3/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
66
- article, aside, details, figcaption, figure,
67
- footer, header, hgroup, menu, nav, section {
68
- display: block;
69
- }
@@ -1,30 +0,0 @@
1
- require 'sweetie/conversion'
2
-
3
- describe Sweetie::Conversion do
4
- before :each do
5
- current_dir = File.dirname(__FILE__)
6
- @about_page = File.join(current_dir, 'source', 'site', 'about.html')
7
- @site_dir = File.join(current_dir, 'source', 'site')
8
- @stati = Sweetie::Conversion
9
- end
10
-
11
- it "should count links of about.html page" do
12
- @stati.count_link_of_one_page(@about_page).should == 11
13
- end
14
-
15
- it "should count images of about.html page" do
16
- @stati.count_images_of_one_page(@about_page).should == 1
17
- end
18
-
19
- it "should count all html pages" do
20
- @stati.count_all_html_pages(@site_dir).should == 8
21
- end
22
-
23
- it "should count all links of all pages" do
24
- @stati.count_all_links(@site_dir).should == 54
25
- end
26
-
27
- it "should count all images" do
28
- @stati.count_all_images(@site_dir).should == 1
29
- end
30
- end