dry-system 0.13.0 → 0.13.1

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
2
  SHA256:
3
- metadata.gz: a9e7b9270e8cf896626e675f2bf98f2e8a7521a56e6b16a64ee30d724aa307a4
4
- data.tar.gz: fa1ca1a837c0f3185d04a4d420ebb7325793f1165b4dcf4427ee94f81c10c26b
3
+ metadata.gz: e90324e596f844c7104c69634b4ff6556421510c710a1e054944beebe2a99f2e
4
+ data.tar.gz: d201f17ab282ce6570ca549bb867570c9e09ec62f92a827980ce3facbcbb6c4e
5
5
  SHA512:
6
- metadata.gz: d774649cda42fc3eb0f4253f3db5d869947f9ac0e0189a0256926b26f97d15761efa30384991bf62b388c1b59eb370780d787c61984c654544b57ced182d8935
7
- data.tar.gz: adc45c72848ec6fc31f96a17cfcd02f5034492e645cb549024c149aadc8de2096dc54b27b893c2218bf61a23db610c8b1bf85898fddab0f401ac9af9a0f14fc9
6
+ metadata.gz: a5a963fd13031155c8e59878d30ba0231afd9f73ab0c001d7a8f92a39e6b3ad05073b1dde874e5ba4af2c630245fca329b654d0658520870257bc1bef9b900f4
7
+ data.tar.gz: c5507f3e995f0d3bd1ce310a8d92cdb3989c6e805a66e3137c63a7b4cd7d35d7c0c8842c0b2a3d5c588e1a268a9b5afba88e24bb054a7ff43eff750207b6bee6
@@ -1,3 +1,12 @@
1
+ # 0.13.1 - 2019-11-07
2
+
3
+ ### Fixed
4
+
5
+ - Fixed keyword warnings reported by Ruby 2.7 (flash-gordon)
6
+ - Duplicates in `Dry::System::Plugins.loaded_dependencies` (AMHOL)
7
+
8
+ [Compare v0.13.0...v0.13.1](https://github.com/dry-rb/dry-system/compare/v0.13.0...v0.13.1)
9
+
1
10
  # 0.13.0 - 2019-10-13
2
11
 
3
12
  ### Changed
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2014 Dryrb Team
3
+ Copyright (c) 2015-2019 dry-rb team
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
  this software and associated documentation files (the "Software"), to deal in
data/README.md CHANGED
@@ -1,21 +1,20 @@
1
1
  [gem]: https://rubygems.org/gems/dry-system
2
- [travis]: https://travis-ci.com/dry-rb/dry-system
2
+ [ci]: https://github.com/dry-rb/dry-monads/actions?query=workflow%3Aci
3
3
  [codeclimate]: https://codeclimate.com/github/dry-rb/dry-system
4
4
  [inchpages]: http://inch-ci.org/github/dry-rb/dry-system
5
5
  [chat]: https://dry-rb.zulipchat.com
6
6
 
7
7
  # dry-system [![Join the chat at https://dry-rb.zulipchat.com](https://img.shields.io/badge/dry--rb-join%20chat-%23346b7a.svg)][chat]
8
8
 
9
-
10
9
  [![Gem Version](https://badge.fury.io/rb/dry-system.svg)][gem]
11
- [![Build Status](https://travis-ci.com/dry-rb/dry-system.svg?branch=master)][travis]
10
+ [![Build Status](https://github.com/dry-rb/dry-monads/workflows/ci/badge.svg)][ci]
12
11
  [![Code Climate](https://codeclimate.com/github/dry-rb/dry-system/badges/gpa.svg)][codeclimate]
13
12
  [![Test Coverage](https://codeclimate.com/github/dry-rb/dry-system/badges/coverage.svg)][codeclimate]
14
13
  [![Inline docs](http://inch-ci.org/github/dry-rb/dry-system.svg?branch=master)][inchpages]
15
14
 
16
15
  ## Links
17
16
 
18
- * [Documentation](http://dry-rb.org/gems/dry-system)
17
+ - [Documentation](http://dry-rb.org/gems/dry-system)
19
18
 
20
19
  ## LICENSE
21
20
 
@@ -72,7 +72,7 @@ module Dry
72
72
 
73
73
  # @api private
74
74
  def component(path, options)
75
- container.component(path, options)
75
+ container.component(path, **options)
76
76
  end
77
77
 
78
78
  # @api private
@@ -228,7 +228,7 @@ module Dry
228
228
  # @return [self]
229
229
  #
230
230
  # @api public
231
- def boot(name, opts = {}, &block)
231
+ def boot(name, **opts, &block)
232
232
  if components.key?(name)
233
233
  raise DuplicatedComponentKeyError, <<-STR
234
234
  Bootable component #{name.inspect} was already registered
@@ -237,9 +237,9 @@ module Dry
237
237
 
238
238
  component =
239
239
  if opts[:from]
240
- boot_external(name, opts, &block)
240
+ boot_external(name, **opts, &block)
241
241
  else
242
- boot_local(name, opts, &block)
242
+ boot_local(name, **opts, &block)
243
243
  end
244
244
 
245
245
  components[name] = component
@@ -31,8 +31,10 @@ module Dry
31
31
  def load_dependencies
32
32
  Array(dependencies).each do |f|
33
33
  begin
34
- require f unless Plugins.loaded_dependencies.include?(f)
35
- Plugins.loaded_dependencies << f
34
+ next if Plugins.loaded_dependencies.include?(f.to_s)
35
+
36
+ require f
37
+ Plugins.loaded_dependencies << f.to_s
36
38
  rescue LoadError => e
37
39
  raise PluginDependencyMissing.new(name, e.message)
38
40
  end
@@ -25,11 +25,11 @@ module Dry
25
25
  end
26
26
 
27
27
  # @api private
28
- def monitor(key, options = EMPTY_HASH, &block)
28
+ def monitor(key, **options, &block)
29
29
  notifications = self[:notifications]
30
30
 
31
31
  resolve(key).tap do |target|
32
- proxy = Proxy.for(target, options.merge(key: key))
32
+ proxy = Proxy.for(target, **options, key: key)
33
33
 
34
34
  if block
35
35
  proxy.monitored_methods.each do |meth|
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Dry
4
4
  module System
5
- VERSION = '0.13.0'
5
+ VERSION = '0.13.1'
6
6
  end
7
7
  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.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-13 00:00:00.000000000 Z
11
+ date: 2019-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby