evt-configure 0.1.2.6 → 0.1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/configure.rb +1 -0
- data/lib/configure/activate.rb +1 -1
- data/lib/configure/configure.rb +13 -0
- data/lib/configure/controls.rb +9 -3
- data/lib/configure/controls/example.rb +13 -0
- data/lib/configure/controls/extended.rb +15 -0
- data/lib/configure/controls/factory_method.rb +4 -0
- data/lib/configure/controls/included.rb +7 -0
- data/lib/configure/controls/{classes/keyword_argument.rb → keyword_argument.rb} +13 -7
- data/lib/configure/controls/no_arguments.rb +7 -0
- data/lib/configure/controls/{classes/positional_argument.rb → positional_argument.rb} +13 -7
- metadata +9 -5
- data/lib/configure/controls/classes/no_arguments.rb +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3c20941996db2d2c3c3b9c89269971e1238f9414c477f313f0893466a60352f
|
4
|
+
data.tar.gz: d491ebbd166075cf64cf9b0cc616d72cc882cd57cce1ea52e8d4ac461739f5b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07a067ee3efd159f37ad5238d0fe44f96a7e26860aa02a449e87a1b0432b72845dd62d5d3e1d9e65d50948f7c31a23ded0030be92dbd3f3bba0c6896853357ca
|
7
|
+
data.tar.gz: '09a5f4c7f9a2f3985a21c5a6fd38d892891e9351298ccb1ca1ea9c35ad97f90c00afc9744ac63ee56aa001ae075c1171a57d0806f85d6499371e965af7aa937a'
|
data/lib/configure.rb
CHANGED
data/lib/configure/activate.rb
CHANGED
data/lib/configure/controls.rb
CHANGED
@@ -1,4 +1,10 @@
|
|
1
|
-
require 'configure/controls/classes/no_arguments'
|
2
|
-
require 'configure/controls/classes/positional_argument'
|
3
|
-
require 'configure/controls/classes/keyword_argument'
|
4
1
|
require 'configure/controls/factory_method'
|
2
|
+
|
3
|
+
require 'configure/controls/example'
|
4
|
+
|
5
|
+
require 'configure/controls/extended'
|
6
|
+
require 'configure/controls/included'
|
7
|
+
|
8
|
+
require 'configure/controls/no_arguments'
|
9
|
+
require 'configure/controls/positional_argument'
|
10
|
+
require 'configure/controls/keyword_argument'
|
@@ -1,25 +1,31 @@
|
|
1
1
|
module Configure
|
2
2
|
module Controls
|
3
|
-
module
|
4
|
-
class
|
5
|
-
Configure
|
3
|
+
module KeywordArgument
|
4
|
+
class Example
|
5
|
+
include Configure
|
6
6
|
|
7
7
|
configure :some_attr_name
|
8
8
|
|
9
|
-
|
9
|
+
def self.build(arg:)
|
10
|
+
new(arg: arg)
|
11
|
+
end
|
10
12
|
|
11
13
|
attr_reader :arg
|
12
14
|
|
13
15
|
def initialize(arg:)
|
14
16
|
@arg = arg
|
15
17
|
end
|
18
|
+
end
|
16
19
|
|
17
|
-
|
18
|
-
|
20
|
+
module Optional
|
21
|
+
class Example
|
22
|
+
include Configure
|
19
23
|
|
20
24
|
configure :some_attr_name
|
21
25
|
|
22
|
-
|
26
|
+
def self.build(arg: nil)
|
27
|
+
new(arg: arg)
|
28
|
+
end
|
23
29
|
|
24
30
|
attr_reader :arg
|
25
31
|
|
@@ -1,25 +1,31 @@
|
|
1
1
|
module Configure
|
2
2
|
module Controls
|
3
|
-
module
|
4
|
-
class
|
5
|
-
Configure
|
3
|
+
module PositionalArgument
|
4
|
+
class Example
|
5
|
+
include Configure
|
6
6
|
|
7
7
|
configure :some_attr_name
|
8
8
|
|
9
|
-
|
9
|
+
def self.build(arg)
|
10
|
+
new(arg)
|
11
|
+
end
|
10
12
|
|
11
13
|
attr_reader :arg
|
12
14
|
|
13
15
|
def initialize(arg)
|
14
16
|
@arg = arg
|
15
17
|
end
|
18
|
+
end
|
16
19
|
|
17
|
-
|
18
|
-
|
20
|
+
module Optional
|
21
|
+
class Example
|
22
|
+
include Configure
|
19
23
|
|
20
24
|
configure :some_attr_name
|
21
25
|
|
22
|
-
|
26
|
+
def self.build(arg=nil)
|
27
|
+
new(arg)
|
28
|
+
end
|
23
29
|
|
24
30
|
attr_reader :arg
|
25
31
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-configure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3.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-
|
11
|
+
date: 2018-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test_bench
|
@@ -32,11 +32,15 @@ extra_rdoc_files: []
|
|
32
32
|
files:
|
33
33
|
- lib/configure.rb
|
34
34
|
- lib/configure/activate.rb
|
35
|
+
- lib/configure/configure.rb
|
35
36
|
- lib/configure/controls.rb
|
36
|
-
- lib/configure/controls/
|
37
|
-
- lib/configure/controls/
|
38
|
-
- lib/configure/controls/classes/positional_argument.rb
|
37
|
+
- lib/configure/controls/example.rb
|
38
|
+
- lib/configure/controls/extended.rb
|
39
39
|
- lib/configure/controls/factory_method.rb
|
40
|
+
- lib/configure/controls/included.rb
|
41
|
+
- lib/configure/controls/keyword_argument.rb
|
42
|
+
- lib/configure/controls/no_arguments.rb
|
43
|
+
- lib/configure/controls/positional_argument.rb
|
40
44
|
- lib/configure/macro.rb
|
41
45
|
homepage: https://github.com/eventide-project/settings
|
42
46
|
licenses:
|