From c0be178556257e9ac2e085de867a3cfe543c570e Mon Sep 17 00:00:00 2001 From: Thibaut Date: Sun, 26 Jan 2014 15:34:49 -0500 Subject: [PATCH] Auto-require gems in the "docs" bundle --- lib/docs.rb | 2 +- lib/docs/core/filter.rb | 2 -- lib/docs/core/parser.rb | 2 -- lib/docs/core/request.rb | 2 -- lib/docs/core/requester.rb | 2 -- lib/docs/core/scraper.rb | 1 - test/lib/docs/core/response_test.rb | 1 - 7 files changed, 1 insertion(+), 11 deletions(-) diff --git a/lib/docs.rb b/lib/docs.rb index d6aaa20c..825d5c5a 100644 --- a/lib/docs.rb +++ b/lib/docs.rb @@ -1,5 +1,5 @@ require 'bundler/setup' -Bundler.setup :docs +Bundler.require :docs require 'active_support/core_ext' I18n.enforce_available_locales = true diff --git a/lib/docs/core/filter.rb b/lib/docs/core/filter.rb index 49410caf..578484e7 100644 --- a/lib/docs/core/filter.rb +++ b/lib/docs/core/filter.rb @@ -1,5 +1,3 @@ -require 'html/pipeline' - module Docs class Filter < ::HTML::Pipeline::Filter def css(*args) diff --git a/lib/docs/core/parser.rb b/lib/docs/core/parser.rb index fc432604..43a08904 100644 --- a/lib/docs/core/parser.rb +++ b/lib/docs/core/parser.rb @@ -1,5 +1,3 @@ -require 'nokogiri' - module Docs class Parser def initialize(content) diff --git a/lib/docs/core/request.rb b/lib/docs/core/request.rb index 659b8a7a..068739a9 100644 --- a/lib/docs/core/request.rb +++ b/lib/docs/core/request.rb @@ -1,5 +1,3 @@ -require 'typhoeus' - module Docs class Request < Typhoeus::Request include Instrumentable diff --git a/lib/docs/core/requester.rb b/lib/docs/core/requester.rb index cae1ca5d..b08c469c 100644 --- a/lib/docs/core/requester.rb +++ b/lib/docs/core/requester.rb @@ -1,5 +1,3 @@ -require 'typhoeus' - module Docs class Requester < Typhoeus::Hydra attr_reader :request_options diff --git a/lib/docs/core/scraper.rb b/lib/docs/core/scraper.rb index 02ef06d6..a8d3955a 100644 --- a/lib/docs/core/scraper.rb +++ b/lib/docs/core/scraper.rb @@ -1,5 +1,4 @@ require 'set' -require 'html/pipeline' module Docs class Scraper < Doc diff --git a/test/lib/docs/core/response_test.rb b/test/lib/docs/core/response_test.rb index 3264ba09..3cbf2dea 100644 --- a/test/lib/docs/core/response_test.rb +++ b/test/lib/docs/core/response_test.rb @@ -1,6 +1,5 @@ require 'test_helper' require 'docs' -require 'typhoeus' class DocsResponseTest < MiniTest::Spec let :response do