sinclair 1.10.0 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +6 -0
- data/README.md +444 -324
- data/config/check_specs.yml +5 -5
- data/config/yardstick.yml +4 -0
- data/lib/sinclair/matchers/add_class_method.rb +0 -1
- data/lib/sinclair/method_builder/base.rb +32 -2
- data/lib/sinclair/method_builder/block_method_builder.rb +1 -12
- data/lib/sinclair/method_builder/call_method_builder.rb +10 -27
- data/lib/sinclair/method_builder/string_method_builder.rb +2 -29
- data/lib/sinclair/method_builder.rb +4 -20
- data/lib/sinclair/method_definition/block_definition.rb +2 -0
- data/lib/sinclair/method_definition/call_definition.rb +15 -18
- data/lib/sinclair/method_definition/parameter_builder.rb +89 -0
- data/lib/sinclair/method_definition/parameter_helper.rb +124 -0
- data/lib/sinclair/method_definition/string_definition.rb +26 -2
- data/lib/sinclair/method_definition.rb +42 -3
- data/lib/sinclair/method_definitions.rb +20 -22
- data/lib/sinclair/version.rb +1 -1
- data/lib/sinclair.rb +149 -62
- data/spec/integration/readme/sinclair/types_of_definition_spec.rb +61 -0
- data/spec/integration/yard/sinclair/add_class_method_spec.rb +51 -0
- data/spec/integration/yard/sinclair/add_method_spec.rb +60 -0
- data/spec/integration/yard/sinclair/eval_and_add_method_spec.rb +26 -0
- data/spec/integration/yard/sinclair_spec.rb +0 -83
- data/spec/lib/sinclair/method_builder/base_spec.rb +15 -0
- data/spec/lib/sinclair/method_builder/string_method_builder_spec.rb +24 -1
- data/spec/lib/sinclair/method_definition/call_definition_spec.rb +14 -17
- data/spec/lib/sinclair/method_definition/parameter_builder_spec.rb +81 -0
- data/spec/lib/sinclair/method_definition/string_definition_spec.rb +60 -29
- data/spec/lib/sinclair/method_definition_spec.rb +77 -2
- data/spec/lib/sinclair/method_definitions_spec.rb +15 -16
- data/spec/lib/sinclair_spec.rb +6 -160
- data/spec/support/models/dummy_builder.rb +5 -1
- data/spec/support/models/dummy_class_builder.rb +4 -0
- data/spec/support/models/person.rb +1 -1
- data/spec/support/shared_examples/sinclair.rb +118 -0
- metadata +11 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a194ca690bacbcb4a928dc5295a60f6e574b6cf567cc81ab33a293dbe9d3643
|
4
|
+
data.tar.gz: 77d34d971fee05045d57e73939a0a299707cad027bb770c09e348ca35fb76bce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa8cc30f12639711e53e3e2396fa59075ea59673fb49469be8ad757f8502b75ed07df9b57a0a4c863dd0067b1cd655455bdf649189318d04a71f8c758af7c7d5
|
7
|
+
data.tar.gz: 29942c828c7621d728307f16731fbc5ac715371512e35a8872d9f6102b07c54256a4571e0324cc82e69703d7b75a6ce87b2658ff26ef54886b69bc0d15a3f6ec
|
data/.rubocop.yml
CHANGED
@@ -4,6 +4,11 @@ inherit_from: .rubocop_todo.yml
|
|
4
4
|
AllCops:
|
5
5
|
TargetRubyVersion: 2.5
|
6
6
|
|
7
|
+
|
8
|
+
RSpec/DescribeClass:
|
9
|
+
Exclude:
|
10
|
+
- 'spec/integration/yard/**/*_spec.rb'
|
11
|
+
|
7
12
|
Metrics/BlockLength:
|
8
13
|
Exclude:
|
9
14
|
- 'spec/**/*_spec.rb'
|
@@ -38,6 +43,7 @@ RSpec/MultipleExpectations:
|
|
38
43
|
- 'spec/integration/yard/**/*_spec.rb'
|
39
44
|
- 'spec/integration/readme/**/*_spec.rb'
|
40
45
|
- spec/lib/sinclair_spec.rb
|
46
|
+
- spec/support/shared_examples/sinclair.rb
|
41
47
|
|
42
48
|
RSpec/NestedGroups:
|
43
49
|
Max: 5
|