evt-mimic 1.3.0.0 → 1.3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mimic/controls.rb +3 -1
- data/lib/mimic/controls/subject/{named_parameters.rb → keyword_parameters.rb} +1 -1
- data/lib/mimic/controls/subject/mixed_parameters.rb +1 -1
- data/lib/mimic/controls/subject/optional_keyword_parameters.rb +12 -0
- data/lib/mimic/controls/subject/optional_positional_parameters.rb +12 -0
- data/lib/mimic/define_methods.rb +4 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fbb802e181bc814bd466e7f17b3a35dc3aee7997e65e4f9bc0bbc5ffe769a21
|
4
|
+
data.tar.gz: 1ce216ee2cfa4ee8fdf70697f9ca6dda7c0a99ffa5f9e064a672c0fd04882ab8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b9a5cbbb0b6379eeda898418af5882d5551beae18dd9f875a2886afb4daa1b31fdba83d13f699fc0657f8f728b1802af777f176de8c3f62ca00d171b75e420b
|
7
|
+
data.tar.gz: 2bbe33b95eb24ccb92fee4aac521a992314931b9841b706f15835ca0795309ded7841743667b3d3e17c087c3e0f4e1a11caf78730b9768e3795eb81894e1c327
|
data/lib/mimic/controls.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
require 'mimic/controls/subject'
|
2
2
|
require 'mimic/controls/subject/no_parameters'
|
3
3
|
require 'mimic/controls/subject/positional_parameters'
|
4
|
-
require 'mimic/controls/subject/
|
4
|
+
require 'mimic/controls/subject/optional_positional_parameters'
|
5
|
+
require 'mimic/controls/subject/keyword_parameters'
|
6
|
+
require 'mimic/controls/subject/optional_keyword_parameters'
|
5
7
|
require 'mimic/controls/subject/block_parameter'
|
6
8
|
require 'mimic/controls/subject/multiple_assignment_parameter'
|
7
9
|
require 'mimic/controls/subject/multiple_assignment_named_parameter'
|
@@ -3,7 +3,7 @@ module Mimic
|
|
3
3
|
module Subject
|
4
4
|
module MixedParameters
|
5
5
|
class Example
|
6
|
-
def some_method(some_parameter, *parameters,
|
6
|
+
def some_method(some_parameter, some_optional_parameter=nil, *parameters, some_keyword_parameter:, some_optional_keyword_parameter: nil, **named_parameters, &blk)
|
7
7
|
end
|
8
8
|
end
|
9
9
|
end
|
data/lib/mimic/define_methods.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-mimic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1.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: 2019-
|
11
|
+
date: 2019-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-invocation
|
@@ -53,11 +53,13 @@ files:
|
|
53
53
|
- lib/mimic/controls/recorder.rb
|
54
54
|
- lib/mimic/controls/subject.rb
|
55
55
|
- lib/mimic/controls/subject/block_parameter.rb
|
56
|
+
- lib/mimic/controls/subject/keyword_parameters.rb
|
56
57
|
- lib/mimic/controls/subject/mixed_parameters.rb
|
57
58
|
- lib/mimic/controls/subject/multiple_assignment_named_parameter.rb
|
58
59
|
- lib/mimic/controls/subject/multiple_assignment_parameter.rb
|
59
|
-
- lib/mimic/controls/subject/named_parameters.rb
|
60
60
|
- lib/mimic/controls/subject/no_parameters.rb
|
61
|
+
- lib/mimic/controls/subject/optional_keyword_parameters.rb
|
62
|
+
- lib/mimic/controls/subject/optional_positional_parameters.rb
|
61
63
|
- lib/mimic/controls/subject/positional_parameters.rb
|
62
64
|
- lib/mimic/define_methods.rb
|
63
65
|
- lib/mimic/mimic.rb
|