From 1f44f1586ebb9f3fa4f8d79973e69d6b9865b6c6 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Wed, 1 Jun 2022 11:56:43 +0200 Subject: [PATCH] Use `require` to load code This plays better with bootsnap and such, and ensure code won't be loaded twice. --- lib/combine_pdf.rb | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/combine_pdf.rb b/lib/combine_pdf.rb index 4713803..38170fe 100644 --- a/lib/combine_pdf.rb +++ b/lib/combine_pdf.rb @@ -10,21 +10,21 @@ # require the RC4 Gem require 'rc4' -load 'combine_pdf/api.rb' -load 'combine_pdf/renderer.rb' -load 'combine_pdf/page_methods.rb' -load 'combine_pdf/basic_writer.rb' -load 'combine_pdf/decrypt.rb' -load 'combine_pdf/fonts.rb' -load 'combine_pdf/filter.rb' -load 'combine_pdf/parser.rb' -load 'combine_pdf/pdf_public.rb' -load 'combine_pdf/pdf_protected.rb' -load 'combine_pdf/exceptions.rb' +require 'combine_pdf/api' +require 'combine_pdf/renderer' +require 'combine_pdf/page_methods' +require 'combine_pdf/basic_writer' +require 'combine_pdf/decrypt' +require 'combine_pdf/fonts' +require 'combine_pdf/filter' +require 'combine_pdf/parser' +require 'combine_pdf/pdf_public' +require 'combine_pdf/pdf_protected' +require 'combine_pdf/exceptions' -# load "combine_pdf/operations.rb" +# require 'combine_pdf/operations' -load 'combine_pdf/version.rb' +require 'combine_pdf/version' # This is a pure ruby library to combine/merge, stmap/overlay and number PDF files - as well as to create tables (ment for indexing combined files). #