sleeping_king_studios-tools 0.7.0.beta.0 → 0.7.0.beta.1
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8c88e36d70d414c2f1bf914e3dc2087aefb2387
|
4
|
+
data.tar.gz: 19ea37dd554eb8726fc3feb6c384ef4b17d93f07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98497dccebd89845bdd7d8e973cd9917fcb6161f952923bdb7d27c49dbbfaaf3f4f7b4189b79386b39343272b5d1db6b8ac3b361feb4c29154916cd0a83d1148
|
7
|
+
data.tar.gz: b227f43a6daf0922a315d5b4dc059708acce85331c65639dbf34e68247344e445e074631c5fe52deb532c062c50da3e411addb92fc36b4e1efd1a26ba908b1d3
|
@@ -41,14 +41,17 @@ module SleepingKingStudios::Tools::Toolbox
|
|
41
41
|
end # method define_mutator
|
42
42
|
|
43
43
|
def define_namespace namespace_name, &block
|
44
|
+
namespace =
|
45
|
+
Class.new(SleepingKingStudios::Tools::Toolbox::Configuration)
|
46
|
+
namespace.instance_exec namespace, &block if block_given?
|
47
|
+
|
44
48
|
define_method namespace_name do
|
45
49
|
if instance_variable_defined?(:"@#{namespace_name}")
|
46
50
|
return instance_variable_get(:"@#{namespace_name}")
|
47
51
|
end # if
|
48
52
|
|
49
53
|
data = __get_value__(namespace_name, :default => Object.new)
|
50
|
-
config =
|
51
|
-
SleepingKingStudios::Tools::Toolbox::Configuration.new(data, &block)
|
54
|
+
config = namespace.new(data)
|
52
55
|
|
53
56
|
config.__root_namespace__ = __root_namespace__ || self
|
54
57
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sleeping_king_studios-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.0.beta.
|
4
|
+
version: 0.7.0.beta.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob "Merlin" Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|