rbs_activesupport 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. checksums.yaml +7 -0
  2. data/.rubocop.yml +32 -0
  3. data/.vscode/extensions.json +7 -0
  4. data/.vscode/settings.json +6 -0
  5. data/CODE_OF_CONDUCT.md +132 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.md +49 -0
  8. data/Rakefile +8 -0
  9. data/Steepfile +11 -0
  10. data/lib/generators/rbs_activesupport/install_generator.rb +22 -0
  11. data/lib/rbs_activesupport/ast.rb +60 -0
  12. data/lib/rbs_activesupport/attribute_accessor.rb +40 -0
  13. data/lib/rbs_activesupport/class_attribute.rb +36 -0
  14. data/lib/rbs_activesupport/declaration_builder.rb +122 -0
  15. data/lib/rbs_activesupport/delegate.rb +36 -0
  16. data/lib/rbs_activesupport/generator.rb +82 -0
  17. data/lib/rbs_activesupport/include.rb +61 -0
  18. data/lib/rbs_activesupport/method_searcher.rb +38 -0
  19. data/lib/rbs_activesupport/parser.rb +56 -0
  20. data/lib/rbs_activesupport/rake_task.rb +68 -0
  21. data/lib/rbs_activesupport/version.rb +5 -0
  22. data/lib/rbs_activesupport.rb +17 -0
  23. data/rbs_collection.lock.yaml +272 -0
  24. data/rbs_collection.yaml +19 -0
  25. data/sig/rbs_activesupport/ast.rbs +7 -0
  26. data/sig/rbs_activesupport/attribute_accessor.rbs +15 -0
  27. data/sig/rbs_activesupport/class_attribute.rbs +14 -0
  28. data/sig/rbs_activesupport/declaration_builder.rbs +25 -0
  29. data/sig/rbs_activesupport/delegate.rbs +13 -0
  30. data/sig/rbs_activesupport/generator.rbs +20 -0
  31. data/sig/rbs_activesupport/include.rbs +16 -0
  32. data/sig/rbs_activesupport/method_searcher.rbs +12 -0
  33. data/sig/rbs_activesupport/parser.rbs +22 -0
  34. data/sig/rbs_activesupport/rake_task.rbs +17 -0
  35. data/sig/rbs_activesupport.rbs +4 -0
  36. metadata +122 -0
@@ -0,0 +1,17 @@
1
+ module RbsActivesupport
2
+ class RakeTask < Rake::TaskLib
3
+ attr_accessor name: Symbol
4
+ attr_accessor signature_root_dir: Pathname
5
+
6
+ @rbs_builder: RBS::DefinitionBuilder
7
+
8
+ def initialize: (?Symbol name) ?{ (self) -> void } -> void
9
+ def define_setup_task: () -> void
10
+ def define_generate_task: () -> void
11
+ def define_clean_task: () -> void
12
+
13
+ private
14
+
15
+ def rbs_builder: () -> RBS::DefinitionBuilder
16
+ end
17
+ end
@@ -0,0 +1,4 @@
1
+ module RbsActivesupport
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,122 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rbs_activesupport
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Takeshi KOMIYA
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-09-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: railties
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rbs
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description:
56
+ email:
57
+ - i.tkomiya@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".rubocop.yml"
63
+ - ".vscode/extensions.json"
64
+ - ".vscode/settings.json"
65
+ - CODE_OF_CONDUCT.md
66
+ - LICENSE.txt
67
+ - README.md
68
+ - Rakefile
69
+ - Steepfile
70
+ - lib/generators/rbs_activesupport/install_generator.rb
71
+ - lib/rbs_activesupport.rb
72
+ - lib/rbs_activesupport/ast.rb
73
+ - lib/rbs_activesupport/attribute_accessor.rb
74
+ - lib/rbs_activesupport/class_attribute.rb
75
+ - lib/rbs_activesupport/declaration_builder.rb
76
+ - lib/rbs_activesupport/delegate.rb
77
+ - lib/rbs_activesupport/generator.rb
78
+ - lib/rbs_activesupport/include.rb
79
+ - lib/rbs_activesupport/method_searcher.rb
80
+ - lib/rbs_activesupport/parser.rb
81
+ - lib/rbs_activesupport/rake_task.rb
82
+ - lib/rbs_activesupport/version.rb
83
+ - rbs_collection.lock.yaml
84
+ - rbs_collection.yaml
85
+ - sig/rbs_activesupport.rbs
86
+ - sig/rbs_activesupport/ast.rbs
87
+ - sig/rbs_activesupport/attribute_accessor.rbs
88
+ - sig/rbs_activesupport/class_attribute.rbs
89
+ - sig/rbs_activesupport/declaration_builder.rbs
90
+ - sig/rbs_activesupport/delegate.rbs
91
+ - sig/rbs_activesupport/generator.rbs
92
+ - sig/rbs_activesupport/include.rbs
93
+ - sig/rbs_activesupport/method_searcher.rbs
94
+ - sig/rbs_activesupport/parser.rbs
95
+ - sig/rbs_activesupport/rake_task.rbs
96
+ homepage: https://github.com/tk0miya/rbs_activesupport
97
+ licenses:
98
+ - MIT
99
+ metadata:
100
+ homepage_uri: https://github.com/tk0miya/rbs_activesupport
101
+ source_code_uri: https://github.com/tk0miya/rbs_activesupport
102
+ changelog_uri: https://github.com/tk0miya/rbs_activesupport
103
+ post_install_message:
104
+ rdoc_options: []
105
+ require_paths:
106
+ - lib
107
+ required_ruby_version: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: 2.7.0
112
+ required_rubygems_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ requirements: []
118
+ rubygems_version: 3.5.11
119
+ signing_key:
120
+ specification_version: 4
121
+ summary: A RBS files generatorfor activesupport
122
+ test_files: []