link-checker 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +81 -0
- data/Gemfile +12 -0
- data/Gemfile.lock +56 -0
- data/LICENSE.txt +20 -0
- data/README.md +15 -0
- data/Rakefile +29 -0
- data/VERSION +1 -0
- data/bin/check-links +8 -0
- data/lib/link_checker.rb +80 -0
- data/link-checker.gemspec +404 -0
- data/spec/link-checker_spec.rb +92 -0
- data/spec/spec_helper.rb +4 -0
- data/spec/test-site/.gitignore +12 -0
- data/spec/test-site/.powrc +5 -0
- data/spec/test-site/.rbenv-version +1 -0
- data/spec/test-site/.rvmrc +1 -0
- data/spec/test-site/.slugignore +3 -0
- data/spec/test-site/.themes/classic/sass/_base.scss +5 -0
- data/spec/test-site/.themes/classic/sass/_partials.scss +8 -0
- data/spec/test-site/.themes/classic/sass/base/_layout.scss +192 -0
- data/spec/test-site/.themes/classic/sass/base/_solarized.scss +46 -0
- data/spec/test-site/.themes/classic/sass/base/_theme.scss +86 -0
- data/spec/test-site/.themes/classic/sass/base/_typography.scss +161 -0
- data/spec/test-site/.themes/classic/sass/base/_utilities.scss +28 -0
- data/spec/test-site/.themes/classic/sass/custom/_colors.scss +43 -0
- data/spec/test-site/.themes/classic/sass/custom/_fonts.scss +10 -0
- data/spec/test-site/.themes/classic/sass/custom/_layout.scss +21 -0
- data/spec/test-site/.themes/classic/sass/custom/_styles.scss +2 -0
- data/spec/test-site/.themes/classic/sass/partials/_archive.scss +72 -0
- data/spec/test-site/.themes/classic/sass/partials/_blog.scss +141 -0
- data/spec/test-site/.themes/classic/sass/partials/_footer.scss +19 -0
- data/spec/test-site/.themes/classic/sass/partials/_header.scss +18 -0
- data/spec/test-site/.themes/classic/sass/partials/_navigation.scss +137 -0
- data/spec/test-site/.themes/classic/sass/partials/_sharing.scss +8 -0
- data/spec/test-site/.themes/classic/sass/partials/_sidebar.scss +5 -0
- data/spec/test-site/.themes/classic/sass/partials/_syntax.scss +253 -0
- data/spec/test-site/.themes/classic/sass/partials/sidebar/_base.scss +106 -0
- data/spec/test-site/.themes/classic/sass/partials/sidebar/_delicious.scss +4 -0
- data/spec/test-site/.themes/classic/sass/partials/sidebar/_googleplus.scss +26 -0
- data/spec/test-site/.themes/classic/sass/partials/sidebar/_pinboard.scss +12 -0
- data/spec/test-site/.themes/classic/sass/partials/sidebar/_twitter.scss +34 -0
- data/spec/test-site/.themes/classic/sass/screen.scss +10 -0
- data/spec/test-site/.themes/classic/source/_includes/after_footer.html +5 -0
- data/spec/test-site/.themes/classic/source/_includes/archive_post.html +8 -0
- data/spec/test-site/.themes/classic/source/_includes/article.html +28 -0
- data/spec/test-site/.themes/classic/source/_includes/asides/delicious.html +8 -0
- data/spec/test-site/.themes/classic/source/_includes/asides/github.html +30 -0
- data/spec/test-site/.themes/classic/source/_includes/asides/googleplus.html +11 -0
- data/spec/test-site/.themes/classic/source/_includes/asides/pinboard.html +19 -0
- data/spec/test-site/.themes/classic/source/_includes/asides/recent_posts.html +10 -0
- data/spec/test-site/.themes/classic/source/_includes/asides/twitter.html +19 -0
- data/spec/test-site/.themes/classic/source/_includes/custom/after_footer.html +3 -0
- data/spec/test-site/.themes/classic/source/_includes/custom/asides/about.html +4 -0
- data/spec/test-site/.themes/classic/source/_includes/custom/category_feed.xml +27 -0
- data/spec/test-site/.themes/classic/source/_includes/custom/footer.html +4 -0
- data/spec/test-site/.themes/classic/source/_includes/custom/head.html +3 -0
- data/spec/test-site/.themes/classic/source/_includes/custom/header.html +6 -0
- data/spec/test-site/.themes/classic/source/_includes/custom/navigation.html +4 -0
- data/spec/test-site/.themes/classic/source/_includes/disqus.html +21 -0
- data/spec/test-site/.themes/classic/source/_includes/facebook_like.html +10 -0
- data/spec/test-site/.themes/classic/source/_includes/footer.html +1 -0
- data/spec/test-site/.themes/classic/source/_includes/google_analytics.html +13 -0
- data/spec/test-site/.themes/classic/source/_includes/google_plus_one.html +9 -0
- data/spec/test-site/.themes/classic/source/_includes/head.html +29 -0
- data/spec/test-site/.themes/classic/source/_includes/header.html +1 -0
- data/spec/test-site/.themes/classic/source/_includes/navigation.html +15 -0
- data/spec/test-site/.themes/classic/source/_includes/post/author.html +8 -0
- data/spec/test-site/.themes/classic/source/_includes/post/categories.html +10 -0
- data/spec/test-site/.themes/classic/source/_includes/post/date.html +15 -0
- data/spec/test-site/.themes/classic/source/_includes/post/disqus_thread.html +1 -0
- data/spec/test-site/.themes/classic/source/_includes/post/sharing.html +11 -0
- data/spec/test-site/.themes/classic/source/_includes/twitter_sharing.html +11 -0
- data/spec/test-site/.themes/classic/source/_layouts/category_index.html +17 -0
- data/spec/test-site/.themes/classic/source/_layouts/default.html +14 -0
- data/spec/test-site/.themes/classic/source/_layouts/page.html +42 -0
- data/spec/test-site/.themes/classic/source/_layouts/post.html +43 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/background.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/blankButton.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/divider.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/fullscreenButton.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/fullscreenButtonOver.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/muteButton.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/muteButtonOver.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/normalscreenButton.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/normalscreenButtonOver.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/pauseButton.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/pauseButtonOver.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/playButton.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/playButtonOver.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderBuffer.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderCapLeft.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderCapRight.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderProgress.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderRail.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/unmuteButton.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/unmuteButtonOver.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/display/background.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/display/bufferIcon.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/display/muteIcon.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/display/playIcon.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/dock/button.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/glow.xml +115 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/playlist/item.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/playlist/itemOver.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/playlist/sliderCapBottom.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/playlist/sliderCapTop.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/playlist/sliderRail.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/playlist/sliderThumb.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/sharing/embedIcon.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/sharing/embedScreen.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/sharing/shareIcon.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/sharing/shareScreen.png +0 -0
- data/spec/test-site/.themes/classic/source/assets/jwplayer/player.swf +0 -0
- data/spec/test-site/.themes/classic/source/atom.xml +27 -0
- data/spec/test-site/.themes/classic/source/blog/archives/index.html +18 -0
- data/spec/test-site/.themes/classic/source/favicon.png +0 -0
- data/spec/test-site/.themes/classic/source/images/bird_32_gray.png +0 -0
- data/spec/test-site/.themes/classic/source/images/bird_32_gray_fail.png +0 -0
- data/spec/test-site/.themes/classic/source/images/code_bg.png +0 -0
- data/spec/test-site/.themes/classic/source/images/dotted-border.png +0 -0
- data/spec/test-site/.themes/classic/source/images/email.png +0 -0
- data/spec/test-site/.themes/classic/source/images/line-tile.png +0 -0
- data/spec/test-site/.themes/classic/source/images/noise.png +0 -0
- data/spec/test-site/.themes/classic/source/images/rss.png +0 -0
- data/spec/test-site/.themes/classic/source/images/search.png +0 -0
- data/spec/test-site/.themes/classic/source/index.html +29 -0
- data/spec/test-site/.themes/classic/source/javascripts/ender.js +45 -0
- data/spec/test-site/.themes/classic/source/javascripts/github.js +37 -0
- data/spec/test-site/.themes/classic/source/javascripts/libs/ender.js +1497 -0
- data/spec/test-site/.themes/classic/source/javascripts/libs/jXHR.js +85 -0
- data/spec/test-site/.themes/classic/source/javascripts/libs/swfobject-dynamic.js +298 -0
- data/spec/test-site/.themes/classic/source/javascripts/modernizr-2.0.js +5 -0
- data/spec/test-site/.themes/classic/source/javascripts/octopress.js +161 -0
- data/spec/test-site/.themes/classic/source/javascripts/pinboard.js +56 -0
- data/spec/test-site/.themes/classic/source/javascripts/twitter.js +78 -0
- data/spec/test-site/CHANGELOG.markdown +29 -0
- data/spec/test-site/Gemfile +18 -0
- data/spec/test-site/Gemfile.lock +69 -0
- data/spec/test-site/README.markdown +36 -0
- data/spec/test-site/Rakefile +379 -0
- data/spec/test-site/_config.yml +99 -0
- data/spec/test-site/config.rb +16 -0
- data/spec/test-site/config.ru +25 -0
- data/spec/test-site/plugins/backtick_code_block.rb +43 -0
- data/spec/test-site/plugins/blockquote.rb +83 -0
- data/spec/test-site/plugins/category_generator.rb +174 -0
- data/spec/test-site/plugins/code_block.rb +98 -0
- data/spec/test-site/plugins/date.rb +98 -0
- data/spec/test-site/plugins/gist_tag.rb +100 -0
- data/spec/test-site/plugins/haml.rb +24 -0
- data/spec/test-site/plugins/image_tag.rb +50 -0
- data/spec/test-site/plugins/include_array.rb +58 -0
- data/spec/test-site/plugins/include_code.rb +73 -0
- data/spec/test-site/plugins/jsfiddle.rb +40 -0
- data/spec/test-site/plugins/octopress_filters.rb +135 -0
- data/spec/test-site/plugins/pagination.rb +121 -0
- data/spec/test-site/plugins/post_filters.rb +176 -0
- data/spec/test-site/plugins/preview_unpublished.rb +48 -0
- data/spec/test-site/plugins/pullquote.rb +45 -0
- data/spec/test-site/plugins/pygments_code.rb +41 -0
- data/spec/test-site/plugins/raw.rb +40 -0
- data/spec/test-site/plugins/render_partial.rb +69 -0
- data/spec/test-site/plugins/rubypants.rb +489 -0
- data/spec/test-site/plugins/sitemap_generator.rb +312 -0
- data/spec/test-site/plugins/titlecase.rb +36 -0
- data/spec/test-site/plugins/video_tag.rb +47 -0
- data/spec/test-site/public/assets/jwplayer/glow/controlbar/background.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/controlbar/blankButton.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/controlbar/divider.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/controlbar/fullscreenButton.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/controlbar/fullscreenButtonOver.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/controlbar/muteButton.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/controlbar/muteButtonOver.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/controlbar/normalscreenButton.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/controlbar/normalscreenButtonOver.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/controlbar/pauseButton.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/controlbar/pauseButtonOver.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/controlbar/playButton.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/controlbar/playButtonOver.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/controlbar/timeSliderBuffer.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/controlbar/timeSliderCapLeft.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/controlbar/timeSliderCapRight.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/controlbar/timeSliderProgress.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/controlbar/timeSliderRail.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/controlbar/unmuteButton.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/controlbar/unmuteButtonOver.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/display/background.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/display/bufferIcon.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/display/muteIcon.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/display/playIcon.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/dock/button.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/glow.xml +115 -0
- data/spec/test-site/public/assets/jwplayer/glow/playlist/item.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/playlist/itemOver.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/playlist/sliderCapBottom.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/playlist/sliderCapTop.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/playlist/sliderRail.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/playlist/sliderThumb.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/sharing/embedIcon.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/sharing/embedScreen.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/sharing/shareIcon.png +0 -0
- data/spec/test-site/public/assets/jwplayer/glow/sharing/shareScreen.png +0 -0
- data/spec/test-site/public/assets/jwplayer/player.swf +0 -0
- data/spec/test-site/public/atom.xml +27 -0
- data/spec/test-site/public/blog/2012/10/02/a-list-of-links/index.html +196 -0
- data/spec/test-site/public/blog/archives/index.html +149 -0
- data/spec/test-site/public/favicon.png +0 -0
- data/spec/test-site/public/images/bird_32_gray.png +0 -0
- data/spec/test-site/public/images/bird_32_gray_fail.png +0 -0
- data/spec/test-site/public/images/code_bg.png +0 -0
- data/spec/test-site/public/images/dotted-border.png +0 -0
- data/spec/test-site/public/images/email.png +0 -0
- data/spec/test-site/public/images/line-tile.png +0 -0
- data/spec/test-site/public/images/noise.png +0 -0
- data/spec/test-site/public/images/rss.png +0 -0
- data/spec/test-site/public/images/search.png +0 -0
- data/spec/test-site/public/index.html +165 -0
- data/spec/test-site/public/javascripts/ender.js +45 -0
- data/spec/test-site/public/javascripts/github.js +37 -0
- data/spec/test-site/public/javascripts/libs/ender.js +1497 -0
- data/spec/test-site/public/javascripts/libs/jXHR.js +85 -0
- data/spec/test-site/public/javascripts/libs/swfobject-dynamic.js +298 -0
- data/spec/test-site/public/javascripts/modernizr-2.0.js +5 -0
- data/spec/test-site/public/javascripts/octopress.js +161 -0
- data/spec/test-site/public/javascripts/pinboard.js +56 -0
- data/spec/test-site/public/javascripts/twitter.js +78 -0
- data/spec/test-site/public/sitemap.xml +15 -0
- data/spec/test-site/public/stylesheets/screen.css +1 -0
- data/spec/test-site/sass/_base.scss +5 -0
- data/spec/test-site/sass/_partials.scss +8 -0
- data/spec/test-site/sass/base/_layout.scss +192 -0
- data/spec/test-site/sass/base/_solarized.scss +46 -0
- data/spec/test-site/sass/base/_theme.scss +86 -0
- data/spec/test-site/sass/base/_typography.scss +161 -0
- data/spec/test-site/sass/base/_utilities.scss +28 -0
- data/spec/test-site/sass/custom/_colors.scss +43 -0
- data/spec/test-site/sass/custom/_fonts.scss +10 -0
- data/spec/test-site/sass/custom/_layout.scss +21 -0
- data/spec/test-site/sass/custom/_styles.scss +2 -0
- data/spec/test-site/sass/partials/_archive.scss +72 -0
- data/spec/test-site/sass/partials/_blog.scss +141 -0
- data/spec/test-site/sass/partials/_footer.scss +19 -0
- data/spec/test-site/sass/partials/_header.scss +18 -0
- data/spec/test-site/sass/partials/_navigation.scss +137 -0
- data/spec/test-site/sass/partials/_sharing.scss +8 -0
- data/spec/test-site/sass/partials/_sidebar.scss +5 -0
- data/spec/test-site/sass/partials/_syntax.scss +253 -0
- data/spec/test-site/sass/partials/sidebar/_base.scss +106 -0
- data/spec/test-site/sass/partials/sidebar/_delicious.scss +4 -0
- data/spec/test-site/sass/partials/sidebar/_googleplus.scss +26 -0
- data/spec/test-site/sass/partials/sidebar/_pinboard.scss +12 -0
- data/spec/test-site/sass/partials/sidebar/_twitter.scss +34 -0
- data/spec/test-site/sass/screen.scss +10 -0
- data/spec/test-site/source/_includes/after_footer.html +5 -0
- data/spec/test-site/source/_includes/archive_post.html +8 -0
- data/spec/test-site/source/_includes/article.html +28 -0
- data/spec/test-site/source/_includes/asides/delicious.html +8 -0
- data/spec/test-site/source/_includes/asides/github.html +30 -0
- data/spec/test-site/source/_includes/asides/googleplus.html +11 -0
- data/spec/test-site/source/_includes/asides/pinboard.html +19 -0
- data/spec/test-site/source/_includes/asides/recent_posts.html +10 -0
- data/spec/test-site/source/_includes/asides/twitter.html +19 -0
- data/spec/test-site/source/_includes/custom/after_footer.html +3 -0
- data/spec/test-site/source/_includes/custom/asides/about.html +4 -0
- data/spec/test-site/source/_includes/custom/category_feed.xml +27 -0
- data/spec/test-site/source/_includes/custom/footer.html +4 -0
- data/spec/test-site/source/_includes/custom/head.html +3 -0
- data/spec/test-site/source/_includes/custom/header.html +6 -0
- data/spec/test-site/source/_includes/custom/navigation.html +4 -0
- data/spec/test-site/source/_includes/disqus.html +21 -0
- data/spec/test-site/source/_includes/facebook_like.html +10 -0
- data/spec/test-site/source/_includes/footer.html +1 -0
- data/spec/test-site/source/_includes/google_analytics.html +13 -0
- data/spec/test-site/source/_includes/google_plus_one.html +9 -0
- data/spec/test-site/source/_includes/head.html +29 -0
- data/spec/test-site/source/_includes/header.html +1 -0
- data/spec/test-site/source/_includes/navigation.html +15 -0
- data/spec/test-site/source/_includes/post/author.html +8 -0
- data/spec/test-site/source/_includes/post/categories.html +10 -0
- data/spec/test-site/source/_includes/post/date.html +15 -0
- data/spec/test-site/source/_includes/post/disqus_thread.html +1 -0
- data/spec/test-site/source/_includes/post/sharing.html +11 -0
- data/spec/test-site/source/_includes/twitter_sharing.html +11 -0
- data/spec/test-site/source/_layouts/category_index.html +17 -0
- data/spec/test-site/source/_layouts/default.html +14 -0
- data/spec/test-site/source/_layouts/page.html +42 -0
- data/spec/test-site/source/_layouts/post.html +43 -0
- data/spec/test-site/source/_posts/2012-10-02-a-list-of-links.markdown +11 -0
- data/spec/test-site/source/assets/jwplayer/glow/controlbar/background.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/controlbar/blankButton.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/controlbar/divider.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/controlbar/fullscreenButton.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/controlbar/fullscreenButtonOver.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/controlbar/muteButton.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/controlbar/muteButtonOver.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/controlbar/normalscreenButton.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/controlbar/normalscreenButtonOver.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/controlbar/pauseButton.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/controlbar/pauseButtonOver.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/controlbar/playButton.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/controlbar/playButtonOver.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/controlbar/timeSliderBuffer.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/controlbar/timeSliderCapLeft.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/controlbar/timeSliderCapRight.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/controlbar/timeSliderProgress.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/controlbar/timeSliderRail.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/controlbar/unmuteButton.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/controlbar/unmuteButtonOver.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/display/background.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/display/bufferIcon.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/display/muteIcon.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/display/playIcon.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/dock/button.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/glow.xml +115 -0
- data/spec/test-site/source/assets/jwplayer/glow/playlist/item.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/playlist/itemOver.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/playlist/sliderCapBottom.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/playlist/sliderCapTop.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/playlist/sliderRail.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/playlist/sliderThumb.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/sharing/embedIcon.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/sharing/embedScreen.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/sharing/shareIcon.png +0 -0
- data/spec/test-site/source/assets/jwplayer/glow/sharing/shareScreen.png +0 -0
- data/spec/test-site/source/assets/jwplayer/player.swf +0 -0
- data/spec/test-site/source/atom.xml +27 -0
- data/spec/test-site/source/blog/archives/index.html +18 -0
- data/spec/test-site/source/favicon.png +0 -0
- data/spec/test-site/source/images/bird_32_gray.png +0 -0
- data/spec/test-site/source/images/bird_32_gray_fail.png +0 -0
- data/spec/test-site/source/images/code_bg.png +0 -0
- data/spec/test-site/source/images/dotted-border.png +0 -0
- data/spec/test-site/source/images/email.png +0 -0
- data/spec/test-site/source/images/line-tile.png +0 -0
- data/spec/test-site/source/images/noise.png +0 -0
- data/spec/test-site/source/images/rss.png +0 -0
- data/spec/test-site/source/images/search.png +0 -0
- data/spec/test-site/source/index.html +29 -0
- data/spec/test-site/source/javascripts/ender.js +45 -0
- data/spec/test-site/source/javascripts/github.js +37 -0
- data/spec/test-site/source/javascripts/libs/ender.js +1497 -0
- data/spec/test-site/source/javascripts/libs/jXHR.js +85 -0
- data/spec/test-site/source/javascripts/libs/swfobject-dynamic.js +298 -0
- data/spec/test-site/source/javascripts/modernizr-2.0.js +5 -0
- data/spec/test-site/source/javascripts/octopress.js +161 -0
- data/spec/test-site/source/javascripts/pinboard.js +56 -0
- data/spec/test-site/source/javascripts/twitter.js +78 -0
- 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
|
data/spec/spec_helper.rb
ADDED
@@ -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,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
|
+
}
|