latex_curriculum_vitae 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest.txt CHANGED
@@ -1,69 +1,68 @@
1
- Gemfile
2
- Gemfile.lock
3
- History.rdoc
4
- LICENSE.rdoc
5
- Manifest.txt
6
- README.rdoc
7
- Rakefile
8
- CODE_OF_CONDUCT.md
9
- CONTRIBUTING.md
10
- MAINTENANCE.md
11
- NEWS
12
- bin/latexcv.rb
13
- data/latex_curriculum_vitae/Appendix/Bibliography/bibliography1.bib
14
- data/latex_curriculum_vitae/Appendix/Certificates/Zertifikat_Sascha_Manns1.pdf
15
- data/latex_curriculum_vitae/Appendix/Certificates/kompetenzpass12013.pdf
16
- data/latex_curriculum_vitae/Appendix/Certificates/thm-webeng1.pdf
17
- data/latex_curriculum_vitae/Appendix/Employers_Reference/Arbeitszeugnisse.pdf
18
- data/latex_curriculum_vitae/Appendix/Employers_Reference/hays.pdf
19
- data/latex_curriculum_vitae/Appendix/Employers_Reference/haysnew.pdf
20
- data/latex_curriculum_vitae/Appendix/Employers_Reference/openslx.pdf
21
- data/latex_curriculum_vitae/Appendix/Employers_Reference/openslx1.pdf
22
- data/latex_curriculum_vitae/Appendix/Employers_Reference/xcom.pdf
23
- data/latex_curriculum_vitae/Appendix/First_References/bsaz.pdf
24
- data/latex_curriculum_vitae/Appendix/First_References/hsaz.pdf
25
- data/latex_curriculum_vitae/Appendix/First_References/ihk.pdf
26
- data/latex_curriculum_vitae/Appendix/Study/foo.pdf
27
- data/latex_curriculum_vitae/Appendix/Study/zwzils.pdf
28
- data/latex_curriculum_vitae/Cover/Cover.tex
29
- data/latex_curriculum_vitae/Motivational_Letter/bwanschreiben.tex
30
- data/latex_curriculum_vitae/Pictures/.directory
31
- data/latex_curriculum_vitae/Pictures/Interessen.png
32
- data/latex_curriculum_vitae/Pictures/QRickit.gif
33
- data/latex_curriculum_vitae/Pictures/QRickit.png
34
- data/latex_curriculum_vitae/Pictures/Sascha.jpg
35
- data/latex_curriculum_vitae/Pictures/Sascha1p.jpg
36
- data/latex_curriculum_vitae/Pictures/Skills1.png
37
- data/latex_curriculum_vitae/Pictures/Skills2.png
38
- data/latex_curriculum_vitae/Pictures/aboutme.png
39
- data/latex_curriculum_vitae/Pictures/arbeitsagentur.png
40
- data/latex_curriculum_vitae/Pictures/background.jpg
41
- data/latex_curriculum_vitae/Pictures/background.png
42
- data/latex_curriculum_vitae/Pictures/binarybackground.png
43
- data/latex_curriculum_vitae/Pictures/codealike.png
44
- data/latex_curriculum_vitae/Pictures/coderbits.png
45
- data/latex_curriculum_vitae/Pictures/codestats.png
46
- data/latex_curriculum_vitae/Pictures/email.png
47
- data/latex_curriculum_vitae/Pictures/facebook.png
48
- data/latex_curriculum_vitae/Pictures/google-plus.png
49
- data/latex_curriculum_vitae/Pictures/linkedin.png
50
- data/latex_curriculum_vitae/Pictures/openhub.png
51
- data/latex_curriculum_vitae/Pictures/signatur.png
52
- data/latex_curriculum_vitae/Pictures/signatur1.png
53
- data/latex_curriculum_vitae/Pictures/twitter.png
54
- data/latex_curriculum_vitae/Pictures/wakatime.jpg
55
- data/latex_curriculum_vitae/Pictures/xing.png
56
- data/latex_curriculum_vitae/Resume/cv_10.tex
57
- data/latex_curriculum_vitae/Resume/friggeri-cv.cls
58
- data/latex_curriculum_vitae/Resume/missfont.log
59
- etc/latex_curriculum_vitae.cfg
60
- etc/personal_data.tex
61
- lib/latex_curriculum_vitae.rb
62
- lib/latex_curriculum_vitae/cover.rb
63
- lib/latex_curriculum_vitae/cv.rb
64
- lib/latex_curriculum_vitae/email.rb
65
- lib/latex_curriculum_vitae/entityfile.rb
66
- lib/latex_curriculum_vitae/get-config.rb
67
- lib/latex_curriculum_vitae/letter.rb
68
- lib/latex_curriculum_vitae/notifier.rb
69
- lib/latex_curriculum_vitae/outfile.rb
1
+ Gemfile
2
+ Gemfile.lock
3
+ History.rdoc
4
+ LICENSE.rdoc
5
+ Manifest.txt
6
+ README.rdoc
7
+ Rakefile
8
+ CODE_OF_CONDUCT.md
9
+ CONTRIBUTING.md
10
+ MAINTENANCE.md
11
+ bin/latexcv.rb
12
+ data/latex_curriculum_vitae/Appendix/Bibliography/bibliography1.bib
13
+ data/latex_curriculum_vitae/Appendix/Certificates/Zertifikat_Sascha_Manns1.pdf
14
+ data/latex_curriculum_vitae/Appendix/Certificates/kompetenzpass12013.pdf
15
+ data/latex_curriculum_vitae/Appendix/Certificates/thm-webeng1.pdf
16
+ data/latex_curriculum_vitae/Appendix/Employers_Reference/Arbeitszeugnisse.pdf
17
+ data/latex_curriculum_vitae/Appendix/Employers_Reference/hays.pdf
18
+ data/latex_curriculum_vitae/Appendix/Employers_Reference/haysnew.pdf
19
+ data/latex_curriculum_vitae/Appendix/Employers_Reference/openslx.pdf
20
+ data/latex_curriculum_vitae/Appendix/Employers_Reference/openslx1.pdf
21
+ data/latex_curriculum_vitae/Appendix/Employers_Reference/xcom.pdf
22
+ data/latex_curriculum_vitae/Appendix/First_References/bsaz.pdf
23
+ data/latex_curriculum_vitae/Appendix/First_References/hsaz.pdf
24
+ data/latex_curriculum_vitae/Appendix/First_References/ihk.pdf
25
+ data/latex_curriculum_vitae/Appendix/Study/foo.pdf
26
+ data/latex_curriculum_vitae/Appendix/Study/zwzils.pdf
27
+ data/latex_curriculum_vitae/Cover/Cover.tex
28
+ data/latex_curriculum_vitae/Motivational_Letter/bwanschreiben.tex
29
+ data/latex_curriculum_vitae/Pictures/.directory
30
+ data/latex_curriculum_vitae/Pictures/Interessen.png
31
+ data/latex_curriculum_vitae/Pictures/QRickit.gif
32
+ data/latex_curriculum_vitae/Pictures/QRickit.png
33
+ data/latex_curriculum_vitae/Pictures/Sascha.jpg
34
+ data/latex_curriculum_vitae/Pictures/Sascha1p.jpg
35
+ data/latex_curriculum_vitae/Pictures/Skills1.png
36
+ data/latex_curriculum_vitae/Pictures/Skills2.png
37
+ data/latex_curriculum_vitae/Pictures/aboutme.png
38
+ data/latex_curriculum_vitae/Pictures/arbeitsagentur.png
39
+ data/latex_curriculum_vitae/Pictures/background.jpg
40
+ data/latex_curriculum_vitae/Pictures/background.png
41
+ data/latex_curriculum_vitae/Pictures/binarybackground.png
42
+ data/latex_curriculum_vitae/Pictures/codealike.png
43
+ data/latex_curriculum_vitae/Pictures/coderbits.png
44
+ data/latex_curriculum_vitae/Pictures/codestats.png
45
+ data/latex_curriculum_vitae/Pictures/email.png
46
+ data/latex_curriculum_vitae/Pictures/facebook.png
47
+ data/latex_curriculum_vitae/Pictures/google-plus.png
48
+ data/latex_curriculum_vitae/Pictures/linkedin.png
49
+ data/latex_curriculum_vitae/Pictures/openhub.png
50
+ data/latex_curriculum_vitae/Pictures/signatur.png
51
+ data/latex_curriculum_vitae/Pictures/signatur1.png
52
+ data/latex_curriculum_vitae/Pictures/twitter.png
53
+ data/latex_curriculum_vitae/Pictures/wakatime.jpg
54
+ data/latex_curriculum_vitae/Pictures/xing.png
55
+ data/latex_curriculum_vitae/Resume/cv_10.tex
56
+ data/latex_curriculum_vitae/Resume/friggeri-cv.cls
57
+ data/latex_curriculum_vitae/Resume/missfont.log
58
+ etc/latex_curriculum_vitae.cfg
59
+ etc/personal_data.tex
60
+ lib/latex_curriculum_vitae.rb
61
+ lib/latex_curriculum_vitae/cover.rb
62
+ lib/latex_curriculum_vitae/cv.rb
63
+ lib/latex_curriculum_vitae/email.rb
64
+ lib/latex_curriculum_vitae/entityfile.rb
65
+ lib/latex_curriculum_vitae/get-config.rb
66
+ lib/latex_curriculum_vitae/letter.rb
67
+ lib/latex_curriculum_vitae/notifier.rb
68
+ lib/latex_curriculum_vitae/outfile.rb
data/README.rdoc CHANGED
@@ -1,85 +1,84 @@
1
- = latex_curriculum_vitae
2
-
3
- code :: https://github.com/saigkill/latex_curriculum_vitae
4
- docs :: https://saigkill.tuxfamily.org/documentation/latex_curriculum_vitae/
5
- apidoc :: http://www.rubydoc.info/gems/latex_curriculum_vitae
6
- bugs :: https://github.com/saigkill/latex_curriculum_vitae/issues
7
- mailinglist :: https://groups.google.com/forum/#!forum/latex_curriculum_vitae
8
- openhub statistics :: https://www.openhub.net/p/latex_curriculum_vitae
9
- authors blog :: https://saigkill.tuxfamily.org
10
- min. rubyver :: 2.3.0
11
-
12
- last public version :: {<img src="https://badge.fury.io/rb/latex_curriculum_vitae.png" alt="Build Status" />}[http://rubygems.org/gems/latex_curriculum_vitae]
13
- downloads latest :: {<img src="https://img.shields.io/gem/dtv/latex_curriculum_vitae.svg" alt="Build Status" />}[http://rubygems.org/gems/latex_curriculum_vitae]
14
- downloads all :: {<img src="https://img.shields.io/gem/dt/latex_curriculum_vitae.svg" alt="Build Status" />}[http://rubygems.org/gems/latex_curriculum_vitae]
15
- code quality :: {<img src="https://scrutinizer-ci.com/g/saigkill/latex_curriculum_vitae/badges/quality-score.png?b=master" />}[https://scrutinizer-ci.com/g/saigkill/latex_curriculum_vitae/]
16
- code quality :: {<img src="https://api.codeclimate.com/v1/badges/58bdf05db541e741c5d3/maintainability" alt="Code Quality" />}[https://codeclimate.com/github/saigkill/latex_curriculum_vitae]
17
- security :: {<img src="https://hakiri.io/github/saigkill/latex_curriculum_vitae/master.svg" alt="security" />}[https://hakiri.io/github/saigkill/latex_curriculum_vitae/master]
18
- dependency check :: {<img src="https://gemnasium.com/saigkill/latex_curriculum_vitae.svg" alt="Dependency Status" />}[https://gemnasium.com/saigkill/latex_curriculum_vitae]
19
- documentation quality :: {<img src="http://inch-ci.org/github/saigkill/latex_curriculum_vitae.svg?branch=master" alt="Documentation Quality" />}[http://inch-ci.org/github/saigkill/latex_curriculum_vitae]
20
-
21
- == DESCRIPTION:
22
-
23
- latex_curriculum_vitae is a Rubygem which help you to write your job applications. The program aks you for all relevant data for compiling
24
- the curriculum vitae. It builds the motivational letter (if chosen in the gui), the cover and the cv. The resulting pdf will be found
25
- in your home directory. Also it generates an email with a standard content, which allows you to send the mail with your cv directly.
26
-
27
- The History.rdoc contains a detailed description on what has changed. For most
28
- users the NEWS file might be a better place to look since it contains
29
- change summaries between the different versions.
30
-
31
- latex_curriculum_vitae is released under the GPL3 License, see the file 'License.rdoc'
32
- for more information.
33
-
34
- The official web site is:
35
-
36
- https://github.com/saigkill/latex_curriculum_vitae
37
-
38
- == FEATURES:
39
-
40
- * Ruby based LaTEX publisher for job applications
41
- * It use Pony and Evolution for sending the email directly
42
-
43
- == SYNOPSIS:
44
-
45
- $ latexcv.rb
46
-
47
- Or just use the Launcher.
48
-
49
- The resulting PDF and the CSV file are placed in /home/You/.local/latex_curriculum_vitae.
50
-
51
- This Gem was programmed and tested for Linux systems. If anyone would like to make the methods also fit for other OS,
52
- i'm happy about Pull requests.
53
-
54
- == REQUIREMENTS:
55
-
56
- * setup
57
- * notifier
58
- * pony
59
- * combine_pdf
60
- * url_shortener
61
-
62
- == REQUIREMENTS (hard dependencies):
63
-
64
- * pdflatex & xelatex
65
- * yad
66
- * poppler (pdfunite)
67
-
68
- == INSTALL:
69
-
70
- The installation is very easy.
71
-
72
- gem install latex_curriculum_vitae
73
- cd /path/to/gem (In case of using RVM ~/.rvm/gems/ruby-2.2.3/gems/latex_curriculum_vitae)
74
- rake setup
75
-
76
- You have to run the setup after each gem update.
77
-
78
- == DEVELOPERS:
79
-
80
- After checking out the source, run:
81
-
82
- $ rake newb
83
-
84
- This task will install any missing dependencies, run the tests/specs,
1
+ = latex_curriculum_vitae
2
+
3
+ code :: https://github.com/saigkill/latex_curriculum_vitae
4
+ docs :: https://docs.saigkills-backtrace.de/latex_curriculum_vitae/
5
+ apidoc :: http://www.rubydoc.info/gems/latex_curriculum_vitae
6
+ bugs :: https://github.com/saigkill/latex_curriculum_vitae/issues
7
+ mailinglist :: https://groups.google.com/forum/#!forum/latex_curriculum_vitae
8
+ openhub statistics :: https://www.openhub.net/p/latex_curriculum_vitae
9
+ authors blog :: https://saigkills-backtrace.de
10
+ min. rubyver :: 2.3.0
11
+
12
+ last public version :: {<img src="https://badge.fury.io/rb/latex_curriculum_vitae.png" alt="Build Status" />}[http://rubygems.org/gems/latex_curriculum_vitae]
13
+ downloads latest :: {<img src="https://img.shields.io/gem/dtv/latex_curriculum_vitae.svg" alt="Build Status" />}[http://rubygems.org/gems/latex_curriculum_vitae]
14
+ downloads all :: {<img src="https://img.shields.io/gem/dt/latex_curriculum_vitae.svg" alt="Build Status" />}[http://rubygems.org/gems/latex_curriculum_vitae]
15
+ code quality :: {<img src="https://scrutinizer-ci.com/g/saigkill/latex_curriculum_vitae/badges/quality-score.png?b=master" />}[https://scrutinizer-ci.com/g/saigkill/latex_curriculum_vitae/]
16
+ code quality :: {<img src="https://api.codeclimate.com/v1/badges/58bdf05db541e741c5d3/maintainability" alt="Code Quality" />}[https://codeclimate.com/github/saigkill/latex_curriculum_vitae]
17
+ security :: {<img src="https://hakiri.io/github/saigkill/latex_curriculum_vitae/master.svg" alt="security" />}[https://hakiri.io/github/saigkill/latex_curriculum_vitae/master]
18
+ documentation quality :: {<img src="http://inch-ci.org/github/saigkill/latex_curriculum_vitae.svg?branch=master" alt="Documentation Quality" />}[http://inch-ci.org/github/saigkill/latex_curriculum_vitae]
19
+
20
+ == DESCRIPTION:
21
+
22
+ latex_curriculum_vitae is a Rubygem which help you to write your job applications. The program aks you for all relevant data for compiling
23
+ the curriculum vitae. It builds the motivational letter (if chosen in the gui), the cover and the cv. The resulting pdf will be found
24
+ in your home directory. Also it generates an email with a standard content, which allows you to send the mail with your cv directly.
25
+
26
+ The History.rdoc contains a detailed description on what has changed. For most
27
+ users the NEWS file might be a better place to look since it contains
28
+ change summaries between the different versions.
29
+
30
+ latex_curriculum_vitae is released under the GPL3 License, see the file 'License.rdoc'
31
+ for more information.
32
+
33
+ The official web site is:
34
+
35
+ https://github.com/saigkill/latex_curriculum_vitae
36
+
37
+ == FEATURES:
38
+
39
+ * Ruby based LaTEX publisher for job applications
40
+ * It use Pony and Evolution for sending the email directly
41
+
42
+ == SYNOPSIS:
43
+
44
+ $ latexcv.rb
45
+
46
+ Or just use the Launcher.
47
+
48
+ The resulting PDF and the CSV file are placed in /home/You/.local/latex_curriculum_vitae.
49
+
50
+ This Gem was programmed and tested for Linux systems. If anyone would like to make the methods also fit for other OS,
51
+ i'm happy about Pull requests.
52
+
53
+ == REQUIREMENTS:
54
+
55
+ * setup
56
+ * notifier
57
+ * pony
58
+ * combine_pdf
59
+ * url_shortener
60
+
61
+ == REQUIREMENTS (hard dependencies):
62
+
63
+ * pdflatex & xelatex
64
+ * yad
65
+ * poppler (pdfunite)
66
+
67
+ == INSTALL:
68
+
69
+ The installation is very easy.
70
+
71
+ gem install latex_curriculum_vitae
72
+ cd /path/to/gem (In case of using RVM ~/.rvm/gems/ruby-2.2.3/gems/latex_curriculum_vitae)
73
+ rake setup
74
+
75
+ You have to run the setup after each gem update.
76
+
77
+ == DEVELOPERS:
78
+
79
+ After checking out the source, run:
80
+
81
+ $ rake newb
82
+
83
+ This task will install any missing dependencies, run the tests/specs,
85
84
  and generate the RDoc.
data/Rakefile CHANGED
@@ -1,119 +1,119 @@
1
- # -*- ruby -*-
2
- # Copyright (C) 2013-2018 Sascha Manns <Sascha.Manns@mailbox.org>
3
- # Release:
4
- # Pre-release:
5
- #* update docs
6
- #* Update copyright years if needed, in the following paths:
7
- # + lib/*
8
- #* Check version in lib/hoe-reek.rb
9
- #* Update History.rdoc & NEWS
10
- #* git:manifest
11
- #* bundler:gemfile
12
- #* bundler:gemfile_lock
13
- # x64-mingw32
14
- # x64-mswin32
15
- # x86-mingw32
16
- # x86-mswin32
17
- # ruby
18
- # x86_64-linux
19
- #* bundle_audit:run
20
- #* git -a -m "Anything"
21
- #* git tag x.x.x
22
-
23
- # Release:
24
- #* Create Release in Github
25
- #* rake release
26
- #* send_email
27
- #* clean_pkg
28
-
29
- # Post-release:
30
- #* Bump version
31
- #* Add new Milestone on Github
32
-
33
- require 'rubygems'
34
- require 'hoe'
35
-
36
- ############################################# DEVELOPING ZONE #########################################################
37
- Hoe.plugin :bundler
38
- #Hoe.plugin :git
39
- Hoe.plugin :manns
40
- Hoe.plugin :rdoc
41
- Hoe.plugin :reek
42
- Hoe.plugin :rubocop
43
- Hoe.plugin :rubygems
44
- Hoe.plugin :travis
45
- Hoe.plugin :version
46
-
47
- Hoe.spec 'latex_curriculum_vitae' do
48
- developer('Sascha Manns', 'Sascha.Manns@mailbox.org')
49
- license 'GPL-3.0' # this should match the license in the README
50
- require_ruby_version '>= 2.3.0'
51
-
52
- self.history_file = 'History.rdoc'
53
- self.readme_file = 'README.rdoc'
54
- self.extra_rdoc_files = FileList['*.rdoc'].to_a
55
- self.post_install_message = '*** Run rake setup to finish the installation *** Please file bugreports on: https://github.com/saigkill/latex_curriculum_vitae/issues'
56
-
57
- dependency 'notifier', '~> 0.5'
58
- dependency 'pony', '~> 1.12'
59
- dependency 'combine_pdf', '~> 1.0'
60
- dependency 'url_shortener', '~> 0.0.9'
61
- dependency 'xdg', '~> 2.2'
62
-
63
- extra_dev_deps << ['hoe-bundler', '~> 1.4']
64
- extra_dev_deps << ['hoe-git', '~> 1.6']
65
- extra_dev_deps << ['hoe-rubygems', '~> 1.0']
66
- extra_dev_deps << ['hoe-manns', '~> 2.1']
67
- extra_dev_deps << ['hoe-reek', '~> 1.2']
68
- extra_dev_deps << ['hoe-rubocop', '~> 1.0']
69
- extra_dev_deps << ['hoe-travis', '~> 1.3']
70
- extra_dev_deps << ['hoe-version', '~> 1.2']
71
- extra_dev_deps << ['hoe', '~> 3.17']
72
- extra_dev_deps << ['rake', '~> 12.3']
73
- extra_dev_deps << ['rdoc', '~> 6.0']
74
- extra_dev_deps << ['reek', '~> 4.8']
75
- extra_dev_deps << ['rubocop', '~> 0.55']
76
- extra_dev_deps << ['coveralls', '~> 0.8']
77
- extra_dev_deps << ['rainbow', '~> 3.0']
78
- extra_dev_deps << ['bundler', '~> 1.16']
79
- extra_dev_deps << ['parseconfig', '~> 1.0']
80
- extra_dev_deps << ['rspec', '~> 3.7']
81
- end
82
-
83
- ###################################### SETUP ZONE #####################################################################
84
-
85
- require 'fileutils'
86
- require 'xdg'
87
- desc 'Setup'
88
- task :setup do
89
- sys_xdg = XDG['CONFIG_HOME']
90
- data_xdg = XDG['DATA_HOME']
91
- sysconf_dir = "#{sys_xdg}/latex_curriculum_vitae"
92
- data_dir = "#{data_xdg}/latex_curriculum_vitae"
93
- home = Dir.home
94
- FileUtils.mkdir(sysconf_dir) if !File.exist?(sysconf_dir)
95
- FileUtils.mkdir(data_dir) if !File.exist?(data_dir)
96
- FileUtils.cp('etc/latex_curriculum_vitae.cfg', "#{sysconf_dir}") if !File.exist?
97
- ("#{sysconf_dir}/latex_curriculum_vitae.cfg")
98
- FileUtils.cp('etc/personal_data.tex', "#{sysconf_dir}") if !File.exist?("#{sysconf_dir}/personal_data.tex")
99
- FileUtils.cp_r('data/latex_curriculum_vitae/.', "#{data_dir}") if !File.exist?("#{data_dir}/Appendix")
100
- FileUtils.cp('data/latex_curriculum_vitae/Pictures/arbeitsagentur.png', "#{data_xdg}/icons")
101
- puts 'Creating Launcher...'.color(:yellow)
102
- desktop_file = "#{data_xdg}/applications/latex_curriculum_vitae.desktop"
103
- FileUtils.touch(desktop_file)
104
- File.write "#{desktop_file}", <<EOF
105
- [Desktop Entry]
106
- Version=2.3
107
- Type=Application
108
- Name=latex_curriculum_vitae
109
- GenericName=latex_curriculum_vitae
110
- Comment=Job-Application Creator
111
- Exec=latexcv.rb
112
- Icon="#{data_xdg}/icons/arbeitsagentur.png"
113
- Categories=Utility;Application;
114
- EOF
115
- puts 'Setup is now finished. See the documentation to find out more about this gem.'
116
-
117
- end
118
-
119
- # vim: syntax=ruby
1
+ # -*- ruby -*-
2
+ # Copyright (C) 2013-2018 Sascha Manns <Sascha.Manns@outlook.de>
3
+ # Release:
4
+ # Pre-release:
5
+ #* update docs
6
+ #* Update copyright years if needed, in the following paths:
7
+ # + lib/*
8
+ #* Check version in lib/hoe-reek.rb
9
+ #* Update History.rdoc & NEWS
10
+ #* git:manifest
11
+ #* bundler:gemfile
12
+ #* bundler:gemfile_lock
13
+ # x64-mingw32
14
+ # x64-mswin32
15
+ # x86-mingw32
16
+ # x86-mswin32
17
+ # ruby
18
+ # x86_64-linux
19
+ #* bundle_audit:run
20
+ #* git -a -m "Anything"
21
+ #* git tag x.x.x
22
+
23
+ # Release:
24
+ #* Create Release in Github
25
+ #* rake release
26
+ #* send_email
27
+ #* clean_pkg
28
+
29
+ # Post-release:
30
+ #* Bump version
31
+ #* Add new Milestone on Github
32
+
33
+ require 'rubygems'
34
+ require 'hoe'
35
+
36
+ ############################################# DEVELOPING ZONE #########################################################
37
+ Hoe.plugin :bundler
38
+ #Hoe.plugin :git
39
+ Hoe.plugin :manns
40
+ Hoe.plugin :rdoc
41
+ Hoe.plugin :reek
42
+ Hoe.plugin :rubocop
43
+ Hoe.plugin :rubygems
44
+ Hoe.plugin :travis
45
+ Hoe.plugin :version
46
+
47
+ Hoe.spec 'latex_curriculum_vitae' do
48
+ developer('Sascha Manns', 'Sascha.Manns@outlook.de')
49
+ license 'GPL-3.0' # this should match the license in the README
50
+ require_ruby_version '>= 2.3.0'
51
+
52
+ self.history_file = 'History.rdoc'
53
+ self.readme_file = 'README.rdoc'
54
+ self.extra_rdoc_files = FileList['*.rdoc'].to_a
55
+ self.post_install_message = '*** Run rake setup to finish the installation *** Please file bugreports on: https://github.com/saigkill/latex_curriculum_vitae/issues'
56
+
57
+ dependency 'notifier', '~> 0.5'
58
+ dependency 'pony', '~> 1.12'
59
+ dependency 'combine_pdf', '~> 1.0'
60
+ dependency 'url_shortener', '~> 0.0.9'
61
+ dependency 'xdg', '~> 2.2'
62
+
63
+ extra_dev_deps << ['hoe-bundler', '~> 1.4']
64
+ extra_dev_deps << ['hoe-git', '~> 1.6']
65
+ extra_dev_deps << ['hoe-rubygems', '~> 1.0']
66
+ extra_dev_deps << ['hoe-manns', '~> 2.1']
67
+ extra_dev_deps << ['hoe-reek', '~> 1.2']
68
+ extra_dev_deps << ['hoe-rubocop', '~> 1.0']
69
+ extra_dev_deps << ['hoe-travis', '~> 1.3']
70
+ extra_dev_deps << ['hoe-version', '~> 1.2']
71
+ extra_dev_deps << ['hoe', '~> 3.17']
72
+ extra_dev_deps << ['rake', '~> 12.3']
73
+ extra_dev_deps << ['rdoc', '~> 6.0']
74
+ extra_dev_deps << ['reek', '~> 4.7']
75
+ extra_dev_deps << ['rubocop', '~> 0.57']
76
+ extra_dev_deps << ['coveralls', '~> 0.8']
77
+ extra_dev_deps << ['rainbow', '~> 3.0']
78
+ extra_dev_deps << ['bundler', '~> 1.16']
79
+ extra_dev_deps << ['parseconfig', '~> 1.0']
80
+ extra_dev_deps << ['rspec', '~> 3.7']
81
+ end
82
+
83
+ ###################################### SETUP ZONE #####################################################################
84
+
85
+ require 'fileutils'
86
+ require 'xdg'
87
+ desc 'Setup'
88
+ task :setup do
89
+ sys_xdg = XDG['CONFIG_HOME']
90
+ data_xdg = XDG['DATA_HOME']
91
+ sysconf_dir = "#{sys_xdg}/latex_curriculum_vitae"
92
+ data_dir = "#{data_xdg}/latex_curriculum_vitae"
93
+ home = Dir.home
94
+ FileUtils.mkdir(sysconf_dir) if !File.exist?(sysconf_dir)
95
+ FileUtils.mkdir(data_dir) if !File.exist?(data_dir)
96
+ FileUtils.cp('etc/latex_curriculum_vitae.cfg', "#{sysconf_dir}") if !File.exist?
97
+ ("#{sysconf_dir}/latex_curriculum_vitae.cfg")
98
+ FileUtils.cp('etc/personal_data.tex', "#{sysconf_dir}") if !File.exist?("#{sysconf_dir}/personal_data.tex")
99
+ FileUtils.cp_r('data/latex_curriculum_vitae/.', "#{data_dir}") if !File.exist?("#{data_dir}/Appendix")
100
+ FileUtils.cp('data/latex_curriculum_vitae/Pictures/arbeitsagentur.png', "#{data_xdg}/icons")
101
+ puts 'Creating Launcher...'.color(:yellow)
102
+ desktop_file = "#{data_xdg}/applications/latex_curriculum_vitae.desktop"
103
+ FileUtils.touch(desktop_file)
104
+ File.write "#{desktop_file}", <<EOF
105
+ [Desktop Entry]
106
+ Version=2.3
107
+ Type=Application
108
+ Name=latex_curriculum_vitae
109
+ GenericName=latex_curriculum_vitae
110
+ Comment=Job-Application Creator
111
+ Exec=latexcv.rb
112
+ Icon="#{data_xdg}/icons/arbeitsagentur.png"
113
+ Categories=Utility;Application;
114
+ EOF
115
+ puts 'Setup is now finished. See the documentation to find out more about this gem.'
116
+
117
+ end
118
+
119
+ # vim: syntax=ruby