Rely on autoloading in dry-core
This commit is contained in:
parent
03e99f1ba0
commit
0cc4f3150f
1
Gemfile
1
Gemfile
|
@ -8,6 +8,7 @@ gemspec
|
|||
|
||||
gem "dry-core", github: "dry-rb/dry-core", branch: "main"
|
||||
gem "dry-logic", github: "dry-rb/dry-logic", branch: "main"
|
||||
gem "dry-container", github: "dry-rb/dry-container", branch: "main"
|
||||
|
||||
group :test do
|
||||
gem "dry-struct"
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "dry/core/deprecations"
|
||||
|
||||
module Dry
|
||||
module Types
|
||||
# Common API for building types and composition
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "dry/core/deprecations"
|
||||
|
||||
module Dry
|
||||
module Types
|
||||
# @api private
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "dry/core/equalizer"
|
||||
require "dry/types/fn_container"
|
||||
require "dry/types/constructor/function"
|
||||
require "dry/types/constructor/wrapper"
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "dry/core/equalizer"
|
||||
require "concurrent/map"
|
||||
|
||||
module Dry
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "dry/core/equalizer"
|
||||
require "dry/types/decorator"
|
||||
|
||||
module Dry
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "dry/core/deprecations"
|
||||
require "dry/types/decorator"
|
||||
|
||||
module Dry
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "dry/core/deprecations"
|
||||
require "dry/types/builder_methods"
|
||||
|
||||
module Dry
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "dry/core/deprecations"
|
||||
require "dry/core/equalizer"
|
||||
require "dry/types/builder"
|
||||
require "dry/types/result"
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "dry/core/cache"
|
||||
require "dry/core/class_attributes"
|
||||
require "dry/types/predicate_registry"
|
||||
|
||||
module Dry
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "dry/core/cache"
|
||||
|
||||
module Dry
|
||||
module Types
|
||||
# PrimitiveInferrer returns the list of classes matching a type.
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "dry/core/equalizer"
|
||||
require "dry/core/deprecations"
|
||||
|
||||
module Dry
|
||||
module Types
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "dry/core/equalizer"
|
||||
require "dry/types/options"
|
||||
require "dry/types/meta"
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "dry/core/deprecations"
|
||||
|
||||
module Dry
|
||||
module Types
|
||||
# Common Type module denoting an object is a Type
|
||||
|
|
|
@ -14,6 +14,6 @@ gemspec:
|
|||
runtime_dependencies:
|
||||
- [concurrent-ruby, "~> 1.0"]
|
||||
- [dry-container, "~> 0.3"]
|
||||
- [dry-core, "~> 0.5", ">= 0.5"]
|
||||
- [dry-core, ">= 0.9"]
|
||||
- [dry-inflector, "~> 0.1", ">= 0.1.2"]
|
||||
- [dry-logic, "~> 1.0", ">= 1.0.2"]
|
||||
|
|
|
@ -18,7 +18,6 @@ require "dry/types/spec/types"
|
|||
|
||||
Undefined = Dry::Core::Constants::Undefined
|
||||
|
||||
require "dry/core/deprecations"
|
||||
Dry::Core::Deprecations.set_logger!(SPEC_ROOT.join("../log/deprecations.log"))
|
||||
|
||||
RSpec.configure do |config|
|
||||
|
|
Loading…
Reference in New Issue