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 +4 -4
- data/lib/directive.rb +8 -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: 5f0fe994b3857c081c8ad2c63775232cc5f6724ad44d590a403332a4f9feb34e
|
4
|
+
data.tar.gz: ecd5aa663e45611bb516922abb2c715cef2ba3d8de1b6b6af4133f5a05b5d5ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2fd93068165d2d64625cd139ee7314a04a1ecfc59b9e79f64b1391f216ac291f5d4149169447e6331f6ddddb324c9845cbf6bfd5fe777cf5c09206635d3c5f2
|
7
|
+
data.tar.gz: 748761002b245712c0d7c8d87c90040f49414e6300d4bec9bd8bfcaf9d83fda5d80fe8b835114e57fa2d7d98d8372091d617dc545c3f4ea88d2ac0d4135e28e2
|
data/lib/directive.rb
CHANGED
@@ -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
|
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.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-
|
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.
|
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.
|
40
|
+
version: 0.25.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|