twilio / twilio-ruby

A Ruby gem for communicating with the Twilio API and generating TwiML
MIT License
1.35k stars 462 forks source link

chore: support for rubocop linting on ruby-head #588

Closed Hunga1 closed 2 years ago

Hunga1 commented 2 years ago

Added support for linting all Rubocop supported versions of Ruby, including ruby-head, while maintaining library support for Ruby v2.4. Changes include:

This approach addresses an issue that surfaces when upgrading Rubocop to a later version (>= 1.22.3) that supports linting ruby-head (3.1.0) features. Rubocop dropped support for Ruby v2.4 after Rubocop v1.12. To address dependency incompatibility between Rubocop and Ruby preventing a build of the library using Ruby v2.4, the Rubocop dependency is removed and linting is solely executed in the GH Action workflow for compatible versions of Ruby in the test job matrix.

Checklist

If you have questions, please file a support ticket, or create a GitHub Issue in this repository.