sinclair 1.10.0 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +6 -0
  3. data/README.md +414 -324
  4. data/config/check_specs.yml +3 -4
  5. data/config/yardstick.yml +2 -0
  6. data/lib/sinclair/matchers/add_class_method.rb +0 -1
  7. data/lib/sinclair/method_builder/base.rb +17 -2
  8. data/lib/sinclair/method_builder/call_method_builder.rb +21 -21
  9. data/lib/sinclair/method_builder.rb +5 -20
  10. data/lib/sinclair/method_definition/block_definition.rb +2 -0
  11. data/lib/sinclair/method_definition/call_definition.rb +15 -18
  12. data/lib/sinclair/method_definition/string_definition.rb +2 -0
  13. data/lib/sinclair/method_definition.rb +41 -3
  14. data/lib/sinclair/method_definitions.rb +20 -22
  15. data/lib/sinclair/version.rb +1 -1
  16. data/lib/sinclair.rb +149 -62
  17. data/spec/integration/readme/sinclair/types_of_definition_spec.rb +47 -0
  18. data/spec/integration/yard/sinclair/add_class_method_spec.rb +51 -0
  19. data/spec/integration/yard/sinclair/add_method_spec.rb +60 -0
  20. data/spec/integration/yard/sinclair/eval_and_add_method_spec.rb +26 -0
  21. data/spec/integration/yard/sinclair_spec.rb +0 -83
  22. data/spec/lib/sinclair/method_builder/base_spec.rb +15 -0
  23. data/spec/lib/sinclair/method_definition/call_definition_spec.rb +14 -17
  24. data/spec/lib/sinclair/method_definition_spec.rb +67 -2
  25. data/spec/lib/sinclair/method_definitions_spec.rb +15 -16
  26. data/spec/lib/sinclair_spec.rb +6 -160
  27. data/spec/support/models/dummy_builder.rb +4 -1
  28. data/spec/support/models/dummy_class_builder.rb +3 -0
  29. data/spec/support/models/person.rb +1 -1
  30. data/spec/support/shared_examples/sinclair.rb +112 -0
  31. metadata +8 -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: 1c6050b1049de69dd4ba37327f3b0d8e92e1a570ec5f6372ff91b1732bbc3be7
4
+ data.tar.gz: 68c4c64e8d414bb81d250f180c5f3a6a7f3c180751247a3360b497e53693cf78
5
5
  SHA512:
6
- metadata.gz: 424c2bd3b847482b32b45da5f3778c724c967fff11a14fdb5664e1d9b61fd0c484dc00e5f938739ffa46d3f04fcce7614ee9ed55b2fa3c3151af24a543b9d20e
7
- data.tar.gz: 5094b1a51ae631f01163015b97131f7aaf78b349ca959f326823939de6b4205da8d64d750fad32837bdb28e74b76888644cf1518d9d51cdd2baba5318f61e595
6
+ metadata.gz: 11a89d1a3b77320298c2027ac33a2a12d7ff57ddda3792753b5e9d0495bb50b3d83904e12ee06b79b84aa615b8796b34c5d087c905aee6a6f77e7d68bed39308
7
+ data.tar.gz: '04833c0736f37c690b554c007f60a0226255e3730a30c57b5f3a26cb486571c50b0b9f4970e27f581b6829a264321e8277f8eed22592904b1e6af3616ca62328'
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