yard-virtus2 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +24 -0
  3. data/.idea/modules.xml +8 -0
  4. data/Gemfile +17 -0
  5. data/Gemfile.lock +75 -0
  6. data/Guardfile +11 -0
  7. data/LICENSE.txt +19 -0
  8. data/README.md +61 -0
  9. data/Rakefile +9 -0
  10. data/example/README.md +4 -0
  11. data/example/address.rb +7 -0
  12. data/example/city.rb +5 -0
  13. data/example/user.rb +9 -0
  14. data/lib/yard-virtus.rb +18 -0
  15. data/lib/yard/virtus/code_objects.rb +2 -0
  16. data/lib/yard/virtus/code_objects/attribute_reader.rb +26 -0
  17. data/lib/yard/virtus/code_objects/attribute_writer.rb +48 -0
  18. data/lib/yard/virtus/declarations.rb +4 -0
  19. data/lib/yard/virtus/declarations/options.rb +53 -0
  20. data/lib/yard/virtus/declarations/type.rb +71 -0
  21. data/lib/yard/virtus/declarations/virtus_attribute.rb +73 -0
  22. data/lib/yard/virtus/declarations/virtus_model.rb +40 -0
  23. data/lib/yard/virtus/handlers.rb +2 -0
  24. data/lib/yard/virtus/handlers/include_virtus_model.rb +32 -0
  25. data/lib/yard/virtus/handlers/virtus_attribute.rb +58 -0
  26. data/lib/yard/virtus/mixin_handler_monkey_patch.rb +25 -0
  27. data/lib/yard/virtus/version.rb +5 -0
  28. data/spec/code_objects/attribute_reader_spec.rb +38 -0
  29. data/spec/code_objects/attribute_writer_spec.rb +75 -0
  30. data/spec/declarations/options_spec.rb +50 -0
  31. data/spec/declarations/type_spec.rb +37 -0
  32. data/spec/declarations/virtus_attribute_spec.rb +73 -0
  33. data/spec/declarations/virtus_model_spec.rb +35 -0
  34. data/spec/examples/include_virtus_model_001.rb.txt +15 -0
  35. data/spec/examples/virtus_attribute_001.rb.txt +65 -0
  36. data/spec/handlers/include_virtus_model_spec.rb +22 -0
  37. data/spec/handlers/virtus_attribute_spec.rb +67 -0
  38. data/spec/spec_helper.rb +65 -0
  39. data/spec/support/helpers/handler_helpers.rb +9 -0
  40. data/spec/support/helpers/parsing_helpers.rb +13 -0
  41. data/spec/support/matchers/attribute_matchers.rb +39 -0
  42. data/spec/support/matchers/method_type_matchers.rb +11 -0
  43. data/yard-virtus2.gemspec +22 -0
  44. metadata +119 -0
metadata ADDED
@@ -0,0 +1,119 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: yard-virtus2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.5
5
+ platform: ruby
6
+ authors:
7
+ - Dmitry Dzema
8
+ - Daniel Orner
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2021-01-21 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: virtus
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - '='
19
+ - !ruby/object:Gem::Version
20
+ version: 1.0.2
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - '='
26
+ - !ruby/object:Gem::Version
27
+ version: 1.0.2
28
+ - !ruby/object:Gem::Dependency
29
+ name: yard
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ description: This library provides handlers to YARD so it can extract information
43
+ about Virtus attributes like types and visibility
44
+ email:
45
+ - dimad.ag@gmail.com
46
+ - dmorner@gmail.com
47
+ executables: []
48
+ extensions: []
49
+ extra_rdoc_files:
50
+ - LICENSE.txt
51
+ - README.md
52
+ files:
53
+ - ".gitignore"
54
+ - ".idea/modules.xml"
55
+ - Gemfile
56
+ - Gemfile.lock
57
+ - Guardfile
58
+ - LICENSE.txt
59
+ - README.md
60
+ - Rakefile
61
+ - example/README.md
62
+ - example/address.rb
63
+ - example/city.rb
64
+ - example/user.rb
65
+ - lib/yard-virtus.rb
66
+ - lib/yard/virtus/code_objects.rb
67
+ - lib/yard/virtus/code_objects/attribute_reader.rb
68
+ - lib/yard/virtus/code_objects/attribute_writer.rb
69
+ - lib/yard/virtus/declarations.rb
70
+ - lib/yard/virtus/declarations/options.rb
71
+ - lib/yard/virtus/declarations/type.rb
72
+ - lib/yard/virtus/declarations/virtus_attribute.rb
73
+ - lib/yard/virtus/declarations/virtus_model.rb
74
+ - lib/yard/virtus/handlers.rb
75
+ - lib/yard/virtus/handlers/include_virtus_model.rb
76
+ - lib/yard/virtus/handlers/virtus_attribute.rb
77
+ - lib/yard/virtus/mixin_handler_monkey_patch.rb
78
+ - lib/yard/virtus/version.rb
79
+ - spec/code_objects/attribute_reader_spec.rb
80
+ - spec/code_objects/attribute_writer_spec.rb
81
+ - spec/declarations/options_spec.rb
82
+ - spec/declarations/type_spec.rb
83
+ - spec/declarations/virtus_attribute_spec.rb
84
+ - spec/declarations/virtus_model_spec.rb
85
+ - spec/examples/include_virtus_model_001.rb.txt
86
+ - spec/examples/virtus_attribute_001.rb.txt
87
+ - spec/handlers/include_virtus_model_spec.rb
88
+ - spec/handlers/virtus_attribute_spec.rb
89
+ - spec/spec_helper.rb
90
+ - spec/support/helpers/handler_helpers.rb
91
+ - spec/support/helpers/parsing_helpers.rb
92
+ - spec/support/matchers/attribute_matchers.rb
93
+ - spec/support/matchers/method_type_matchers.rb
94
+ - yard-virtus2.gemspec
95
+ homepage: https://github.com/dorner/yard-virtus
96
+ licenses:
97
+ - MIT
98
+ metadata: {}
99
+ post_install_message:
100
+ rdoc_options: []
101
+ require_paths:
102
+ - lib
103
+ required_ruby_version: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: '0'
108
+ required_rubygems_version: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: '0'
113
+ requirements: []
114
+ rubygems_version: 3.1.2
115
+ signing_key:
116
+ specification_version: 4
117
+ summary: This library provides handlers to YARD so it can extract information about
118
+ Virtus attributes like types and visibility
119
+ test_files: []