evt-settings 0.4.0.1 → 0.5.0.0

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: ccf7a0ebdea3e2fb7d4bc42b6032cb369b604be1179d866b06bd8dfbf535e9da
4
- data.tar.gz: 979a457656f0d4e7eaecd1c28bd4895e0bb90c3f69cc6a1c675590edddb30aa2
3
+ metadata.gz: 15b240e6f595c283986941afb829ea499065593fdd50a27d5f32df7958d0c968
4
+ data.tar.gz: 44200ae8a2edb411af6613dcbcbe00e608abecc0ddc056811d0d05d16da886ce
5
5
  SHA512:
6
- metadata.gz: 6c40d858633c7e030796e0281563a67906ac59b66920307f580dc06aaf0e8dc93959b41dec41b6e879a6103db037c852186e5fe4a3c4df30d48736b0d9cfedd3
7
- data.tar.gz: '0569425c2f9d67f8024b145a4441468a43a5c88d456225a395e1ccd7b9453a877ef0790c61cf695dea13358edae7af33975cf3952976e3a9e99ba1a655d24f6a'
6
+ metadata.gz: 8d665061ae5670648f42b5db434bb1b16b780617d1f7da6007ccad1858d4a83f5f474cd00409ebc98210cc6bddd22ec08a5e9906bf724fa1a8c871e1a1e35269
7
+ data.tar.gz: 2498f0a1856df3cec33430813fcb752b9bef27a56122f3fcdbd375b7fc6253a6e5e29014eff6ada9351705fcdd7c0184aca45c17036f030a1384459f3b1cf07c
@@ -13,6 +13,6 @@ require 'settings/data_source/file'
13
13
  require 'settings/data_source/build'
14
14
  require 'settings/registry'
15
15
  require 'settings/settings'
16
- require 'settings/activate'
16
+ require 'settings/setting'
17
17
  require 'settings/setting/assignment'
18
18
  require 'settings/setting/macro'
@@ -2,6 +2,8 @@ class Settings
2
2
  module Controls
3
3
  module Subject
4
4
  class Example
5
+ include Setting
6
+
5
7
  setting :some_setting
6
8
  setting :some_other_setting
7
9
  setting :yet_another_setting
@@ -0,0 +1,9 @@
1
+ class Settings
2
+ module Setting
3
+ def self.included(cls)
4
+ cls.class_exec do
5
+ extend Macro
6
+ end
7
+ end
8
+ end
9
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0.1
4
+ version: 0.5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-09 00:00:00.000000000 Z
11
+ date: 2018-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-log
@@ -73,7 +73,6 @@ extensions: []
73
73
  extra_rdoc_files: []
74
74
  files:
75
75
  - lib/settings.rb
76
- - lib/settings/activate.rb
77
76
  - lib/settings/controls.rb
78
77
  - lib/settings/controls/data_source.rb
79
78
  - lib/settings/controls/settings.rb
@@ -84,6 +83,7 @@ files:
84
83
  - lib/settings/data_source/hash.rb
85
84
  - lib/settings/log.rb
86
85
  - lib/settings/registry.rb
86
+ - lib/settings/setting.rb
87
87
  - lib/settings/setting/assignment.rb
88
88
  - lib/settings/setting/macro.rb
89
89
  - lib/settings/settings.rb
@@ -1,11 +0,0 @@
1
- class Settings
2
- def self.activate(target_class=nil)
3
- target_class ||= Object
4
-
5
- macro_module = Settings::Setting::Macro
6
-
7
- return if target_class.is_a?(macro_module)
8
-
9
- target_class.extend(macro_module)
10
- end
11
- end