# <%= gem_name.capitalize %> <%= gem_description %> ## Installation Add this line to your application's Gemfile: ```ruby gem '<%= gem_name %>' ``` And then execute: ```shell bundle ``` Or install it yourself as: ```shell gem install <%= gem_name %> ``` ## **Usage** To use <%= gem_name %>, simply call the **phonofy** method in your Rails model: ```ruby class User < ApplicationRecord phonofy end ``` This will add phone number validation and formatting to the **phone_number** attribute of the **Driver** model. You can also specify a custom attribute name for the phone number: ```ruby class Contact < ApplicationRecord phonofy :mobile_number end ``` This will add phone number validation and formatting to the **mobile_number** attribute of the **Contact** model. You can also pass additional options to <%= gem_name %> to customize its behavior: ```ruby class User < ApplicationRecord phonofy :phone, phonelib: { countries: [:us, :ca], types: [:mobile] } end ``` This will add phone number validation and formatting to the **phone** attribute of the **User** model, and restrict it to US and Canada mobile phone numbers. ## **Configuration** You can configure <%= gem_name %> by creating an initializer file in your Rails application and setting the default options: ```ruby # config/initializers/<%= gem_name %>.rb <%= gem_module %>.configure do |config| config.default_phonelib_options = { countries: [:us, :ca], types: [:mobile] } config.default_twilio_options = { lookup: { type: :carrier_type } } end ``` This will set the default options for <%= gem_name %> to validate only US and Canada mobile phone numbers using the Phonelib library, and perform a Twilio lookup to get carrier information for the phone number. ## **Contributing** Bug reports and pull requests are welcome on GitHub at <%= github_url %>. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org/) code of conduct. ## **License** The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT). ## **Credits** <%= gem_name %> was created by <%= author_name %> and is maintained by a community of contributors.