Use released dry-core without autoloading (#142)
This commit is contained in:
parent
7fb54bf1a1
commit
df58417cd6
2
Gemfile
2
Gemfile
|
@ -6,8 +6,6 @@ eval_gemfile "Gemfile.devtools"
|
|||
|
||||
gemspec
|
||||
|
||||
gem "dry-core", github: "dry-rb/dry-core", branch: "main"
|
||||
|
||||
group :benchmarks do
|
||||
gem "benchmark-ips"
|
||||
gem "benchmark-memory"
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
|
||||
require "zeitwerk"
|
||||
|
||||
require "dry/core"
|
||||
|
||||
require "dry/core/constants"
|
||||
require "dry/configurable/constants"
|
||||
require "dry/configurable/errors"
|
||||
require "dry/configurable/flags"
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
require "dry/core/constants"
|
||||
|
||||
require "dry/core/equalizer"
|
||||
|
||||
module Dry
|
||||
module Configurable
|
||||
# Config exposes setting values through a convenient API
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "dry/core/constants"
|
||||
|
||||
module Dry
|
||||
# Shared constants
|
||||
#
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "dry/core/deprecations"
|
||||
|
||||
module Dry
|
||||
module Configurable
|
||||
# Setting DSL used by the class API
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "dry/core/class_attributes"
|
||||
|
||||
module Dry
|
||||
module Configurable
|
||||
extend Core::ClassAttributes
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
require "set"
|
||||
|
||||
require "dry/core/equalizer"
|
||||
|
||||
module Dry
|
||||
module Configurable
|
||||
# This class represents a setting and is used internally.
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "dry/core/equalizer"
|
||||
|
||||
module Dry
|
||||
module Configurable
|
||||
# A settings map
|
||||
|
|
|
@ -10,4 +10,4 @@ gemspec:
|
|||
- rspec
|
||||
runtime_dependencies:
|
||||
- [zeitwerk, "~> 2.6"]
|
||||
- [dry-core, ">= 0.9"]
|
||||
- [dry-core, "~> 0.6"]
|
||||
|
|
|
@ -16,6 +16,7 @@ end
|
|||
|
||||
require "dry/configurable"
|
||||
require "dry/configurable/test_interface"
|
||||
require "dry/core/deprecations"
|
||||
|
||||
RSpec.configure do |config|
|
||||
config.disable_monkey_patching!
|
||||
|
|
Loading…
Reference in New Issue