Use released dry-core without autoloading (#142)

This commit is contained in:
Tim Riley 2022-09-24 16:03:59 +10:00 committed by GitHub
parent 7fb54bf1a1
commit df58417cd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 15 additions and 5 deletions

View File

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

View File

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

View File

@ -2,6 +2,8 @@
require "dry/core/constants"
require "dry/core/equalizer"
module Dry
module Configurable
# Config exposes setting values through a convenient API

View File

@ -1,5 +1,7 @@
# frozen_string_literal: true
require "dry/core/constants"
module Dry
# Shared constants
#

View File

@ -1,5 +1,7 @@
# frozen_string_literal: true
require "dry/core/deprecations"
module Dry
module Configurable
# Setting DSL used by the class API

View File

@ -1,5 +1,7 @@
# frozen_string_literal: true
require "dry/core/class_attributes"
module Dry
module Configurable
extend Core::ClassAttributes

View File

@ -2,6 +2,8 @@
require "set"
require "dry/core/equalizer"
module Dry
module Configurable
# This class represents a setting and is used internally.

View File

@ -1,5 +1,7 @@
# frozen_string_literal: true
require "dry/core/equalizer"
module Dry
module Configurable
# A settings map

View File

@ -10,4 +10,4 @@ gemspec:
- rspec
runtime_dependencies:
- [zeitwerk, "~> 2.6"]
- [dry-core, ">= 0.9"]
- [dry-core, "~> 0.6"]

View File

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