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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 6f74621f9df179cc163f2123f1626838e5aea843
4
- data.tar.gz: acaf7f52e6d2580317626dd186b526e21527e740
2
+ SHA256:
3
+ metadata.gz: dc54fdf54119a26ac5515b45a345e7407a4f5cb4352f8e13d7034828b679c10d
4
+ data.tar.gz: 96611520cdc10b6a0732dc8256da6f0182ab8642adccad677ee807426779f860
5
5
  SHA512:
6
- metadata.gz: b49d31d905663157e7a94689eb9184d59fe7f707a1d8dedc3c51e9263f8448b34437f22338cfb77de459f100172a7588e05fc4662ca1cc8fe2e9614a0f42e723
7
- data.tar.gz: 4b4c198657712158d242167946d30a12daf381561967d044fe17cb65e50597751a6d2ea605b7cf475bd628bdb1774415bc05f7ff63e983fc5ff61b277746c335
6
+ metadata.gz: a6c4bd4ee28b3ca5c6569408ff33ca9aa3b4abbc70b89586a16f214dd2462323282e052cddbc21ef26db81baece8fbe1810ee1abfec577f526d0bfdb84d3deb3
7
+ data.tar.gz: 0a778beb32dfcb0a103becf8361f082e539265de5f7290b8009f4e49c31b20cfad79040c5399b11af412182ffb6502ea129b957fb683b5b385d1f1d32c36d7ec
@@ -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
@@ -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 ? remove_namespace_from_path(name_s, ns) : name_s
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.remove_namespace_from_path(name, ns)
69
- match_value = name.match(/^(?<remove_namespace>#{ns}).(?<identifier>.*)/)
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(methods.empty? ? target.public_methods - Object.public_instance_methods : methods)
26
+ monitored_methods(monitored_methods)
27
27
 
28
28
  monitored_methods.each do |meth|
29
29
  define_method(meth) do |*args, &block|
@@ -1,5 +1,5 @@
1
1
  module Dry
2
2
  module System
3
- VERSION = '0.9.1'.freeze
3
+ VERSION = '0.9.2'.freeze
4
4
  end
5
5
  end
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.1
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-01-03 00:00:00.000000000 Z
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.6.11
237
+ rubygems_version: 2.7.4
238
238
  signing_key:
239
239
  specification_version: 4
240
240
  summary: Organize your code into reusable components