The project is a Ruby script which takes an input of a 10 digit phone number and converts into meaningful words by performing keypad's letter combinations against a dictionary file
- Assumptions
- Installation
- Execution
- Output Screens
- Number should be 10 digits
- Number should not contain 0 & 1 digits
- The matching word's length is atleast 3 characters
- This application is using a standard keypad
- Clone the repository
- Got to repository folder:
cd phone-number-to-words-converter
- Install ruby 2.3.1
- Using RVM:
rvm install 2.3.1
(Refer: https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-on-ubuntu-14-04-using-rvm) - Using Rbenv:
rbenv install 2.3.1
(Refer: https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-16-04)
- Using RVM:
- Install
bundler
gem usinggem install bundler
- Get all dependencies:
bundle install
- Run the program:
ruby lib/converter.rb
- Run the tests:
rspec spec --format documentation