0.0
Low commit activity in last 3 years
No release in over a year
Reads a contacts.txt file
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.9, >= 1.9.6
 Project Readme

Introducing the contacts_txt gem

The contacts_txt gem can handle reading and writing contacts in a plain text format.

In the following example a contacts.txt file is create in the /tmp directory and the file is parsed by the gem which allows the contact records to be displayed or updated.

file: contacts.txt

contacts.txt
============

John Smith 
tel: 0131 334 1212
tags: gas parts 
notes: spoke to him regarding the availablity of part no. 341455. He said he would get back to me.

Tiffany Saunders
email: t.saunders@trouncerecruitment.net
tags: recruitment
note: She said she would call me if there were any new developments
require 'contacts_txt'

ct = ContactsTxt.new 'contacts.txt'

puts ct.to_s

Output:

contacts.txt
============

John Smith
tel: 0131 334 1212
tags: gas parts
notes: spoke to him regarding the availablity of part no. 341455. He said he would get back to me.

Tiffany Saunders
tags: recruitment
email: t.saunders@trouncerecruitment.net

Note: The ordering of fields may change from the original input because of the order in which they appear in the Dynarex schema.

Resources

contacts contacts_txt gem addressbook dynarex