lib/grape.rb in grape-0.9.0 vs lib/grape.rb in grape-0.10.0

- old
+ new

@@ -5,15 +5,23 @@ require 'rack/accept' require 'rack/auth/basic' 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 'grape/util/deep_merge' +require 'active_support/core_ext/hash/deep_merge' require 'grape/util/content_types' require 'multi_json' require 'multi_xml' require 'virtus' require 'i18n' @@ -90,15 +98,20 @@ autoload :AcceptVersionHeader, 'grape/middleware/versioner/accept_version_header' end end module Util - autoload :HashStack, 'grape/util/hash_stack' + autoload :InheritableValues, 'grape/util/inheritable_values' + autoload :StackableValues, 'grape/util/stackable_values' + autoload :InheritableSetting, 'grape/util/inheritable_setting' + autoload :StrictHashConfiguration, 'grape/util/strict_hash_configuration' end module DSL + autoload :API, 'grape/dsl/api' autoload :Callbacks, 'grape/dsl/callbacks' + autoload :Settings, 'grape/dsl/settings' autoload :Configuration, 'grape/dsl/configuration' autoload :InsideRoute, 'grape/dsl/inside_route' autoload :Helpers, 'grape/dsl/helpers' autoload :Middleware, 'grape/dsl/middleware' autoload :Parameters, 'grape/dsl/parameters' @@ -109,7 +122,21 @@ class API autoload :Helpers, 'grape/api/helpers' end end + +require 'grape/validations/validators/base' +require 'grape/validations/attributes_iterator' +require 'grape/validations/validators/allow_blank' +require 'grape/validations/validators/at_least_one_of' +require 'grape/validations/validators/coerce' +require 'grape/validations/validators/default' +require 'grape/validations/validators/exactly_one_of' +require 'grape/validations/validators/mutual_exclusion' +require 'grape/validations/validators/presence' +require 'grape/validations/validators/regexp' +require 'grape/validations/validators/values' +require 'grape/validations/params_scope' +require 'grape/validations/validators/all_or_none' require 'grape/version'