require 'rubygems'
require 'bundler'
Bundler.setup
+
+require 'nos_oignons/subscriptions'
+
+subscriptions = read_subscriptions
+now = Time.now
+last_year = Time.new(now.year - 1, now.month, now.day).to_date
+subscriptions.sort.each do |subscription_id, data|
+ if data['membership_fee_paid_on'] && last_year < data['membership_fee_paid_on']
+ puts data['email']
+ end
+end