lib/papermill.rb in papermill-1.2.0 vs lib/papermill.rb in papermill-1.3.0

- old
+ new

@@ -1,12 +1,18 @@ -#require "digest/sha2" +require "rbconfig" +begin + require "mime/types" + MIME_TYPE_LOADED = true +rescue + MIME_TYPE_LOADED = false +end + I18n.load_path = [File.join(File.dirname(__FILE__), "../config/locales/papermill.yml")] + I18n.load_path require 'papermill/extensions' require 'papermill/flash_session_cookie_middleware.rb' Object.send :include, PapermillObjectExtensions Hash.send :include, PapermillHashExtensions -File.send :include, PapermillFileExtensions String.send :include, StringToUrlNotFound unless String.instance_methods.include? "to_url" Formtastic::SemanticFormBuilder.send(:include, PapermillFormtasticExtensions) rescue NameError require 'papermill/papermill_options.rb' begin