Rely on autoloading in dry-core

This commit is contained in:
Nikita Shilnikov 2022-07-27 12:05:02 +03:00
parent 03e99f1ba0
commit 0cc4f3150f
No known key found for this signature in database
GPG Key ID: E569D1D64C40E241
16 changed files with 2 additions and 20 deletions

View File

@ -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"

View File

@ -1,7 +1,5 @@
# frozen_string_literal: true
require "dry/core/deprecations"
module Dry
module Types
# Common API for building types and composition

View File

@ -1,7 +1,5 @@
# frozen_string_literal: true
require "dry/core/deprecations"
module Dry
module Types
# @api private

View File

@ -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"

View File

@ -1,6 +1,5 @@
# frozen_string_literal: true
require "dry/core/equalizer"
require "concurrent/map"
module Dry

View File

@ -1,6 +1,5 @@
# frozen_string_literal: true
require "dry/core/equalizer"
require "dry/types/decorator"
module Dry

View File

@ -1,6 +1,5 @@
# frozen_string_literal: true
require "dry/core/deprecations"
require "dry/types/decorator"
module Dry

View File

@ -1,6 +1,5 @@
# frozen_string_literal: true
require "dry/core/deprecations"
require "dry/types/builder_methods"
module Dry

View File

@ -1,6 +1,5 @@
# frozen_string_literal: true
require "dry/core/deprecations"
require "dry/core/equalizer"
require "dry/types/builder"
require "dry/types/result"

View File

@ -1,7 +1,5 @@
# frozen_string_literal: true
require "dry/core/cache"
require "dry/core/class_attributes"
require "dry/types/predicate_registry"
module Dry

View File

@ -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.

View File

@ -1,7 +1,6 @@
# frozen_string_literal: true
require "dry/core/equalizer"
require "dry/core/deprecations"
module Dry
module Types

View File

@ -1,6 +1,5 @@
# frozen_string_literal: true
require "dry/core/equalizer"
require "dry/types/options"
require "dry/types/meta"

View File

@ -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

View File

@ -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"]

View File

@ -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|