lib/grape.rb in grape-0.12.0 vs lib/grape.rb in grape-0.13.0
- old
+ new
@@ -7,23 +7,17 @@
require 'rack/auth/digest/md5'
require 'hashie'
require 'set'
require 'active_support/version'
require 'active_support/core_ext/hash/indifferent_access'
-
-if ActiveSupport::VERSION::MAJOR >= 4
- require 'active_support/core_ext/object/deep_dup'
-else
- require_relative 'backports/active_support/deep_dup'
-end
-
require 'active_support/ordered_hash'
require 'active_support/core_ext/object/conversions'
require 'active_support/core_ext/array/extract_options'
require 'active_support/core_ext/hash/deep_merge'
+require 'active_support/core_ext/hash/except'
require 'active_support/dependencies/autoload'
-require 'grape/util/content_types'
+require 'active_support/notifications'
require 'multi_json'
require 'multi_xml'
require 'virtus'
require 'i18n'
require 'thread'
@@ -64,10 +58,11 @@
autoload :MissingOption
autoload :InvalidFormatter
autoload :InvalidVersionerOption
autoload :UnknownValidator
autoload :UnknownOptions
+ autoload :UnknownParameter
autoload :InvalidWithOptionForRepresent
autoload :IncompatibleOptionValues
autoload :MissingGroupTypeError, 'grape/exceptions/missing_group_type'
autoload :UnsupportedGroupTypeError, 'grape/exceptions/unsupported_group_type'
autoload :InvalidMessageBody
@@ -127,10 +122,11 @@
extend ActiveSupport::Autoload
autoload :InheritableValues
autoload :StackableValues
autoload :InheritableSetting
autoload :StrictHashConfiguration
+ autoload :FileResponse
end
module DSL
extend ActiveSupport::Autoload
eager_autoload do
@@ -156,9 +152,12 @@
module Presenters
extend ActiveSupport::Autoload
autoload :Presenter
end
end
+
+require 'grape/util/content_types'
+require 'grape/util/parameter_types'
require 'grape/validations/validators/base'
require 'grape/validations/attributes_iterator'
require 'grape/validations/validators/allow_blank'
require 'grape/validations/validators/at_least_one_of'