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.
@@ -1,35 +1,35 @@
1
- # Copyright (C) 2015-2018 Sascha Manns <Sascha.Manns@mailbox.org>
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/>.
15
-
16
- # Dependencies
17
- require 'fileutils'
18
- require 'rainbow/ext/string'
19
-
20
- # main module
21
- module LatexCurriculumVitae
22
- # Module for creating the motivational letter
23
- module Letter
24
- # Method for creating a pdf from tex
25
- # @param [String] tmp_dir Name of the Tempdir
26
- # @param [String] name_of_letter Filename of the Letter
27
- def self.create_letter(tmp_dir, name_of_letter)
28
- puts 'Compiling motivational letter'.color(:yellow)
29
- system("pdflatex #{name_of_letter}.tex")
30
- puts 'Done compiling motivational letter'.color(:green)
31
- system("cp #{name_of_letter}.pdf #{tmp_dir}")
32
- puts 'Copied motivational letter to tmpdir'.color(:green)
33
- end
34
- end
35
- end
1
+ # Copyright (C) 2015-2018 Sascha Manns <Sascha.Manns@outlook.de>
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/>.
15
+
16
+ # Dependencies
17
+ require 'fileutils'
18
+ require 'rainbow/ext/string'
19
+
20
+ # main module
21
+ module LatexCurriculumVitae
22
+ # Module for creating the motivational letter
23
+ module Letter
24
+ # Method for creating a pdf from tex
25
+ # @param [String] tmp_dir Name of the Tempdir
26
+ # @param [String] name_of_letter Filename of the Letter
27
+ def self.create_letter(tmp_dir, name_of_letter)
28
+ puts 'Compiling motivational letter'.color(:yellow)
29
+ system("pdflatex #{name_of_letter}.tex")
30
+ puts 'Done compiling motivational letter'.color(:green)
31
+ system("cp #{name_of_letter}.pdf #{tmp_dir}")
32
+ puts 'Copied motivational letter to tmpdir'.color(:green)
33
+ end
34
+ end
35
+ end
@@ -1,36 +1,36 @@
1
- # Copyright (C) 2015-2018 Sascha Manns <Sascha.Manns@mailbox.org>
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/>.
15
-
16
- # Dependencies
17
-
18
- # Module for notify the user
19
- require 'notifier'
20
-
21
- # main module
22
- module LatexCurriculumVitae
23
- # Method for notifying the user
24
- module Notify
25
- # @param [String] job_title The Title of your job application
26
- # @param [String] data_dir Path to data dir
27
- def self.run(job_title, data_dir)
28
- img = "#{data_dir}/share/icons/arbeitsagentur.png"
29
- Notifier.notify(
30
- image: img.to_s,
31
- title: 'Your Job Application',
32
- message: "Your Job Application #{job_title} was created now."
33
- )
34
- end
35
- end
36
- end
1
+ # Copyright (C) 2015-2018 Sascha Manns <Sascha.Manns@outlook.de>
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/>.
15
+
16
+ # Dependencies
17
+
18
+ # Module for notify the user
19
+ require 'notifier'
20
+
21
+ # main module
22
+ module LatexCurriculumVitae
23
+ # Method for notifying the user
24
+ module Notify
25
+ # @param [String] job_title The Title of your job application
26
+ # @param [String] data_dir Path to data dir
27
+ def self.run(job_title, data_dir)
28
+ img = "#{data_dir}/share/icons/arbeitsagentur.png"
29
+ Notifier.notify(
30
+ image: img.to_s,
31
+ title: 'Your Job Application',
32
+ message: "Your Job Application #{job_title} was created now."
33
+ )
34
+ end
35
+ end
36
+ end
@@ -1,54 +1,54 @@
1
- # Copyright (C) 2015-2018 Sascha Manns <Sascha.Manns@mailbox.org>
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/>.
15
-
16
- # Dependencies
17
- require 'csv'
18
-
19
- # main module
20
- module LatexCurriculumVitae
21
- # Module for creating and appending the outfile
22
- module CVOutfile
23
- # Method to adding the data into the csv file
24
- # @param [String] job_title Title of the job application
25
- # @param [String] company Companyname for the application
26
- # @param [String] contact Name of the Contact in the Company
27
- # @param [String] email_address Emailaddress of the Contact
28
- # @param [String] csv_out Name of the CSV-Outfile
29
- # @param [String] job_url_checked The shortened URL
30
- # TODO: Try to fix this in future
31
- # rubocop:disable Metrics/AbcSize
32
- # This method smells of :reek:LongParameterList
33
- def self.add_to_outfile(job_title, company, contact, email_address, csv_out, job_url_checked)
34
- time = Time.new
35
- date = time.strftime('%Y-%m-%d')
36
- contact.gsub!('%20', ' ')
37
- job_title.gsub!('%20', ' ')
38
- job_title.gsub!('%26', '&')
39
- if File.exist?(csv_out)
40
- puts 'do nothing'
41
- else
42
- FileUtils.touch(csv_out)
43
- # rubocop:disable IndentHeredoc
44
- File.write csv_out.to_s, <<CSV
45
- date,company,job,contact,email,status, joburl
46
- CSV
47
- end
48
- CSV.open(csv_out.to_s, 'a+') do |csv|
49
- # datum,firma,stelle,kontakt,email,status,joburl
50
- csv << [date.to_s, company.to_s, job_title.to_s, contact.to_s, email_address.to_s, 'Open', job_url_checked.to_s]
51
- end
52
- end
53
- end
54
- end
1
+ # Copyright (C) 2015-2018 Sascha Manns <Sascha.Manns@outlook.de>
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/>.
15
+
16
+ # Dependencies
17
+ require 'csv'
18
+
19
+ # main module
20
+ module LatexCurriculumVitae
21
+ # Module for creating and appending the outfile
22
+ module CVOutfile
23
+ # Method to adding the data into the csv file
24
+ # @param [String] job_title Title of the job application
25
+ # @param [String] company Companyname for the application
26
+ # @param [String] contact Name of the Contact in the Company
27
+ # @param [String] email_address Emailaddress of the Contact
28
+ # @param [String] csv_out Name of the CSV-Outfile
29
+ # @param [String] job_url_checked The shortened URL
30
+ # TODO: Try to fix this in future
31
+ # rubocop:disable Metrics/AbcSize
32
+ # This method smells of :reek:LongParameterList
33
+ def self.add_to_outfile(job_title, company, contact, email_address, csv_out, job_url_checked)
34
+ time = Time.new
35
+ date = time.strftime('%Y-%m-%d')
36
+ contact.gsub!('%20', ' ')
37
+ job_title.gsub!('%20', ' ')
38
+ job_title.gsub!('%26', '&')
39
+ if File.exist?(csv_out)
40
+ puts 'do nothing'
41
+ else
42
+ FileUtils.touch(csv_out)
43
+ # rubocop:disable IndentHeredoc
44
+ File.write csv_out.to_s, <<CSV
45
+ date,company,job,contact,email,status, joburl
46
+ CSV
47
+ end
48
+ CSV.open(csv_out.to_s, 'a+') do |csv|
49
+ # datum,firma,stelle,kontakt,email,status,joburl
50
+ csv << [date.to_s, company.to_s, job_title.to_s, contact.to_s, email_address.to_s, 'Open', job_url_checked.to_s]
51
+ end
52
+ end
53
+ end
54
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: latex_curriculum_vitae
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sascha Manns
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-29 00:00:00.000000000 Z
11
+ date: 2018-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: notifier
@@ -240,28 +240,28 @@ dependencies:
240
240
  requirements:
241
241
  - - "~>"
242
242
  - !ruby/object:Gem::Version
243
- version: '4.8'
243
+ version: '4.7'
244
244
  type: :development
245
245
  prerelease: false
246
246
  version_requirements: !ruby/object:Gem::Requirement
247
247
  requirements:
248
248
  - - "~>"
249
249
  - !ruby/object:Gem::Version
250
- version: '4.8'
250
+ version: '4.7'
251
251
  - !ruby/object:Gem::Dependency
252
252
  name: rubocop
253
253
  requirement: !ruby/object:Gem::Requirement
254
254
  requirements:
255
255
  - - "~>"
256
256
  - !ruby/object:Gem::Version
257
- version: '0.55'
257
+ version: '0.57'
258
258
  type: :development
259
259
  prerelease: false
260
260
  version_requirements: !ruby/object:Gem::Requirement
261
261
  requirements:
262
262
  - - "~>"
263
263
  - !ruby/object:Gem::Version
264
- version: '0.55'
264
+ version: '0.57'
265
265
  - !ruby/object:Gem::Dependency
266
266
  name: coveralls
267
267
  requirement: !ruby/object:Gem::Requirement
@@ -348,7 +348,7 @@ description: |-
348
348
 
349
349
  https://github.com/saigkill/latex_curriculum_vitae
350
350
  email:
351
- - Sascha.Manns@mailbox.org
351
+ - Sascha.Manns@outlook.de
352
352
  executables:
353
353
  - latexcv.rb
354
354
  extensions: []
@@ -369,7 +369,6 @@ files:
369
369
  - LICENSE.rdoc
370
370
  - MAINTENANCE.md
371
371
  - Manifest.txt
372
- - NEWS
373
372
  - README.rdoc
374
373
  - Rakefile
375
374
  - bin/latexcv.rb
data/NEWS DELETED
@@ -1,128 +0,0 @@
1
- ===============================================================================
2
- latex_curriculum_vitae 2.1.1 - 2018-04-29
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
- * Nothing yet
15
-
16
- Notable Bugs Fixed:
17
-
18
- * 1 minor enhancements
19
-
20
- * Updated documentation and projects url
21
-
22
-
23
- ===============================================================================
24
- SOURCES / PACKAGES
25
- ===============================================================================
26
-
27
- Packages
28
- --------
29
-
30
- Download and installation information is available here:
31
-
32
- * https://saigkill.tuxfamily.org/documentation/latex_curriculum_vitae/
33
-
34
- Gems:
35
-
36
- * https://rubygems.org/gems/latex_curriculum_vitae
37
-
38
- ===============================================================================
39
- REPORT BUGS - HELP THE PROJECT - GROW THE COMMUNITY
40
- ===============================================================================
41
-
42
- If you encounter any bad behavior with this release, please do not
43
- hesitate to file bugs!
44
-
45
- * https://github.com/saigkill/latex_curriculum_vitae/issues
46
-
47
-
48
- ===============================================================================
49
- VALUED LATEX_CURRICULUM_VITAE CONTRIBUTORS
50
- ===============================================================================
51
-
52
- Contributors For This Release
53
- -----------------------------
54
-
55
- The following people directly contributed to the release of this version
56
- of hoe-manns. Without their help, there would be no release!
57
-
58
- Sascha Manns
59
-
60
- ===============================================================================
61
- latex_curriculum_vitae 2.1.0 - 2017-11-06
62
- ===============================================================================
63
-
64
- latex_curriculum_vitae 2.1.1 is the culmination of one days'
65
- work by 1 developer.
66
-
67
- New Features:
68
-
69
- * Nothing yet
70
-
71
- Enhancements:
72
-
73
- * Now you can choose between "Pony" and "Evolution" for mailing out.
74
- See Documentation.
75
-
76
- Notable Bugs Fixed:
77
-
78
- * 4 minor enhancements
79
-
80
- * LCV#3: Use more communicative variable names
81
- * LCV#4: Use Codeclimates new V2 engine
82
- * LCV#5: Fix Rubocop and Reek
83
- * LCV#6: Cleanup Rakefile
84
-
85
-
86
- ===============================================================================
87
- SOURCES / PACKAGES
88
- ===============================================================================
89
-
90
- Sources
91
- -------
92
-
93
- * latex_curriculum_vitae 2.1.0 Tarballs:
94
- https://launchpad.net/hoe-manns/2.x/2.1.0/+download/
95
- latex_curriculum_vitae-2.1.1.tar.xz
96
-
97
- Packages
98
- --------
99
-
100
- Download and installation information is available here:
101
-
102
- * https://saigkill.github.io/latex_curriculum_vitae/about/
103
-
104
- Gems:
105
-
106
- * https://rubygems.org/gems/latex_curriculum_vitae
107
-
108
- ===============================================================================
109
- REPORT BUGS - HELP THE PROJECT - GROW THE COMMUNITY
110
- ===============================================================================
111
-
112
- If you encounter any bad behavior with this release, please do not
113
- hesitate to file bugs!
114
-
115
- * https://bugs.launchpad.net/latexcv
116
-
117
-
118
- ===============================================================================
119
- VALUED LATEX_CURRICULUM_VITAE CONTRIBUTORS
120
- ===============================================================================
121
-
122
- Contributors For This Release
123
- -----------------------------
124
-
125
- The following people directly contributed to the release of this version
126
- of hoe-manns. Without their help, there would be no release!
127
-
128
- Sascha Manns