cobweb 0.0.55 → 0.0.57

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. data/README.textile +2 -1
  2. data/lib/cobweb.rb +4 -1
  3. data/lib/cobweb_crawler.rb +1 -4
  4. data/lib/cobweb_version.rb +1 -1
  5. data/lib/content_link_parser.rb +1 -0
  6. data/lib/crawl_job.rb +4 -3
  7. data/lib/server.rb +2 -2
  8. data/lib/stats.rb +6 -1
  9. data/spec/cobweb/cobweb_job_spec.rb +162 -24
  10. data/spec/samples/sample_server.rb +21 -0
  11. data/spec/samples/sample_site/boxgrid.html +258 -0
  12. data/spec/samples/sample_site/css/accordion.css +45 -0
  13. data/spec/samples/sample_site/css/datatable.css +189 -0
  14. data/spec/samples/sample_site/css/datepicker.css +171 -0
  15. data/spec/samples/sample_site/css/form-buttons.css +180 -0
  16. data/spec/samples/sample_site/css/forms.css +489 -0
  17. data/spec/samples/sample_site/css/jquery.fancybox-1.3.4.css +282 -0
  18. data/spec/samples/sample_site/css/jquery.treeview.css +103 -0
  19. data/spec/samples/sample_site/css/link-buttons.css +187 -0
  20. data/spec/samples/sample_site/css/login.css +110 -0
  21. data/spec/samples/sample_site/css/menu.css +156 -0
  22. data/spec/samples/sample_site/css/messages.css +58 -0
  23. data/spec/samples/sample_site/css/modalbox.css +63 -0
  24. data/spec/samples/sample_site/css/statics.css +57 -0
  25. data/spec/samples/sample_site/css/style.css +497 -0
  26. data/spec/samples/sample_site/css/style_text.css +128 -0
  27. data/spec/samples/sample_site/css/tabs.css +58 -0
  28. data/spec/samples/sample_site/css/wysiwyg-editor.css +18 -0
  29. data/spec/samples/sample_site/css/wysiwyg.css +149 -0
  30. data/spec/samples/sample_site/css/wysiwyg.modal.css +69 -0
  31. data/spec/samples/sample_site/dashboard.html +852 -0
  32. data/spec/samples/sample_site/forms.html +329 -0
  33. data/spec/samples/sample_site/gallery.html +263 -0
  34. data/spec/samples/sample_site/gfx/back-menu.gif +0 -0
  35. data/spec/samples/sample_site/gfx/back-submenu.gif +0 -0
  36. data/spec/samples/sample_site/gfx/background.gif +0 -0
  37. data/spec/samples/sample_site/gfx/box-hide.png +0 -0
  38. data/spec/samples/sample_site/gfx/box-search.png +0 -0
  39. data/spec/samples/sample_site/gfx/box-title.gif +0 -0
  40. data/spec/samples/sample_site/gfx/code.gif +0 -0
  41. data/spec/samples/sample_site/gfx/datepicker-arrows.gif +0 -0
  42. data/spec/samples/sample_site/gfx/fancybox/blank.gif +0 -0
  43. data/spec/samples/sample_site/gfx/fancybox/fancy_close.png +0 -0
  44. data/spec/samples/sample_site/gfx/fancybox/fancy_loading.png +0 -0
  45. data/spec/samples/sample_site/gfx/fancybox/fancy_nav_left.png +0 -0
  46. data/spec/samples/sample_site/gfx/fancybox/fancy_nav_right.png +0 -0
  47. data/spec/samples/sample_site/gfx/fancybox/fancy_title_left.png +0 -0
  48. data/spec/samples/sample_site/gfx/fancybox/fancy_title_main.png +0 -0
  49. data/spec/samples/sample_site/gfx/fancybox/fancy_title_over.png +0 -0
  50. data/spec/samples/sample_site/gfx/fancybox/fancy_title_right.png +0 -0
  51. data/spec/samples/sample_site/gfx/fancybox/fancybox-x.png +0 -0
  52. data/spec/samples/sample_site/gfx/fancybox/fancybox.png +0 -0
  53. data/spec/samples/sample_site/gfx/forms/date-next.gif +0 -0
  54. data/spec/samples/sample_site/gfx/forms/date-prev.gif +0 -0
  55. data/spec/samples/sample_site/gfx/forms/forms-checkbox.gif +0 -0
  56. data/spec/samples/sample_site/gfx/forms/forms-date.gif +0 -0
  57. data/spec/samples/sample_site/gfx/forms/forms-file.gif +0 -0
  58. data/spec/samples/sample_site/gfx/forms/forms-input-big.gif +0 -0
  59. data/spec/samples/sample_site/gfx/forms/forms-input-medium.gif +0 -0
  60. data/spec/samples/sample_site/gfx/forms/forms-input-small.gif +0 -0
  61. data/spec/samples/sample_site/gfx/forms/forms-input-xl.gif +0 -0
  62. data/spec/samples/sample_site/gfx/forms/forms-radio.gif +0 -0
  63. data/spec/samples/sample_site/gfx/forms/forms-selectbox-small.gif +0 -0
  64. data/spec/samples/sample_site/gfx/forms/forms-selectbox.gif +0 -0
  65. data/spec/samples/sample_site/gfx/forms/forms-textarea-big.gif +0 -0
  66. data/spec/samples/sample_site/gfx/forms/forms-textarea-medium.gif +0 -0
  67. data/spec/samples/sample_site/gfx/forms/forms-textarea-small.gif +0 -0
  68. data/spec/samples/sample_site/gfx/forms/forms-textarea-xl.gif +0 -0
  69. data/spec/samples/sample_site/gfx/icon-delete.png +0 -0
  70. data/spec/samples/sample_site/gfx/icon-edit.png +0 -0
  71. data/spec/samples/sample_site/gfx/icon-home.gif +0 -0
  72. data/spec/samples/sample_site/gfx/img-delete.png +0 -0
  73. data/spec/samples/sample_site/gfx/img-hover.png +0 -0
  74. data/spec/samples/sample_site/gfx/img-zoom.png +0 -0
  75. data/spec/samples/sample_site/gfx/jquery.wysiwyg.gif +0 -0
  76. data/spec/samples/sample_site/gfx/label-icons.gif +0 -0
  77. data/spec/samples/sample_site/gfx/label.gif +0 -0
  78. data/spec/samples/sample_site/gfx/li-down.gif +0 -0
  79. data/spec/samples/sample_site/gfx/li.gif +0 -0
  80. data/spec/samples/sample_site/gfx/link-button-big.gif +0 -0
  81. data/spec/samples/sample_site/gfx/link-button-medium.gif +0 -0
  82. data/spec/samples/sample_site/gfx/link-button.gif +0 -0
  83. data/spec/samples/sample_site/gfx/loading-2.gif +0 -0
  84. data/spec/samples/sample_site/gfx/loading.gif +0 -0
  85. data/spec/samples/sample_site/gfx/logo.png +0 -0
  86. data/spec/samples/sample_site/gfx/modal-title.gif +0 -0
  87. data/spec/samples/sample_site/gfx/photos/00.jpg +0 -0
  88. data/spec/samples/sample_site/gfx/photos/01.jpg +0 -0
  89. data/spec/samples/sample_site/gfx/photos/01xl.jpg +0 -0
  90. data/spec/samples/sample_site/gfx/photos/02.jpg +0 -0
  91. data/spec/samples/sample_site/gfx/photos/02xl.jpg +0 -0
  92. data/spec/samples/sample_site/gfx/photos/03.jpg +0 -0
  93. data/spec/samples/sample_site/gfx/photos/03xl.jpg +0 -0
  94. data/spec/samples/sample_site/gfx/photos/04.jpg +0 -0
  95. data/spec/samples/sample_site/gfx/photos/04xl.jpg +0 -0
  96. data/spec/samples/sample_site/gfx/photos/05.jpg +0 -0
  97. data/spec/samples/sample_site/gfx/photos/05xl.jpg +0 -0
  98. data/spec/samples/sample_site/gfx/photos/06.jpg +0 -0
  99. data/spec/samples/sample_site/gfx/photos/06xl.jpg +0 -0
  100. data/spec/samples/sample_site/gfx/photos/07.jpg +0 -0
  101. data/spec/samples/sample_site/gfx/photos/07xl.jpg +0 -0
  102. data/spec/samples/sample_site/gfx/photos/08.jpg +0 -0
  103. data/spec/samples/sample_site/gfx/photos/08xl.jpg +0 -0
  104. data/spec/samples/sample_site/gfx/photos/09.jpg +0 -0
  105. data/spec/samples/sample_site/gfx/photos/09xl.jpg +0 -0
  106. data/spec/samples/sample_site/gfx/photos/10.jpg +0 -0
  107. data/spec/samples/sample_site/gfx/photos/10xl.jpg +0 -0
  108. data/spec/samples/sample_site/gfx/photos/11.jpg +0 -0
  109. data/spec/samples/sample_site/gfx/photos/11xl.jpg +0 -0
  110. data/spec/samples/sample_site/gfx/photos/12.jpg +0 -0
  111. data/spec/samples/sample_site/gfx/photos/12xl.jpg +0 -0
  112. data/spec/samples/sample_site/gfx/photos/13.jpg +0 -0
  113. data/spec/samples/sample_site/gfx/photos/13xl.jpg +0 -0
  114. data/spec/samples/sample_site/gfx/photos/14.jpg +0 -0
  115. data/spec/samples/sample_site/gfx/photos/14xl.jpg +0 -0
  116. data/spec/samples/sample_site/gfx/photos/15.jpg +0 -0
  117. data/spec/samples/sample_site/gfx/photos/15xl.jpg +0 -0
  118. data/spec/samples/sample_site/gfx/search-button.gif +0 -0
  119. data/spec/samples/sample_site/gfx/search-input.gif +0 -0
  120. data/spec/samples/sample_site/gfx/slider-button.gif +0 -0
  121. data/spec/samples/sample_site/gfx/system-messages.gif +0 -0
  122. data/spec/samples/sample_site/gfx/table-asc-arrow.gif +0 -0
  123. data/spec/samples/sample_site/gfx/table-desc-arrow.gif +0 -0
  124. data/spec/samples/sample_site/gfx/table-first.gif +0 -0
  125. data/spec/samples/sample_site/gfx/table-last.gif +0 -0
  126. data/spec/samples/sample_site/gfx/table-next.gif +0 -0
  127. data/spec/samples/sample_site/gfx/table-number.gif +0 -0
  128. data/spec/samples/sample_site/gfx/table-prev.gif +0 -0
  129. data/spec/samples/sample_site/gfx/table-rows.gif +0 -0
  130. data/spec/samples/sample_site/gfx/table-search.gif +0 -0
  131. data/spec/samples/sample_site/gfx/table-thead.gif +0 -0
  132. data/spec/samples/sample_site/gfx/tooltip.gif +0 -0
  133. data/spec/samples/sample_site/gfx/treeview/ajax-loader.gif +0 -0
  134. data/spec/samples/sample_site/gfx/treeview/file.gif +0 -0
  135. data/spec/samples/sample_site/gfx/treeview/folder-closed.gif +0 -0
  136. data/spec/samples/sample_site/gfx/treeview/folder.gif +0 -0
  137. data/spec/samples/sample_site/gfx/treeview/minus.gif +0 -0
  138. data/spec/samples/sample_site/gfx/treeview/plus.gif +0 -0
  139. data/spec/samples/sample_site/gfx/treeview/treeview-default-line.gif +0 -0
  140. data/spec/samples/sample_site/gfx/treeview/treeview-default.gif +0 -0
  141. data/spec/samples/sample_site/index.html +852 -0
  142. data/spec/samples/sample_site/js/controls/wysiwyg.image.js +284 -0
  143. data/spec/samples/sample_site/js/controls/wysiwyg.link.js +210 -0
  144. data/spec/samples/sample_site/js/controls/wysiwyg.table.js +151 -0
  145. data/spec/samples/sample_site/js/customInput.jquery.js +68 -0
  146. data/spec/samples/sample_site/js/excanvas.min.js +1 -0
  147. data/spec/samples/sample_site/js/hoverIntent.js +84 -0
  148. data/spec/samples/sample_site/js/inline.js +392 -0
  149. data/spec/samples/sample_site/js/jquery-1.7.1.min.js +4 -0
  150. data/spec/samples/sample_site/js/jquery-ui-select.js +522 -0
  151. data/spec/samples/sample_site/js/jquery-ui-timepicker-addon.js +1299 -0
  152. data/spec/samples/sample_site/js/jquery-ui.js +791 -0
  153. data/spec/samples/sample_site/js/jquery.dataTables.js +7440 -0
  154. data/spec/samples/sample_site/js/jquery.fancybox-1.3.4.js +1156 -0
  155. data/spec/samples/sample_site/js/jquery.filestyle.mini.js +2 -0
  156. data/spec/samples/sample_site/js/jquery.flot.js +2600 -0
  157. data/spec/samples/sample_site/js/jquery.flot.resize.min.js +60 -0
  158. data/spec/samples/sample_site/js/jquery.graphtable-0.2.js +179 -0
  159. data/spec/samples/sample_site/js/jquery.tipsy.js +104 -0
  160. data/spec/samples/sample_site/js/jquery.treeview.js +256 -0
  161. data/spec/samples/sample_site/js/jquery.wysiwyg.js +2454 -0
  162. data/spec/samples/sample_site/js/plugins/wysiwyg.rmFormat.js +348 -0
  163. data/spec/samples/sample_site/js/superfish.js +121 -0
  164. data/spec/samples/sample_site/js/supersubs.js +90 -0
  165. data/spec/samples/sample_site/more.html +503 -0
  166. data/spec/samples/sample_site/tables.html +845 -0
  167. data/spec/samples/sample_site/text/museosans-webfont.eot +0 -0
  168. data/spec/samples/sample_site/text/museosans-webfont.svg +231 -0
  169. data/spec/samples/sample_site/text/museosans-webfont.ttf +0 -0
  170. data/spec/samples/sample_site/text/museosans-webfont.woff +0 -0
  171. data/spec/samples/sample_site/text/museosans_bold-webfont.eot +0 -0
  172. data/spec/samples/sample_site/text/museosans_bold-webfont.svg +231 -0
  173. data/spec/samples/sample_site/text/museosans_bold-webfont.ttf +0 -0
  174. data/spec/samples/sample_site/text/museosans_bold-webfont.woff +0 -0
  175. data/spec/samples/sample_site/typography.html +192 -0
  176. data/spec/spec_helper.rb +10 -2
  177. metadata +196 -26
@@ -0,0 +1,192 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
+
4
+ <head>
5
+
6
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
7
+ <title>CleanDream</title>
8
+
9
+ <style type="text/css">
10
+ @import url("css/style.css");
11
+ @import url('css/style_text.css');
12
+ @import url('css/form-buttons.css');
13
+ @import url('css/link-buttons.css');
14
+ @import url('css/menu.css');
15
+ @import url('css/statics.css');
16
+ @import url('css/messages.css');
17
+ @import url('css/datatable.css');
18
+ @import url('css/accordion.css');
19
+ @import url('css/tabs.css');
20
+ @import url('css/forms.css');
21
+ @import url('css/datepicker.css');
22
+ @import url('css/modalbox.css');
23
+ @import url('css/jquery.fancybox-1.3.4.css');
24
+ @import url('css/jquery.treeview.css');
25
+ @import url('css/wysiwyg.css');
26
+ @import url('css/wysiwyg.modal.css');
27
+ @import url('css/wysiwyg-editor.css');
28
+ </style>
29
+
30
+ <script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
31
+
32
+ <!--[if lte IE 8]>
33
+ <script type="text/javascript" src="js/excanvas.min.js"></script>
34
+ <![endif]-->
35
+
36
+ </head>
37
+
38
+ <body>
39
+
40
+ <div class="container">
41
+
42
+ <div class="logo-labels">
43
+ <h1><a href="#">CleanDream</a></h1>
44
+ <ul>
45
+ <li><a href="#"><span>Settings</span></a></li>
46
+ <li class="usermessage"><a href="#"><span>1 new message</span></a></li>
47
+ <li class="logout"><a href="#"><span>Logout</span></a></li>
48
+ </ul>
49
+ </div>
50
+
51
+ <div class="menu-search">
52
+ <ul>
53
+ <li><a href="dashboard.html">Dashboard</a></li>
54
+ <li>
55
+ <a href="#">Dropdown</a>
56
+ <ul>
57
+ <li><a href="#">Submenu item 001</a></li>
58
+ <li><a href="#">Submenu item 002</a></li>
59
+ <li><a href="#">Submenu item 003</a></li>
60
+ <li class="current">
61
+ <a href="#">Submenu item 004</a>
62
+ <ul>
63
+ <li><a href="#">Subsubmenu item 001</a></li>
64
+ <li><a href="#">Subsubmenu item 002</a></li>
65
+ <li class="current"><a href="#">Subsubmenu item 003</a></li>
66
+ <li><a href="#">Subsubmenu item 003</a></li>
67
+ <li><a href="#">Subsubmenu item 005</a></li>
68
+ </ul>
69
+ </li>
70
+ <li> <a href="#">Submenu item 005</a> </li>
71
+ </ul>
72
+ </li>
73
+ <li class="current"><a href="typography.html">Typography</a></li>
74
+ <li><a href="boxgrid.html">Boxes Grid</a></li>
75
+ <li><a href="forms.html">Forms</a></li>
76
+ <li><a href="gallery.html">Gallery</a></li>
77
+ <li><a href="tables.html">Tables</a></li>
78
+ <li><a href="more.html">More</a></li>
79
+ </ul>
80
+ <div class="search">
81
+ <form action="" method="post">
82
+ <input type="text" value="Seachterm" />
83
+ <button type="submit"></button>
84
+ </form>
85
+ </div>
86
+ </div>
87
+
88
+ <div class="breadcrumbs">
89
+ <ul>
90
+ <li class="home"><a href="#"></a></li>
91
+ <li class="break">&#187;</li>
92
+ <li><a href="#">Menu item</a></li>
93
+ <li class="break">&#187;</li>
94
+ <li><a href="#">Menu item</a></li>
95
+ </ul>
96
+ </div>
97
+
98
+ <div class="section">
99
+ <div class="full">
100
+ <div class="box">
101
+ <div class="title">
102
+ <h2>Full box</h2>
103
+ <span class="hide"></span>
104
+ </div>
105
+ <div class="content">
106
+ <h1>This is a H1 heading.</h1>
107
+ Cras interdum sodales eros sed vehicula. Nulla nec felis augue, sit amet rutrum
108
+ risus. Mauris rutrum metus eu neque egestas scelerisque tempus massa
109
+ ultricies. Maecenas vehicula dictum ligula vel convallis.<br />
110
+ <br />
111
+ <h2>This is a H2 heading.</h2>
112
+ Cras interdum sodales eros sed vehicula. Nulla nec felis augue, sit amet rutrum
113
+ risus. Mauris rutrum metus eu neque egestas scelerisque tempus massa
114
+ ultricies. Maecenas vehicula dictum ligula vel convallis.<br />
115
+ <br />
116
+ <h3>This is a H3 heading.</h3>
117
+ Cras interdum sodales eros sed vehicula. Nulla nec felis augue, sit amet rutrum
118
+ risus. Mauris rutrum metus eu neque egestas scelerisque tempus massa
119
+ ultricies. Maecenas vehicula dictum ligula vel convallis.<br />
120
+ <br />
121
+ <h4>This is a H4 heading.</h4>
122
+ Cras interdum sodales eros sed vehicula. Nulla nec felis augue, sit amet rutrum
123
+ risus. Mauris rutrum metus eu neque egestas scelerisque tempus massa
124
+ ultricies. Maecenas vehicula dictum ligula vel convallis.<br />
125
+ <br />
126
+ <h4>A bullet list</h4>
127
+ <ul>
128
+ <li>Morbi porttitor risus a nulla vestibulum vulputate.</li>
129
+ <li>Curabitur vestibulum condimentum arcu non.</li>
130
+ <li>Vestibulum mollis rutrum diam nec euismod.</li>
131
+ <li>Aenean feugiat vestibulum congue donec nibh nulla, ullamcorper.</li>
132
+ </ul>
133
+ <br />
134
+ <h4>A numbered list</h4>
135
+ <ol>
136
+ <li>Morbi porttitor risus a nulla vestibulum vulputate.</li>
137
+ <li>Curabitur vestibulum condimentum arcu non.</li>
138
+ <li>Vestibulum mollis rutrum diam nec euismod.</li>
139
+ <li>Aenean feugiat vestibulum congue donec nibh nulla, ullamcorper.</li>
140
+ </ol>
141
+ <br />
142
+ <h4>A blockquote</h4>
143
+ <blockquote>
144
+ Phasellus vestibulum, tortor vitae ullamcorper commodo, est arcu sodales nisi, vel gravida lectus ante
145
+ vitae orci. Sed vitae mattis nibh. Nunc non sem eros. Curabitur eu nunc in tortor ornare sollicitudin.
146
+ Quisque odio mauris, scelerisque sit amet aliquam et, gravida non augue. Sed velit purus, pharetra vel
147
+ malesuada ut, bibendum eu risus.
148
+ </blockquote>
149
+ <br />
150
+ <h4>Pre block</h4>
151
+ <pre>Hello this is a pre block</pre>
152
+ <br />
153
+ <h4>Code block</h4>
154
+ <pre><code><div class="Some class">
155
+ <p>Hello, this is a code block</p>
156
+ </div></code></pre>
157
+ </div>
158
+ </div>
159
+ </div>
160
+ </div>
161
+
162
+ <div class="footer">
163
+ <div class="split">&#169; Copyright <a href="#">website.com</a></div>
164
+ <div class="split right">Powered by <a href="http://themeforest.net/item/cleandream/490140" target="_blank">CleanDream</a></div>
165
+ </div>
166
+ </div>
167
+
168
+ <script type="text/javascript" src="js/superfish.js"></script>
169
+ <script type="text/javascript" src="js/supersubs.js"></script>
170
+ <script type="text/javascript" src="js/hoverIntent.js"></script>
171
+ <script type="text/javascript" src="js/jquery.flot.js"></script>
172
+ <script type="text/javascript" src="js/jquery.graphtable-0.2.js"></script>
173
+ <script type="text/javascript" src="js/jquery.flot.resize.min.js"></script>
174
+ <script type="text/javascript" src="js/jquery-ui.js"></script>
175
+ <script type="text/javascript" src="js/jquery-ui-select.js"></script>
176
+ <script type="text/javascript" src="js/customInput.jquery.js"></script>
177
+ <script type="text/javascript" src="js/jquery.dataTables.js"></script>
178
+ <script type="text/javascript" src="js/jquery.fancybox-1.3.4.js"></script>
179
+ <script type="text/javascript" src="js/jquery.filestyle.mini.js"></script>
180
+ <script type="text/javascript" src="js/jquery-ui-timepicker-addon.js"></script>
181
+ <script type="text/javascript" src="js/jquery.treeview.js"></script>
182
+ <script type="text/javascript" src="js/jquery.tipsy.js"></script>
183
+ <script type="text/javascript" src="js/jquery.wysiwyg.js"></script>
184
+ <script type="text/javascript" src="js/plugins/wysiwyg.rmFormat.js"></script>
185
+ <script type="text/javascript" src="js/controls/wysiwyg.image.js"></script>
186
+ <script type="text/javascript" src="js/controls/wysiwyg.link.js"></script>
187
+ <script type="text/javascript" src="js/controls/wysiwyg.table.js"></script>
188
+ <script type="text/javascript" src="js/inline.js"></script>
189
+
190
+ </body>
191
+
192
+ </html>
data/spec/spec_helper.rb CHANGED
@@ -1,14 +1,22 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../lib/cobweb')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../spec/samples/sample_server')
2
3
  require 'mock_redis'
4
+ require 'thin' if ENV["TRAVIS_RUBY_VERSION"].nil?
3
5
 
4
6
  # Sets up the environment as test so that exceptions are raised
5
7
  ENVIRONMENT = "test"
8
+ APP_ROOT = File.expand_path(File.dirname(__FILE__) + '/../')
6
9
 
7
10
  RSpec.configure do |config|
11
+
12
+ unless ENV["TRAVIS_RUBY_VERSION"].nil?
13
+ config.filter_run_excluding :local_only => true
14
+ end
15
+
8
16
  config.before(:each) {
9
17
 
10
- redis_mock = double("redis")
11
- redis_mock.stub(:new).and_return(@redis_mock_object)
18
+ #redis_mock = double("redis")
19
+ #redis_mock.stub(:new).and_return(@redis_mock_object)
12
20
 
13
21
  #redis_mock.flushdb
14
22
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cobweb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.55
4
+ version: 0.0.57
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-08 00:00:00.000000000 Z
12
+ date: 2012-06-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: resque
16
- requirement: &70166180363640 !ruby/object:Gem::Requirement
16
+ requirement: &70194152226040 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70166180363640
24
+ version_requirements: *70194152226040
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: redis
27
- requirement: &70166180362480 !ruby/object:Gem::Requirement
27
+ requirement: &70194152224380 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70166180362480
35
+ version_requirements: *70194152224380
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: nokogiri
38
- requirement: &70166180361540 !ruby/object:Gem::Requirement
38
+ requirement: &70194152223560 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70166180361540
46
+ version_requirements: *70194152223560
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: addressable
49
- requirement: &70166180359680 !ruby/object:Gem::Requirement
49
+ requirement: &70194152222500 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70166180359680
57
+ version_requirements: *70194152222500
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rspec
60
- requirement: &70166180357240 !ruby/object:Gem::Requirement
60
+ requirement: &70194152220920 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70166180357240
68
+ version_requirements: *70194152220920
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: awesome_print
71
- requirement: &70166180380020 !ruby/object:Gem::Requirement
71
+ requirement: &70194152236080 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70166180380020
79
+ version_requirements: *70194152236080
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: sinatra
82
- requirement: &70166180377140 !ruby/object:Gem::Requirement
82
+ requirement: &70194152235480 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70166180377140
90
+ version_requirements: *70194152235480
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: thin
93
- requirement: &70166180389240 !ruby/object:Gem::Requirement
93
+ requirement: &70194152234920 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '0'
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *70166180389240
101
+ version_requirements: *70194152234920
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: haml
104
- requirement: &70166180388200 !ruby/object:Gem::Requirement
104
+ requirement: &70194152234340 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: '0'
110
110
  type: :runtime
111
111
  prerelease: false
112
- version_requirements: *70166180388200
112
+ version_requirements: *70194152234340
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: namespaced_redis
115
- requirement: &70166180387040 !ruby/object:Gem::Requirement
115
+ requirement: &70194152233680 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ! '>='
@@ -120,9 +120,11 @@ dependencies:
120
120
  version: 1.0.2
121
121
  type: :runtime
122
122
  prerelease: false
123
- version_requirements: *70166180387040
124
- description: Web Crawler that uses resque background job engine to allow you to cluster
125
- your crawl.
123
+ version_requirements: *70194152233680
124
+ description: Cobweb is a web crawler that can use resque to cluster crawls to quickly
125
+ crawl extremely large sites which is much more perofmant than multi-threaded crawlers. It
126
+ is also a standalone crawler that has a sophisticated statistics monitoring interface
127
+ to monitor the progress of the crawls.
126
128
  email: stewart@rockwellcottage.com
127
129
  executables: []
128
130
  extensions: []
@@ -135,6 +137,172 @@ files:
135
137
  - spec/cobweb/cobweb_spec.rb
136
138
  - spec/cobweb/content_link_parser_spec.rb
137
139
  - spec/samples/sample_html_links.html
140
+ - spec/samples/sample_server.rb
141
+ - spec/samples/sample_site/boxgrid.html
142
+ - spec/samples/sample_site/css/accordion.css
143
+ - spec/samples/sample_site/css/datatable.css
144
+ - spec/samples/sample_site/css/datepicker.css
145
+ - spec/samples/sample_site/css/form-buttons.css
146
+ - spec/samples/sample_site/css/forms.css
147
+ - spec/samples/sample_site/css/jquery.fancybox-1.3.4.css
148
+ - spec/samples/sample_site/css/jquery.treeview.css
149
+ - spec/samples/sample_site/css/link-buttons.css
150
+ - spec/samples/sample_site/css/login.css
151
+ - spec/samples/sample_site/css/menu.css
152
+ - spec/samples/sample_site/css/messages.css
153
+ - spec/samples/sample_site/css/modalbox.css
154
+ - spec/samples/sample_site/css/statics.css
155
+ - spec/samples/sample_site/css/style.css
156
+ - spec/samples/sample_site/css/style_text.css
157
+ - spec/samples/sample_site/css/tabs.css
158
+ - spec/samples/sample_site/css/wysiwyg-editor.css
159
+ - spec/samples/sample_site/css/wysiwyg.css
160
+ - spec/samples/sample_site/css/wysiwyg.modal.css
161
+ - spec/samples/sample_site/dashboard.html
162
+ - spec/samples/sample_site/forms.html
163
+ - spec/samples/sample_site/gallery.html
164
+ - spec/samples/sample_site/gfx/back-menu.gif
165
+ - spec/samples/sample_site/gfx/back-submenu.gif
166
+ - spec/samples/sample_site/gfx/background.gif
167
+ - spec/samples/sample_site/gfx/box-hide.png
168
+ - spec/samples/sample_site/gfx/box-search.png
169
+ - spec/samples/sample_site/gfx/box-title.gif
170
+ - spec/samples/sample_site/gfx/code.gif
171
+ - spec/samples/sample_site/gfx/datepicker-arrows.gif
172
+ - spec/samples/sample_site/gfx/fancybox/blank.gif
173
+ - spec/samples/sample_site/gfx/fancybox/fancy_close.png
174
+ - spec/samples/sample_site/gfx/fancybox/fancy_loading.png
175
+ - spec/samples/sample_site/gfx/fancybox/fancy_nav_left.png
176
+ - spec/samples/sample_site/gfx/fancybox/fancy_nav_right.png
177
+ - spec/samples/sample_site/gfx/fancybox/fancy_title_left.png
178
+ - spec/samples/sample_site/gfx/fancybox/fancy_title_main.png
179
+ - spec/samples/sample_site/gfx/fancybox/fancy_title_over.png
180
+ - spec/samples/sample_site/gfx/fancybox/fancy_title_right.png
181
+ - spec/samples/sample_site/gfx/fancybox/fancybox-x.png
182
+ - spec/samples/sample_site/gfx/fancybox/fancybox.png
183
+ - spec/samples/sample_site/gfx/forms/date-next.gif
184
+ - spec/samples/sample_site/gfx/forms/date-prev.gif
185
+ - spec/samples/sample_site/gfx/forms/forms-checkbox.gif
186
+ - spec/samples/sample_site/gfx/forms/forms-date.gif
187
+ - spec/samples/sample_site/gfx/forms/forms-file.gif
188
+ - spec/samples/sample_site/gfx/forms/forms-input-big.gif
189
+ - spec/samples/sample_site/gfx/forms/forms-input-medium.gif
190
+ - spec/samples/sample_site/gfx/forms/forms-input-small.gif
191
+ - spec/samples/sample_site/gfx/forms/forms-input-xl.gif
192
+ - spec/samples/sample_site/gfx/forms/forms-radio.gif
193
+ - spec/samples/sample_site/gfx/forms/forms-selectbox-small.gif
194
+ - spec/samples/sample_site/gfx/forms/forms-selectbox.gif
195
+ - spec/samples/sample_site/gfx/forms/forms-textarea-big.gif
196
+ - spec/samples/sample_site/gfx/forms/forms-textarea-medium.gif
197
+ - spec/samples/sample_site/gfx/forms/forms-textarea-small.gif
198
+ - spec/samples/sample_site/gfx/forms/forms-textarea-xl.gif
199
+ - spec/samples/sample_site/gfx/icon-delete.png
200
+ - spec/samples/sample_site/gfx/icon-edit.png
201
+ - spec/samples/sample_site/gfx/icon-home.gif
202
+ - spec/samples/sample_site/gfx/img-delete.png
203
+ - spec/samples/sample_site/gfx/img-hover.png
204
+ - spec/samples/sample_site/gfx/img-zoom.png
205
+ - spec/samples/sample_site/gfx/jquery.wysiwyg.gif
206
+ - spec/samples/sample_site/gfx/label-icons.gif
207
+ - spec/samples/sample_site/gfx/label.gif
208
+ - spec/samples/sample_site/gfx/li-down.gif
209
+ - spec/samples/sample_site/gfx/li.gif
210
+ - spec/samples/sample_site/gfx/link-button-big.gif
211
+ - spec/samples/sample_site/gfx/link-button-medium.gif
212
+ - spec/samples/sample_site/gfx/link-button.gif
213
+ - spec/samples/sample_site/gfx/loading-2.gif
214
+ - spec/samples/sample_site/gfx/loading.gif
215
+ - spec/samples/sample_site/gfx/logo.png
216
+ - spec/samples/sample_site/gfx/modal-title.gif
217
+ - spec/samples/sample_site/gfx/photos/00.jpg
218
+ - spec/samples/sample_site/gfx/photos/01.jpg
219
+ - spec/samples/sample_site/gfx/photos/01xl.jpg
220
+ - spec/samples/sample_site/gfx/photos/02.jpg
221
+ - spec/samples/sample_site/gfx/photos/02xl.jpg
222
+ - spec/samples/sample_site/gfx/photos/03.jpg
223
+ - spec/samples/sample_site/gfx/photos/03xl.jpg
224
+ - spec/samples/sample_site/gfx/photos/04.jpg
225
+ - spec/samples/sample_site/gfx/photos/04xl.jpg
226
+ - spec/samples/sample_site/gfx/photos/05.jpg
227
+ - spec/samples/sample_site/gfx/photos/05xl.jpg
228
+ - spec/samples/sample_site/gfx/photos/06.jpg
229
+ - spec/samples/sample_site/gfx/photos/06xl.jpg
230
+ - spec/samples/sample_site/gfx/photos/07.jpg
231
+ - spec/samples/sample_site/gfx/photos/07xl.jpg
232
+ - spec/samples/sample_site/gfx/photos/08.jpg
233
+ - spec/samples/sample_site/gfx/photos/08xl.jpg
234
+ - spec/samples/sample_site/gfx/photos/09.jpg
235
+ - spec/samples/sample_site/gfx/photos/09xl.jpg
236
+ - spec/samples/sample_site/gfx/photos/10.jpg
237
+ - spec/samples/sample_site/gfx/photos/10xl.jpg
238
+ - spec/samples/sample_site/gfx/photos/11.jpg
239
+ - spec/samples/sample_site/gfx/photos/11xl.jpg
240
+ - spec/samples/sample_site/gfx/photos/12.jpg
241
+ - spec/samples/sample_site/gfx/photos/12xl.jpg
242
+ - spec/samples/sample_site/gfx/photos/13.jpg
243
+ - spec/samples/sample_site/gfx/photos/13xl.jpg
244
+ - spec/samples/sample_site/gfx/photos/14.jpg
245
+ - spec/samples/sample_site/gfx/photos/14xl.jpg
246
+ - spec/samples/sample_site/gfx/photos/15.jpg
247
+ - spec/samples/sample_site/gfx/photos/15xl.jpg
248
+ - spec/samples/sample_site/gfx/search-button.gif
249
+ - spec/samples/sample_site/gfx/search-input.gif
250
+ - spec/samples/sample_site/gfx/slider-button.gif
251
+ - spec/samples/sample_site/gfx/system-messages.gif
252
+ - spec/samples/sample_site/gfx/table-asc-arrow.gif
253
+ - spec/samples/sample_site/gfx/table-desc-arrow.gif
254
+ - spec/samples/sample_site/gfx/table-first.gif
255
+ - spec/samples/sample_site/gfx/table-last.gif
256
+ - spec/samples/sample_site/gfx/table-next.gif
257
+ - spec/samples/sample_site/gfx/table-number.gif
258
+ - spec/samples/sample_site/gfx/table-prev.gif
259
+ - spec/samples/sample_site/gfx/table-rows.gif
260
+ - spec/samples/sample_site/gfx/table-search.gif
261
+ - spec/samples/sample_site/gfx/table-thead.gif
262
+ - spec/samples/sample_site/gfx/tooltip.gif
263
+ - spec/samples/sample_site/gfx/treeview/ajax-loader.gif
264
+ - spec/samples/sample_site/gfx/treeview/file.gif
265
+ - spec/samples/sample_site/gfx/treeview/folder-closed.gif
266
+ - spec/samples/sample_site/gfx/treeview/folder.gif
267
+ - spec/samples/sample_site/gfx/treeview/minus.gif
268
+ - spec/samples/sample_site/gfx/treeview/plus.gif
269
+ - spec/samples/sample_site/gfx/treeview/treeview-default-line.gif
270
+ - spec/samples/sample_site/gfx/treeview/treeview-default.gif
271
+ - spec/samples/sample_site/index.html
272
+ - spec/samples/sample_site/js/controls/wysiwyg.image.js
273
+ - spec/samples/sample_site/js/controls/wysiwyg.link.js
274
+ - spec/samples/sample_site/js/controls/wysiwyg.table.js
275
+ - spec/samples/sample_site/js/customInput.jquery.js
276
+ - spec/samples/sample_site/js/excanvas.min.js
277
+ - spec/samples/sample_site/js/hoverIntent.js
278
+ - spec/samples/sample_site/js/inline.js
279
+ - spec/samples/sample_site/js/jquery-1.7.1.min.js
280
+ - spec/samples/sample_site/js/jquery-ui-select.js
281
+ - spec/samples/sample_site/js/jquery-ui-timepicker-addon.js
282
+ - spec/samples/sample_site/js/jquery-ui.js
283
+ - spec/samples/sample_site/js/jquery.dataTables.js
284
+ - spec/samples/sample_site/js/jquery.fancybox-1.3.4.js
285
+ - spec/samples/sample_site/js/jquery.filestyle.mini.js
286
+ - spec/samples/sample_site/js/jquery.flot.js
287
+ - spec/samples/sample_site/js/jquery.flot.resize.min.js
288
+ - spec/samples/sample_site/js/jquery.graphtable-0.2.js
289
+ - spec/samples/sample_site/js/jquery.tipsy.js
290
+ - spec/samples/sample_site/js/jquery.treeview.js
291
+ - spec/samples/sample_site/js/jquery.wysiwyg.js
292
+ - spec/samples/sample_site/js/plugins/wysiwyg.rmFormat.js
293
+ - spec/samples/sample_site/js/superfish.js
294
+ - spec/samples/sample_site/js/supersubs.js
295
+ - spec/samples/sample_site/more.html
296
+ - spec/samples/sample_site/tables.html
297
+ - spec/samples/sample_site/text/museosans-webfont.eot
298
+ - spec/samples/sample_site/text/museosans-webfont.svg
299
+ - spec/samples/sample_site/text/museosans-webfont.ttf
300
+ - spec/samples/sample_site/text/museosans-webfont.woff
301
+ - spec/samples/sample_site/text/museosans_bold-webfont.eot
302
+ - spec/samples/sample_site/text/museosans_bold-webfont.svg
303
+ - spec/samples/sample_site/text/museosans_bold-webfont.ttf
304
+ - spec/samples/sample_site/text/museosans_bold-webfont.woff
305
+ - spec/samples/sample_site/typography.html
138
306
  - spec/spec.opts
139
307
  - spec/spec_helper.rb
140
308
  - lib/cobweb.rb
@@ -329,6 +497,8 @@ rubyforge_project:
329
497
  rubygems_version: 1.8.10
330
498
  signing_key:
331
499
  specification_version: 3
332
- summary: Web Crawler that uses resque background job engine to allow you to cluster
333
- your crawl.
500
+ summary: Cobweb is a web crawler that can use resque to cluster crawls to quickly
501
+ crawl extremely large sites faster than multi-threaded crawlers. It is also a standalone
502
+ crawler that has a sophisticated statistics monitoring interface to monitor the
503
+ progress of the crawls.
334
504
  test_files: []