File tree Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ permissions: # added using https://github.com/step-security/secure-workflows
8
8
jobs :
9
9
ruby-versions :
10
10
uses : ruby/actions/.github/workflows/ruby_versions.yml@master
11
+ with :
12
+ # 2.7 breaks `test_parse_statements_nodoc_identifier_alias_method`
13
+ min_version : 3.0
11
14
12
15
test :
13
16
needs : ruby-versions
43
46
run : bundle exec rake
44
47
env :
45
48
RUBYOPT : --enable-frozen_string_literal
49
+ - name : Run test with Prism parser
50
+ run : bundle exec rake
51
+ env :
52
+ RUBYOPT : --enable-frozen_string_literal
53
+ RDOC_USE_PRISM_PARSER : true
46
54
- if : ${{ matrix.ruby == 'head' && startsWith(matrix.os, 'ubuntu') }}
47
55
run : bundle exec rake rdoc
48
56
lint :
Original file line number Diff line number Diff line change @@ -10,4 +10,5 @@ group :development do
10
10
gem 'test-unit-ruby-core'
11
11
gem 'rubocop' , '>= 1.31.0'
12
12
gem 'gettext'
13
+ gem 'prism' , '>= 0.30.0'
13
14
end
Original file line number Diff line number Diff line change 11
11
if ENV [ 'RDOC_USE_PRISM_PARSER' ]
12
12
require 'rdoc/parser/prism_ruby'
13
13
RDoc ::Parser . const_set ( :Ruby , RDoc ::Parser ::PrismRuby )
14
+ puts "========================================================================="
15
+ puts "RDoc is using the experimental Prism parser to generate the documentation"
16
+ puts "========================================================================="
14
17
return
15
18
end
16
19
Original file line number Diff line number Diff line change @@ -230,9 +230,8 @@ RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentat
230
230
s . rdoc_options = [ "--main" , "README.rdoc" ]
231
231
s . extra_rdoc_files += s . files . grep ( %r[\A [^\/ ]+\. (?:rdoc|md)\z ] )
232
232
233
- s . required_ruby_version = Gem ::Requirement . new ( ">= 2.7 .0" )
233
+ s . required_ruby_version = Gem ::Requirement . new ( ">= 2.6 .0" )
234
234
s . required_rubygems_version = Gem ::Requirement . new ( ">= 2.2" )
235
235
236
- s . add_dependency 'prism' , '>= 0.30.0'
237
236
s . add_dependency 'psych' , '>= 4.0.0'
238
237
end
You can’t perform that action at this time.
0 commit comments