directive 0.22.0 → 0.22.2

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: 1edf4b07fc8b982911d978b267df2c336f4b0dba62dad286c80ae44a3b280215
4
- data.tar.gz: 7c1ae7fb109c9ff8261a6f8fda3b4fd15c7eda5682243fe8500ef0a7e75dc9b5
3
+ metadata.gz: ce4adde6ed014c807f03efb035eaeb2c10c6d5075ead0cd4c19106897af90568
4
+ data.tar.gz: 8f10119a6c587472b2cf79c6a440fb6eae73d1602af03ac425c6fe2457a4f63f
5
5
  SHA512:
6
- metadata.gz: a907b40c95e58500e348cec77ebf864d2e3896ee13edcbe162c01d2b109964db5e056017f3abc9196b5e107c55f9dc374e2753d9e6e32749907a715ebc455ad1
7
- data.tar.gz: 6cd58b199249b11d00fe6b052d01ac0de6b74f8d879043364b8d2ac9cfce948fdb29d016e6ba27106bc27574d848e3d7572e3386f8e48afb33e8435639b72f1c
6
+ metadata.gz: 8760f5f0102da31cb514d4ae10cd7318e98e2c19e87f0c4fd703f94ec7e6dbdb4bb3a6850a9e897df6c45554631624384c16de96e4d303ac9da8e045ab0dac44
7
+ data.tar.gz: a4179b355ad9b5117cac9acc9bd8640f11b436c79687a98b95e569827ecd8461927968b6ef2939aed6c1f8f3f316b2c69b5580ca38aab192c3e324de0db0c056
@@ -17,20 +17,20 @@ module Directive
17
17
  #
18
18
  # @example
19
19
  # class SomeClass
20
- # include Spicerack::Configurable::ConfigDelegation
20
+ # include Directive::ConfigDelegation
21
21
  #
22
22
  # delegates_to_configuration
23
23
  # end
24
24
  #
25
25
  # module SomeClass::Configuration
26
- # include Spicerack::Configurable
26
+ # extend Directive
27
27
  # end
28
28
  #
29
29
  # SomeClass.config
30
30
  # => returns SomeClass::Configuration.config
31
31
  # SomeClass.configure do { |config| # config is the yielded config object from SomeClass::Configuration.configure }
32
32
  #
33
- # @param config_class [Spicerack::Configurable] A module that extends Spicerack::Configurable. Defaults to the module +YourGem::Configuration+
33
+ # @param config_class [Directive] A module that extends Directive. Defaults to the module +YourGem::Configuration+
34
34
  def delegates_to_configuration(config_class = nil)
35
35
  @_configuration_module = config_class || "#{self}::#{DEFAULT_CONFIGURATION_MODULE_NAME}".constantize
36
36
  end
@@ -3,7 +3,7 @@
3
3
  module Directive
4
4
  class Evaluator
5
5
  # @param path [Array<Symbol, String>] A message path for the desired config
6
- # @param configuration [Spicerack::Configurable::Reader]
6
+ # @param configuration [Directive::Reader]
7
7
  def initialize(path, configuration)
8
8
  @path = path
9
9
  @configuration = configuration
@@ -16,7 +16,7 @@ module Directive
16
16
  it "defines nested config object #{config_name}" do
17
17
  expect(parent_config).to respond_to config_name
18
18
  expect(parent_config._nested_options).to include config_name.to_sym
19
- expect(parent_config.public_send(config_name)).to be_a Spicerack::Configurable::ConfigObject
19
+ expect(parent_config.public_send(config_name)).to be_a Directive::ConfigObject
20
20
  end
21
21
 
22
22
  instance_eval(&block)
@@ -7,7 +7,7 @@ module Directive
7
7
  # RSpec matcher to test options of a Configurable class
8
8
  #
9
9
  # class ExampleConfiguration
10
- # include Spicerack::Configurable
10
+ # extend Directive
11
11
  #
12
12
  # option :foo
13
13
  # option :bar, default: :baz
@@ -26,7 +26,7 @@ module Directive
26
26
  match do |obj|
27
27
  @obj = obj
28
28
 
29
- if obj.is_a? Spicerack::Configurable::ConfigObject
29
+ if obj.is_a? Directive::ConfigObject
30
30
  expect(obj).to define_option option, default: default
31
31
  else
32
32
  expect(obj).to respond_to :config
@@ -7,11 +7,11 @@ module Directive
7
7
  # RSpec matcher to test options of a Configurable class
8
8
  #
9
9
  # module MyGem
10
- # include Spicerack::Configurable::ConfigDelegation
10
+ # include Directive::ConfigDelegation
11
11
  # delegates_to_configuration
12
12
  #
13
13
  # class MyGem::Configuration
14
- # include Spicerack::Configurable
14
+ # extend Directive
15
15
  # ...
16
16
  # end
17
17
  # end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Directive
4
4
  # This constant is managed by spicerack
5
- VERSION = "0.22.0"
5
+ VERSION = "0.22.2"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: directive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.0
4
+ version: 0.22.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Allen Rettberg
@@ -128,7 +128,7 @@ dependencies:
128
128
  - - '='
129
129
  - !ruby/object:Gem::Version
130
130
  version: 4.0.1
131
- description: An easy, self-documenting gem configuration framework
131
+ description: Easily create rich, self-documenting gem configuration
132
132
  email:
133
133
  - allen.rettberg@freshly.com
134
134
  executables: []