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: c4adaa39941af100f90cca20495186512bb1df63
4
- data.tar.gz: ebfa9dc2da32771e4e10b5a66d93023995f529ab
3
+ metadata.gz: f8c88e36d70d414c2f1bf914e3dc2087aefb2387
4
+ data.tar.gz: 19ea37dd554eb8726fc3feb6c384ef4b17d93f07
5
5
  SHA512:
6
- metadata.gz: 15139f777ccb83a82fab9bfd0bd3611741862d1b391a1dc6f70d6b754d7a6629d05462e1b1086bec1d904dbc5fa441d0a1a9628c3d5ca6e4d539c9c763b2af0d
7
- data.tar.gz: 34dc1e6707ff1ab069287f7ce2c83d1f31d9f0f834c5508b9461ad76ac704aed07a013cdab890bb576141cf1d6c4ba7f27b5e3bbbce22c310500d22031a91fdf
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
 
@@ -16,7 +16,7 @@ module SleepingKingStudios
16
16
  MINOR = 7
17
17
  PATCH = 0
18
18
  PRERELEASE = :beta
19
- BUILD = 0
19
+ BUILD = 1
20
20
  end # module
21
21
 
22
22
  VERSION = Version.to_gem_version
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.0
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-12 00:00:00.000000000 Z
11
+ date: 2017-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake