lib/grape.rb in grape-0.14.0 vs lib/grape.rb in grape-0.15.0

- old
+ new

@@ -13,10 +13,11 @@ require 'active_support/core_ext/array/extract_options' require 'active_support/core_ext/array/wrap' require 'active_support/core_ext/hash/deep_merge' require 'active_support/core_ext/hash/reverse_merge' require 'active_support/core_ext/hash/except' +require 'active_support/core_ext/hash/conversions' require 'active_support/dependencies/autoload' require 'active_support/notifications' require 'multi_json' require 'multi_xml' require 'i18n' @@ -38,10 +39,13 @@ autoload :Path autoload :Cookies autoload :Validations + autoload :ErrorFormatter + autoload :Formatter + autoload :Parser autoload :Request autoload :Env, 'grape/util/env' end module Http @@ -69,10 +73,11 @@ autoload :MissingGroupTypeError, 'grape/exceptions/missing_group_type' autoload :UnsupportedGroupTypeError, 'grape/exceptions/unsupported_group_type' autoload :InvalidMessageBody autoload :InvalidAcceptHeader autoload :InvalidVersionHeader + autoload :MethodNotAllowed end module ErrorFormatter extend ActiveSupport::Autoload autoload :Base @@ -81,20 +86,18 @@ autoload :Xml end module Formatter extend ActiveSupport::Autoload - autoload :Base autoload :Json autoload :SerializableHash autoload :Txt autoload :Xml end module Parser extend ActiveSupport::Autoload - autoload :Base autoload :Json autoload :Xml end module Middleware @@ -127,10 +130,11 @@ autoload :InheritableValues autoload :StackableValues autoload :InheritableSetting autoload :StrictHashConfiguration autoload :FileResponse + autoload :SendfileResponse end module DSL extend ActiveSupport::Autoload eager_autoload do @@ -143,9 +147,11 @@ autoload :Middleware autoload :Parameters autoload :RequestResponse autoload :Routing autoload :Validations + autoload :Logger + autoload :Desc end end class API extend ActiveSupport::Autoload