dry-plugins 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47131ba7636c707998845789a5dabd69621e3079
4
- data.tar.gz: 3beac98c63b6ab937cb61112d1564cb8882af08d
3
+ metadata.gz: 330bacf31f89c52a0590084a1bcde3d2af8dd39e
4
+ data.tar.gz: e23cd55b0cb0e15d5eec9f637bfa0763c1186b60
5
5
  SHA512:
6
- metadata.gz: b1141e0c16adfd1fe8778e4e51cf2a39550907e34c14c4c19f7dddb1306c90c79360e9c55d4f6f967e1239b70e9f7ee59151e1f2c604cc5950c29eadbdf23da4
7
- data.tar.gz: 3d62435c13630407d523f630d5c5f30cc19efea51469ea39f97969ffa9a713adc5b1802ae1af4e122d7ed30b06beac60d2b3646ccb6ec1bbcd63dafb121fb012
6
+ metadata.gz: 8195ed82330fe995b36f5c605602718fb90d1ab629111604329eec648bbc312c195a6421739f2c0badaa71c4abc7d701af4fff6898b931b8ffa8789e08cce69f
7
+ data.tar.gz: 2ecd71084f1b10ea26873144618a1009c58a6c2d8c61c1354169a22dc6d0d15f460f25dcbdc0d77aa2efd94cea45c5b002f09b0f046d65a7891c67d70a370e2b
@@ -64,10 +64,10 @@ module Dry
64
64
  # @return [<Symbol>]
65
65
  def call(host, &configuration)
66
66
  load_dependencies(host)
67
- host.send(:include, plugin)
68
67
  if plugin.const_defined?(Plugins.config.class_interface_name)
69
68
  host.extend(plugin.const_get(Plugins.config.class_interface_name))
70
69
  end
70
+ host.send(:include, plugin)
71
71
  configure(host, &configuration) if configuration
72
72
  host.used_plugins << name
73
73
  host
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Dry
4
4
  module Plugins
5
- VERSION = '0.3.0'
5
+ VERSION = '0.4.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-plugins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Semyonov