Project

ampersat

0.0
No commit activity in last 3 years
No release in over 3 years
Calculates which email domains your subscribers use
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 3.10

Runtime

 Project Readme

Calculate Most Common Domains From Email List

Build Status Code Climate

It's worth checking what email clients your subscribers are using so that you can make sure your emails look good when they view them.

This gem looks at your subscribers CSV and lists the domains in order of popularity*.

  • This obviously doesn't take desktop mail clients in to account, but it should give you an idea of what people are using.

How to Use

Install

gem install ampersat

As CLI

$ ampersat domains --file=~/test.csv
example.com: 2
example.org: 1
example.net: 1

In irb

$ irb
> require 'ampersat'
    => true
> Ampersat.domains('/path/to/csv')
=> [['example.com', 2], ['example.org', 1], ['example.net', 1]]

In Your App

domains = Ampersat.domains('/Users/gareth/test.csv')

domains.each do |domain, count|
  puts "#{domain}: #{count}"
end

# example.com: 2
# example.org: 1
# example.net: 1