directive 0.25.0 → 0.25.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/directive.rb +10 -0
- data/lib/directive/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f815409904ca0c98dc4ad2364af655d1fefd539172c7e046ef5923ed670c63b8
|
4
|
+
data.tar.gz: 928e4a9b7d68ab35a3cf3e182ef2cbb220bf4707a1f91f8fb325fd342a760059
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb992009f39df1cf73472394f0b6b80ac5ef0e156bfdb05d348bca0d99cb68a91f883c72ea863becac5365c80249c5de282a63aa7d010d1de5721648e3f7a6de
|
7
|
+
data.tar.gz: c23f7cce96d6cb6f42a411877ad6c818d1e1b311cd2ce1b080b556582c0881715ed17fc764cccc1e86f89c100a5b9d7cb0e4a00b2df3724c4afdc2e4b0849936
|
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
|
data/lib/directive/version.rb
CHANGED
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.
|
4
|
+
version: 0.25.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Allen Rettberg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-24 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.
|
33
|
+
version: 0.25.6
|
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.
|
40
|
+
version: 0.25.6
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|