dry-system 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +8 -0
- data/lib/dry/system/component.rb +3 -3
- data/lib/dry/system/plugins/monitoring/proxy.rb +1 -1
- data/lib/dry/system/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: dc54fdf54119a26ac5515b45a345e7407a4f5cb4352f8e13d7034828b679c10d
|
4
|
+
data.tar.gz: 96611520cdc10b6a0732dc8256da6f0182ab8642adccad677ee807426779f860
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6c4bd4ee28b3ca5c6569408ff33ca9aa3b4abbc70b89586a16f214dd2462323282e052cddbc21ef26db81baece8fbe1810ee1abfec577f526d0bfdb84d3deb3
|
7
|
+
data.tar.gz: 0a778beb32dfcb0a103becf8361f082e539265de5f7290b8009f4e49c31b20cfad79040c5399b11af412182ffb6502ea129b957fb683b5b385d1f1d32c36d7ec
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
# 0.9.2 - 2018-02-08
|
2
|
+
|
3
|
+
### Fixed
|
4
|
+
|
5
|
+
* Default namespace no longer breaks resolving dependencies with identifier that includes part of the namespace (ie `mail.mailer`) (GustavoCaso)
|
6
|
+
|
7
|
+
[Compare v0.9.1...v0.9.2](https://github.com/dry-rb/dry-system/compare/v0.9.1...v0.9.2)
|
8
|
+
|
1
9
|
# 0.9.1 - 2018-01-03
|
2
10
|
|
3
11
|
### Fixed
|
data/lib/dry/system/component.rb
CHANGED
@@ -59,14 +59,14 @@ module Dry
|
|
59
59
|
# @api private
|
60
60
|
def self.extract_identifier(name, ns, sep)
|
61
61
|
name_s = name.to_s
|
62
|
-
identifier = ns ?
|
62
|
+
identifier = ns ? remove_namespace_from_name(name_s, ns) : name_s
|
63
63
|
|
64
64
|
identifier.scan(WORD_REGEX).join(sep)
|
65
65
|
end
|
66
66
|
|
67
67
|
# @api private
|
68
|
-
def self.
|
69
|
-
match_value = name.match(/^(?<remove_namespace>#{ns})
|
68
|
+
def self.remove_namespace_from_name(name, ns)
|
69
|
+
match_value = name.match(/^(?<remove_namespace>#{ns})(?<separator>\W)(?<identifier>.*)/)
|
70
70
|
|
71
71
|
match_value ? match_value[:identifier] : name
|
72
72
|
end
|
@@ -23,7 +23,7 @@ module Dry
|
|
23
23
|
|
24
24
|
attr_reader :__notifications__
|
25
25
|
|
26
|
-
monitored_methods(
|
26
|
+
monitored_methods(monitored_methods)
|
27
27
|
|
28
28
|
monitored_methods.each do |meth|
|
29
29
|
define_method(meth) do |*args, &block|
|
data/lib/dry/system/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-system
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Solnica
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -234,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
234
|
version: '0'
|
235
235
|
requirements: []
|
236
236
|
rubyforge_project:
|
237
|
-
rubygems_version: 2.
|
237
|
+
rubygems_version: 2.7.4
|
238
238
|
signing_key:
|
239
239
|
specification_version: 4
|
240
240
|
summary: Organize your code into reusable components
|