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/Manifest.txt CHANGED
@@ -1,13 +1,3 @@
1
- .autotest
2
- .codeclimate.yml
3
- .coveralls.yml
4
- .gemnasium.yml
5
- .rspec
6
- .rubocop.yml
7
- .scrutinizer.yml
8
- .travis.yml
9
- CODE_OF_CONDUCT.md
10
- CONTRIBUTING.md
11
1
  Gemfile
12
2
  Gemfile.lock
13
3
  History.rdoc
@@ -15,8 +5,9 @@ LICENSE.rdoc
15
5
  Manifest.txt
16
6
  README.rdoc
17
7
  Rakefile
8
+ STATUS.rdoc
9
+ NEWS
18
10
  bin/latexcv.rb
19
- config.reek
20
11
  data/latex_curriculum_vitae/Appendix/Bibliography/bibliography1.bib
21
12
  data/latex_curriculum_vitae/Appendix/Certificates/Zertifikat_Sascha_Manns1.pdf
22
13
  data/latex_curriculum_vitae/Appendix/Certificates/kompetenzpass12013.pdf
@@ -26,7 +17,6 @@ data/latex_curriculum_vitae/Appendix/Employers_Reference/hays.pdf
26
17
  data/latex_curriculum_vitae/Appendix/Employers_Reference/haysnew.pdf
27
18
  data/latex_curriculum_vitae/Appendix/Employers_Reference/openslx.pdf
28
19
  data/latex_curriculum_vitae/Appendix/Employers_Reference/openslx1.pdf
29
- data/latex_curriculum_vitae/Appendix/Employers_Reference/wtg.pdf
30
20
  data/latex_curriculum_vitae/Appendix/Employers_Reference/xcom.pdf
31
21
  data/latex_curriculum_vitae/Appendix/First_References/bsaz.pdf
32
22
  data/latex_curriculum_vitae/Appendix/First_References/hsaz.pdf
@@ -48,13 +38,18 @@ data/latex_curriculum_vitae/Pictures/arbeitsagentur.png
48
38
  data/latex_curriculum_vitae/Pictures/background.jpg
49
39
  data/latex_curriculum_vitae/Pictures/background.png
50
40
  data/latex_curriculum_vitae/Pictures/binarybackground.png
41
+ data/latex_curriculum_vitae/Pictures/codealike.png
51
42
  data/latex_curriculum_vitae/Pictures/coderbits.png
43
+ data/latex_curriculum_vitae/Pictures/codestats.png
52
44
  data/latex_curriculum_vitae/Pictures/email.png
53
45
  data/latex_curriculum_vitae/Pictures/facebook.png
54
46
  data/latex_curriculum_vitae/Pictures/google-plus.png
55
47
  data/latex_curriculum_vitae/Pictures/linkedin.png
48
+ data/latex_curriculum_vitae/Pictures/openhub.png
56
49
  data/latex_curriculum_vitae/Pictures/signatur.png
50
+ data/latex_curriculum_vitae/Pictures/signatur1.png
57
51
  data/latex_curriculum_vitae/Pictures/twitter.png
52
+ data/latex_curriculum_vitae/Pictures/wakatime.jpg
58
53
  data/latex_curriculum_vitae/Pictures/xing.png
59
54
  data/latex_curriculum_vitae/Resume/cv_10.tex
60
55
  data/latex_curriculum_vitae/Resume/friggeri-cv.cls
data/NEWS ADDED
@@ -0,0 +1,69 @@
1
+ ===============================================================================
2
+ latex_curriculum_vitae 2.1.0 - 2017-11-06
3
+ ===============================================================================
4
+
5
+ latex_curriculum_vitae 2.1.1 is the culmination of one days'
6
+ work by 1 developer.
7
+
8
+ New Features:
9
+
10
+ * Nothing yet
11
+
12
+ Enhancements:
13
+
14
+ * Now you can choose between "Pony" and "Evolution" for mailing out.
15
+ See Documentation.
16
+
17
+ Notable Bugs Fixed:
18
+
19
+ * 4 minor enhancements
20
+
21
+ * LCV#3: Use more communicative variable names
22
+ * LCV#4: Use Codeclimates new V2 engine
23
+ * LCV#5: Fix Rubocop and Reek
24
+ * LCV#6: Cleanup Rakefile
25
+
26
+
27
+ ===============================================================================
28
+ SOURCES / PACKAGES
29
+ ===============================================================================
30
+
31
+ Sources
32
+ -------
33
+
34
+ * latex_curriculum_vitae 2.1.0 Tarballs:
35
+ https://launchpad.net/hoe-manns/2.x/2.1.0/+download/
36
+ latex_curriculum_vitae-2.1.1.tar.xz
37
+
38
+ Packages
39
+ --------
40
+
41
+ Download and installation information is available here:
42
+
43
+ * https://saigkill.github.io/latex_curriculum_vitae/about/
44
+
45
+ Gems:
46
+
47
+ * https://rubygems.org/gems/latex_curriculum_vitae
48
+
49
+ ===============================================================================
50
+ REPORT BUGS - HELP THE PROJECT - GROW THE COMMUNITY
51
+ ===============================================================================
52
+
53
+ If you encounter any bad behavior with this release, please do not
54
+ hesitate to file bugs!
55
+
56
+ * https://bugs.launchpad.net/latexcv
57
+
58
+
59
+ ===============================================================================
60
+ VALUED LATEX_CURRICULUM_VITAE CONTRIBUTORS
61
+ ===============================================================================
62
+
63
+ Contributors For This Release
64
+ -----------------------------
65
+
66
+ The following people directly contributed to the release of this version
67
+ of hoe-manns. Without their help, there would be no release!
68
+
69
+ Sascha Manns
data/README.rdoc CHANGED
@@ -1,24 +1,17 @@
1
1
  = latex_curriculum_vitae
2
2
 
3
- home :: http://saigkill.tuxfamily.org
4
- code :: https://github.com/saigkill/latex_curriculum_vitae
5
- docs (en) :: https://saigkill.tuxfamily.org/docs/latex_curriculum_vitae/en-US/html/
6
- docs (de) :: https://saigkill.tuxfamily.org/docs/latex_curriculum_vitae/de-DE/html/
7
- bugs :: https://github.com/saigkill/latex_curriculum_vitae/issues
3
+ code :: https://launchpad.net/latexcv
4
+ docs :: https://saigkill.github.io/latex_curriculum_vitae/about/
5
+ apidoc :: http://www.rubydoc.info/gems/latex_curriculum_vitae
6
+ bugs :: https://bugs.launchpad.net/latexcv
7
+ questions :: https://answers.launchpad.net/latexcv
8
+ feature requests :: https://blueprints.launchpad.net/latexcv
8
9
  openhub statistics :: https://www.openhub.net/p/latex_curriculum_vitae
10
+ authors blog :: https://saigkill.tuxfamily.org
9
11
  min. rubyver :: 2.2.0
10
- license :: {<img src="http://img.shields.io/:license-mit-blue.svg" />}[https://gitlab.com/saigkill/latex_curriculum_vitae/blob/master/LICENSE.rdoc]
11
- last public version :: {<img src="https://badge.fury.io/rb/latex_curriculum_vitae.png" alt="Build Status" />}[http://rubygems.org/gems/latex_curriculum_vitae]
12
- downloads latest :: {<img src="https://img.shields.io/gem/dtv/latex_curriculum_vitae.svg" alt="Build Status" />}[http://rubygems.org/gems/latex_curriculum_vitae]
13
- downloads all :: {<img src="https://img.shields.io/gem/dt/latex_curriculum_vitae.svg" alt="Build Status" />}[http://rubygems.org/gems/latex_curriculum_vitae]
14
- code quality master :: {<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/]
15
- code quality develop :: {<img src="https://scrutinizer-ci.com/g/saigkill/latex_curriculum_vitae/badges/quality-score.png?b=develop" />}[https://scrutinizer-ci.com/g/saigkill/latex_curriculum_vitae/]
16
- code quality :: {<img src="https://codeclimate.com/github/saigkill/latex_curriculum_vitae/badges/gpa.svg" alt="Code Quality" />}[https://codeclimate.com/github/saigkill/latex_curriculum_vitae]
17
- code quailty :: {<img src="https://api.codacy.com/project/badge/Grade/c62d870ee3214b49b10fbd4be45c1a9b" alt="Codacy code quality" />}[https://www.codacy.com/app/samannsml/latex_curriculum_vitae]
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
- donations :: {<img src="https://pledgie.com/campaigns/30094.png?skin_name=chrome" alt="Build Status" />}[https://pledgie.com/campaigns/30094]
21
- donations :: {<img src="https://saigkill.tuxfamily.org/dotclear/public/Amazon.png" alt="Build Status" />}[http://www.amazon.de/registry/wishlist/D75HOEQ00BDD]
12
+
13
+ If you're reading this on Github, please keep in mind, that this is just a
14
+ mirror. The development happens on: https://launchpad.net/latexcv.
22
15
 
23
16
  == DESCRIPTION:
24
17
 
@@ -26,10 +19,24 @@ latex_curriculum_vitae is a Rubygem which help you to write your job application
26
19
  the curriculum vitae. It builds the motivational letter (if chosen in the gui), the cover and the cv. The resulting pdf will be found
27
20
  in your home directory. Also it generates an email with a standard content, which allows you to send the mail with your cv directly.
28
21
 
22
+ The History.rdoc contains a detailed description on what has changed. For most
23
+ users the NEWS file might be a better place to look since it contains
24
+ change summaries between the different versions.
25
+
26
+ hoe-reek is released under the GPL3 License, see the file 'License.rdoc'
27
+ for more information.
28
+
29
+ The official web site is:
30
+
31
+ https://launchpad.net/latexcv
32
+
29
33
  == FEATURES/PROBLEMS:
30
34
 
31
35
  * Ruby based LaTEX publisher for job applications
32
- * It use pony for sending the email directly
36
+ * It use Pony and Evolution for sending the email directly
37
+
38
+ See the {FAQs}[https://answers.launchpad.net/latexcv/+faqs] for checking known issues.
39
+ See the {status}[https://github.com/saigkill/latex_curriculum_vitae/blob/master/STATUS.rdoc] of the app.
33
40
 
34
41
  == SYNOPSIS:
35
42
 
@@ -37,9 +44,9 @@ in your home directory. Also it generates an email with a standard content, whic
37
44
 
38
45
  Or just use the Launcher.
39
46
 
40
- The resulting PDF and the CSV file are placed in /home/You/.latex_curriculum_vitae.
47
+ The resulting PDF and the CSV file are placed in /home/You/.local/latex_curriculum_vitae.
41
48
 
42
- Read the documentation at: https://saigkill.tuxfamily.org/docs/latex_curriculum_vitae/en-US/html/
49
+ Read the documentation at: https://saigkill.github.io/latex_curriculum_vitae/about/
43
50
 
44
51
  This Gem was programmed and tested for Linux systems. If anyone would like to make the methods also fit for other OS,
45
52
  i'm happy about Pull requests.
@@ -66,12 +73,10 @@ The installation is very easy.
66
73
  cd /path/to/gem (In case of using RVM ~/.rvm/gems/ruby-2.2.3/gems/latex_curriculum_vitae)
67
74
  rake setup
68
75
 
69
- Read the documentation at: https://saigkill.tuxfamily.org/docs/latex_curriculum_vitae/en-US/html/
76
+ Read the documentation at: https://saigkill.github.io/latex_curriculum_vitae/about/
70
77
 
71
78
  You have to run the setup after each gem update.
72
79
 
73
- If you like this gem, don't forget to give the GitLab repo a star :-)
74
-
75
80
  == DEVELOPERS:
76
81
 
77
82
  After checking out the source, run:
@@ -81,29 +86,84 @@ After checking out the source, run:
81
86
  This task will install any missing dependencies, run the tests/specs,
82
87
  and generate the RDoc.
83
88
 
84
- Read https://github.com/saigkill/latex_curriculum_vitae/blob/master/CONTRIBUTING.md
89
+ === IDEAS:
90
+
91
+ * Add ideas on: https://blueprints.launchpad.net/latexcv
92
+
93
+ === COOL HACKS:
94
+
95
+ * Open a bugreport on https://bugs.launchpad.net/latexcv.
96
+ * Please use the -u flag when generating the patch as it makes the patch
97
+ more readable.
98
+ * Write a good explanation of what the patch does.
99
+ * It is better to use git format-patch command: git format-patch HEAD^
100
+
101
+ === CONTRIBUTOR CODE OF CONDUCT:
102
+
103
+ As contributors and maintainers of this project, we pledge to respect all
104
+ people who contribute through reporting issues, posting feature requests,
105
+ updating documentation, submitting pull requests or patches, and other
106
+ activities.
107
+
108
+ We are committed to making participation in this project a harassment-free
109
+ experience for everyone, regardless of level of experience, gender, gender
110
+ identity and expression, sexual orientation, disability, personal
111
+ appearance, body size, race, age, or religion.
112
+
113
+ Examples of unacceptable behavior by participants include the use of sexual
114
+ language or imagery, derogatory comments or personal attacks, trolling,
115
+ public or private harassment, insults, or other unprofessional conduct.
116
+
117
+ Project maintainers have the right and responsibility to remove, edit, or
118
+ reject comments, commits, code, wiki edits, issues, and other contributions
119
+ that are not aligned to this Code of Conduct. Project maintainers who do
120
+ not follow the Code of Conduct may be removed from the project team.
121
+
122
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
123
+ reported by opening an issue or contacting one or more of the project
124
+ maintainers.
125
+
126
+ This Code of Conduct is adapted from the {Contributor Covenant}[http:contributor-covenant.org],
127
+ version 1.0.0, available at {http://contributor-covenant.org/version/1/0/0/}[http://contributor-covenant.org/version/1/0/0/].
128
+
129
+ === MAINTANANCE POLICY:
130
+
131
+ I'm following the Semantic Versioning for its releases: (Major).(Minor).(Patch).
132
+
133
+ * Major version: Whenever there is something significant or any backwards
134
+ incompatible changes.
135
+ * Minor version: When new, backwards compatible functionality is introduced a
136
+ minor feature is introduced, or when a set of smaller features is rolled out.
137
+ * Patch number: When backwards compatible bug fixes are introduced that fix
138
+ incorrect behavior.
139
+ * The current stable release will receive security patches and bug fixes
140
+ (eg. 5.0 -> 5.0.1).
141
+ * Feature releases will mark the next supported stable release where the minor
142
+ version is increased numerically by increments of one (eg. 5.0 -> 5.1).
143
+
144
+ I encourage everyone to run the latest stable release to ensure that you can
145
+ easily upgrade to the most secure and feature rich experience. In order to
146
+ make sure you can easily run the most recent stable release, we are working
147
+ hard to keep the update process simple and reliable.
148
+
149
+ === STRUCTURE:
150
+
151
+ ==== BRANCHES:
152
+
153
+ ===== `master` BRANCH:
154
+ The master branch is the current edge of development.
85
155
 
86
- == LICENSE:
156
+ ===== `X.X` BRANCH:
157
+ The X.X branch is the last stable branch. It will used for tarballs.
87
158
 
88
- (The MIT License)
159
+ ===== MERGE REQUESTS:
160
+ If you want to merge your branch with the trunk, join the team.
89
161
 
90
- Copyright (c) 2015-2017 Sascha Manns <Sascha.Manns@mailbox.org>
162
+ Please base all Merge requests off the `master` branch. Merges to
163
+ `X.X` only occur through the `master` branch.
91
164
 
92
- Permission is hereby granted, free of charge, to any person obtaining
93
- a copy of this software and associated documentation files (the
94
- 'Software'), to deal in the Software without restriction, including
95
- without limitation the rights to use, copy, modify, merge, publish,
96
- distribute, sublicense, and/or sell copies of the Software, and to
97
- permit persons to whom the Software is furnished to do so, subject to
98
- the following conditions:
165
+ == PROBLEM REPORTING:
99
166
 
100
- The above copyright notice and this permission notice shall be
101
- included in all copies or substantial portions of the Software.
167
+ Bugs should be reported to https://bugs.launchpad.net/latexcv. You will need to create an
168
+ account for yourself.
102
169
 
103
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
104
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
105
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
106
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
107
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
108
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
109
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile CHANGED
@@ -1,67 +1,57 @@
1
1
  # -*- ruby -*-
2
2
  # Release:
3
- # * update *.wiki markdown documentation for GitLab
4
- # * enable :git
5
- # * rake run_before_release
6
- # * disable :git
7
- # * Checkin
8
- # * rake release
9
- # * rake run_after_release
3
+ # See README.rdoc.releasing
10
4
 
11
5
  require 'rubygems'
12
6
  require 'hoe'
13
7
 
14
- # rubocop:disable Metrics/LineLength
15
8
  ############################################# DEVELOPING ZONE #########################################################
16
9
  Hoe.plugin :bundler
17
10
  Hoe.plugin :doofus
18
- Hoe.plugin :email
19
- #Hoe.plugins.delete :git
20
- Hoe.plugin :git
21
- Hoe.plugin :history
22
- Hoe.plugin :highline
11
+ #Hoe.plugin :git
23
12
  Hoe.plugin :manns
24
- #Hoe.plugin :reek
25
13
  Hoe.plugin :rdoc
14
+ Hoe.plugin :reek
26
15
  Hoe.plugin :rubocop
27
16
  Hoe.plugin :rubygems
17
+ Hoe.plugin :travis
28
18
  Hoe.plugin :version
29
- Hoe.plugin :website
30
19
 
31
20
  Hoe.spec 'latex_curriculum_vitae' do
32
21
  developer('Sascha Manns', 'Sascha.Manns@mailbox.org')
33
- license 'MIT' # this should match the license in the README
22
+ license 'GPL-3.0' # this should match the license in the README
34
23
  require_ruby_version '>= 2.2.0'
35
24
 
36
- email_to << 'ruby-talk@ruby-lang.org'
37
- email_to << 'TEX-D-L@LISTSERV.DFN.DE'
38
-
39
25
  self.history_file = 'History.rdoc'
40
26
  self.readme_file = 'README.rdoc'
41
27
  self.extra_rdoc_files = FileList['*.rdoc'].to_a
42
- self.post_install_message = '*** Run rake setup to finish the installation *** Please file bugreports and feature requests on: https://github.com/saigkill/latex_curriculum_vitae/issues'
28
+ self.post_install_message = '*** Run rake setup to finish the installation *** Please file bugreports on: https://bugs.launchpad.net/latexcv'
43
29
 
44
30
  dependency 'notifier', '~> 0.5'
45
31
  dependency 'pony', '~> 1.11'
46
- dependency 'combine_pdf', '~> 0.2'
32
+ dependency 'combine_pdf', '~> 1.0'
47
33
  dependency 'url_shortener', '~> 0.0.9'
48
34
  dependency 'xdg', '~> 2.2'
49
35
 
50
36
  extra_dev_deps << ['hoe-bundler', '~> 1.3']
37
+ extra_dev_deps << ['hoe-doofus', '~> 1.0']
51
38
  extra_dev_deps << ['hoe-git', '~> 1.6']
52
39
  extra_dev_deps << ['hoe-rubygems', '~> 1.0']
53
40
  extra_dev_deps << ['hoe-manns', '~> 1.6']
54
- extra_dev_deps << ['hoe-reek', '~> 1.1']
41
+ extra_dev_deps << ['hoe-reek', '~> 1.2']
55
42
  extra_dev_deps << ['hoe-rubocop', '~> 1.0']
43
+ extra_dev_deps << ['hoe-travis', '~> 1.3']
56
44
  extra_dev_deps << ['hoe-version', '~> 1.2']
57
- extra_dev_deps << ['hoe-seattlerb', '~> 1.3']
58
45
  extra_dev_deps << ['hoe', '~> 3.16']
59
- extra_dev_deps << ['rake', '~> 12.0']
46
+ extra_dev_deps << ['rake', '~> 12.2']
47
+ extra_dev_deps << ['rdoc', '~> 5.1']
48
+ extra_dev_deps << ['reek', '~> 4.7']
49
+ extra_dev_deps << ['rubocop', '~> 0.51']
60
50
  extra_dev_deps << ['coveralls', '~> 0.8']
61
51
  extra_dev_deps << ['rainbow', '~> 2.2']
62
- extra_dev_deps << ['bundler', '~> 1.14']
52
+ extra_dev_deps << ['bundler', '~> 1.16']
63
53
  extra_dev_deps << ['parseconfig', '~> 1.0']
64
- extra_dev_deps << ['rspec', '~> 3.5']
54
+ extra_dev_deps << ['rspec', '~> 3.7']
65
55
  end
66
56
 
67
57
  ###################################### SETUP ZONE #####################################################################
@@ -70,23 +60,22 @@ require 'fileutils'
70
60
  require 'xdg'
71
61
  desc 'Setup'
72
62
  task :setup do
73
- sysxdg = XDG['CONFIG_HOME']
74
- dataxdg = XDG['DATA_HOME']
75
- sysconfdir = "#{sysxdg}/latex_curriculum_vitae"
76
- datadir = "#{dataxdg}/latex_curriculum_vitae"
63
+ sys_xdg = XDG['CONFIG_HOME']
64
+ data_xdg = XDG['DATA_HOME']
65
+ sysconf_dir = "#{sys_xdg}/latex_curriculum_vitae"
66
+ data_dir = "#{data_xdg}/latex_curriculum_vitae"
77
67
  home = Dir.home
78
- FileUtils.mkdir(sysconfdir) if !File.exist?(sysconfdir)
79
- FileUtils.mkdir(datadir) if !File.exist?(datadir)
80
- FileUtils.cp('etc/latex_curriculum_vitae.cfg', "#{sysconfdir}") if !File.exist?("#{sysconfdir}/latex_curriculum_vitae.cfg")
81
- FileUtils.cp('etc/personal_data.tex', "#{sysconfdir}") if !File.exist?("#{sysconfdir}/personal_data.tex")
82
- FileUtils.cp_r('data/latex_curriculum_vitae/.', "#{datadir}") if !File.exist?("#{datadir}/Appendix")
83
- FileUtils.cp('data/latex_curriculum_vitae/Pictures/arbeitsagentur.png', "#{dataxdg}/icons")
84
- FileUtils.rm_rf("#{home}/.rvm/rubies/default/lib/ruby/site_ruby/2.2.0/latex_curriculum_vitae") if File.exist?("#{home}/.rvm/rubies/default/lib/ruby/site_ruby/2.2.0/latex_curriculum_vitae/Resume/cv_10.tex")
85
- FileUtils.rm_rf("#{home}/.rvm/rubies/default/lib/ruby/site_ruby/2.2.0/latex_curriculum_vitae.rb") if File.exist?("#{home}/.rvm/rubies/default/lib/ruby/site_ruby/2.2.0/latex_curriculum_vitae.rb")
68
+ FileUtils.mkdir(sysconf_dir) if !File.exist?(sysconf_dir)
69
+ FileUtils.mkdir(data_dir) if !File.exist?(data_dir)
70
+ FileUtils.cp('etc/latex_curriculum_vitae.cfg', "#{sysconf_dir}") if !File.exist?
71
+ ("#{sysconf_dir}/latex_curriculum_vitae.cfg")
72
+ FileUtils.cp('etc/personal_data.tex', "#{sysconf_dir}") if !File.exist?("#{sysconf_dir}/personal_data.tex")
73
+ FileUtils.cp_r('data/latex_curriculum_vitae/.', "#{data_dir}") if !File.exist?("#{data_dir}/Appendix")
74
+ FileUtils.cp('data/latex_curriculum_vitae/Pictures/arbeitsagentur.png', "#{data_xdg}/icons")
86
75
  puts 'Creating Launcher...'.color(:yellow)
87
- desktopfile = "#{dataxdg}/applications/latex_curriculum_vitae.desktop"
88
- FileUtils.touch(desktopfile)
89
- File.write "#{desktopfile}", <<EOF
76
+ desktop_file = "#{data_xdg}/applications/latex_curriculum_vitae.desktop"
77
+ FileUtils.touch(desktop_file)
78
+ File.write "#{desktop_file}", <<EOF
90
79
  [Desktop Entry]
91
80
  Version=2.3
92
81
  Type=Application
@@ -94,7 +83,7 @@ Name=latex_curriculum_vitae
94
83
  GenericName=latex_curriculum_vitae
95
84
  Comment=Job-Application Creator
96
85
  Exec=latexcv.rb
97
- Icon="#{dataxdg}/icons/arbeitsagentur.png"
86
+ Icon="#{data_xdg}/icons/arbeitsagentur.png"
98
87
  Categories=Utility;Application;
99
88
  EOF
100
89
  puts 'Setup is now finished. See the documentation to find out more about this gem.'
data/STATUS.rdoc ADDED
@@ -0,0 +1,23 @@
1
+ = Misc status badges
2
+
3
+ == Gem
4
+ last public version :: {<img src="https://badge.fury.io/rb/latex_curriculum_vitae.png" alt="Build Status" />}[http://rubygems.org/gems/latex_curriculum_vitae]
5
+ downloads latest :: {<img src="https://img.shields.io/gem/dtv/latex_curriculum_vitae.svg" alt="Build Status" />}[http://rubygems.org/gems/latex_curriculum_vitae]
6
+ downloads all :: {<img src="https://img.shields.io/gem/dt/latex_curriculum_vitae.svg" alt="Build Status" />}[http://rubygems.org/gems/latex_curriculum_vitae]
7
+
8
+ == Code Review
9
+ 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/]
10
+ code quality :: {<img src="https://codeclimate.com/github/saigkill/latex_curriculum_vitae/badges/gpa.svg" alt="Code Quality" />}[https://codeclimate.com/github/saigkill/latex_curriculum_vitae]
11
+
12
+ == Security
13
+ security :: {<img src="https://hakiri.io/github/saigkill/latex_curriculum_vitae/master.svg" alt="security" />}[https://hakiri.io/github/saigkill/latex_curriculum_vitae/master]
14
+
15
+ == Dependencies
16
+ dependency check :: {<img src="https://gemnasium.com/saigkill/latex_curriculum_vitae.svg" alt="Dependency Status" />}[https://gemnasium.com/saigkill/latex_curriculum_vitae]
17
+
18
+ == Documentation
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
+ == Donations
22
+ donations :: {<img src="https://pledgie.com/campaigns/30094.png?skin_name=chrome" alt="Build Status" />}[https://pledgie.com/campaigns/30094]
23
+ donations :: {<img src="https://saigkill.tuxfamily.org/dotclear/public/Amazon.png" alt="Build Status" />}[http://www.amazon.de/registry/wishlist/D75HOEQ00BDD]