Ran
|
Files
308
|
Run time
19s
|
Badge
README BADGES
|
travis-ci
Support Ruby 2.7.0 Follow up of https://github.com/lsegal/yard/pull/1290#issuecomment-558204534. This is a workaround path for Ruby 2.7.0. `irb/slex` internal API has been removed in the following commits. https://github.com/ruby/ruby/commit/45bb6f28d This PR copies the above file to lib/yard/parser/ruby/legacy/irb/slex.rb. Hopefully this workaround patch will be dropped along with legacy Ruby code in the future. And E2MM (e2mmap gem) is no longer bundled gems. https://www.ruby-lang.org/en/news/2019/12/25/ruby-2-7-0-released/ ```console % cd path/to/repo/yard % ruby -v ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-darwin17] % bundle exec rake (snip) LoadError: cannot load such file -- e2mmap # ./lib/yard/parser/ruby/legacy/ruby_lex.rb:1:in `require' # ./lib/yard/parser/ruby/legacy/ruby_lex.rb:1:in `<top (required)>' ``` This dependency on `e2mmap` could be removed when `irb/slex` is removed in the future.
17521 of 18772 relevant lines covered (93.34%)
2900.4 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|---|---|---|---|---|---|---|
3.95 | spec/rubygems/doc_manager_spec.rb | 112 + 9 | 76 + 22 | 3 - 36 | 73 + 58 | 1.0 | |
5.45 | lib/yard/handlers/ruby/legacy/method_handler.rb | 90 + 29 | 55 + 21 | 3 - 31 | 52 + 52 | 1.0 | |
11.76 | lib/yard/handlers/ruby/legacy/attribute_handler.rb | 65 - 1 | 34 - 7 | 4 - 28 | 30 + 21 | 1.0 - 83 | |
16.67 | lib/yard/handlers/ruby/legacy/alias_handler.rb | 37 + 10 | 24 + 9 | 4 - 9 | 20 + 18 | 1.0 - 37 | |
17.65 | lib/yard/handlers/ruby/legacy/yield_handler.rb | 29 - 167 | 17 - 100 | 3 - 16 | 14 - 84 | 1.0 | |
23.53 | ...rd/handlers/ruby/legacy/class_condition_handler.rb | 83 + 69 | 34 + 27 | 8 + 1 | 26 + 26 | 1.0 | |
28.42 | lib/yard/rubygems/hook.rb | 197 + 192 | 95 + 91 | 27 + 23 | 68 + 68 | 1.0 | |
30.0 | lib/yard/handlers/ruby/legacy/mixin_handler.rb | 39 + 12 | 20 + 8 | 6 - 6 | 14 + 14 | 1.0 | |
30.3 | lib/yard/server/commands/display_object_command.rb | 65 + 54 | 33 + 26 | 10 + 4 | 23 + 22 | 1.0 | |
36.36 | ...rd/handlers/ruby/legacy/module_function_handler.rb | 19 - 20 | 11 - 10 | 4 + 1 | 7 - 11 | 1.0 |