daddyz / phonelib

Ruby gem for phone validation and formatting using google libphonenumber library data
MIT License
1.04k stars 130 forks source link

Rspec deprecation warning #233

Closed gogvale closed 2 years ago

gogvale commented 3 years ago

On running rspec on of the tests throws this message:

/Users/mac/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/phonelib-0.6.50/lib/validators/phone_validator.rb:65: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /Users/mac/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/activemodel-6.1.3.1/lib/active_model/errors.rb:404: warning: The called method `add' is defined here

Any ideas how to fix it?