directive 0.25.2 → 0.25.3

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: d4cf7b87d1cd854dd8a66cc6cb93a97713c50bb7cc00448b868f9d9eb51bd6d2
4
- data.tar.gz: b4c5a2775dbe5b46dcc1e5e9e7944fbe28f3c93f5d5ef3563b399c64ff632950
3
+ metadata.gz: 5f0fe994b3857c081c8ad2c63775232cc5f6724ad44d590a403332a4f9feb34e
4
+ data.tar.gz: ecd5aa663e45611bb516922abb2c715cef2ba3d8de1b6b6af4133f5a05b5d5ee
5
5
  SHA512:
6
- metadata.gz: f20e3fd3eeb8a812c8f3b43b48a89df9c750df124321c9eff9991841611c0a472c6966005bdada1d49bc4c2e2eae7dd846803f7a0e0d26c59e172f53e4069dac
7
- data.tar.gz: 7ffbf1fa4190dd3e9adb3e205688c66853db309b44bb4f7fcc51d4469995f2a683a684b70111b1e3dc69278c6a5e1189f28367e1199ab4439d387c99704ce8fb
6
+ metadata.gz: e2fd93068165d2d64625cd139ee7314a04a1ecfc59b9e79f64b1391f216ac291f5d4149169447e6331f6ddddb324c9845cbf6bfd5fe777cf5c09206635d3c5f2
7
+ data.tar.gz: 748761002b245712c0d7c8d87c90040f49414e6300d4bec9bd8bfcaf9d83fda5d80fe8b835114e57fa2d7d98d8372091d617dc545c3f4ea88d2ac0d4135e28e2
@@ -53,6 +53,14 @@ require_relative "directive/reader"
53
53
  module Directive
54
54
  delegate :configure, :config_eval, to: :_config_builder
55
55
 
56
+ class << self
57
+ def extended(base)
58
+ raise TypeError, "#{base} is a class; it must be a module to use Directive" if base.is_a?(Class)
59
+
60
+ super
61
+ end
62
+ end
63
+
56
64
  # @return [Directive::ConfigReader] A read-only object containing configuration options set inside {#configure}
57
65
  def config
58
66
  _config_builder.reader
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Directive
4
4
  # This constant is managed by spicerack
5
- VERSION = "0.25.2"
5
+ VERSION = "0.25.3"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: directive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.2
4
+ version: 0.25.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Allen Rettberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-16 00:00:00.000000000 Z
11
+ date: 2020-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.25.2
33
+ version: 0.25.3
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.25.2
40
+ version: 0.25.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement