sinclair 1.10.0 → 1.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +6 -0
  3. data/README.md +444 -324
  4. data/config/check_specs.yml +5 -5
  5. data/config/yardstick.yml +4 -0
  6. data/lib/sinclair/matchers/add_class_method.rb +0 -1
  7. data/lib/sinclair/method_builder/base.rb +32 -2
  8. data/lib/sinclair/method_builder/block_method_builder.rb +1 -12
  9. data/lib/sinclair/method_builder/call_method_builder.rb +10 -27
  10. data/lib/sinclair/method_builder/string_method_builder.rb +2 -29
  11. data/lib/sinclair/method_builder.rb +4 -20
  12. data/lib/sinclair/method_definition/block_definition.rb +2 -0
  13. data/lib/sinclair/method_definition/call_definition.rb +15 -18
  14. data/lib/sinclair/method_definition/parameter_builder.rb +89 -0
  15. data/lib/sinclair/method_definition/parameter_helper.rb +124 -0
  16. data/lib/sinclair/method_definition/string_definition.rb +26 -2
  17. data/lib/sinclair/method_definition.rb +42 -3
  18. data/lib/sinclair/method_definitions.rb +20 -22
  19. data/lib/sinclair/version.rb +1 -1
  20. data/lib/sinclair.rb +149 -62
  21. data/spec/integration/readme/sinclair/types_of_definition_spec.rb +61 -0
  22. data/spec/integration/yard/sinclair/add_class_method_spec.rb +51 -0
  23. data/spec/integration/yard/sinclair/add_method_spec.rb +60 -0
  24. data/spec/integration/yard/sinclair/eval_and_add_method_spec.rb +26 -0
  25. data/spec/integration/yard/sinclair_spec.rb +0 -83
  26. data/spec/lib/sinclair/method_builder/base_spec.rb +15 -0
  27. data/spec/lib/sinclair/method_builder/string_method_builder_spec.rb +24 -1
  28. data/spec/lib/sinclair/method_definition/call_definition_spec.rb +14 -17
  29. data/spec/lib/sinclair/method_definition/parameter_builder_spec.rb +81 -0
  30. data/spec/lib/sinclair/method_definition/string_definition_spec.rb +60 -29
  31. data/spec/lib/sinclair/method_definition_spec.rb +77 -2
  32. data/spec/lib/sinclair/method_definitions_spec.rb +15 -16
  33. data/spec/lib/sinclair_spec.rb +6 -160
  34. data/spec/support/models/dummy_builder.rb +5 -1
  35. data/spec/support/models/dummy_class_builder.rb +4 -0
  36. data/spec/support/models/person.rb +1 -1
  37. data/spec/support/shared_examples/sinclair.rb +118 -0
  38. metadata +11 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a3575c54efcf82ce477b70a6a34b6f6d37d6242b2c272454b141942ee90e381
4
- data.tar.gz: fdae2230f95d50d239537f01dace6b278b7930cef96115667b424910d7106c78
3
+ metadata.gz: 1a194ca690bacbcb4a928dc5295a60f6e574b6cf567cc81ab33a293dbe9d3643
4
+ data.tar.gz: 77d34d971fee05045d57e73939a0a299707cad027bb770c09e348ca35fb76bce
5
5
  SHA512:
6
- metadata.gz: 424c2bd3b847482b32b45da5f3778c724c967fff11a14fdb5664e1d9b61fd0c484dc00e5f938739ffa46d3f04fcce7614ee9ed55b2fa3c3151af24a543b9d20e
7
- data.tar.gz: 5094b1a51ae631f01163015b97131f7aaf78b349ca959f326823939de6b4205da8d64d750fad32837bdb28e74b76888644cf1518d9d51cdd2baba5318f61e595
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