latex_curriculum_vitae 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +10 -8
  3. data/Gemfile.lock +53 -52
  4. data/History.rdoc +15 -0
  5. data/LICENSE.rdoc +619 -24
  6. data/Manifest.txt +7 -12
  7. data/NEWS +69 -0
  8. data/README.rdoc +103 -43
  9. data/Rakefile +31 -42
  10. data/STATUS.rdoc +23 -0
  11. data/bin/latexcv.rb +13 -8
  12. data/data/latex_curriculum_vitae/Cover/Cover.tex +12 -4
  13. data/data/latex_curriculum_vitae/Motivational_Letter/bwanschreiben.tex +23 -6
  14. data/data/latex_curriculum_vitae/Pictures/codealike.png +0 -0
  15. data/data/latex_curriculum_vitae/Pictures/codestats.png +0 -0
  16. data/data/latex_curriculum_vitae/Pictures/openhub.png +0 -0
  17. data/data/latex_curriculum_vitae/Pictures/signatur1.png +0 -0
  18. data/data/latex_curriculum_vitae/Pictures/wakatime.jpg +0 -0
  19. data/data/latex_curriculum_vitae/Resume/cv_10.tex +28 -10
  20. data/etc/latex_curriculum_vitae.cfg +2 -1
  21. data/etc/personal_data.tex +2 -1
  22. data/lib/latex_curriculum_vitae.rb +60 -51
  23. data/lib/latex_curriculum_vitae/cover.rb +17 -9
  24. data/lib/latex_curriculum_vitae/cv.rb +41 -27
  25. data/lib/latex_curriculum_vitae/email.rb +168 -94
  26. data/lib/latex_curriculum_vitae/entityfile.rb +99 -68
  27. data/lib/latex_curriculum_vitae/get-config.rb +28 -18
  28. data/lib/latex_curriculum_vitae/letter.rb +19 -12
  29. data/lib/latex_curriculum_vitae/notifier.rb +20 -13
  30. data/lib/latex_curriculum_vitae/outfile.rb +30 -19
  31. metadata +89 -56
  32. data/.autotest +0 -25
  33. data/.codeclimate.yml +0 -8
  34. data/.coveralls.yml +0 -2
  35. data/.gemnasium.yml +0 -5
  36. data/.rspec +0 -2
  37. data/.rubocop.yml +0 -38
  38. data/.scrutinizer.yml +0 -21
  39. data/.travis.yml +0 -29
  40. data/CODE_OF_CONDUCT.md +0 -17
  41. data/CONTRIBUTING.md +0 -25
  42. data/config.reek +0 -111
  43. data/data/latex_curriculum_vitae/Appendix/Employers_Reference/wtg.pdf +0 -0
data/bin/latexcv.rb CHANGED
@@ -1,14 +1,19 @@
1
1
  #!/usr/bin/env ruby
2
- # @author Sascha Manns
3
- # @abstract Binary for latex_curriculum_vitae
4
- #
5
2
  # Copyright (C) 2015-2017 Sascha Manns <Sascha.Manns@mailbox.org>
6
- # License: MIT
3
+ #
4
+ # This program is free software: you can redistribute it and/or modify
5
+ # it under the terms of the GNU General Public License as published by
6
+ # the Free Software Foundation, either version 3 of the License, or
7
+ # (at your option) any later version.
8
+ #
9
+ # This program is distributed in the hope that it will be useful,
10
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ # GNU General Public License for more details.
13
+ #
14
+ # You should have received a copy of the GNU General Public License
15
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
7
16
 
8
17
  # Dependencies
9
18
  require 'rubygems'
10
19
  require 'latex_curriculum_vitae'
11
- # require File.expand_path(File.join(File.dirname(__FILE__), '../lib/latex_curriculum_vitae'))
12
- #require 'setup/command'
13
-
14
- #IRB.start
@@ -1,8 +1,16 @@
1
- % @author Sascha Manns
2
- % @abstract Cover for latex_curriculum_vitae
3
- %
4
1
  % Copyright (C) 2015-2017 Sascha Manns <Sascha.Manns@mailbox.org>
5
- % License: MIT
2
+ % This program is free software: you can redistribute it and/or modify
3
+ % it under the terms of the GNU General Public License as published by
4
+ % the Free Software Foundation, either version 3 of the License, or
5
+ % (at your option) any later version.
6
+ %
7
+ % This program is distributed in the hope that it will be useful,
8
+ % but WITHOUT ANY WARRANTY; without even the implied warranty of
9
+ % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
+ % GNU General Public License for more details.
11
+ %
12
+ % You should have received a copy of the GNU General Public License
13
+ % along with this program. If not, see <http://www.gnu.org/licenses/>.
6
14
 
7
15
  \documentclass[a4paper,11pt]{scrartcl}
8
16
  %
@@ -1,8 +1,16 @@
1
- % @author Sascha Manns
2
- % @abstract Motivational Letter for latex_curriculum_vitae
1
+ % Copyright (C) 2015-2017 Sascha Manns <Sascha.Manns@mailbox.org>
2
+ % This program is free software: you can redistribute it and/or modify
3
+ % it under the terms of the GNU General Public License as published by
4
+ % the Free Software Foundation, either version 3 of the License, or
5
+ % (at your option) any later version.
3
6
  %
4
- % Copyright (C) 2015-2016 Sascha Manns <Sascha.Manns@mailbox.org>
5
- % License: MIT
7
+ % This program is distributed in the hope that it will be useful,
8
+ % but WITHOUT ANY WARRANTY; without even the implied warranty of
9
+ % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
+ % GNU General Public License for more details.
11
+ %
12
+ % You should have received a copy of the GNU General Public License
13
+ % along with this program. If not, see <http://www.gnu.org/licenses/>.
6
14
  %---------------------------------------------------------------------------
7
15
  \documentclass%%
8
16
  %---------------------------------------------------------------------------
@@ -108,7 +116,7 @@
108
116
  \setkomavar{backaddressseparator}{ - }
109
117
  \setkomavar{signature}{\\[-5\baselineskip]%
110
118
  %\rule{10em}{2\baselineskip}\\
111
- \includegraphics[scale=0.5]{../Pictures/signatur.png}\\
119
+ \includegraphics[scale=0.5]{../Pictures/signatur1.png}\\
112
120
  SASCHA MANNS}
113
121
  %\setkomavar{backaddress}{Tim Metzner, Felderhof 112, 40880 Ratingen} % wenn erwünscht kann hier eine andere Backaddress eingetragen werden
114
122
  %\setkomavar{signature}{SASCHA MANNS}
@@ -148,6 +156,9 @@ SASCHA MANNS}
148
156
  }%
149
157
  %---------------------------------------------------------------------------
150
158
  % Bankverbindung
159
+ %\setkomavar{frombank}{Kto. 198\ 242\ 620\\
160
+ %BLZ 576\,500\,10\\
161
+ %Kreissparkasse Mayen}
151
162
  \setkomavar{frombank}{\mybank}
152
163
  %---------------------------------------------------------------------------
153
164
  %\setkomavar{yourref}{}
@@ -159,19 +170,25 @@ SASCHA MANNS}
159
170
  % Datum und Ort werden hier eingetragen
160
171
  \setkomavar{date}{den \today}
161
172
  \setkomavar{place}{Mayen}
173
+ %---------------------------------------------------------------------------
174
+
175
+
162
176
  %---------------------------------------------------------------------------
163
177
  % Hier beginnt der Brief, mit der Anschrift des Empfängers
178
+
164
179
  \begin{letter}{\addressstring}
180
+
165
181
  %---------------------------------------------------------------------------
166
182
  % Der Betreff des Briefes
167
183
  \setkomavar{subject}{\subject}
168
184
  %---------------------------------------------------------------------------
185
+ %\opening{Sehr geehrter \Ansprechpartner,}
169
186
  \opening{\introduction}
170
187
  \intro{}
171
188
  Zuletzt war ich bei der XCOM AG in Andernach als Autor für Geschäftsprozess- und Anwendungsdokumentation tätig. Hier zählten sämtliche Arbeiten rund um die Dokumentaton zu meinem Aufgabengebiet.\\\\
172
189
  Besonders reizt mich die Aussicht auf fachliche und persönliche Entwicklungsmöglichkeiten in ihrem Unternehmen. Aufgrund Ihrer Ausrichtung und Ihres guten Rufes in der Branche bin ich sehr an einer Beschätigung in Ihren Hause interessiert. Der Eindruck, den ich in den Medien von Ihrem Unternehmen gewonnen habe, lässt mich glauben, dass ich gut ins Team passe.\\\\
173
190
  \targetblock{}
174
- Meine Erfahrungen und Fähigkeiten würde ich gerne bei Ihnen einsetzen. Besonders hervorheben möchte ich hierbei meine zuverlässig, verantwortungsbewusst und präzise Arbeitsweise. Frühere Kollegen und Vorgesetzte haben an mir geschätzt, dass ich als Mitarbeiter flexibel, motiviert und teamorientiert bin. Darüber hinaus zeichne ich mich durch ausgeprägte Kommunikationsstärke, hohe Lernbereitschaft und viel Kreativität aus.\\\\
191
+ Meine Erfahrungen und Fähigkeiten würde ich gerne bei Ihnen einsetzen. Besonders hervorheben möchte ich hierbei meine zuverlässige, verantwortungsbewusste und präzise Arbeitsweise. Frühere Kollegen und Vorgesetzte haben an mir geschätzt, dass ich als Mitarbeiter flexibel, motiviert und teamorientiert bin. Darüber hinaus zeichne ich mich durch ausgeprägte Kommunikationsstärke, hohe Lernbereitschaft und viel Kreativität aus.\\\\
175
192
  Ich danke Ihnen für das Interesse an meiner Bewerbung. Zum nächstmöglichen Zeitpunkt bin ich verfügbar. Wenn Sie mehr von mir erfahren möchten, freue ich mich über eine Einladung zum Vorstellungsgespräch.
176
193
 
177
194
  \closing{Mit freundlichen Grüßen}
@@ -54,7 +54,7 @@ Germany
54
54
  +49 (2651) 40 14 045
55
55
  ~
56
56
  \href{mailto:Sascha.Manns@mailbox.org}{Sascha.Manns@mailbox.org}\includegraphics[width=0.3cm]{../Pictures/email.png}
57
- \href{http://saigkill.github.io}{saigkill.github.io}\includegraphics[width=0.3cm]{../Pictures/aboutme.png}
57
+ \href{http://saigkill.tuxfamily.org}{saigkill.tuxfamily.org}\includegraphics[width=0.3cm]{../Pictures/aboutme.png}
58
58
  Geburtsdatum: 01.10.1979
59
59
  \section{Social Media}
60
60
  \href{https://www.xing.com/profile/Sascha\_Manns2}{Sascha\_Manns2}\includegraphics[width=0.3cm]{../Pictures/xing.png}
@@ -62,6 +62,10 @@ Geburtsdatum: 01.10.1979
62
62
  \href{https://www.facebook.com/sascha.manns}{sascha.manns}\includegraphics[width=0.3cm]{../Pictures/facebook.png}
63
63
  \href{https://plus.google.com/+SaschaManns}{+SaschaManns}\includegraphics[width=0.3cm]{../Pictures/google-plus.png}
64
64
  \href{https://twitter.com/saigkill}{saigkill}\includegraphics[width=0.3cm]{../Pictures/twitter.png}
65
+ \href{https://wakatime.com/@saigkill}{saigkill}\includegraphics[width=0.3cm]{../Pictures/wakatime.jpg}
66
+ \href{https://codealike.com/facts/5028961540}{saigkill}\includegraphics[width=0.3cm]{../Pictures/codealike.png}
67
+ \href{https://openhub.net/accounts/saigkill}{saigkill}\includegraphics[width=0.3cm]{../Pictures/openhub.png}
68
+ \href{https://codestats.net/users/saigkill}{saigkill}\includegraphics[width=0.3cm]{../Pictures/codestats.png}
65
69
  %\href{https://coderbits.com/saigkill}{saigkill}\includegraphics[width=0.3cm]{../Pictures/coderbits.png}
66
70
  \section{Fremdsprachen}
67
71
  Deutsch \progressbar[linecolor=blue,tickscolor=orange,emptycolor=white,filledcolor=blue]{1.0}
@@ -72,6 +76,9 @@ Russisch \progressbar[linecolor=blue,tickscolor=orange,emptycolor=white,filledco
72
76
  {JavaScript}\progressbar[linecolor=blue,tickscolor=orange,emptycolor=white,filledcolor=green]{0.3}
73
77
  {CSS \& HTML5}\progressbar[linecolor=blue,tickscolor=orange,emptycolor=white,filledcolor=green]{0.6}
74
78
  {Ruby}\progressbar[linecolor=blue,tickscolor=orange,emptycolor=white,filledcolor=green]{0.7}
79
+ {C\#/Mono}\progressbar[linecolor=blue,tickscolor=orange,emptycolor=white,filledcolor=green]{0.3}
80
+ {Vala}\progressbar[linecolor=blue,tickscolor=orange,emptycolor=white,filledcolor=green]{0.3}
81
+ {Python}\progressbar[linecolor=blue,tickscolor=orange,emptycolor=white,filledcolor=green]{0.3}
75
82
  \end{aside}
76
83
 
77
84
  %----------------------------------------------------------------------------------------
@@ -83,9 +90,14 @@ Russisch \progressbar[linecolor=blue,tickscolor=orange,emptycolor=white,filledco
83
90
  \begin{entrylist}
84
91
  %------------------------------------------------
85
92
  \entry{09/2015--jetzt}
86
- {Myself}
93
+ {Debian/Ubuntu Project}
87
94
  {Homeoffice}
88
- {\emph{Aktive Bewerbungsphase}
95
+ {\emph{Developer}
96
+ Detailierte Aufgaben:
97
+ \begin{itemize}
98
+ \item Maintainer einiger Softwarepakete
99
+ \item Maintainer von ignore-me und gnome-publisher
100
+ \end{itemize}
89
101
  }
90
102
  %------------------------------------------------
91
103
  \entry{09/2014--09/2015}
@@ -222,6 +234,12 @@ Allgemeine kaufm. Tätigkeiten.
222
234
  \begin{entrylist}
223
235
  %------------------------------------------------
224
236
  \entry
237
+ {1/2014 -- 12/2014}
238
+ {Autodidaktische Studien: VWL, BWL, Organisationslehre, Projektmanagement}
239
+ {ILS, Hamburg}
240
+ {Web}
241
+ %------------------------------------------------
242
+ \entry
225
243
  {06/2015}
226
244
  {SCRUM Master Kurs}
227
245
  {XCOM AG, Inhouse Schulung}
@@ -274,14 +292,14 @@ Allgemeine kaufm. Tätigkeiten.
274
292
 
275
293
  \section{IT-Kenntnisse}
276
294
 
277
- \includegraphics[width=13cm]{../Pictures/Skills1.png} \linebreak
278
- \includegraphics[width=13cm]{../Pictures/Skills2.png}
295
+ %\includegraphics[width=13cm]{../Pictures/Skills1.png} \linebreak
296
+ %\includegraphics[width=13cm]{../Pictures/Skills2.png}
279
297
 
280
298
  \begin{itemize}
281
299
  \item Operating Systems:
282
300
  \begin{itemize}
283
301
  \item Linux/Unix \hfill \progressbar[linecolor=blue,tickscolor=orange,emptycolor=white,filledcolor=red ]{0.8} \hfill
284
- \item Windows 3.11--8.1 \hfill \progressbar[linecolor=blue,tickscolor=orange,emptycolor=white,filledcolor=red ]{0.7} \hfill
302
+ \item Windows 3.11--10 \hfill \progressbar[linecolor=blue,tickscolor=orange,emptycolor=white,filledcolor=red ]{0.7} \hfill
285
303
  \end{itemize}
286
304
  \item ERM/CRM:
287
305
  \begin{itemize}
@@ -293,8 +311,8 @@ Allgemeine kaufm. Tätigkeiten.
293
311
  \begin{itemize}
294
312
  \item RPM-Pakete \hfill \progressbar[linecolor=blue,tickscolor=orange,emptycolor=white,filledcolor=red ]{0.6} \hfill
295
313
  \item DEB-Pakete \hfill \progressbar[linecolor=blue,tickscolor=orange,emptycolor=white,filledcolor=red ]{0.8} \hfill
296
- \item Compiling/Testing/Publishing \hfill \progressbar[linecolor=blue,tickscolor=orange,emptycolor=white,filledcolor=red ]{0.8} \hfill
297
- \item Git/SVN \hfill \progressbar[linecolor=blue,tickscolor=orange,emptycolor=white,filledcolor=red ]{0.8} \hfill
314
+ \item Compiling/Testing/Deployment \hfill \progressbar[linecolor=blue,tickscolor=orange,emptycolor=white,filledcolor=red ]{0.8} \hfill
315
+ \item Git/SVN/Bzr \hfill \progressbar[linecolor=blue,tickscolor=orange,emptycolor=white,filledcolor=red ]{0.8} \hfill
298
316
  \item OTRS \hfill \progressbar[linecolor=blue,tickscolor=orange,emptycolor=white,filledcolor=red ]{0.8} \hfill
299
317
  \end{itemize}
300
318
  \item Textsatz:
@@ -313,7 +331,7 @@ Allgemeine kaufm. Tätigkeiten.
313
331
  \item Multimedia:
314
332
  \begin{itemize}
315
333
  \item Pod- \& Screencastproduktion \hfill \progressbar[linecolor=blue,tickscolor=orange,emptycolor=white,filledcolor=red ]{0.8} \hfill
316
- \item Videoschnitt \hfill \progressbar[linecolor=blue,tickscolor=orange,emptycolor=white,filledcolor=red ]{0.6} \hfill
334
+ \item Videoschnitt \hfill \progressbar[linecolor=blue,tickscolor=orange,emptycolor=white,filledcolor=red ]{0.5} \hfill
317
335
  \end{itemize}
318
336
  \item Office:
319
337
  \begin{itemize}
@@ -410,7 +428,7 @@ Allgemeine kaufm. Tätigkeiten.
410
428
  %----------------------------------------------------------------------------------------
411
429
 
412
430
  \begin{center}
413
- \includegraphics[scale=0.7]{../Pictures/signatur.png} \\
431
+ \includegraphics[scale=0.7]{../Pictures/signatur1.png} \\
414
432
  \begin{tabular}{@{}l@{}}
415
433
  \\ $\frac{}{\strut\textnormal{Sascha Manns, Mayen den \today}}$
416
434
  \end{tabular}
@@ -1,8 +1,9 @@
1
- # Name your resulting pdf set
1
+ # Read the documentation at: https://saigkill.github.io/latex_curriculum_vitae/about/
2
2
  name_of_pdf = "Bewerbungsunterlagen_Manns"
3
3
  name_of_cover = "Cover"
4
4
  name_of_resume = "cv_10"
5
5
  name_of_letter = "bwanschreiben"
6
+ mail_backend = "Pony" # Pony or Evolution
6
7
  own_name = "Sascha Manns"
7
8
  own_email_address = "Sascha.Manns@directbox.com"
8
9
  own_smtp = "smtp.my.com"
@@ -1,10 +1,11 @@
1
+ % Read the documentation at: https://saigkill.github.io/latex_curriculum_vitae/about/
1
2
  \def\firstname{Sascha}
2
3
  \def\familyname{Manns}
3
4
  \def\mystreet{Maifeldstraße 10}
4
5
  \def\mycity{56727 Mayen}
5
6
  \def\myphone{+49-1573-924~27~30}
6
7
  \def\myemail{Sascha.Manns@mailbox.org}
7
- \def\myblog{http://saigkill.github.io}
8
+ \def\myblog{http://saigkill.tuxfamily.org}
8
9
  \def\mybank{Kto. DE88\ 5765\ 0010\ 0198\ 2426\ 20 \\
9
10
  BIC: MALADE51MYN \\
10
11
  Kreissparkasse Mayen}
@@ -1,103 +1,112 @@
1
- #!/usr/bin/env ruby
2
- # encoding: utf-8
3
- # @author Sascha Manns
4
- # @abstract Main Module for latex_curriculum_vitae
5
- #
6
1
  # Copyright (C) 2015-2017 Sascha Manns <Sascha.Manns@mailbox.org>
7
- # License: MIT
8
-
9
- # rubocop:disable Metrics/LineLength
2
+ #
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
10
15
 
11
16
  # Dependencies
12
17
  require 'fileutils'
13
18
  require 'xdg'
14
19
  require 'tmpdir'
15
20
 
16
- require File.expand_path(File.join(File.dirname(__FILE__), 'latex_curriculum_vitae/entityfile'))
17
- require File.expand_path(File.join(File.dirname(__FILE__), 'latex_curriculum_vitae/cv'))
18
- require File.expand_path(File.join(File.dirname(__FILE__), 'latex_curriculum_vitae/cover'))
19
- require File.expand_path(File.join(File.dirname(__FILE__), 'latex_curriculum_vitae/email'))
20
- require File.expand_path(File.join(File.dirname(__FILE__), 'latex_curriculum_vitae/outfile'))
21
- require File.expand_path(File.join(File.dirname(__FILE__), 'latex_curriculum_vitae/notifier'))
22
- require File.expand_path(File.join(File.dirname(__FILE__), 'latex_curriculum_vitae/letter'))
23
- require File.expand_path(File.join(File.dirname(__FILE__), 'latex_curriculum_vitae/get-config'))
21
+ require_relative 'latex_curriculum_vitae/entityfile'
22
+ require_relative 'latex_curriculum_vitae/cv'
23
+ require_relative 'latex_curriculum_vitae/cover'
24
+ require_relative 'latex_curriculum_vitae/email'
25
+ require_relative 'latex_curriculum_vitae/outfile'
26
+ require_relative 'latex_curriculum_vitae/notifier'
27
+ require_relative 'latex_curriculum_vitae/letter'
28
+ require_relative 'latex_curriculum_vitae/get-config'
24
29
 
25
30
  # Main Class LatexCurriculumVitae
26
31
  module LatexCurriculumVitae
27
32
  # The version information
28
- VERSION = '2.0.0'
33
+ VERSION = '2.1.0'.freeze
29
34
 
30
35
  # Variables
31
- sysxdg = XDG['CONFIG_HOME']
32
- dataxdg = XDG['DATA_HOME']
33
- sysconfdir = "#{sysxdg}/latex_curriculum_vitae"
34
- datadir = "#{dataxdg}/latex_curriculum_vitae"
35
- entitytex = "#{sysconfdir}/entity.tex"
36
- csvout = "#{sysconfdir}/job-applications.csv"
37
- tempdir = '/tmp/latex_curriculum_vitae'
38
- tmpdir = "#{tempdir}/build"
39
-
40
- name_of_pdf, name_of_cover, name_of_resume, name_of_letter, pdf_reader, shorten_url, bitly_user, bitly_apikey =
41
- LatexCurriculumVitae::GetConfig.get(sysconfdir)
36
+ sys_xdg = XDG['CONFIG_HOME']
37
+ data_xdg = XDG['DATA_HOME']
38
+ sysconf_dir = "#{sys_xdg}/latex_curriculum_vitae"
39
+ data_dir = "#{data_xdg}/latex_curriculum_vitae"
40
+ entity_tex = "#{sysconf_dir}/entity.tex"
41
+ csv_out = "#{sysconf_dir}/job-applications.csv"
42
+ temp_dir = '/tmp/latex_curriculum_vitae'
43
+ tmp_dir = "#{temp_dir}/build"
44
+
45
+ name_of_pdf, name_of_cover, name_of_resume, name_of_letter, pdf_reader, shorten_url, bit_ly_user, bit_ly_apikey,
46
+ mail_backend = LatexCurriculumVitae::GetConfig.get(sysconf_dir)
42
47
 
43
48
  # Get the needed Information for creating the application
44
- contact, emailaddress, jobtitle, contact_sex, company, letter, proactive, job_url =
45
- LatexCurriculumVitae::Entityfile.get_information(entitytex)
49
+ contact, email_address, job_title, contact_sex, company, letter,
50
+ proactive, job_url, target = LatexCurriculumVitae::Entityfile.get_information(entity_tex)
46
51
 
47
52
  # Shorten shorten_url
53
+ # TODO: Try to fix this in future
54
+ # rubocop:disable Style/IfInsideElse
48
55
  if proactive == 'yes'
49
- joburl = 'No URL available (Proactive)'
56
+ job_url_checked = 'No URL available (Proactive)'
50
57
  else
51
58
  if shorten_url == 'yes'
52
- if shorten_url != ''
53
- joburl = LatexCurriculumVitae::Entityfile.shorten_url(job_url, bitly_user, bitly_apikey)
59
+ if job_url != ''
60
+ job_url_checked = LatexCurriculumVitae::Entityfile.shorten_url(job_url, bit_ly_user,
61
+ bit_ly_apikey)
54
62
  else
55
63
  puts 'No url given'
56
64
  end
57
65
  else
58
- joburl = job_url
66
+ job_url_checked = job_url
59
67
  end
60
68
  end
61
69
 
62
70
  # Remove old tempdir and copy data to tempdir
63
- FileUtils.rm_rf(tempdir) if File.exist?("#{tempdir}/Resume/cv_10.tex")
64
- FileUtils.mkdir(tempdir)
65
- FileUtils.mkdir(tmpdir)
66
- FileUtils.cp_r("#{datadir}/.", "#{tempdir}")
71
+ FileUtils.rm_rf(temp_dir) if File.exist?("#{temp_dir}/Resume/cv_10.tex")
72
+ FileUtils.mkdir(temp_dir)
73
+ FileUtils.mkdir(tmp_dir)
74
+ FileUtils.cp_r("#{data_dir}/.", temp_dir)
67
75
 
68
76
  # Create Motivational Letter
69
77
  if letter == 'yes'
70
- FileUtils.cd("#{tempdir}/Motivational_Letter") do
71
- LatexCurriculumVitae::Letter.create_letter(tmpdir, name_of_letter)
78
+ FileUtils.cd("#{temp_dir}/Motivational_Letter") do
79
+ LatexCurriculumVitae::Letter.create_letter(tmp_dir, name_of_letter)
72
80
  end
73
81
  end
74
82
 
75
83
  # Create the cover
76
- FileUtils.cd("#{tempdir}/Cover") do
77
- LatexCurriculumVitae::Cover.create_cover(name_of_cover, tmpdir)
84
+ FileUtils.cd("#{temp_dir}/Cover") do
85
+ LatexCurriculumVitae::Cover.create_cover(name_of_cover, tmp_dir)
78
86
  end
79
87
 
80
88
  # Create the Curriculum Vitae
81
- FileUtils.cd("#{tempdir}/Resume") do
82
- LatexCurriculumVitae::CV.create_cv(name_of_resume, tmpdir)
89
+ FileUtils.cd("#{temp_dir}/Resume") do
90
+ LatexCurriculumVitae::CV.create_cv(name_of_resume, tmp_dir)
83
91
  end
84
92
 
85
93
  # Final create and shrinking
86
- FileUtils.cd(tmpdir) do
94
+ FileUtils.cd(tmp_dir) do
87
95
  LatexCurriculumVitae::CV.create_final_cv(letter, name_of_letter, name_of_resume, name_of_pdf, name_of_cover)
88
- LatexCurriculumVitae::CV.copy_home(name_of_pdf, datadir)
96
+ LatexCurriculumVitae::CV.copy_home(name_of_pdf, data_dir)
89
97
  end
90
98
 
91
99
  # Add entry to Outfile
92
- CVOutfile.add_to_outfile(jobtitle, company, contact, emailaddress, csvout, joburl)
100
+ CVOutfile.add_to_outfile(job_title, company, contact, email_address, csv_out,
101
+ job_url_checked)
93
102
 
94
103
  # Start evince to check the output file
95
- system("#{pdf_reader} #{datadir}/#{name_of_pdf}.pdf")
104
+ system("#{pdf_reader} #{data_dir}/#{name_of_pdf}.pdf")
96
105
 
97
106
  # Ask if result is ok
98
- LatexCurriculumVitae::Email.resultok(contact, emailaddress, jobtitle, contact_sex, proactive, letter, name_of_pdf, sysconfdir, datadir)
107
+ LatexCurriculumVitae::Email.result_ok(contact, email_address, job_title, contact_sex, proactive,
108
+ letter, name_of_pdf, sysconf_dir, data_dir, mail_backend, target)
99
109
 
100
110
  # Inform about creation is done
101
- LatexCurriculumVitae::Notify.run(jobtitle, datadir)
102
-
111
+ LatexCurriculumVitae::Notify.run(job_title, data_dir)
103
112
  end
@@ -1,9 +1,17 @@
1
- # encoding: utf-8
2
- # @author Sascha Manns
3
- # @abstract A module for creating the latex cover
4
- #
5
1
  # Copyright (C) 2015-2017 Sascha Manns <Sascha.Manns@mailbox.org>
6
- # License: MIT
2
+ #
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
7
15
 
8
16
  # Dependencies
9
17
  require 'rainbow/ext/string'
@@ -14,11 +22,11 @@ module LatexCurriculumVitae
14
22
  module Cover
15
23
  # Create cover method
16
24
  # @param [String] name_of_cover Name of the cover file
17
- def self.create_cover(name_of_cover, tmpdir)
18
- puts 'Creating cover'.colour(:yellow)
25
+ def self.create_cover(name_of_cover, tmp_dir)
26
+ puts 'Creating cover'.color(:yellow)
19
27
  system("pdflatex #{name_of_cover}.tex")
20
- system("cp #{name_of_cover}.pdf #{tmpdir}/#{name_of_cover}.pdf")
21
- puts 'Creating cover done'.colour(:green)
28
+ system("cp #{name_of_cover}.pdf #{tmp_dir}/#{name_of_cover}.pdf")
29
+ puts 'Creating cover done'.color(:green)
22
30
  end
23
31
  end
24
32
  end