link-checker 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (348) hide show
  1. data/.rvmrc +81 -0
  2. data/Gemfile +12 -0
  3. data/Gemfile.lock +56 -0
  4. data/LICENSE.txt +20 -0
  5. data/README.md +15 -0
  6. data/Rakefile +29 -0
  7. data/VERSION +1 -0
  8. data/bin/check-links +8 -0
  9. data/lib/link_checker.rb +80 -0
  10. data/link-checker.gemspec +404 -0
  11. data/spec/link-checker_spec.rb +92 -0
  12. data/spec/spec_helper.rb +4 -0
  13. data/spec/test-site/.gitignore +12 -0
  14. data/spec/test-site/.powrc +5 -0
  15. data/spec/test-site/.rbenv-version +1 -0
  16. data/spec/test-site/.rvmrc +1 -0
  17. data/spec/test-site/.slugignore +3 -0
  18. data/spec/test-site/.themes/classic/sass/_base.scss +5 -0
  19. data/spec/test-site/.themes/classic/sass/_partials.scss +8 -0
  20. data/spec/test-site/.themes/classic/sass/base/_layout.scss +192 -0
  21. data/spec/test-site/.themes/classic/sass/base/_solarized.scss +46 -0
  22. data/spec/test-site/.themes/classic/sass/base/_theme.scss +86 -0
  23. data/spec/test-site/.themes/classic/sass/base/_typography.scss +161 -0
  24. data/spec/test-site/.themes/classic/sass/base/_utilities.scss +28 -0
  25. data/spec/test-site/.themes/classic/sass/custom/_colors.scss +43 -0
  26. data/spec/test-site/.themes/classic/sass/custom/_fonts.scss +10 -0
  27. data/spec/test-site/.themes/classic/sass/custom/_layout.scss +21 -0
  28. data/spec/test-site/.themes/classic/sass/custom/_styles.scss +2 -0
  29. data/spec/test-site/.themes/classic/sass/partials/_archive.scss +72 -0
  30. data/spec/test-site/.themes/classic/sass/partials/_blog.scss +141 -0
  31. data/spec/test-site/.themes/classic/sass/partials/_footer.scss +19 -0
  32. data/spec/test-site/.themes/classic/sass/partials/_header.scss +18 -0
  33. data/spec/test-site/.themes/classic/sass/partials/_navigation.scss +137 -0
  34. data/spec/test-site/.themes/classic/sass/partials/_sharing.scss +8 -0
  35. data/spec/test-site/.themes/classic/sass/partials/_sidebar.scss +5 -0
  36. data/spec/test-site/.themes/classic/sass/partials/_syntax.scss +253 -0
  37. data/spec/test-site/.themes/classic/sass/partials/sidebar/_base.scss +106 -0
  38. data/spec/test-site/.themes/classic/sass/partials/sidebar/_delicious.scss +4 -0
  39. data/spec/test-site/.themes/classic/sass/partials/sidebar/_googleplus.scss +26 -0
  40. data/spec/test-site/.themes/classic/sass/partials/sidebar/_pinboard.scss +12 -0
  41. data/spec/test-site/.themes/classic/sass/partials/sidebar/_twitter.scss +34 -0
  42. data/spec/test-site/.themes/classic/sass/screen.scss +10 -0
  43. data/spec/test-site/.themes/classic/source/_includes/after_footer.html +5 -0
  44. data/spec/test-site/.themes/classic/source/_includes/archive_post.html +8 -0
  45. data/spec/test-site/.themes/classic/source/_includes/article.html +28 -0
  46. data/spec/test-site/.themes/classic/source/_includes/asides/delicious.html +8 -0
  47. data/spec/test-site/.themes/classic/source/_includes/asides/github.html +30 -0
  48. data/spec/test-site/.themes/classic/source/_includes/asides/googleplus.html +11 -0
  49. data/spec/test-site/.themes/classic/source/_includes/asides/pinboard.html +19 -0
  50. data/spec/test-site/.themes/classic/source/_includes/asides/recent_posts.html +10 -0
  51. data/spec/test-site/.themes/classic/source/_includes/asides/twitter.html +19 -0
  52. data/spec/test-site/.themes/classic/source/_includes/custom/after_footer.html +3 -0
  53. data/spec/test-site/.themes/classic/source/_includes/custom/asides/about.html +4 -0
  54. data/spec/test-site/.themes/classic/source/_includes/custom/category_feed.xml +27 -0
  55. data/spec/test-site/.themes/classic/source/_includes/custom/footer.html +4 -0
  56. data/spec/test-site/.themes/classic/source/_includes/custom/head.html +3 -0
  57. data/spec/test-site/.themes/classic/source/_includes/custom/header.html +6 -0
  58. data/spec/test-site/.themes/classic/source/_includes/custom/navigation.html +4 -0
  59. data/spec/test-site/.themes/classic/source/_includes/disqus.html +21 -0
  60. data/spec/test-site/.themes/classic/source/_includes/facebook_like.html +10 -0
  61. data/spec/test-site/.themes/classic/source/_includes/footer.html +1 -0
  62. data/spec/test-site/.themes/classic/source/_includes/google_analytics.html +13 -0
  63. data/spec/test-site/.themes/classic/source/_includes/google_plus_one.html +9 -0
  64. data/spec/test-site/.themes/classic/source/_includes/head.html +29 -0
  65. data/spec/test-site/.themes/classic/source/_includes/header.html +1 -0
  66. data/spec/test-site/.themes/classic/source/_includes/navigation.html +15 -0
  67. data/spec/test-site/.themes/classic/source/_includes/post/author.html +8 -0
  68. data/spec/test-site/.themes/classic/source/_includes/post/categories.html +10 -0
  69. data/spec/test-site/.themes/classic/source/_includes/post/date.html +15 -0
  70. data/spec/test-site/.themes/classic/source/_includes/post/disqus_thread.html +1 -0
  71. data/spec/test-site/.themes/classic/source/_includes/post/sharing.html +11 -0
  72. data/spec/test-site/.themes/classic/source/_includes/twitter_sharing.html +11 -0
  73. data/spec/test-site/.themes/classic/source/_layouts/category_index.html +17 -0
  74. data/spec/test-site/.themes/classic/source/_layouts/default.html +14 -0
  75. data/spec/test-site/.themes/classic/source/_layouts/page.html +42 -0
  76. data/spec/test-site/.themes/classic/source/_layouts/post.html +43 -0
  77. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/background.png +0 -0
  78. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/blankButton.png +0 -0
  79. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/divider.png +0 -0
  80. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/fullscreenButton.png +0 -0
  81. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/fullscreenButtonOver.png +0 -0
  82. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/muteButton.png +0 -0
  83. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/muteButtonOver.png +0 -0
  84. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/normalscreenButton.png +0 -0
  85. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/normalscreenButtonOver.png +0 -0
  86. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/pauseButton.png +0 -0
  87. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/pauseButtonOver.png +0 -0
  88. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/playButton.png +0 -0
  89. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/playButtonOver.png +0 -0
  90. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderBuffer.png +0 -0
  91. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderCapLeft.png +0 -0
  92. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderCapRight.png +0 -0
  93. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderProgress.png +0 -0
  94. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderRail.png +0 -0
  95. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/unmuteButton.png +0 -0
  96. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/unmuteButtonOver.png +0 -0
  97. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/display/background.png +0 -0
  98. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/display/bufferIcon.png +0 -0
  99. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/display/muteIcon.png +0 -0
  100. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/display/playIcon.png +0 -0
  101. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/dock/button.png +0 -0
  102. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/glow.xml +115 -0
  103. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/playlist/item.png +0 -0
  104. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/playlist/itemOver.png +0 -0
  105. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/playlist/sliderCapBottom.png +0 -0
  106. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/playlist/sliderCapTop.png +0 -0
  107. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/playlist/sliderRail.png +0 -0
  108. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/playlist/sliderThumb.png +0 -0
  109. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/sharing/embedIcon.png +0 -0
  110. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/sharing/embedScreen.png +0 -0
  111. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/sharing/shareIcon.png +0 -0
  112. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/sharing/shareScreen.png +0 -0
  113. data/spec/test-site/.themes/classic/source/assets/jwplayer/player.swf +0 -0
  114. data/spec/test-site/.themes/classic/source/atom.xml +27 -0
  115. data/spec/test-site/.themes/classic/source/blog/archives/index.html +18 -0
  116. data/spec/test-site/.themes/classic/source/favicon.png +0 -0
  117. data/spec/test-site/.themes/classic/source/images/bird_32_gray.png +0 -0
  118. data/spec/test-site/.themes/classic/source/images/bird_32_gray_fail.png +0 -0
  119. data/spec/test-site/.themes/classic/source/images/code_bg.png +0 -0
  120. data/spec/test-site/.themes/classic/source/images/dotted-border.png +0 -0
  121. data/spec/test-site/.themes/classic/source/images/email.png +0 -0
  122. data/spec/test-site/.themes/classic/source/images/line-tile.png +0 -0
  123. data/spec/test-site/.themes/classic/source/images/noise.png +0 -0
  124. data/spec/test-site/.themes/classic/source/images/rss.png +0 -0
  125. data/spec/test-site/.themes/classic/source/images/search.png +0 -0
  126. data/spec/test-site/.themes/classic/source/index.html +29 -0
  127. data/spec/test-site/.themes/classic/source/javascripts/ender.js +45 -0
  128. data/spec/test-site/.themes/classic/source/javascripts/github.js +37 -0
  129. data/spec/test-site/.themes/classic/source/javascripts/libs/ender.js +1497 -0
  130. data/spec/test-site/.themes/classic/source/javascripts/libs/jXHR.js +85 -0
  131. data/spec/test-site/.themes/classic/source/javascripts/libs/swfobject-dynamic.js +298 -0
  132. data/spec/test-site/.themes/classic/source/javascripts/modernizr-2.0.js +5 -0
  133. data/spec/test-site/.themes/classic/source/javascripts/octopress.js +161 -0
  134. data/spec/test-site/.themes/classic/source/javascripts/pinboard.js +56 -0
  135. data/spec/test-site/.themes/classic/source/javascripts/twitter.js +78 -0
  136. data/spec/test-site/CHANGELOG.markdown +29 -0
  137. data/spec/test-site/Gemfile +18 -0
  138. data/spec/test-site/Gemfile.lock +69 -0
  139. data/spec/test-site/README.markdown +36 -0
  140. data/spec/test-site/Rakefile +379 -0
  141. data/spec/test-site/_config.yml +99 -0
  142. data/spec/test-site/config.rb +16 -0
  143. data/spec/test-site/config.ru +25 -0
  144. data/spec/test-site/plugins/backtick_code_block.rb +43 -0
  145. data/spec/test-site/plugins/blockquote.rb +83 -0
  146. data/spec/test-site/plugins/category_generator.rb +174 -0
  147. data/spec/test-site/plugins/code_block.rb +98 -0
  148. data/spec/test-site/plugins/date.rb +98 -0
  149. data/spec/test-site/plugins/gist_tag.rb +100 -0
  150. data/spec/test-site/plugins/haml.rb +24 -0
  151. data/spec/test-site/plugins/image_tag.rb +50 -0
  152. data/spec/test-site/plugins/include_array.rb +58 -0
  153. data/spec/test-site/plugins/include_code.rb +73 -0
  154. data/spec/test-site/plugins/jsfiddle.rb +40 -0
  155. data/spec/test-site/plugins/octopress_filters.rb +135 -0
  156. data/spec/test-site/plugins/pagination.rb +121 -0
  157. data/spec/test-site/plugins/post_filters.rb +176 -0
  158. data/spec/test-site/plugins/preview_unpublished.rb +48 -0
  159. data/spec/test-site/plugins/pullquote.rb +45 -0
  160. data/spec/test-site/plugins/pygments_code.rb +41 -0
  161. data/spec/test-site/plugins/raw.rb +40 -0
  162. data/spec/test-site/plugins/render_partial.rb +69 -0
  163. data/spec/test-site/plugins/rubypants.rb +489 -0
  164. data/spec/test-site/plugins/sitemap_generator.rb +312 -0
  165. data/spec/test-site/plugins/titlecase.rb +36 -0
  166. data/spec/test-site/plugins/video_tag.rb +47 -0
  167. data/spec/test-site/public/assets/jwplayer/glow/controlbar/background.png +0 -0
  168. data/spec/test-site/public/assets/jwplayer/glow/controlbar/blankButton.png +0 -0
  169. data/spec/test-site/public/assets/jwplayer/glow/controlbar/divider.png +0 -0
  170. data/spec/test-site/public/assets/jwplayer/glow/controlbar/fullscreenButton.png +0 -0
  171. data/spec/test-site/public/assets/jwplayer/glow/controlbar/fullscreenButtonOver.png +0 -0
  172. data/spec/test-site/public/assets/jwplayer/glow/controlbar/muteButton.png +0 -0
  173. data/spec/test-site/public/assets/jwplayer/glow/controlbar/muteButtonOver.png +0 -0
  174. data/spec/test-site/public/assets/jwplayer/glow/controlbar/normalscreenButton.png +0 -0
  175. data/spec/test-site/public/assets/jwplayer/glow/controlbar/normalscreenButtonOver.png +0 -0
  176. data/spec/test-site/public/assets/jwplayer/glow/controlbar/pauseButton.png +0 -0
  177. data/spec/test-site/public/assets/jwplayer/glow/controlbar/pauseButtonOver.png +0 -0
  178. data/spec/test-site/public/assets/jwplayer/glow/controlbar/playButton.png +0 -0
  179. data/spec/test-site/public/assets/jwplayer/glow/controlbar/playButtonOver.png +0 -0
  180. data/spec/test-site/public/assets/jwplayer/glow/controlbar/timeSliderBuffer.png +0 -0
  181. data/spec/test-site/public/assets/jwplayer/glow/controlbar/timeSliderCapLeft.png +0 -0
  182. data/spec/test-site/public/assets/jwplayer/glow/controlbar/timeSliderCapRight.png +0 -0
  183. data/spec/test-site/public/assets/jwplayer/glow/controlbar/timeSliderProgress.png +0 -0
  184. data/spec/test-site/public/assets/jwplayer/glow/controlbar/timeSliderRail.png +0 -0
  185. data/spec/test-site/public/assets/jwplayer/glow/controlbar/unmuteButton.png +0 -0
  186. data/spec/test-site/public/assets/jwplayer/glow/controlbar/unmuteButtonOver.png +0 -0
  187. data/spec/test-site/public/assets/jwplayer/glow/display/background.png +0 -0
  188. data/spec/test-site/public/assets/jwplayer/glow/display/bufferIcon.png +0 -0
  189. data/spec/test-site/public/assets/jwplayer/glow/display/muteIcon.png +0 -0
  190. data/spec/test-site/public/assets/jwplayer/glow/display/playIcon.png +0 -0
  191. data/spec/test-site/public/assets/jwplayer/glow/dock/button.png +0 -0
  192. data/spec/test-site/public/assets/jwplayer/glow/glow.xml +115 -0
  193. data/spec/test-site/public/assets/jwplayer/glow/playlist/item.png +0 -0
  194. data/spec/test-site/public/assets/jwplayer/glow/playlist/itemOver.png +0 -0
  195. data/spec/test-site/public/assets/jwplayer/glow/playlist/sliderCapBottom.png +0 -0
  196. data/spec/test-site/public/assets/jwplayer/glow/playlist/sliderCapTop.png +0 -0
  197. data/spec/test-site/public/assets/jwplayer/glow/playlist/sliderRail.png +0 -0
  198. data/spec/test-site/public/assets/jwplayer/glow/playlist/sliderThumb.png +0 -0
  199. data/spec/test-site/public/assets/jwplayer/glow/sharing/embedIcon.png +0 -0
  200. data/spec/test-site/public/assets/jwplayer/glow/sharing/embedScreen.png +0 -0
  201. data/spec/test-site/public/assets/jwplayer/glow/sharing/shareIcon.png +0 -0
  202. data/spec/test-site/public/assets/jwplayer/glow/sharing/shareScreen.png +0 -0
  203. data/spec/test-site/public/assets/jwplayer/player.swf +0 -0
  204. data/spec/test-site/public/atom.xml +27 -0
  205. data/spec/test-site/public/blog/2012/10/02/a-list-of-links/index.html +196 -0
  206. data/spec/test-site/public/blog/archives/index.html +149 -0
  207. data/spec/test-site/public/favicon.png +0 -0
  208. data/spec/test-site/public/images/bird_32_gray.png +0 -0
  209. data/spec/test-site/public/images/bird_32_gray_fail.png +0 -0
  210. data/spec/test-site/public/images/code_bg.png +0 -0
  211. data/spec/test-site/public/images/dotted-border.png +0 -0
  212. data/spec/test-site/public/images/email.png +0 -0
  213. data/spec/test-site/public/images/line-tile.png +0 -0
  214. data/spec/test-site/public/images/noise.png +0 -0
  215. data/spec/test-site/public/images/rss.png +0 -0
  216. data/spec/test-site/public/images/search.png +0 -0
  217. data/spec/test-site/public/index.html +165 -0
  218. data/spec/test-site/public/javascripts/ender.js +45 -0
  219. data/spec/test-site/public/javascripts/github.js +37 -0
  220. data/spec/test-site/public/javascripts/libs/ender.js +1497 -0
  221. data/spec/test-site/public/javascripts/libs/jXHR.js +85 -0
  222. data/spec/test-site/public/javascripts/libs/swfobject-dynamic.js +298 -0
  223. data/spec/test-site/public/javascripts/modernizr-2.0.js +5 -0
  224. data/spec/test-site/public/javascripts/octopress.js +161 -0
  225. data/spec/test-site/public/javascripts/pinboard.js +56 -0
  226. data/spec/test-site/public/javascripts/twitter.js +78 -0
  227. data/spec/test-site/public/sitemap.xml +15 -0
  228. data/spec/test-site/public/stylesheets/screen.css +1 -0
  229. data/spec/test-site/sass/_base.scss +5 -0
  230. data/spec/test-site/sass/_partials.scss +8 -0
  231. data/spec/test-site/sass/base/_layout.scss +192 -0
  232. data/spec/test-site/sass/base/_solarized.scss +46 -0
  233. data/spec/test-site/sass/base/_theme.scss +86 -0
  234. data/spec/test-site/sass/base/_typography.scss +161 -0
  235. data/spec/test-site/sass/base/_utilities.scss +28 -0
  236. data/spec/test-site/sass/custom/_colors.scss +43 -0
  237. data/spec/test-site/sass/custom/_fonts.scss +10 -0
  238. data/spec/test-site/sass/custom/_layout.scss +21 -0
  239. data/spec/test-site/sass/custom/_styles.scss +2 -0
  240. data/spec/test-site/sass/partials/_archive.scss +72 -0
  241. data/spec/test-site/sass/partials/_blog.scss +141 -0
  242. data/spec/test-site/sass/partials/_footer.scss +19 -0
  243. data/spec/test-site/sass/partials/_header.scss +18 -0
  244. data/spec/test-site/sass/partials/_navigation.scss +137 -0
  245. data/spec/test-site/sass/partials/_sharing.scss +8 -0
  246. data/spec/test-site/sass/partials/_sidebar.scss +5 -0
  247. data/spec/test-site/sass/partials/_syntax.scss +253 -0
  248. data/spec/test-site/sass/partials/sidebar/_base.scss +106 -0
  249. data/spec/test-site/sass/partials/sidebar/_delicious.scss +4 -0
  250. data/spec/test-site/sass/partials/sidebar/_googleplus.scss +26 -0
  251. data/spec/test-site/sass/partials/sidebar/_pinboard.scss +12 -0
  252. data/spec/test-site/sass/partials/sidebar/_twitter.scss +34 -0
  253. data/spec/test-site/sass/screen.scss +10 -0
  254. data/spec/test-site/source/_includes/after_footer.html +5 -0
  255. data/spec/test-site/source/_includes/archive_post.html +8 -0
  256. data/spec/test-site/source/_includes/article.html +28 -0
  257. data/spec/test-site/source/_includes/asides/delicious.html +8 -0
  258. data/spec/test-site/source/_includes/asides/github.html +30 -0
  259. data/spec/test-site/source/_includes/asides/googleplus.html +11 -0
  260. data/spec/test-site/source/_includes/asides/pinboard.html +19 -0
  261. data/spec/test-site/source/_includes/asides/recent_posts.html +10 -0
  262. data/spec/test-site/source/_includes/asides/twitter.html +19 -0
  263. data/spec/test-site/source/_includes/custom/after_footer.html +3 -0
  264. data/spec/test-site/source/_includes/custom/asides/about.html +4 -0
  265. data/spec/test-site/source/_includes/custom/category_feed.xml +27 -0
  266. data/spec/test-site/source/_includes/custom/footer.html +4 -0
  267. data/spec/test-site/source/_includes/custom/head.html +3 -0
  268. data/spec/test-site/source/_includes/custom/header.html +6 -0
  269. data/spec/test-site/source/_includes/custom/navigation.html +4 -0
  270. data/spec/test-site/source/_includes/disqus.html +21 -0
  271. data/spec/test-site/source/_includes/facebook_like.html +10 -0
  272. data/spec/test-site/source/_includes/footer.html +1 -0
  273. data/spec/test-site/source/_includes/google_analytics.html +13 -0
  274. data/spec/test-site/source/_includes/google_plus_one.html +9 -0
  275. data/spec/test-site/source/_includes/head.html +29 -0
  276. data/spec/test-site/source/_includes/header.html +1 -0
  277. data/spec/test-site/source/_includes/navigation.html +15 -0
  278. data/spec/test-site/source/_includes/post/author.html +8 -0
  279. data/spec/test-site/source/_includes/post/categories.html +10 -0
  280. data/spec/test-site/source/_includes/post/date.html +15 -0
  281. data/spec/test-site/source/_includes/post/disqus_thread.html +1 -0
  282. data/spec/test-site/source/_includes/post/sharing.html +11 -0
  283. data/spec/test-site/source/_includes/twitter_sharing.html +11 -0
  284. data/spec/test-site/source/_layouts/category_index.html +17 -0
  285. data/spec/test-site/source/_layouts/default.html +14 -0
  286. data/spec/test-site/source/_layouts/page.html +42 -0
  287. data/spec/test-site/source/_layouts/post.html +43 -0
  288. data/spec/test-site/source/_posts/2012-10-02-a-list-of-links.markdown +11 -0
  289. data/spec/test-site/source/assets/jwplayer/glow/controlbar/background.png +0 -0
  290. data/spec/test-site/source/assets/jwplayer/glow/controlbar/blankButton.png +0 -0
  291. data/spec/test-site/source/assets/jwplayer/glow/controlbar/divider.png +0 -0
  292. data/spec/test-site/source/assets/jwplayer/glow/controlbar/fullscreenButton.png +0 -0
  293. data/spec/test-site/source/assets/jwplayer/glow/controlbar/fullscreenButtonOver.png +0 -0
  294. data/spec/test-site/source/assets/jwplayer/glow/controlbar/muteButton.png +0 -0
  295. data/spec/test-site/source/assets/jwplayer/glow/controlbar/muteButtonOver.png +0 -0
  296. data/spec/test-site/source/assets/jwplayer/glow/controlbar/normalscreenButton.png +0 -0
  297. data/spec/test-site/source/assets/jwplayer/glow/controlbar/normalscreenButtonOver.png +0 -0
  298. data/spec/test-site/source/assets/jwplayer/glow/controlbar/pauseButton.png +0 -0
  299. data/spec/test-site/source/assets/jwplayer/glow/controlbar/pauseButtonOver.png +0 -0
  300. data/spec/test-site/source/assets/jwplayer/glow/controlbar/playButton.png +0 -0
  301. data/spec/test-site/source/assets/jwplayer/glow/controlbar/playButtonOver.png +0 -0
  302. data/spec/test-site/source/assets/jwplayer/glow/controlbar/timeSliderBuffer.png +0 -0
  303. data/spec/test-site/source/assets/jwplayer/glow/controlbar/timeSliderCapLeft.png +0 -0
  304. data/spec/test-site/source/assets/jwplayer/glow/controlbar/timeSliderCapRight.png +0 -0
  305. data/spec/test-site/source/assets/jwplayer/glow/controlbar/timeSliderProgress.png +0 -0
  306. data/spec/test-site/source/assets/jwplayer/glow/controlbar/timeSliderRail.png +0 -0
  307. data/spec/test-site/source/assets/jwplayer/glow/controlbar/unmuteButton.png +0 -0
  308. data/spec/test-site/source/assets/jwplayer/glow/controlbar/unmuteButtonOver.png +0 -0
  309. data/spec/test-site/source/assets/jwplayer/glow/display/background.png +0 -0
  310. data/spec/test-site/source/assets/jwplayer/glow/display/bufferIcon.png +0 -0
  311. data/spec/test-site/source/assets/jwplayer/glow/display/muteIcon.png +0 -0
  312. data/spec/test-site/source/assets/jwplayer/glow/display/playIcon.png +0 -0
  313. data/spec/test-site/source/assets/jwplayer/glow/dock/button.png +0 -0
  314. data/spec/test-site/source/assets/jwplayer/glow/glow.xml +115 -0
  315. data/spec/test-site/source/assets/jwplayer/glow/playlist/item.png +0 -0
  316. data/spec/test-site/source/assets/jwplayer/glow/playlist/itemOver.png +0 -0
  317. data/spec/test-site/source/assets/jwplayer/glow/playlist/sliderCapBottom.png +0 -0
  318. data/spec/test-site/source/assets/jwplayer/glow/playlist/sliderCapTop.png +0 -0
  319. data/spec/test-site/source/assets/jwplayer/glow/playlist/sliderRail.png +0 -0
  320. data/spec/test-site/source/assets/jwplayer/glow/playlist/sliderThumb.png +0 -0
  321. data/spec/test-site/source/assets/jwplayer/glow/sharing/embedIcon.png +0 -0
  322. data/spec/test-site/source/assets/jwplayer/glow/sharing/embedScreen.png +0 -0
  323. data/spec/test-site/source/assets/jwplayer/glow/sharing/shareIcon.png +0 -0
  324. data/spec/test-site/source/assets/jwplayer/glow/sharing/shareScreen.png +0 -0
  325. data/spec/test-site/source/assets/jwplayer/player.swf +0 -0
  326. data/spec/test-site/source/atom.xml +27 -0
  327. data/spec/test-site/source/blog/archives/index.html +18 -0
  328. data/spec/test-site/source/favicon.png +0 -0
  329. data/spec/test-site/source/images/bird_32_gray.png +0 -0
  330. data/spec/test-site/source/images/bird_32_gray_fail.png +0 -0
  331. data/spec/test-site/source/images/code_bg.png +0 -0
  332. data/spec/test-site/source/images/dotted-border.png +0 -0
  333. data/spec/test-site/source/images/email.png +0 -0
  334. data/spec/test-site/source/images/line-tile.png +0 -0
  335. data/spec/test-site/source/images/noise.png +0 -0
  336. data/spec/test-site/source/images/rss.png +0 -0
  337. data/spec/test-site/source/images/search.png +0 -0
  338. data/spec/test-site/source/index.html +29 -0
  339. data/spec/test-site/source/javascripts/ender.js +45 -0
  340. data/spec/test-site/source/javascripts/github.js +37 -0
  341. data/spec/test-site/source/javascripts/libs/ender.js +1497 -0
  342. data/spec/test-site/source/javascripts/libs/jXHR.js +85 -0
  343. data/spec/test-site/source/javascripts/libs/swfobject-dynamic.js +298 -0
  344. data/spec/test-site/source/javascripts/modernizr-2.0.js +5 -0
  345. data/spec/test-site/source/javascripts/octopress.js +161 -0
  346. data/spec/test-site/source/javascripts/pinboard.js +56 -0
  347. data/spec/test-site/source/javascripts/twitter.js +78 -0
  348. metadata +475 -0
@@ -0,0 +1,92 @@
1
+ require 'spec_helper'
2
+ require 'link_checker'
3
+
4
+ describe Link::Checker do
5
+
6
+ before(:all) do
7
+ @site_path = 'spec/test-site/public/'
8
+ end
9
+
10
+ it "finds all of the HTML files in the target path." do
11
+ checker = Link::Checker.new(@site_path)
12
+ files = checker.find_html_files
13
+ files.size.should == 3
14
+ end
15
+
16
+ it "finds all of the external links in an HTML file." do
17
+ links = Link::Checker.find_external_links(
18
+ 'spec/test-site/public/blog/2012/10/02/a-list-of-links/index.html')
19
+ links.size.should == 4
20
+ end
21
+
22
+ describe "checks links and" do
23
+
24
+ before(:all) do
25
+ @good_uri = 'http://goodlink.com'
26
+ FakeWeb.register_uri(:any, @good_uri, :body => "Yay it worked.")
27
+
28
+ @bad_uri = 'http://brokenlink.com'
29
+ FakeWeb.register_uri(:get, @bad_uri,
30
+ :body => "File not found", :status => ["404", "Missing"])
31
+
32
+ @redirect_uri = 'http://redirect.com'
33
+ end
34
+
35
+ it "declares good links to be good." do
36
+ Link::Checker.check_link(@good_uri).should be true
37
+ end
38
+
39
+ it "declares bad links to be bad." do
40
+ expect { Link::Checker.check_link(@bad_uri) }.to(
41
+ raise_error(Link::Error))
42
+ end
43
+
44
+ describe "follows redirects to the destination and" do
45
+
46
+ it "declares good redirect targets to be good." do
47
+ FakeWeb.register_uri(:get, @redirect_uri,
48
+ :location => @good_uri, :status => ["302", "Moved"])
49
+ Link::Checker.check_link(@redirect_uri).should be true
50
+ end
51
+
52
+ it "declares bad redirect targets to be bad." do
53
+ FakeWeb.register_uri(:get, @redirect_uri,
54
+ :location => @bad_uri, :status => ["302", "Moved"])
55
+ expect { Link::Checker.check_link(@redirect_uri) }.to(
56
+ raise_error(Link::Error))
57
+ end
58
+
59
+ end
60
+
61
+ end
62
+
63
+ describe "prints output" do
64
+
65
+ before(:all) do
66
+ @uris =
67
+ %w{
68
+ http://goodlink.com
69
+ http://brokenlink.com
70
+ http://twitter.com/share
71
+ http://octopress.org
72
+ }
73
+ end
74
+
75
+ it "prints green when the links are all good." do
76
+ Link::Checker.stub(:check_link) { true }
77
+ $stdout.should_receive(:puts).with(/Checked/i).exactly(3).times
78
+ Link::Checker.new(@site_path).check_links
79
+ end
80
+
81
+ it "prints green when the links are all bad." do
82
+ Link::Checker.stub(:check_link).and_raise Link::Error.new('blah')
83
+ $stdout.should_receive(:puts).with(/Problem/i).exactly(3).times
84
+ $stdout.should_receive(:puts).with(/Link/i).at_least(3).times
85
+ $stdout.should_receive(:puts).with(/Response/i).at_least(3).times
86
+ Link::Checker.new(@site_path).check_links
87
+ end
88
+
89
+
90
+ end
91
+
92
+ end
@@ -0,0 +1,4 @@
1
+ require 'fakeweb'
2
+
3
+ require 'simplecov'
4
+ SimpleCov.start
@@ -0,0 +1,12 @@
1
+ .bundle
2
+ .DS_Store
3
+ .sass-cache
4
+ .gist-cache
5
+ .pygments-cache
6
+ _deploy
7
+ sass.old
8
+ source.old
9
+ source/_stash
10
+ source/stylesheets/screen.css
11
+ vendor
12
+ node_modules
@@ -0,0 +1,5 @@
1
+ if [ -f "$rvm_path/scripts/rvm" ] && [ -f ".rvmrc" ] ; then
2
+ source "$rvm_path/scripts/rvm"
3
+ source ".rvmrc"
4
+ fi
5
+
@@ -0,0 +1 @@
1
+ 1.9.3-p194
@@ -0,0 +1 @@
1
+ rvm use 1.9.3@octopress-link-checker-test-site
@@ -0,0 +1,3 @@
1
+ plugins
2
+ sass
3
+ source
@@ -0,0 +1,5 @@
1
+ @import "base/utilities";
2
+ @import "base/solarized";
3
+ @import "base/theme";
4
+ @import "base/typography";
5
+ @import "base/layout";
@@ -0,0 +1,8 @@
1
+ @import "partials/header";
2
+ @import "partials/navigation";
3
+ @import "partials/blog";
4
+ @import "partials/sharing";
5
+ @import "partials/syntax";
6
+ @import "partials/archive";
7
+ @import "partials/sidebar";
8
+ @import "partials/footer";
@@ -0,0 +1,192 @@
1
+ $max-width: 1200px !default;
2
+
3
+ // Padding used for layout margins
4
+ $pad-min: 18px !default;
5
+ $pad-narrow: 25px !default;
6
+ $pad-medium: 35px !default;
7
+ $pad-wide: 55px !default;
8
+
9
+ // Sidebar widths used in media queries
10
+ $sidebar-width-medium: 240px !default;
11
+ $sidebar-pad-medium: 15px !default;
12
+ $sidebar-pad-wide: 20px !default;
13
+ $sidebar-width-wide: 300px !default;
14
+
15
+ $indented-lists: false !default;
16
+
17
+ $header-font-size: 1em !default;
18
+ $header-padding-top: 1.5em !default;
19
+ $header-padding-bottom: 1.5em !default;
20
+
21
+ .group { @include pie-clearfix; }
22
+
23
+ @mixin collapse-sidebar {
24
+ float: none;
25
+ width: auto;
26
+ clear: left;
27
+ margin: 0;
28
+ padding: 0 $pad-medium 1px;
29
+ background-color: lighten($sidebar-bg, 2);
30
+ border-top: 1px solid lighten($sidebar-border, 4);
31
+ section {
32
+ &.odd, &.even { float: left; width: 48%; }
33
+ &.odd { margin-left: 0; }
34
+ &.even { margin-left: 4%; }
35
+ }
36
+ &.thirds section {
37
+ width: 30%;
38
+ margin-left: 5%;
39
+ &.first {
40
+ margin-left: 0;
41
+ clear: both;
42
+ }
43
+ }
44
+ }
45
+
46
+ body {
47
+ -webkit-text-size-adjust: none;
48
+ max-width: $max-width;
49
+ position: relative;
50
+ margin: 0 auto;
51
+ > header, > nav, > footer, #content > article, #content > div > article, #content > div > section {
52
+ @extend .group;
53
+ padding-left: $pad-min;
54
+ padding-right: $pad-min;
55
+ @media only screen and (min-width: 480px) {
56
+ padding-left: $pad-narrow;
57
+ padding-right: $pad-narrow;
58
+ }
59
+ @media only screen and (min-width: 768px) {
60
+ padding-left: $pad-medium;
61
+ padding-right: $pad-medium;
62
+ }
63
+ @media only screen and (min-width: 992px) {
64
+ padding-left: $pad-wide;
65
+ padding-right: $pad-wide;
66
+ }
67
+ }
68
+ div.pagination {
69
+ @extend .group;
70
+ margin-left: $pad-min;
71
+ margin-right: $pad-min;
72
+ @media only screen and (min-width: 480px) {
73
+ margin-left: $pad-narrow;
74
+ margin-right: $pad-narrow;
75
+ }
76
+ @media only screen and (min-width: 768px) {
77
+ margin-left: $pad-medium;
78
+ margin-right: $pad-medium;
79
+ }
80
+ @media only screen and (min-width: 992px) {
81
+ margin-left: $pad-wide;
82
+ margin-right: $pad-wide;
83
+ }
84
+ }
85
+ > header {
86
+ font-size: $header-font-size;
87
+ padding-top: $header-padding-top;
88
+ padding-bottom: $header-padding-bottom;
89
+ }
90
+ }
91
+
92
+ #content {
93
+ overflow: hidden;
94
+ > div, > article { width: 100%; }
95
+ }
96
+
97
+ aside.sidebar {
98
+ float: none;
99
+ padding: 0 $pad-min 1px;
100
+ background-color: lighten($sidebar-bg, 2);
101
+ border-top: 1px solid $sidebar-border;
102
+ @extend .group;
103
+ }
104
+
105
+ .flex-content { max-width: 100%; height: auto; }
106
+
107
+ .basic-alignment {
108
+ &.left { float: left; margin-right: 1.5em; }
109
+ &.right { float: right; margin-left: 1.5em; }
110
+ &.center { display:block; margin: 0 auto 1.5em; }
111
+ &.left, &.right { margin-bottom: .8em; }
112
+ }
113
+
114
+ .toggle-sidebar { &, .no-sidebar & { display: none; }}
115
+
116
+ body.sidebar-footer {
117
+ @media only screen and (min-width: 750px) {
118
+ aside.sidebar{ @include collapse-sidebar; }
119
+ }
120
+ #content { margin-right: 0px; }
121
+ .toggle-sidebar { display: none; }
122
+ }
123
+
124
+ @media only screen and (min-width: 550px) {
125
+ body > header { font-size: $header-font-size; }
126
+ }
127
+ @media only screen and (min-width: 750px) {
128
+ aside.sidebar { @include collapse-sidebar; }
129
+ }
130
+ #main, #content, .sidebar {
131
+ @extend .group;
132
+ }
133
+ @media only screen and (min-width: 768px) {
134
+ body { -webkit-text-size-adjust: auto; }
135
+ body > header { font-size: $header-font-size * 1.2; }
136
+ #main {
137
+ padding: 0;
138
+ margin: 0 auto;
139
+ }
140
+ #content {
141
+ overflow: visible;
142
+ margin-right: $sidebar-width-medium;
143
+ position: relative;
144
+ .no-sidebar & { margin-right: 0; border-right: 0; }
145
+ .collapse-sidebar & { margin-right: 20px; }
146
+ > div, > article {
147
+ padding-top: $pad-medium/2;
148
+ padding-bottom: $pad-medium/2;
149
+ float: left;
150
+ }
151
+ }
152
+ aside.sidebar {
153
+ width: $sidebar-width-medium - $sidebar-pad-medium*2;
154
+ padding: 0 $sidebar-pad-medium $sidebar-pad-medium;
155
+ background: none;
156
+ clear: none;
157
+ float: left;
158
+ margin: 0 -100% 0 0;
159
+ section {
160
+ width: auto; margin-left: 0;
161
+ &.odd, &.even { float: none; width: auto; margin-left: 0; }
162
+ }
163
+ .collapse-sidebar & {
164
+ @include collapse-sidebar;
165
+ }
166
+ }
167
+ }
168
+
169
+ @media only screen and (min-width: 992px) {
170
+ body > header { font-size: $header-font-size * 1.3; }
171
+ #content { margin-right: $sidebar-width-wide; }
172
+ #content {
173
+ > div, > article {
174
+ padding-top: $pad-wide/2;
175
+ padding-bottom: $pad-wide/2;
176
+ }
177
+ }
178
+ aside.sidebar {
179
+ width: $sidebar-width-wide - $sidebar-pad-wide*2;
180
+ padding: 1.2em $sidebar-pad-wide $sidebar-pad-wide;
181
+ .collapse-sidebar & {
182
+ padding: { left: $pad-wide; right: $pad-wide; }
183
+ }
184
+ }
185
+ }
186
+
187
+ @if $indented-lists == false {
188
+ @media only screen and (min-width: 768px) {
189
+ ul, ol { margin-left: 0; }
190
+ }
191
+ }
192
+
@@ -0,0 +1,46 @@
1
+ $base03: #002b36 !default; //darkest blue
2
+ $base02: #073642 !default; //dark blue
3
+ $base01: #586e75 !default; //darkest gray
4
+ $base00: #657b83 !default; //dark gray
5
+ $base0: #839496 !default; //medium gray
6
+ $base1: #93a1a1 !default; //medium light gray
7
+ $base2: #eee8d5 !default; //cream
8
+ $base3: #fdf6e3 !default; //white
9
+ $solar-yellow: #b58900 !default;
10
+ $solar-orange: #cb4b16 !default;
11
+ $solar-red: #dc322f !default;
12
+ $solar-magenta: #d33682 !default;
13
+ $solar-violet: #6c71c4 !default;
14
+ $solar-blue: #268bd2 !default;
15
+ $solar-cyan: #2aa198 !default;
16
+ $solar-green: #859900 !default;
17
+
18
+ $solarized: dark !default;
19
+
20
+ @if $solarized == light {
21
+
22
+ $_base03: $base03;
23
+ $_base02: $base02;
24
+ $_base01: $base01;
25
+ $_base00: $base00;
26
+ $_base0: $base0;
27
+ $_base1: $base1;
28
+ $_base2: $base2;
29
+ $_base3: $base3;
30
+
31
+ $base03: $_base3;
32
+ $base02: $_base2;
33
+ $base01: $_base1;
34
+ $base00: $_base0;
35
+ $base0: $_base00;
36
+ $base1: $_base01;
37
+ $base2: $_base02;
38
+ $base3: $_base03;
39
+ }
40
+
41
+ /* non highlighted code colors */
42
+ $pre-bg: $base03 !default;
43
+ $pre-border: darken($base02, 5) !default;
44
+ $pre-color: $base1 !default;
45
+
46
+
@@ -0,0 +1,86 @@
1
+ $noise-bg: image-url('noise.png') top left !default;
2
+ $img-border: inline-image('dotted-border.png');
3
+
4
+ // Main Link Colors
5
+ $link-color: lighten(#165b94, 3) !default;
6
+ $link-color-hover: adjust-color($link-color, $lightness: 10, $saturation: 25) !default;
7
+ $link-color-visited: adjust-color($link-color, $hue: 80, $lightness: -4) !default;
8
+ $link-color-active: adjust-color($link-color-hover, $lightness: -15) !default;
9
+
10
+ // Main Section Colors
11
+ $main-bg: #f8f8f8 !default;
12
+ $page-bg: #252525 !default;
13
+ $article-border: #eeeeee !default;
14
+
15
+ $header-bg: #333 !default;
16
+ $header-border: lighten($header-bg, 15) !default;
17
+ $title-color: #f2f2f2 !default;
18
+ $subtitle-color: #aaa !default;
19
+
20
+ $text-color: #222 !default;
21
+ $text-color-light: #aaa !default;
22
+ $type-border: #ddd !default;
23
+
24
+ /* Navigation */
25
+ $nav-bg: #ccc !default;
26
+ $nav-bg-front: image-url('noise.png') !default;
27
+ $nav-bg-back: linear-gradient(lighten($nav-bg, 8), $nav-bg, darken($nav-bg, 11)) !default;
28
+ $nav-color: darken($nav-bg, 38) !default;
29
+ $nav-color-hover: darken($nav-color, 25) !default;
30
+ $nav-placeholder: desaturate(darken($nav-bg, 10), 15) !default;
31
+ $nav-border: darken($nav-bg, 10) !default;
32
+ $nav-border-top: lighten($nav-bg, 15) !default;
33
+ $nav-border-bottom: darken($nav-bg, 25) !default;
34
+ $nav-border-left: darken($nav-bg, 11) !default;
35
+ $nav-border-right: lighten($nav-bg, 7) !default;
36
+
37
+ /* Sidebar colors */
38
+ $sidebar-bg: #f2f2f2 !default;
39
+ $sidebar-link-color: $link-color !default;
40
+ $sidebar-link-color-hover: $link-color-hover !default;
41
+ $sidebar-link-color-active: $link-color-active !default;
42
+ $sidebar-color: change-color(mix($text-color, $sidebar-bg, 80), $hue: hue($sidebar-bg), $saturation: saturation($sidebar-bg)/2) !default;
43
+ $sidebar-border: desaturate(darken($sidebar-bg, 7), 10) !default;
44
+ $sidebar-border-hover: darken($sidebar-bg, 7) !default;
45
+ $sidebar-link-color-subdued: lighten($sidebar-color, 20) !default;
46
+ $sidebar-link-color-subdued-hover: $sidebar-link-color-hover !default;
47
+ $twitter-status-link: lighten($sidebar-link-color-subdued, 15) !default;
48
+
49
+ $footer-color: #888 !default;
50
+ $footer-bg: #ccc !default;
51
+ $footer-bg-front: image-url('noise.png') !default;
52
+ $footer-bg-back: linear-gradient(lighten($footer-bg, 8), $footer-bg, darken($footer-bg, 11)) !default;
53
+ $footer-color: darken($footer-bg, 38) !default;
54
+ $footer-color-hover: darken($footer-color, 10) !default;
55
+ $footer-border-top: lighten($footer-bg, 15) !default;
56
+ $footer-border-bottom: darken($footer-bg, 15) !default;
57
+ $footer-link-color: darken($footer-bg, 38) !default;
58
+ $footer-link-color-hover: darken($footer-color, 25) !default;
59
+ $page-border-bottom: darken($footer-bg, 5) !default;
60
+
61
+
62
+ /* Core theme application */
63
+
64
+ a {
65
+ @include link-colors($link-color, $hover: $link-color-hover, $focus: $link-color-hover, $visited: $link-color-visited, $active: $link-color-active);
66
+ }
67
+ aside.sidebar a {
68
+ @include link-colors($sidebar-link-color, $hover: $sidebar-link-color-hover, $focus: $sidebar-link-color-hover, $active: $sidebar-link-color-active);
69
+ }
70
+ a {
71
+ @include transition(color .3s);
72
+ }
73
+
74
+ html {
75
+ background: $page-bg image-url('line-tile.png') top left;
76
+ }
77
+ body {
78
+ > div {
79
+ background: $sidebar-bg $noise-bg;
80
+ border-bottom: 1px solid $page-border-bottom;
81
+ > div {
82
+ background: $main-bg $noise-bg;
83
+ border-right: 1px solid $sidebar-border;
84
+ }
85
+ }
86
+ }