From: Lunar Date: Sat, 30 Nov 2013 17:29:01 +0000 (+0100) Subject: Ajout de la possibilité de créer des récus pour les cotisations X-Git-Url: https://nos-oignons.net/gitweb/gestion-adh.git/commitdiff_plain/1f64529f4e2b7029fb21541f84711409fd5fc7f9 Ajout de la possibilité de créer des récus pour les cotisations --- diff --git a/Gemfile.lock b/Gemfile.lock index 2728fde..869fed9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -3,41 +3,58 @@ PATH specs: nos_oignons (0.0.1.dev) mail + prawn safe_yaml GEM remote: https://rubygems.org/ specs: + Ascii85 (1.0.2) + afm (0.2.0) aruba (0.5.3) childprocess (>= 0.3.6) cucumber (>= 1.1.1) rspec-expectations (>= 2.7.0) - builder (3.2.1) + builder (3.2.2) childprocess (0.3.9) ffi (~> 1.0, >= 1.0.11) - cucumber (1.3.2) + cucumber (1.3.10) builder (>= 2.1.2) diff-lcs (>= 1.1.3) - gherkin (~> 2.12.0) - multi_json (~> 1.3) - diff-lcs (1.2.4) - ffi (1.8.1) - gherkin (2.12.0) + gherkin (~> 2.12) + multi_json (>= 1.7.5, < 2.0) + multi_test (>= 0.0.2) + diff-lcs (1.2.5) + ffi (1.9.3) + gherkin (2.12.2) multi_json (~> 1.3) + hashery (2.1.1) json (1.7.7) mail (2.5.4) mime-types (~> 1.16) treetop (~> 1.4.8) - mime-types (1.23) - multi_json (1.7.4) + mime-types (1.25.1) + multi_json (1.8.2) + multi_test (0.0.2) + pdf-reader (1.3.3) + Ascii85 (~> 1.0.0) + afm (~> 0.2.0) + hashery (~> 2.0) + ruby-rc4 + ttfunk polyglot (0.3.3) - rspec-expectations (2.13.0) + prawn (0.12.0) + pdf-reader (>= 0.9.0) + ttfunk (~> 1.0.2) + rspec-expectations (2.14.4) diff-lcs (>= 1.1.3, < 2.0) - safe_yaml (0.9.2) - timecop (0.6.1) - treetop (1.4.12) + ruby-rc4 (0.1.5) + safe_yaml (0.9.7) + timecop (0.7.0) + treetop (1.4.15) polyglot polyglot (>= 0.3.1) + ttfunk (1.0.3) PLATFORMS ruby diff --git a/README b/README index 29567a7..6d03e99 100644 --- a/README +++ b/README @@ -119,6 +119,23 @@ Ce script a vocation a être executé tous les mois afin que le comité puisse convoquer une assemblée générale extraordinaire, même en cas de défaillance du conseil d'administration. +`create-membership-fee-reciept` +------------------------------- + +Permet de créer un reçu de cotisation pour les membres en faisant +la demande. + +Exemple d'utilisation : + + bin/create-membership-fee-reciept 000042 10,00 + +Cela crééra un reçu pour le membre 000042 pour une cotisation d'un +montant de 10,00€. Le reçu est généré sous forme d'un fichier PDF dans +le répertoire spécifié par la variable d'environnement NOS_OIGNONS_RECIEPTS_DIR +(ou le répertoire `reciepts` dans le répertoire courant). + +Il faut créer le répertoire avant utilisation s'il n'existe pas déjà. + Développement ============= diff --git a/bin/create-membership-fee-reciept b/bin/create-membership-fee-reciept new file mode 100755 index 0000000..fae26aa --- /dev/null +++ b/bin/create-membership-fee-reciept @@ -0,0 +1,21 @@ +#!/usr/bin/ruby1.9.1 +#-*- coding: utf-8 -*- + +require 'rubygems' +require 'bundler' +Bundler.setup + +require 'nos_oignons' + +begin + member_id = ARGV[0] + amount = ARGV[1] + unless member_id && amount + $stderr.puts "Usage: #{$PROGRAM_NAME} 000042 10,00" + exit 1 + end + NosOignons.create_membership_fee_reciept!(member_id, amount) +rescue ArgumentError => ex + $stderr.puts "E: #{ex}" + exit 1 +end diff --git a/features/create-membership-fee-reciept.feature b/features/create-membership-fee-reciept.feature new file mode 100644 index 0000000..d21fb71 --- /dev/null +++ b/features/create-membership-fee-reciept.feature @@ -0,0 +1,29 @@ +# language: fr + +Fonctionnalité: générer des reçus pour les cotisations des membres + En tant que membre du C.A. de Nos oignons, j'aimerais pouvoir générer + un reçu de cotisation lorsqu'un·e adhérent·e me le demande. + + Scénario: Création du reçu + Soit une base avec Jane, membre 000001, ayant cotisé le 2013-06-03 + Lorsque j'exécute `create-membership-fee-reciept 000001 10,00` + Alors le fichier "reciept-000001-2013-06-03.pdf" doit avoir été créé avec les reçus + Et il doit contenir le nom et l'adresse de Jane, la date et le montant de la cotisation + + Scénario: Mauvais numéro de membre + Soit une base avec uniquement Jane, membre 000001 + Lorsque j'exécute `create-membership-fee-reciept 000002 10,00` + Alors je dois voir comme erreur "unknown member" + + Scénario: Aucune cotisation + Soit une base avec Jane, membre 000001, n'ayant jamais cotisé + Lorsque j'exécute `create-membership-fee-reciept 000001 10,00` + Alors je dois voir comme erreur "membership fee has not been paid for this year" + + Scénario: Manque le numéro de l'adhésion + Lorsque j'exécute `create-membership-fee-reciept` + Alors je dois voir comme erreur "Usage:" + + Scénario: Manque le montant de l'adhésion + Lorsque j'exécute `create-membership-fee-reciept 000001` + Alors je dois voir comme erreur "Usage:" diff --git a/features/step_definitions/commands.rb b/features/step_definitions/commands.rb index 1788c39..c9b6f8d 100644 --- a/features/step_definitions/commands.rb +++ b/features/step_definitions/commands.rb @@ -29,6 +29,10 @@ When /^j'exécute send\-member\-emails\-to\-advisors$/ do NosOignons.send_member_emails_to_advisors! end +When /^j'exécute `(create\-membership\-fee\-reciept.*)`$/ do |cmd| + run_simple cmd, false +end + Then /^je ne dois pas avoir eu d'erreur$/ do assert_exit_status(0) end diff --git a/features/step_definitions/members.rb b/features/step_definitions/members.rb index 0dc8d5f..5646009 100644 --- a/features/step_definitions/members.rb +++ b/features/step_definitions/members.rb @@ -39,6 +39,26 @@ Given /^une base avec (\w+) qui a adhéré le ([0-9-]+) et payé sa dernière co create_new_member(name, joined_on, paid_on) end +Given /^une base avec (\w+), membre (\w+), ayant cotisé le ([0-9-]+)$/ do |name, member_id, paid_on| + create_new_member(name, paid_on, paid_on) + expect(File.read(File.join(current_dir, member_filename_for_id(member_id)))).to include(name) +end + +Given /^une base avec (\w+), membre (\w+), n'ayant jamais cotisé$/ do |name, member_id| + joined_on = (Time.now - 3600*24*30).strftime('%Y-%m-%d') + create_new_member(name, joined_on, nil) + expect(File.read(File.join(current_dir, member_filename_for_id(member_id)))).to include(name) +end + +Given /^une base avec uniquement (\w+), membre (\w+)$/ do |name, member_id| + paid_on = (Time.now - 3600*24*30).strftime('%Y-%m-%d') + create_new_member(name, paid_on, paid_on) + member_path = File.join(current_dir, member_filename_for_id(member_id)) + expect(File.read(member_path)).to include(name) + expect(Dir.glob("#{@member_db_path}/[0-9]*")).to have(1).member +end + + Given /^(?:une base )?avec (\w+) qui doit renouveller sa cotisation d'ici (\d+) jours$/ do |name, days_before_anniversary| now = Time.now paid_on = Time.new(now.year - 1, now.month, now.day).to_date + days_before_anniversary.to_i diff --git a/features/step_definitions/reciepts.rb b/features/step_definitions/reciepts.rb new file mode 100644 index 0000000..a3cb48d --- /dev/null +++ b/features/step_definitions/reciepts.rb @@ -0,0 +1,19 @@ +#-*- coding: utf-8 -*- + +Then /^le fichier "(.*)" doit avoir été créé avec les reçus$/ do |filename| + @reciept_path = "#{ENV['NOS_OIGNONS_RECIEPTS_DIR']}/#{filename}" + expect(File.exists?(@reciept_path)).to be_true +end + +Then /^il doit contenir le nom et l'adresse de (\w+), la date et le montant de la cotisation$/ do |name| + # XXX: not nice to hard code that 10,00 + amount = "10,00" + # XXX: not nice to relay that it's the last member either + expect(@last_member['name']).to eql(name) + + content = `pdftotext #{@reciept_path} -`.gsub(/\n/, ' ') + expect(content).to include(@last_member['name']) + expect(content).to include(@last_member['address']) + expect(content).to include(DateTime.strptime(@last_member['membership_fee_paid_on'], "%Y-%m-%d").strftime("%d/%m/%Y")) + expect(content).to include(amount) +end diff --git a/features/support/env.rb b/features/support/env.rb index 07bb583..de7fbc5 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -21,8 +21,11 @@ Before do @aruba_timeout_seconds = 20 @orig_wiki_path = ENV['NOS_OIGNONS_BOARD_WIKI_PATH'] @orig_reminder_db_path = ENV['NOS_OIGNONS_REMINDER_DB'] + @orig_reciepts_dir = ENV['NOS_OIGNONS_RECIEPTS_DIR'] ENV['NOS_OIGNONS_REMINDER_DB'] = File.join(current_dir, 'reminders.yaml') NosOignons::ReminderDb.instance.reload! + ENV['NOS_OIGNONS_RECIEPTS_DIR'] = File.join(current_dir, 'reciepts') + FileUtils.mkdir(ENV['NOS_OIGNONS_RECIEPTS_DIR']) Mail.defaults do delivery_method :test end @@ -32,5 +35,6 @@ end After do ENV['NOS_OIGNONS_REMINDER_DB'] = @orig_reminder_db_path ENV['NOS_OIGNONS_BOARD_WIKI_PATH'] = @orig_wiki_path + ENV['NOS_OIGNONS_RECIEPTS_DIR'] = @orig_reciepts_dir FileUtils.remove_entry_secure @tmpdir end diff --git a/lib/nos_oignons.rb b/lib/nos_oignons.rb index 8368699..86be0fd 100644 --- a/lib/nos_oignons.rb +++ b/lib/nos_oignons.rb @@ -10,9 +10,27 @@ module NosOignons BOARD_EMAIL = 'ca@nos-oignons.net' ADVISORS_EMAIL = 'deontologie@nos-oignons.net' MEMBER_MAILING_LIST = 'ag' + CONTACT_INFO = <<-EOT.gsub(/^ /, '') + https://nos-oignons.net/ + contact@nos-oignons.net + Téléphone : +33 9 72 42 96 04 + Fax : +33 9 72 42 96 06 + EOT + POSTAL_ADDRESS = <<-EOT.gsub(/^ /, '') + Nos oignons + Centre UBIDOCA, 7585 + 105 route des Pommiers + 74370 Saint Martin Bellevue + France + EOT # The following class methods are all meant to be called as command-line scripts class << self + def create_membership_fee_reciept!(member_id, amount) + member = NosOignons::Member.new(member_id) + member.create_reciept!(amount) + end + def list_emails! NosOignons::Member.all.each do |member| if member.up_to_date? diff --git a/lib/nos_oignons/member.rb b/lib/nos_oignons/member.rb index 32d32f7..4073cc4 100644 --- a/lib/nos_oignons/member.rb +++ b/lib/nos_oignons/member.rb @@ -59,7 +59,11 @@ module NosOignons end @member_id = member_id unless page_content - page_content = File.open(Member.filename_for_id(member_id)).read + begin + page_content = File.open(Member.filename_for_id(member_id)).read + rescue Errno::ENOENT + raise ArgumentError.new('unknown member') + end end unless page_content.start_with?("---\n") raise ArgumentError.new('content is not a proper YAML document') @@ -99,5 +103,12 @@ module NosOignons def reminded_on ReminderDb.instance.last_reminder(self) end + + def create_reciept!(amount) + require 'nos_oignons/reciept' + + reciept = Reciept.new(self, amount) + reciept.create! + end end end diff --git a/lib/nos_oignons/reciept.rb b/lib/nos_oignons/reciept.rb new file mode 100644 index 0000000..24948b5 --- /dev/null +++ b/lib/nos_oignons/reciept.rb @@ -0,0 +1,109 @@ +#-*- coding: utf-8 -*- + +require 'prawn' +require 'prawn/measurement_extensions' + +module NosOignons + class Reciept + attr_reader :member, :amount + + def initialize(member, amount) + @member = member + unless member.up_to_date? + raise ArgumentError.new("membership fee has not been paid for this year") + end + @amount = amount + @now = Time.now + end + + def filename + dir = ENV['NOS_OIGNONS_RECIEPTS_DIR'] || 'reciepts' + "#{dir}/reciept-#{@member.member_id}-#{@member.membership_fee_paid_on.strftime("%Y-%m-%d")}.pdf" + end + + WINDOW_LEFT = 110.mm + WINDOW_TOP = 50.mm + WINDOW_RIGHT = 25.mm + WINDOW_BOTTOM = 80.mm + WINDOW_WIDTH = 85.mm + BODY_LEFT = 25.mm + BODY_WIDTH = 210.mm - (BODY_LEFT * 2) + FOOTER_HEIGHT = 25.mm + DARK_LOGO_COLOR = '57075f' + FONT_PATH = File.expand_path("../../../share/fonts/OpenSans/OpenSans.ttf", __FILE__) + LOGO_PATH = File.expand_path("../../../share/images/nos-oignons.png", __FILE__) + + def generate_header(pdf) + header_height = pdf.bounds.height / 6 + pdf.bounding_box([0, pdf.cursor], :width => pdf.bounds.width, :height => header_height) do + logo_width = 2 * pdf.bounds.width / 3 + pdf.bounding_box([0, pdf.bounds.top], :width => logo_width, :height => pdf.bounds.height) do + pdf.image LOGO_PATH, :width => pdf.bounds.width, :align => :center, :vposition => :center + end + pdf.bounding_box([logo_width, pdf.bounds.top], :width => pdf.bounds.width / 3, :height => pdf.bounds.height) do + pdf.text 'Nœuds de sortie Tor financés par la communauté', :align => :center, :valign => :center + end + end + pdf.bounding_box([WINDOW_LEFT - pdf.bounds.absolute_left, pdf.bounds.absolute_top - WINDOW_TOP], :width => WINDOW_WIDTH, :height => WINDOW_BOTTOM - WINDOW_TOP) do + pdf.text member.name + "\n" + member.address, :valign => :bottom + end + end + + def generate_body(pdf) + body_height = pdf.cursor - (pdf.bounds.height / 6) + pdf.move_down 30 + pdf.bounding_box([BODY_LEFT, pdf.cursor], :width => BODY_WIDTH, :height => body_height) do + pdf.font_size(16) do + pdf.pad(25) do + pdf.text "Objet : reçu de cotisation" + end + margin = pdf.bounds.width / 6 + pdf.pad_bottom(30) do + pdf.bounding_box([WINDOW_LEFT - pdf.bounds.absolute_left, pdf.cursor], :width => WINDOW_WIDTH) do + pdf.text "Le #{@now.strftime("%d/%m/%Y")}" + end + end + pdf.text <<-EOT.gsub(/^ /, '').gsub(/\n/, ' ') + Nous avons bien enregistré la cotisation annuelle de #{member.name} + à l'association Nos oignons reçue à la date du + #{member.membership_fee_paid_on.strftime("%d/%m/%Y")} pour un montant + de #{amount}€. + EOT + pdf.pad_top(30) do + pdf.bounding_box([margin, pdf.cursor], :width => 5 * margin) do + pdf.text "Le Conseil d'Administration" + end + end + end + end + end + + def generate_footer(pdf) + pdf.bounding_box([0, FOOTER_HEIGHT + pdf.bounds.bottom], :width => pdf.bounds.width, :height => FOOTER_HEIGHT) do + pdf.pad_bottom(5) do + pdf.stroke_color DARK_LOGO_COLOR + pdf.dash 5 + pdf.stroke_horizontal_rule + end + pdf.font_size(10) do + pdf.column_box([0, pdf.cursor], :width => pdf.bounds.width, :columns => 2) do + pdf.text NosOignons::CONTACT_INFO, :align => :center, :valign => :center + pdf.bounds.move_past_bottom + pdf.text NosOignons::POSTAL_ADDRESS, :align => :center, :valign => :center + end + end + end + end + + def create! + raise "File exists!" if File.exists?(filename) + Prawn::Document.generate(filename) do |pdf| + pdf.font(FONT_PATH) do + generate_header(pdf) + generate_body(pdf) + generate_footer(pdf) + end + end + end + end +end diff --git a/nos_oignons.gemspec b/nos_oignons.gemspec index 585de0c..02c5872 100644 --- a/nos_oignons.gemspec +++ b/nos_oignons.gemspec @@ -11,4 +11,5 @@ Gem::Specification.new do |s| s.add_development_dependency 'timecop' s.add_runtime_dependency 'safe_yaml' s.add_runtime_dependency 'mail' + s.add_runtime_dependency 'prawn' end diff --git a/share/fonts/OpenSans/Apache-2.0 b/share/fonts/OpenSans/Apache-2.0 new file mode 100644 index 0000000..d645695 --- /dev/null +++ b/share/fonts/OpenSans/Apache-2.0 @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/share/fonts/OpenSans/OpenSans-Bold.ttf b/share/fonts/OpenSans/OpenSans-Bold.ttf new file mode 100644 index 0000000..36f0dcc Binary files /dev/null and b/share/fonts/OpenSans/OpenSans-Bold.ttf differ diff --git a/share/fonts/OpenSans/OpenSans-BoldItalic.ttf b/share/fonts/OpenSans/OpenSans-BoldItalic.ttf new file mode 100644 index 0000000..6562c7c Binary files /dev/null and b/share/fonts/OpenSans/OpenSans-BoldItalic.ttf differ diff --git a/share/fonts/OpenSans/OpenSans-Italic.ttf b/share/fonts/OpenSans/OpenSans-Italic.ttf new file mode 100644 index 0000000..bc9e35c Binary files /dev/null and b/share/fonts/OpenSans/OpenSans-Italic.ttf differ diff --git a/share/fonts/OpenSans/OpenSans.ttf b/share/fonts/OpenSans/OpenSans.ttf new file mode 100644 index 0000000..6220a00 Binary files /dev/null and b/share/fonts/OpenSans/OpenSans.ttf differ diff --git a/share/images/nos-oignons.png b/share/images/nos-oignons.png new file mode 100644 index 0000000..a0543e1 Binary files /dev/null and b/share/images/nos-oignons.png differ