dry-core 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/LICENSE +1 -1
- data/README.md +4 -12
- data/dry-core.gemspec +2 -1
- data/lib/dry/core/basic_object.rb +1 -2
- data/lib/dry/core/deprecations.rb +2 -2
- data/lib/dry/core/version.rb +1 -1
- data/lib/dry/core.rb +11 -0
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36bbcb4408defe80fa90d925a7cb44f39a7e879bf0b2a8c81833e798a5446c63
|
4
|
+
data.tar.gz: d15a43167c6de013170621a556a7d2845f79cb24e1d611359d17bf8918f2d0fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8189675ea585094286244bef37ca1bc400eadf18a295e3d6a3beb23ed3e733c94a5bf8da8c3df001022244df2b2d1a68212370a6e248b53504d1a48726131a7f
|
7
|
+
data.tar.gz: 70b957e62e938bee19922086549d3472ab36676d5e30cf6f671e88f844d1ce4787d4d71f4980875cbf6d8b5c4d79fe6eb7afe0a626b6bb38d45f28ddce18fec8
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
<!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
|
2
2
|
|
3
|
+
## 1.0.1 2023-08-06
|
4
|
+
|
5
|
+
|
6
|
+
### Fixed
|
7
|
+
|
8
|
+
- [equalizer] Add `Dry::Core.Equalizer` method to make `include Dry::Core.Equalizer(...)` work as documented (via #79) (@timriley)
|
9
|
+
|
10
|
+
Users of Equalizer should now only need to `require "dry/core"` first.
|
11
|
+
|
12
|
+
|
13
|
+
### Changed
|
14
|
+
|
15
|
+
- Minimal Ruby version is 3.0
|
16
|
+
|
17
|
+
[Compare v1.0.0...v1.0.1](https://github.com/dry-rb/dry-core/compare/v1.0.0...v1.0.1)
|
18
|
+
|
3
19
|
## 1.0.0 2022-11-04
|
4
20
|
|
5
21
|
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,29 +1,21 @@
|
|
1
1
|
<!--- this file is synced from dry-rb/template-gem project -->
|
2
2
|
[gem]: https://rubygems.org/gems/dry-core
|
3
3
|
[actions]: https://github.com/dry-rb/dry-core/actions
|
4
|
-
[codacy]: https://www.codacy.com/gh/dry-rb/dry-core
|
5
|
-
[chat]: https://dry-rb.zulipchat.com
|
6
|
-
[inchpages]: http://inch-ci.org/github/dry-rb/dry-core
|
7
4
|
|
8
|
-
# dry-core [![
|
9
|
-
|
10
|
-
[![Gem Version](https://badge.fury.io/rb/dry-core.svg)][gem]
|
11
|
-
[![CI Status](https://github.com/dry-rb/dry-core/workflows/ci/badge.svg)][actions]
|
12
|
-
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/40946292b9094624beec604a149a6023)][codacy]
|
13
|
-
[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/40946292b9094624beec604a149a6023)][codacy]
|
14
|
-
[![Inline docs](http://inch-ci.org/github/dry-rb/dry-core.svg?branch=main)][inchpages]
|
5
|
+
# dry-core [![Gem Version](https://badge.fury.io/rb/dry-core.svg)][gem] [![CI Status](https://github.com/dry-rb/dry-core/workflows/ci/badge.svg)][actions]
|
15
6
|
|
16
7
|
## Links
|
17
8
|
|
18
9
|
* [User documentation](https://dry-rb.org/gems/dry-core)
|
19
10
|
* [API documentation](http://rubydoc.info/gems/dry-core)
|
11
|
+
* [Forum](https://discourse.dry-rb.org)
|
20
12
|
|
21
13
|
## Supported Ruby versions
|
22
14
|
|
23
15
|
This library officially supports the following Ruby versions:
|
24
16
|
|
25
|
-
* MRI `>=
|
26
|
-
* jruby `>= 9.
|
17
|
+
* MRI `>= 3.0.0`
|
18
|
+
* jruby `>= 9.4` (not tested on CI)
|
27
19
|
|
28
20
|
## License
|
29
21
|
|
data/dry-core.gemspec
CHANGED
@@ -26,10 +26,11 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.metadata["source_code_uri"] = "https://github.com/dry-rb/dry-core"
|
27
27
|
spec.metadata["bug_tracker_uri"] = "https://github.com/dry-rb/dry-core/issues"
|
28
28
|
|
29
|
-
spec.required_ruby_version = ">=
|
29
|
+
spec.required_ruby_version = ">= 3.0.0"
|
30
30
|
|
31
31
|
# to update dependencies edit project.yml
|
32
32
|
spec.add_runtime_dependency "concurrent-ruby", "~> 1.0"
|
33
|
+
spec.add_runtime_dependency "logger"
|
33
34
|
spec.add_runtime_dependency "zeitwerk", "~> 2.6"
|
34
35
|
|
35
36
|
spec.add_development_dependency "bundler"
|
@@ -102,7 +102,7 @@ module Dry
|
|
102
102
|
# @param [#warn] logger
|
103
103
|
#
|
104
104
|
# @api public
|
105
|
-
def set_logger!(output = $stderr)
|
105
|
+
def set_logger!(output = $stderr)
|
106
106
|
if output.respond_to?(:warn)
|
107
107
|
@logger = output
|
108
108
|
else
|
@@ -194,7 +194,7 @@ module Dry
|
|
194
194
|
message
|
195
195
|
)
|
196
196
|
|
197
|
-
meth =
|
197
|
+
meth = method(new_name || old_name)
|
198
198
|
|
199
199
|
singleton_class.instance_exec do
|
200
200
|
undef_method old_name if method_defined?(old_name)
|
data/lib/dry/core/version.rb
CHANGED
data/lib/dry/core.rb
CHANGED
@@ -27,6 +27,17 @@ module Dry
|
|
27
27
|
end
|
28
28
|
|
29
29
|
loader.setup
|
30
|
+
|
31
|
+
# Build an equalizer module for the inclusion in other class
|
32
|
+
#
|
33
|
+
# ## Credits
|
34
|
+
#
|
35
|
+
# Equalizer has been originally imported from the equalizer gem created by Dan Kubb
|
36
|
+
#
|
37
|
+
# @api public
|
38
|
+
def self.Equalizer(*keys, **options)
|
39
|
+
Equalizer.new(*keys, **options)
|
40
|
+
end
|
30
41
|
end
|
31
42
|
|
32
43
|
# See dry/core/equalizer.rb
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nikita Shilnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: logger
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: zeitwerk
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -135,14 +149,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
135
149
|
requirements:
|
136
150
|
- - ">="
|
137
151
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
152
|
+
version: 3.0.0
|
139
153
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
154
|
requirements:
|
141
155
|
- - ">="
|
142
156
|
- !ruby/object:Gem::Version
|
143
157
|
version: '0'
|
144
158
|
requirements: []
|
145
|
-
rubygems_version: 3.
|
159
|
+
rubygems_version: 3.3.27
|
146
160
|
signing_key:
|
147
161
|
specification_version: 4
|
148
162
|
summary: A toolset of small support modules used throughout the dry-rb ecosystem
|