require 'nos_oignons/subscriptions'
-subscriptions = read_subscriptions
-subscriptions.each_pair do |subscription_id, data|
- puts data['email']
+NosOignons::Subscription.all.each do |subscription|
+ if subscription.up_to_date?
+ puts subscription.email
+ end
end