Use pathname's `sub_ext` method to its full potential
Use pathname's `sub_ext` method to its full potential

bglusman/rubycritic,whitesmith/rubycritic,bglusman/rubycritic,fimmtiu/rubycritic,whitesmith/rubycritic,fimmtiu/rubycritic,bglusman/rubycritic,ancorgs/rubycritic,fimmtiu/rubycritic,ancorgs/rubycritic,whitesmith/rubycritic,ancorgs/rubycritic,whitesmith/rubycritic