diff options
author | tomoya ishida <[email protected]> | 2024-08-01 05:49:56 +0900 |
---|---|---|
committer | git <[email protected]> | 2024-07-31 20:50:00 +0000 |
commit | 16b0242808b5a2dc7c1c80dc9ace547f64280a1b (patch) | |
tree | e08272beca39a52b156e73b3711f313612fdec6c /lib/rdoc/rdoc.gemspec | |
parent | e68e9582314890ebd5d1c3c608f6f8c986e718ef (diff) |
[ruby/rdoc] Add new ruby parser that uses Prism
(https://github.com/ruby/rdoc/pull/1144)
* Add a new ruby parser RDoc::Parser::PrismRuby
* Add a new ruby parser testcase independent from parser's internal implementation
* unknown meta method
* Use MethodSignatureVisitor only to scan params, block_params and calls_super
* Add calls_super test
* Drop ruby 2.6. Prism requires ruby >= 2.7
* Remove duplicated documentation comment from prism_ruby.rb
* Add test for wrong argument passed to metaprogramming method
* Rename visit_call_[DSL_METHOD_NAME] to make it distinguishable from visit_[NODE_TYPE]_node
* Method receiver switch of true/false/nil to a case statement
* Extract common part of add_method(by def keyword) and add meta_comment method
* Reuse consecutive comments array when collecting comments
* Simplify DSL call_node handling
* Refactor extracting method visibility arguments
https://github.com/ruby/rdoc/commit/fde99f1be6
Diffstat (limited to 'lib/rdoc/rdoc.gemspec')
-rw-r--r-- | lib/rdoc/rdoc.gemspec | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rdoc/rdoc.gemspec b/lib/rdoc/rdoc.gemspec index 93a281c8ae..e3ceea9e0a 100644 --- a/lib/rdoc/rdoc.gemspec +++ b/lib/rdoc/rdoc.gemspec @@ -230,8 +230,9 @@ RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentat s.rdoc_options = ["--main", "README.rdoc"] s.extra_rdoc_files += s.files.grep(%r[\A[^\/]+\.(?:rdoc|md)\z]) - s.required_ruby_version = Gem::Requirement.new(">= 2.6.0") + s.required_ruby_version = Gem::Requirement.new(">= 2.7.0") s.required_rubygems_version = Gem::Requirement.new(">= 2.2") + s.add_dependency 'prism', '>= 0.30.0' s.add_dependency 'psych', '>= 4.0.0' end |