directive 0.25.1 → 0.25.7

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: e2153f58ec4f7f6e619fe86c336a2287bf0b355b92f88adf37fa504800e39104
4
- data.tar.gz: 8bb48368f3d906c743cb09d72b427f5ee9bf391e9b32a8779a578d4b61872db5
3
+ metadata.gz: aeba531c83d830b2d57008145f6aea6765aa085dec8d1fb1ddfb89ffe7927a18
4
+ data.tar.gz: 425da472b61bac78a911f04c5d70b17276ee710f92185bcb8f6d4a4c79032926
5
5
  SHA512:
6
- metadata.gz: 7ffb9b7e6007b449820f71af9abdf384f2239994326eef258e5f2d1ada1600eea0290f3886d82377b5b0a759f54e6d0dac344d6d212255abd83c754a0c65a8e6
7
- data.tar.gz: a5cd7771b32cde7d1886b0f1cf0b9f7803a9f5edb1795454c54a0e2bcbbe8f0ae8f8d65905fb8cded131aa30a606e1dc18a5ab9b0f0ba7e007371b699e54be90
6
+ metadata.gz: 691e499e2c29bb02d6225bd23aeff2f8194817749071b01427e0454dd88b114e8027c890a89c5398a4b63e305c8376f94fd01c1d5454736e0fabbe4b3eb198c9
7
+ data.tar.gz: 8039b53e45adad6175da9a0089fa400e19d47d17b75c76c506ec298c0ba3305438127820aed167c4675612c8e7141d8b8342f432edf560943ece08d06b8787ad
data/lib/directive.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "active_support/core_ext/module/delegation"
4
+
3
5
  require_relative "directive/config_builder"
4
6
  require_relative "directive/config_delegation"
5
7
  require_relative "directive/config_object"
@@ -53,6 +55,14 @@ require_relative "directive/reader"
53
55
  module Directive
54
56
  delegate :configure, :config_eval, to: :_config_builder
55
57
 
58
+ class << self
59
+ def extended(base)
60
+ raise TypeError, "#{base} is a class; it must be a module to use Directive" if base.is_a?(Class)
61
+
62
+ super
63
+ end
64
+ end
65
+
56
66
  # @return [Directive::ConfigReader] A read-only object containing configuration options set inside {#configure}
57
67
  def config
58
68
  _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.1"
5
+ VERSION = "0.25.7"
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.1
4
+ version: 0.25.7
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-13 00:00:00.000000000 Z
11
+ date: 2021-04-09 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.1
33
+ version: 0.25.7
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.1
40
+ version: 0.25.7
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement