Class: ContributingMd
- Inherits:
-
Object
- Object
- ContributingMd
- Defined in:
- lib/data/contributing_md.rb
Class Method Summary collapse
Class Method Details
.accepted_commits_section ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/data/contributing_md.rb', line 13 def accepted_commits_section accepted_commits_section = contributing_file.match(%r{<commits>(.*)</commits>}m) if accepted_commits_section accepted_commits_section[1].chomp.strip else raise 'information not found in CONTRIBUTING.md, ' \ 'please run check-ahead:generate_rules' end end |
.accepted_tags ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/data/contributing_md.rb', line 5 def @accepted_tags ||= accepted_commits_section .delete("\n*") .gsub("\<digits>", 'd+') .split .join('|') end |