source stringclasses 1
value | repo stringlengths 5 63 | repo_url stringlengths 24 82 | path stringlengths 5 167 | language stringclasses 1
value | license stringclasses 5
values | stars int64 10 51.4k | ref stringclasses 23
values | size_bytes int64 200 258k | text stringlengths 137 258k |
|---|---|---|---|---|---|---|---|---|---|
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/config/validator.rb | Ruby | apache-2.0 | 45 | main | 1,067 | require_relative 'checkers/duplicate_section_name_checker'
require_relative 'checkers/archive_menu_checker'
require_relative 'checkers/required_keys_checker'
require_relative 'checkers/repository_name_presence_checker'
require_relative 'checkers/ditamap_presence_checker'
require_relative 'checkers/section_presence_chec... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/config/dita_config_generator.rb | Ruby | apache-2.0 | 45 | main | 1,559 | require_relative '../../../lib/bookbinder/ingest/destination_directory'
module Bookbinder
module Config
class DitaConfigGenerator
def initialize(section_hash)
@section_hash = section_hash
end
def subnav_template
dest_dir = Ingest::DestinationDirectory.new(section_hash.fetch('r... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/config/section_config.rb | Ruby | apache-2.0 | 45 | main | 1,597 | require_relative '../ingest/repo_identifier'
module Bookbinder
module Config
class SectionConfig
def initialize(config)
@config = config
end
def subnav_template
config['subnav_template']
end
def product_id
config['product_id']
end
def desired_d... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/config/yaml_loader.rb | Ruby | apache-2.0 | 45 | main | 687 | require 'yaml'
module Bookbinder
module Config
FileNotFoundError = Class.new(RuntimeError)
InvalidSyntaxError = Class.new(RuntimeError)
class YAMLLoader
def load(path)
if File.exist?(path)
config(path)
else
raise FileNotFoundError.new, "YAML"
end
r... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/config/configuration.rb | Ruby | apache-2.0 | 45 | main | 3,289 | require_relative '../../../lib/bookbinder/config/dita_config_generator'
require_relative '../ingest/destination_directory'
require_relative '../ingest/repo_identifier'
require_relative 'section_config'
require_relative 'product_config'
module Bookbinder
module Config
class Configuration
class << self
... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/config/checkers/ditamap_presence_checker.rb | Ruby | apache-2.0 | 45 | main | 743 | module Bookbinder
module Config
module Checkers
class DitamapPresenceChecker
DitamapLocationError = Class.new(RuntimeError)
def check(config)
if any_sections_missing_ditamaps?(config.sections)
DitamapLocationError.new(
"You must have a 'ditamap_location' ... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/config/checkers/section_presence_checker.rb | Ruby | apache-2.0 | 45 | main | 385 | module Bookbinder
module Config
module Checkers
class SectionPresenceChecker
NoSectionsError = Class.new(RuntimeError)
def check(config)
if config.sections.none?
NoSectionsError.new('No sections found in your config.yml. Add sections under the appropriate key(s) and tr... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/config/checkers/required_keys_checker.rb | Ruby | apache-2.0 | 45 | main | 536 | require_relative '../configuration'
module Bookbinder
module Config
module Checkers
class RequiredKeysChecker
MissingRequiredKeyError = Class.new(RuntimeError)
def check(config)
missing_keys = Config::Configuration::CONFIG_REQUIRED_KEYS.reject { |key| config.has_option?(key) }
... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/config/checkers/products_checker.rb | Ruby | apache-2.0 | 45 | main | 987 | module Bookbinder
module Config
module Checkers
class ProductsChecker
MissingProductsKeyError = Class.new(RuntimeError)
MissingProductIdError = Class.new(RuntimeError)
def check(config)
@config = config
if section_product_ids.count > 0
if config.prod... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/config/checkers/archive_menu_checker.rb | Ruby | apache-2.0 | 45 | main | 974 | module Bookbinder
module Config
module Checkers
class ArchiveMenuChecker
MissingArchiveMenuPartialError = Class.new(RuntimeError)
ArchiveMenuNotDefinedError = Class.new(RuntimeError)
EmptyArchiveItemsError = Class.new(RuntimeError)
def initialize(file_system_accessor)
... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/config/checkers/repository_name_presence_checker.rb | Ruby | apache-2.0 | 45 | main | 739 | module Bookbinder
module Config
module Checkers
class RepositoryNamePresenceChecker
MissingRepositoryNameError = Class.new(RuntimeError)
def check(config)
failures = config.sections.reject do |section|
section.repo_name
end
if failures.empty?
... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/config/checkers/duplicate_section_name_checker.rb | Ruby | apache-2.0 | 45 | main | 865 | require_relative '../../ingest/destination_directory'
module Bookbinder
module Config
module Checkers
class DuplicateSectionNameChecker
DuplicateSectionNameError = Class.new(RuntimeError)
def check(config)
if duplicate_section_names?(config)
DuplicateSectionNameError.... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/config/imprint/configuration.rb | Ruby | apache-2.0 | 45 | main | 602 | require_relative '../configuration'
module Bookbinder
module Config
module Imprint
class Configuration < Config::Configuration
class << self
def parse(input_config)
section_configs = to_section_configs(pdf_sections(input_config))
parse_sections(input_config, sectio... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/subnav/pdf_config_creator.rb | Ruby | apache-2.0 | 45 | main | 1,129 | require 'yaml'
module Bookbinder
module Subnav
class PdfConfigCreator
def initialize(fs, output_locations)
@fs = fs
@output_locations = output_locations
end
def create(navigation_entries, subnav_config)
@links = format_links(navigation_entries)
fs.overwrite(to:... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/subnav/subnav_generator_factory.rb | Ruby | apache-2.0 | 45 | main | 702 | require_relative 'template_creator'
require_relative 'pdf_config_creator'
module Bookbinder
module Subnav
class SubnavGeneratorFactory
def initialize(fs, output_locations)
@fs = fs
@output_locations = output_locations
end
def produce(json_generator)
SubnavGenerator.new(... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/subnav/subnav_generator.rb | Ruby | apache-2.0 | 45 | main | 934 | module Bookbinder
module Subnav
class SubnavGenerator
def initialize(navigation_entries_parser, template_creator, pdf_config_creator, output_locations)
@navigation_entries_parser = navigation_entries_parser
@template_creator = template_creator
@pdf_config_creator = pdf_config_creator... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/subnav/navigation_entries_from_markdown_root.rb | Ruby | apache-2.0 | 45 | main | 3,494 | require 'json'
require 'nokogiri'
require 'redcarpet'
module Bookbinder
module Subnav
class NavigationEntriesFromMarkdownRoot
SubnavDuplicateLinkError = Class.new(RuntimeError)
SubnavBrokenLinkError = Class.new(RuntimeError)
SubnavRootMissingError = Class.new(RuntimeError)
def initialize... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/subnav/navigation_entries_from_html_toc.rb | Ruby | apache-2.0 | 45 | main | 1,489 | require 'nokogiri'
require 'active_support/all'
module Bookbinder
module Subnav
class NavigationEntriesFromHtmlToc
def initialize(fs)
@fs = fs
@external_link_check = %r{\Ahttps?://}
end
def get_links(section, output_locations)
@section, @output_locations = section, outp... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/subnav/template_creator.rb | Ruby | apache-2.0 | 45 | main | 1,630 | require 'erb'
require 'rack/utils'
module Bookbinder
module Subnav
class TemplateCreator
def initialize(fs, output_locations)
@fs = fs
@output_locations = output_locations
end
def create(navigation_entries, subnav_spec)
template_content = fs.read(template_path)
... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/streams/colorized_stream.rb | Ruby | apache-2.0 | 45 | main | 468 | require_relative '../colorizer'
module Bookbinder
module Streams
class ColorizedStream
def initialize(color, stream)
@color = color
@stream = stream
@colorizer = Colorizer.new
end
def puts(line)
stream.puts(colorizer.colorize(line, color))
end
def <... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/streams/filter_stream.rb | Ruby | apache-2.0 | 45 | main | 451 | module Bookbinder
module Streams
class FilterStream
def initialize(matcher_regex, stream)
@matcher_regex = matcher_regex
@stream = stream
end
def puts(line)
stream.puts(line.gsub("\n", '')) if line.match(matcher_regex)
end
def <<(line)
stream << line... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/preprocessing/dita_pdf_preprocessor.rb | Ruby | apache-2.0 | 45 | main | 1,670 | module Bookbinder
module Preprocessing
class DitaPDFPreprocessor
DitaToPDFLibraryFailure = Class.new(RuntimeError)
def initialize(fs, command_creator, sheller)
@fs = fs
@command_creator = command_creator
@sheller = sheller
end
def applicable_to?(section)
!... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/preprocessing/preprocessor.rb | Ruby | apache-2.0 | 45 | main | 576 | module Bookbinder
module Preprocessing
class Preprocessor
class NullProcess
def preprocess(*)
end
end
def initialize(*processes)
@processes = processes
end
def preprocess(sections, *args)
sections.group_by { |section|
processes.detect(Proc.... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/preprocessing/link_to_site_gen_dir.rb | Ruby | apache-2.0 | 45 | main | 1,255 | require_relative '../subnav/subnav_generator'
require_relative '../subnav/navigation_entries_from_markdown_root'
module Bookbinder
module Preprocessing
class LinkToSiteGenDir
def initialize(filesystem, subnav_generator_factory)
@filesystem = filesystem
@subnav_generator_factory = subnav_gen... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/preprocessing/dita_html_preprocessor.rb | Ruby | apache-2.0 | 45 | main | 3,289 | require_relative '../values/subnav_template'
require_relative '../../../lib/bookbinder/subnav/navigation_entries_from_html_toc'
module Bookbinder
module Preprocessing
class DitaHTMLPreprocessor
DitaToHtmlLibraryFailure = Class.new(RuntimeError)
ACCEPTED_IMAGE_FORMATS = %w(png jpeg jpg svg gif bmp ti... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/ingest/destination_directory.rb | Ruby | apache-2.0 | 45 | main | 442 | module Bookbinder
module Ingest
DestinationDirectory = Struct.new(:full_repo_name, :desired_destination_dir_name) do
def to_str
if desired_destination_dir_name
desired_destination_dir_name.to_s
elsif full_repo_name
full_repo_name.split('/').last
else
""
... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/ingest/git_accessor.rb | Ruby | apache-2.0 | 45 | main | 2,954 | require 'git'
require_relative '../directory_helpers'
require_relative '../local_filesystem_accessor'
require_relative 'update_failure'
require_relative 'update_success'
module Bookbinder
module Ingest
class GitAccessor
TagExists = Class.new(RuntimeError)
InvalidTagRef = Class.new(RuntimeError)
... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/ingest/section_repository.rb | Ruby | apache-2.0 | 45 | main | 1,977 | require_relative '../values/section'
require_relative '../values/product_info'
module Bookbinder
module Ingest
class SectionRepository
def fetch(configured_sections: [],
destination_dir: nil,
ref_override: nil,
cloner: nil,
streams: nil)
... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/ingest/git_cloner.rb | Ruby | apache-2.0 | 45 | main | 994 | require_relative 'destination_directory'
require_relative 'repo_identifier'
require_relative 'working_copy'
module Bookbinder
module Ingest
class GitCloner
def initialize(version_control_system)
@version_control_system = version_control_system
end
def call(source_repo_name: nil,
... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/ingest/working_copy.rb | Ruby | apache-2.0 | 45 | main | 869 | require_relative '../errors/programmer_mistake'
module Bookbinder
module Ingest
class WorkingCopy
attr_reader :full_name, :ref
def initialize(copied_to: nil,
full_name: nil,
ref: nil)
if [copied_to, full_name].none?
raise Errors::Programmer... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/ingest/update_failure.rb | Ruby | apache-2.0 | 45 | main | 211 | module Bookbinder
module Ingest
class UpdateFailure
attr_reader :reason
def initialize(reason)
@reason = reason
end
def success?
false
end
end
end
end |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/ingest/repo_identifier.rb | Ruby | apache-2.0 | 45 | main | 800 | module Bookbinder
module Ingest
class RepoIdentifier
DEFAULT_VCS_PREFIX = 'git@github.com:'
def initialize(input_identifier)
@input_identifier = input_identifier
end
def to_str
if input_identifier.nil?
""
elsif input_identifier.include?(':') || input_ide... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/ingest/cloner_factory.rb | Ruby | apache-2.0 | 45 | main | 638 | require_relative 'git_cloner'
require_relative 'local_filesystem_cloner'
module Bookbinder
module Ingest
class ClonerFactory
def initialize(streams, filesystem, version_control_system)
@streams = streams
@filesystem = filesystem
@version_control_system = version_control_system
... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/ingest/missing_working_copy.rb | Ruby | apache-2.0 | 45 | main | 473 | module Bookbinder
module Ingest
class MissingWorkingCopy
def initialize(source_repo_name, source_dir, source_ref=nil)
@source_repo_name = source_repo_name
@source_dir = source_dir
@source_ref = source_ref
end
def full_name
@source_repo_name
end
def p... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | lib/bookbinder/ingest/local_filesystem_cloner.rb | Ruby | apache-2.0 | 45 | main | 2,095 | require_relative 'destination_directory'
require_relative 'working_copy'
require_relative 'missing_working_copy'
module Bookbinder
module Ingest
class LocalFilesystemCloner
def initialize(streams, filesystem, user_repo_dir)
@streams = streams
@user_repo_dir = user_repo_dir
@filesyst... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | template_app/mail_sender.rb | Ruby | apache-2.0 | 45 | main | 1,314 | require 'sendgrid-ruby'
require 'rack/response'
require 'uri'
module Bookbinder
class MailSender
def initialize(username, api_key, config={})
@config = config
@client = SendGrid::Client.new(api_user: username, api_key: api_key, raise_exceptions: false)
end
def send_mail(params)
params ... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | template_app/rack_app.rb | Ruby | apache-2.0 | 45 | main | 2,242 | require 'rack'
require 'rack/rewrite'
require_relative './lib/server'
require_relative './lib/search/handler'
module Bookbinder
class RackApp
def initialize(redirect_pathname, mail_client=nil, auth_required: true)
@redirect_pathname = redirect_pathname
@mail_client = mail_client
@auth_required ... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | template_app/config.ru | Ruby | apache-2.0 | 45 | main | 365 | require 'pathname'
require './rack_app'
require './mail_sender'
mail_client = Bookbinder::MailSender.new(ENV['SENDGRID_USERNAME'],
ENV['SENDGRID_API_KEY'],
{to: ENV['FEEDBACK_TO'], from: ENV['FEEDBACK_FROM']})
run Bookbinder::RackApp.ne... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | template_app/lib/server.rb | Ruby | apache-2.0 | 45 | main | 1,348 | require_relative './rack_static_if_exists'
module Bookbinder
class Server
class << self
def call(env)
Bookbinder::Server.new.call(env)
end
end
def initialize
@app = Rack::Builder.new do
use RackStaticIfExists, {
urls: [''],
root: 'public',
... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | template_app/lib/rack_static_if_exists.rb | Ruby | apache-2.0 | 45 | main | 434 | require 'rack'
module Bookbinder
class RackStaticIfExists < Rack::Static
def can_serve(path)
file_exists?(path) || dir_with_index_exists?(path)
end
private
def file_exists?(path)
File.file?(File.join(@file_server.root, path))
end
def dir_with_index_exists?(path)
File.dire... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | template_app/lib/search/handler.rb | Ruby | apache-2.0 | 45 | main | 2,373 | require 'elasticsearch'
require 'cgi'
require 'json'
require_relative 'query'
require_relative 'renderer'
module Bookbinder
module Search
class Handler
def initialize(client_class = Elasticsearch::Client, environment = ENV)
@client_class = client_class
@environment = environment
@r... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | template_app/lib/search/hit.rb | Ruby | apache-2.0 | 45 | main | 646 | module Bookbinder
module Search
class Hit
def initialize(attrs = {})
source_fields = attrs.fetch('_source')
@title = source_fields.fetch('title').sub(/\A(.+)\|.*\z/, '\\1').strip
@url = source_fields.fetch('url')
@product_name = source_fields['product_name']
@product_... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | template_app/lib/search/renderer.rb | Ruby | apache-2.0 | 45 | main | 631 | require 'erb'
require 'rack/utils'
module Bookbinder
module Search
class Renderer
def initialize
@template = ERB.new(File.read(File.expand_path('../../../search-results.html.erb', __FILE__)))
end
def render_results(result)
result_binding = result.instance_eval { binding }
... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | template_app/lib/search/query.rb | Ruby | apache-2.0 | 45 | main | 2,345 | require 'yaml'
require_relative 'hit'
module Bookbinder
module Search
class Query
attr_accessor :result_count, :message
attr_reader :search_term, :product_name, :product_version, :page_number, :result_list, :last_page, :page_window
def self.empty_query(message)
new.tap do |q|
... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/template_app/rack_app_spec.rb | Ruby | apache-2.0 | 45 | main | 4,544 | require 'net/http'
require 'rack/test'
require_relative '../../template_app/rack_app'
module Bookbinder
describe RackApp do
include Rack::Test::Methods
it 'respects a redirects file' do
redirects = instance_double(
'Pathname',
read: "r301 '/index.html', '/dogs/index.html'",
exi... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/template_app/mail_sender_spec.rb | Ruby | apache-2.0 | 45 | main | 2,689 | require_relative '../../template_app/mail_sender'
require 'sendgrid-ruby'
require 'rack/response'
module Bookbinder
describe MailSender do
it 'initializes SendGrid client' do
expect(SendGrid::Client).to receive(:new).with(
api_user: 'username',
api_key: 'api-key',
raise_except... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/template_app/lib/rack_static_if_exists_spec.rb | Ruby | apache-2.0 | 45 | main | 954 | require_relative '../../../template_app/lib/rack_static_if_exists'
module Bookbinder
describe RackStaticIfExists do
subject do
RackStaticIfExists.new(nil,
root: File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'static_file_checking', 'public'),
index: 'index.html'
)
end
... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/template_app/lib/server_spec.rb | Ruby | apache-2.0 | 45 | main | 743 | require_relative '../../../template_app/lib/server'
describe Bookbinder::Server do
it 'adds / to paths without them' do
response = Bookbinder::Server.new.call({'PATH_INFO' => '/foo/path'})
expect(response).to eq [301, {"Location"=>"://::0/foo/path/", "Content-Type"=>""}, []]
end
it 'adds a / to an empty... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/template_app/lib/search/handler_spec.rb | Ruby | apache-2.0 | 45 | main | 6,536 | require_relative '../../../../template_app/lib/search/handler'
module Bookbinder::Search
describe Handler do
describe '#call' do
let(:mock_client) { double(:elastic_search) }
let(:mock_client_class) { double(:elastic_search_class, new: mock_client) }
let(:mock_services) do
{
s... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/template_app/lib/search/hit_spec.rb | Ruby | apache-2.0 | 45 | main | 608 | require_relative '../../../../template_app/lib/search/hit'
module Bookbinder::Search
describe Hit do
it 'trims the site information out of the title' do
hit = Hit.new('_source' => { 'title' => 'Foo Bar | More Stuff', 'url' => 'foo.html' }, 'highlight' => { 'text' => ['foo'] })
expect(hit.title).to eq... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/template_app/lib/search/query_spec.rb | Ruby | apache-2.0 | 45 | main | 7,518 | require_relative '../../../../template_app/lib/search/query'
module Bookbinder::Search
describe Query do
it 'extracts default params with search_term' do
query = Query.new('q' => 'foo')
expect(query.search_term).to eq('foo')
expect(query.product_name).to be_nil
expect(query.product_versio... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/local_filesystem_accessor_spec.rb | Ruby | apache-2.0 | 45 | main | 18,480 | require_relative '../../../lib/bookbinder/local_filesystem_accessor'
require_relative '../../helpers/use_fixture_repo'
module Bookbinder
describe LocalFilesystemAccessor do
let(:fs_accessor) do
LocalFilesystemAccessor.new
end
describe 'writing to a new file' do
it 'appends text to the specif... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/terminal_spec.rb | Ruby | apache-2.0 | 45 | main | 891 | require_relative '../../../lib/bookbinder/values/user_message'
require_relative '../../../lib/bookbinder/terminal'
require_relative '../../helpers/redirection'
require_relative '../../helpers/matchers'
module Bookbinder
describe Terminal do
include Redirection
context 'when the user message is an error' do
... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/html_document_manipulator_spec.rb | Ruby | apache-2.0 | 45 | main | 2,582 | require_relative '../../../lib/bookbinder/html_document_manipulator'
require_relative '../../helpers/use_fixture_repo'
module Bookbinder
describe HtmlDocumentManipulator do
def html_document_manipulator
HtmlDocumentManipulator.new
end
describe 'setting an attribute' do
it 'returns a copy of... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/dita_command_creator_spec.rb | Ruby | apache-2.0 | 45 | main | 10,975 | require_relative '../../../lib/bookbinder/config/configuration'
require_relative '../../../lib/bookbinder/dita_command_creator'
require_relative '../../../lib/bookbinder/values/section'
module Bookbinder
describe DitaCommandCreator do
let(:path_to_dita_ot_library) { '/path/to/dita/ot' }
let(:classpath) do
... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/sheller_spec.rb | Ruby | apache-2.0 | 45 | main | 1,739 | require_relative '../../../lib/bookbinder/sheller'
module Bookbinder
describe Sheller do
it 'redirects stdout to specified target' do
sheller = Sheller.new
out = StringIO.new
sheller.run_command("echo 'hello'", out: out)
out.rewind
expect(out.read).to eq("hello\n")
end
it ... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/css_link_checker_spec.rb | Ruby | apache-2.0 | 45 | main | 5,260 | require_relative '../../../lib/bookbinder/css_link_checker'
require 'tmpdir'
module Bookbinder
describe CssLinkChecker do
let(:tmp) { Dir.mktmpdir }
let(:non_responsive_uri) { "http://www.gopivotal.com/sites/all/themes/gopo13/images/pivotal-logo.png" }
let(:test_css) {
"a.pivotal-logo {
bac... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/bookbinder_helpers_spec.rb | Ruby | apache-2.0 | 45 | main | 31,695 | require 'i18n'
require 'middleman'
require 'thor'
require 'middleman-core'
require 'middleman-core/builder'
require 'middleman-core/profiling'
require 'middleman-compass'
require 'ostruct'
require 'redcarpet'
require 'yaml'
require_relative '../../../lib/bookbinder/middleman_runner'
require_relative '../../helpers/midd... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/middleman_runner_spec.rb | Ruby | apache-2.0 | 45 | main | 4,408 | require 'tmpdir'
require_relative '../../../lib/bookbinder/config/configuration'
require_relative '../../../lib/bookbinder/middleman_runner'
require_relative '../../../lib/bookbinder/sheller'
require_relative '../../../lib/bookbinder/values/output_locations'
require_relative '../../../lib/bookbinder/values/section'
req... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/code_example_reader_spec.rb | Ruby | apache-2.0 | 45 | main | 4,542 | require_relative '../../../lib/bookbinder/code_example_reader'
require_relative '../../../lib/bookbinder/ingest/working_copy'
module Bookbinder
describe CodeExampleReader do
let(:working_copy) { Ingest::WorkingCopy.new(copied_to: 'my/dir', full_name: 'code-example-repo') }
it 'produces a string for the give... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/layout_preparer_spec.rb | Ruby | apache-2.0 | 45 | main | 4,087 | require_relative '../../../lib/bookbinder/commands/components/bind/layout_preparer'
require_relative '../../../lib/bookbinder/config/configuration'
require_relative '../../../lib/bookbinder/local_filesystem_accessor'
require_relative '../../../lib/bookbinder/values/output_locations'
module Bookbinder
module Commands... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/dita_html_for_middleman_formatter_spec.rb | Ruby | apache-2.0 | 45 | main | 1,515 | require_relative '../../../lib/bookbinder/dita_html_for_middleman_formatter'
require_relative '../../../lib/bookbinder/local_filesystem_accessor'
require_relative '../../../lib/bookbinder/html_document_manipulator'
module Bookbinder
describe DitaHtmlForMiddlemanFormatter do
let(:fs) { instance_double('Bookbinder... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/ingest/local_filesystem_cloner_spec.rb | Ruby | apache-2.0 | 45 | main | 5,583 | require_relative '../../../../lib/bookbinder/ingest/local_filesystem_cloner'
require_relative '../../../helpers/fake_filesystem_accessor'
module Bookbinder
module Ingest
describe LocalFilesystemCloner do
context "when the local repo is present" do
it "logs the fact that it's cloning" do
f... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/ingest/git_accessor_spec.rb | Ruby | apache-2.0 | 45 | main | 11,755 | require 'pathname'
require 'tmpdir'
require_relative '../../../../lib/bookbinder/ingest/git_accessor'
require_relative '../../../helpers/git_repo'
require_relative '../../../helpers/redirection'
module Bookbinder
module Ingest
describe GitAccessor do
include GitRepo
include Redirection
it "clo... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/ingest/destination_directory_spec.rb | Ruby | apache-2.0 | 45 | main | 1,202 | require_relative '../../../../lib/bookbinder/ingest/destination_directory'
module Bookbinder
module Ingest
describe DestinationDirectory do
it "is empty if instantiated with nils" do
expect(DestinationDirectory.new).to eq("")
end
context "when not given a desired destination name" do
... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/ingest/git_cloner_spec.rb | Ruby | apache-2.0 | 45 | main | 2,881 | require_relative '../../../../lib/bookbinder/ingest/git_cloner'
module Bookbinder
module Ingest
describe GitCloner do
let(:vcs) { double('version control system') }
it "copies the repo to the destination, defaulting to master" do
cloner = GitCloner.new(vcs)
expect(vcs).to receive(:cl... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/ingest/working_copy_spec.rb | Ruby | apache-2.0 | 45 | main | 632 | require_relative '../../../../lib/bookbinder/ingest/working_copy'
module Bookbinder
module Ingest
describe WorkingCopy do
it "is equal to another working copy with same values" do
expect(WorkingCopy.new(copied_to: 'foo', full_name: 'bar', ref: 'moo')).
to eq(WorkingCopy.new(copied_to: 'fo... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/ingest/section_repository_spec.rb | Ruby | apache-2.0 | 45 | main | 8,348 | require_relative '../../../../lib/bookbinder/config/section_config'
require_relative '../../../../lib/bookbinder/ingest/section_repository'
require_relative '../../../../lib/bookbinder/ingest/working_copy'
module Bookbinder
module Ingest
describe SectionRepository do
let(:null_cloner) { ->(*) { Ingest::Wor... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/commands/bind_spec.rb | Ruby | apache-2.0 | 45 | main | 17,773 | require_relative '../../../../lib/bookbinder/commands/bind'
require_relative '../../../../lib/bookbinder/commands/components/bind/directory_preparer'
require_relative '../../../../lib/bookbinder/config/configuration'
require_relative '../../../../lib/bookbinder/ingest/cloner_factory'
require_relative '../../../../lib/b... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/commands/watch_spec.rb | Ruby | apache-2.0 | 45 | main | 7,662 | require_relative '../../../../lib/bookbinder/commands/watch'
require_relative '../../../../lib/bookbinder/middleman_runner'
require_relative '../../../../lib/bookbinder/values/output_locations'
require_relative '../../../../lib/bookbinder/config/configuration'
require_relative '../../../../lib/bookbinder/values/section... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/commands/punch_spec.rb | Ruby | apache-2.0 | 45 | main | 2,026 | require_relative '../../../../lib/bookbinder/commands/punch'
require_relative '../../../../lib/bookbinder/config/configuration'
require_relative '../../../../lib/bookbinder/ingest/git_accessor'
module Bookbinder
describe Commands::Punch do
it 'should tag the book, its sections, and layout repo' do
config =... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/commands/imprint_spec.rb | Ruby | apache-2.0 | 45 | main | 2,935 | require_relative '../../../../lib/bookbinder/commands/imprint'
# Values
require_relative '../../../../lib/bookbinder/sheller'
require_relative '../../../../lib/bookbinder/values/output_locations'
require_relative '../../../../lib/bookbinder/config/section_config'
require_relative '../../../../lib/bookbinder/config/conf... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/commands/update_local_doc_repos_spec.rb | Ruby | apache-2.0 | 45 | main | 2,431 | require_relative '../../../../lib/bookbinder/commands/update_local_doc_repos'
require_relative '../../../../lib/bookbinder/config/configuration'
require_relative '../../../../lib/bookbinder/ingest/update_failure'
require_relative '../../../../lib/bookbinder/ingest/update_success'
require_relative '../../../helpers/git_... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/commands/generate_spec.rb | Ruby | apache-2.0 | 45 | main | 4,137 | require 'rack/test'
require_relative '../../../../lib/bookbinder/commands/collection'
require_relative '../../../../lib/bookbinder/commands/generate'
require_relative '../../../../lib/bookbinder/local_filesystem_accessor'
require_relative '../../../../lib/bookbinder/sheller'
require_relative '../../../helpers/use_fixtu... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/commands/components/imprint/directory_preparer_spec.rb | Ruby | apache-2.0 | 45 | main | 1,124 | require_relative '../../../../../../lib/bookbinder/config/configuration'
require_relative '../../../../../../lib/bookbinder/commands/components/imprint/directory_preparer'
require_relative '../../../../../../lib/bookbinder/local_filesystem_accessor'
require_relative '../../../../../../lib/bookbinder/values/output_locat... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/commands/components/bind/directory_preparer_spec.rb | Ruby | apache-2.0 | 45 | main | 1,948 | require_relative '../../../../../../lib/bookbinder/config/configuration'
require_relative '../../../../../../lib/bookbinder/commands/components/bind/directory_preparer'
require_relative '../../../../../../lib/bookbinder/commands/components/bind/layout_preparer'
require_relative '../../../../../../lib/bookbinder/local_f... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/subnav/navigation_entries_from_html_toc_spec.rb | Ruby | apache-2.0 | 45 | main | 2,515 | require_relative '../../../../lib/bookbinder/subnav/navigation_entries_from_html_toc'
require_relative '../../../../lib/bookbinder/local_filesystem_accessor'
require_relative '../../../../lib/bookbinder/values/section'
require_relative '../../../../lib/bookbinder/values/output_locations'
module Bookbinder
module Sub... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/subnav/pdf_config_creator_spec.rb | Ruby | apache-2.0 | 45 | main | 1,219 | require_relative '../../../../lib/bookbinder/local_filesystem_accessor'
require_relative '../../../../lib/bookbinder/subnav/pdf_config_creator'
require_relative '../../../../lib/bookbinder/values/output_locations'
require_relative '../../../../lib/bookbinder/config/product_config'
module Bookbinder
module Subnav
... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/subnav/subnav_generator_factory_spec.rb | Ruby | apache-2.0 | 45 | main | 1,589 | require_relative '../../../../lib/bookbinder/subnav/subnav_generator'
require_relative '../../../../lib/bookbinder/subnav/subnav_generator_factory'
require_relative '../../../../lib/bookbinder/subnav/template_creator'
require_relative '../../../../lib/bookbinder/subnav/pdf_config_creator'
require_relative '../../../../... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/subnav/navigation_entries_from_markdown_root_spec.rb | Ruby | apache-2.0 | 45 | main | 11,516 | require_relative '../../../../lib/bookbinder/config/product_config'
require_relative '../../../../lib/bookbinder/local_filesystem_accessor'
require_relative '../../../../lib/bookbinder/subnav/navigation_entries_from_markdown_root'
require_relative '../../../../lib/bookbinder/values/output_locations'
module Bookbinder
... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/subnav/subnav_generator_spec.rb | Ruby | apache-2.0 | 45 | main | 2,857 | require_relative '../../../../lib/bookbinder/subnav/subnav_generator'
require_relative '../../../../lib/bookbinder/subnav/navigation_entries_from_html_toc'
require_relative '../../../../lib/bookbinder/subnav/template_creator'
require_relative '../../../../lib/bookbinder/subnav/pdf_config_creator'
require_relative '../.... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/config/dita_config_generator_spec.rb | Ruby | apache-2.0 | 45 | main | 3,710 | require_relative '../../../../lib/bookbinder/config/dita_config_generator'
module Bookbinder
module Config
describe DitaConfigGenerator do
describe '#ditamap_location' do
it 'returns the ditamap location if provided' do
expect(DitaConfigGenerator.new({'ditamap_location' => 'hdb-webhelp.di... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/config/configuration_decorator_spec.rb | Ruby | apache-2.0 | 45 | main | 3,774 | require 'tmpdir'
require_relative '../../../../lib/bookbinder/config/configuration_decorator'
require_relative '../../../../lib/bookbinder/values/section'
module Bookbinder
module Config
describe ConfigurationDecorator do
let(:loader) { double('config loader') }
let(:base_config) { Configuration.pars... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/config/fetcher_spec.rb | Ruby | apache-2.0 | 45 | main | 5,955 | require_relative '../../../../lib/bookbinder/config/fetcher'
module Bookbinder
module Config
describe Fetcher do
let(:path_to_config_file) { './config.yml' }
let(:path_to_config_dir) { './config' }
let(:config_validator) { double('validator') }
let(:loader) { doubl... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/config/section_config_spec.rb | Ruby | apache-2.0 | 45 | main | 4,103 | require_relative '../../../../lib/bookbinder/config/section_config'
module Bookbinder
module Config
describe SectionConfig do
it "can return the preprocessor config" do
expect(
SectionConfig.new('preprocessor_config' => {
'some' => 'data',
'4' => 'u'
}).p... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/config/product_config_spec.rb | Ruby | apache-2.0 | 45 | main | 1,189 | require_relative '../../../../lib/bookbinder/config/product_config'
module Bookbinder
module Config
describe ProductConfig do
it 'can return a product id' do
config = {'id' => 'my_product'}
expect(ProductConfig.new(config).id).
to eq('my_product')
end
it 'can return ... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/config/yaml_loader_spec.rb | Ruby | apache-2.0 | 45 | main | 2,348 | require 'tmpdir'
require_relative '../../../../lib/bookbinder/config/yaml_loader'
module Bookbinder
module Config
describe YAMLLoader do
it "returns an empty hash when given a blank YAML file to parse" do
Dir.mktmpdir do |dir|
dir = Pathname(dir)
File.write(dir.join('foo.yml'), ... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/config/configuration_spec.rb | Ruby | apache-2.0 | 45 | main | 6,778 | require_relative '../../../../lib/bookbinder/config/configuration'
require_relative '../../../../lib/bookbinder/config/dita_config_generator'
module Bookbinder
module Config
describe Configuration do
describe '.parse' do
it "can return fully formed git URLs, defaulting to GitHub" do
confi... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/config/checkers/ditamap_presence_checker_spec.rb | Ruby | apache-2.0 | 45 | main | 2,151 | require_relative '../../../../../lib/bookbinder/config/checkers/ditamap_presence_checker'
require_relative '../../../../../lib/bookbinder/config/configuration'
module Bookbinder
module Config
module Checkers
describe DitamapPresenceChecker do
context 'when there is a ditamap_location for each secti... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/config/checkers/section_presence_checker_spec.rb | Ruby | apache-2.0 | 45 | main | 1,076 | require_relative '../../../../../lib/bookbinder/config/checkers/section_presence_checker'
require_relative '../../../../../lib/bookbinder/config/configuration'
module Bookbinder
module Config
module Checkers
describe SectionPresenceChecker do
context 'when there are sections' do
it 'shoul... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/config/checkers/repository_name_presence_checker_spec.rb | Ruby | apache-2.0 | 45 | main | 3,807 | require_relative '../../../../../lib/bookbinder/config/checkers/repository_name_presence_checker'
require_relative '../../../../../lib/bookbinder/config/configuration'
module Bookbinder
module Config
module Checkers
describe RepositoryNamePresenceChecker do
context 'when there are sections' do
... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/config/checkers/duplicate_section_name_checker_spec.rb | Ruby | apache-2.0 | 45 | main | 3,664 | require_relative '../../../../../lib/bookbinder/config/checkers/duplicate_section_name_checker'
require_relative '../../../../../lib/bookbinder/config/configuration'
module Bookbinder
module Config
module Checkers
describe DuplicateSectionNameChecker do
describe 'validating the sections and dita_se... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/config/checkers/required_keys_checker_spec.rb | Ruby | apache-2.0 | 45 | main | 1,308 | require_relative '../../../../../lib/bookbinder/config/checkers/required_keys_checker'
require_relative '../../../../../lib/bookbinder/config/configuration'
module Bookbinder
module Config
module Checkers
describe RequiredKeysChecker do
context "when the required keys are present" do
it '... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/config/checkers/archive_menu_checker_spec.rb | Ruby | apache-2.0 | 45 | main | 2,321 | require_relative '../../../../../lib/bookbinder/config/checkers/archive_menu_checker'
require_relative '../../../../../lib/bookbinder/config/configuration'
module Bookbinder
module Config
module Checkers
describe ArchiveMenuChecker do
context 'when there is an archive_menu key and the partial is pr... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/config/checkers/products_checker_spec.rb | Ruby | apache-2.0 | 45 | main | 2,417 | require_relative '../../../../../lib/bookbinder/config/checkers/products_checker'
require_relative '../../../../../lib/bookbinder/config/configuration'
require_relative '../../../../../lib/bookbinder/local_filesystem_accessor'
module Bookbinder
module Config
module Checkers
describe ProductsChecker do
... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/config/imprint/configuration_spec.rb | Ruby | apache-2.0 | 45 | main | 1,572 | require_relative '../../../../../lib/bookbinder/config/imprint/configuration'
require_relative '../../../../../lib/bookbinder/config/dita_config_generator'
module Bookbinder
module Config
module Imprint
describe Configuration do
describe '.parse' do
it 'uses only pdf sections' do
... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/postprocessing/link_checker_spec.rb | Ruby | apache-2.0 | 45 | main | 9,526 | require 'pathname'
require_relative '../../../../lib/bookbinder/postprocessing/link_checker'
require_relative '../../../helpers/fake_filesystem_accessor'
module Bookbinder
module Postprocessing
describe LinkChecker do
let(:streams) do
{
out: StringIO.new,
err: StringIO.new
... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/streams/filter_stream_spec.rb | Ruby | apache-2.0 | 45 | main | 914 | require_relative '../../../../lib/bookbinder/streams/filter_stream'
module Bookbinder::Streams
describe FilterStream do
let(:fake_stream) { double(:stream, puts: nil, :<< => nil) }
subject { FilterStream.new(/^foo/, fake_stream) }
it 'should pass through matching lines to puts' do
subject.puts('f... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/values/section_spec.rb | Ruby | apache-2.0 | 45 | main | 3,919 | require_relative '../../../../lib/bookbinder/values/section'
module Bookbinder
describe Section do
describe 'repo path' do
it 'wraps the input in a Pathname, for easier manipulation' do
expect(Section.new('some/path/to/repo').
path_to_repo_dir.join('or/something')).
to eq(Pat... |
github | pivotal-cf/bookbinder | https://github.com/pivotal-cf/bookbinder | spec/lib/bookbinder/preprocessing/dita_pdf_preprocessor_spec.rb | Ruby | apache-2.0 | 45 | main | 4,695 | require_relative '../../../../lib/bookbinder/config/section_config'
require_relative '../../../../lib/bookbinder/preprocessing/dita_pdf_preprocessor'
require_relative '../../../../lib/bookbinder/dita_command_creator'
require_relative '../../../../lib/bookbinder/sheller'
require_relative '../../../../lib/bookbinder/valu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.