7 BASE_SUBSCRIPTIONS = YAML.load(<<END_OF_YAML)
9 name: Matthieu Simon-Blavier
12 17, square Edouard VII
15 email: registry@domainnetwork.fr
16 membership_fee_paid_on: 2013-02-21
18 Il vient de `whois cogent.fr`.
25 email: sylvain.dufier@orange-ftgroup.com
26 membership_fee_paid_on: 2013-05-29
27 Il vient de `whois orange.fr`.
31 15, rue de la Nuee Bleue
33 email: domaines@sdv.fr
34 membership_fee_paid_on: 2010-01-21
35 Il vient de `whois numericable.fr`.
36 Et il n'est pas à jour de cotisation.
39 EXTRA_SUBSCRIPTION = YAML.load(<<END_OF_YAML)
42 SOCIETE FRANCAISE DU RADIOTELEPHONE - SFR
43 42, avenue de Friedland
45 email: domains@sfr.com
46 membership_fee_paid_on: 2013-04-04
48 Il vient de `whois sfr.fr`.
51 SUBSCRIPTION_FILE_TEMPLATE = <<'END_OF_TEMPLATE'
57 mumbership_fee_paid_on: <%= membership_fee_paid_on %>
63 def subscription_filename_for_id(id)
64 "Membres/%06d.mdwn" % id
67 def render_subscription_file(locals)
68 ERB.new(SUBSCRIPTION_FILE_TEMPLATE).result(OpenStruct.new(locals).instance_eval { binding })