MaleChimp

The MailChimp API leaves a lot to be desired for modern application development. This gem provides very basic functionality to add users to a mail list:

joe = MaleChimp::Subscriber.new do |s|
  s.first_name = 'Joe'
  s.last_name = 'Plumber'
  s.email = '[email protected]'
  s.fields['last_logged_in_at'] = Time.now
  s.fields['occupation'] = "Plumber"
end

Chimp = MaleChimp.new(ENV['MAIL_CHIMP_API_KEY'])

Chimp.list('The Awesome List').subscribe(joe)

Consider this an ugly hack on top of an ugly RPC API, but we run integration tests on this nightly to make sure the API is in working order.