Sha256: f27c74f6497aef297a3ba24c99eb0c9cc2347ab0a46cb0db7bd37cf710c572df
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
# TelFormatter [![Build Status](https://travis-ci.org/iTakeshi/tel_formatter.png?branch=master)](https://travis-ci.org/iTakeshi/tel_formatter) [![Coverage Status](https://coveralls.io/repos/iTakeshi/tel_formatter/badge.png)](https://coveralls.io/r/iTakeshi/tel_formatter) Format your telephone numbers. ## Notice I am not assuming this gem will be used outside Japan. ## Installation Add this line to your application's Gemfile: gem 'tel_formatter' And then execute: $ bundle Or install it yourself as: $ gem install tel_formatter ## Usage ```ruby Telformatter.format("0312345678") #=> "03-1234-5678" Telformatter.format("03.1235.5678") #=> "03-1234-5678" ``` ## Contributing 1. Fork it ( http://github.com/iTakeshi/tel_formatter/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Write spec and run tests (`bundle exec rspec`) 5. Push to the branch (`git push origin my-new-feature`) 6. Create new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tel_formatter-0.0.1 | README.md |