Skip to content

Commit

Permalink
Merge branch 'main' into add-eager-loading-during-finalization
Browse files Browse the repository at this point in the history
  • Loading branch information
flash-gordon authored Jan 7, 2025
2 parents 57cf692 + 3fbb624 commit 25b3f58
Show file tree
Hide file tree
Showing 39 changed files with 1,119 additions and 873 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ jobs:
fail-fast: false
matrix:
ruby:
- "3.4"
- "3.3"
- "3.2"
- "3.1"
- "3.0"
include:
- ruby: "3.2"
- ruby: "3.4"
coverage: "true"
env:
COVERAGE: ${{matrix.coverage}}
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
ruby-version: 3.4
- name: Install dependencies
run: gem install ossy --no-document
- name: Trigger release workflow
Expand Down
8 changes: 6 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# This is a config synced from dry-rb/template-gem repo

AllCops:
TargetRubyVersion: 3.0
NewCops: disable
TargetRubyVersion: 3.1
NewCops: enable
SuggestExtensions: false
Exclude:
- "**/vendor/**/*" # For GitHub Actions, see rubocop/rubocop#9832
Expand Down Expand Up @@ -269,3 +269,7 @@ Naming/VariableNumber:

Naming/BinaryOperatorParameterName:
Enabled: false

Style/OpenStructUse:
Exclude:
- "spec/**/*.rb"
61 changes: 61 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,66 @@
<!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->

## 1.2.0 2025-01-07


### Changed

- Update required Ruby version to 3.1 (@flash-gordon)

[Compare v1.1.1...v1.2.0](https://github.com/dry-rb/dry-system/compare/v1.1.1...v1.2.0)

## 1.1.1 2024-11-03


### Fixed

- Restore `ProviderRegistrar#find_and_load_provider` as an alias of `#[]`


[Compare v1.1.0...v1.1.1](https://github.com/dry-rb/dry-system/compare/v1.1.0...v1.1.1)

## 1.1.0 2024-10-31



[Compare v1.1.0.beta2...v1.1.0](https://github.com/dry-rb/dry-system/compare/v1.1.0.beta2...v1.1.0)

## 1.1.0.beta2 2024-09-25


### Changed

- Allow provider sources to use a custom superclass. This requires a custom provider registrar
to be configured, with its own implementations of `#provider_source_class` (the superclass to
use) and `#provider_source_options` (custom initialization args to pass to the provider
source). (via #275) (@alassek, @timriley)

[Compare v1.1.0.beta1...v1.1.0.beta2](https://github.com/dry-rb/dry-system/compare/v1.1.0.beta1...v1.1.0.beta2)

## 1.1.0.beta1 2024-07-03


### Added

- Add `Dry::System::ProviderRegistrar#target_container`, to be passed when initializing
providers. By default this is an alias of `#container`. This allows for custom provider
registrars to override `#target_container` to provide a custom `#target` within providers.
An overridden value **MUST** still wrap the original `#target_container` to ensure components
are registered in the right place. (via #270) (@timriley)

### Changed

- Make `Dry::System::ProviderRegistrar` public API (via #270) (@timriley)
- When registering a provider source, you can now provide a `provider_options:` hash of default
options for providers to be registered using that source. The one provider option currently
supported is `namespace:`. (via #271) (@timriley)
- Load providers when accessing them via `Dry::System::ProviderRegistrar#[]`. The previous,
behavior of `#[]` returning `nil` if a provider had not been explicitly loaded was a
potential source of confusion. Now `#[]` can serve as the one and only interface for fetching
a provider. (via #273) (@timriley)

[Compare v1.0.1...v1.1.0.beta1](https://github.com/dry-rb/dry-system/compare/v1.0.1...v1.1.0.beta1)

## 1.0.1 2022-11-18


Expand Down
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@ gem "dotenv"
gem "dry-events"
gem "dry-monitor"
gem "dry-types"

gem "zeitwerk"

group :test do
gem "ostruct"
end
3 changes: 2 additions & 1 deletion Gemfile.devtools
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ group :test do
gem "simplecov", require: false, platforms: :ruby
gem "simplecov-cobertura", require: false, platforms: :ruby
gem "rexml", require: false
gem "rspec"

gem "warning"
end

group :tools do
gem "rubocop", "~> 1.55.0"
gem "rubocop", "~> 1.69.2"
gem "byebug"
end
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

This library officially supports the following Ruby versions:

* MRI `>= 3.0`
* MRI `>= 3.1`
* jruby `>= 9.4` (not tested on CI)

## License
Expand Down
Loading

0 comments on commit 25b3f58

Please sign in to comment.