latex_curriculum_vitae 1.2.2 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -0
  3. data/Gemfile.lock +35 -28
  4. data/History.rdoc +14 -0
  5. data/LICENSE.rdoc +1 -1
  6. data/Manifest.txt +0 -8
  7. data/README.rdoc +10 -8
  8. data/Rakefile +5 -4
  9. data/bin/latexcv.rb +7 -4
  10. data/data/latex_curriculum_vitae/Appendix/Bibliography/bibliography1.bib +0 -4
  11. data/data/latex_curriculum_vitae/Cover/Cover.tex +6 -25
  12. data/data/latex_curriculum_vitae/Motivational_Letter/bwanschreiben.tex +11 -18
  13. data/data/latex_curriculum_vitae/Resume/cv_10.tex +71 -77
  14. data/data/latex_curriculum_vitae/Resume/friggeri-cv.cls +26 -11
  15. data/etc/latex_curriculum_vitae.cfg +5 -1
  16. data/etc/personal_data.tex +1 -1
  17. data/lib/latex_curriculum_vitae/cover.rb +1 -2
  18. data/lib/latex_curriculum_vitae/cv.rb +2 -1
  19. data/lib/latex_curriculum_vitae/email.rb +26 -18
  20. data/lib/latex_curriculum_vitae/entityfile.rb +26 -5
  21. data/lib/latex_curriculum_vitae/get-config.rb +11 -5
  22. data/lib/latex_curriculum_vitae/letter.rb +3 -1
  23. data/lib/latex_curriculum_vitae/notifier.rb +2 -1
  24. data/lib/latex_curriculum_vitae/outfile.rb +11 -5
  25. data/lib/latex_curriculum_vitae.rb +18 -7
  26. metadata +19 -13
  27. data/data/latex_curriculum_vitae/Resume/cv_10.aux +0 -43
  28. data/data/latex_curriculum_vitae/Resume/cv_10.bbl +0 -1238
  29. data/data/latex_curriculum_vitae/Resume/cv_10.bcf +0 -2273
  30. data/data/latex_curriculum_vitae/Resume/cv_10.blg +0 -82
  31. data/data/latex_curriculum_vitae/Resume/cv_10.out +0 -0
  32. data/data/latex_curriculum_vitae/Resume/cv_10.pdf +0 -0
  33. data/data/latex_curriculum_vitae/Resume/cv_10.run.xml +0 -86
  34. data/lib/latex_curriculum_vitae/glade/latexcv.glade +0 -249
@@ -3,7 +3,7 @@
3
3
  # @author Sascha Manns
4
4
  # @abstract module for adding new applications on the csv table
5
5
  #
6
- # Copyright (C) 2015-2016 Sascha Manns <samannsml@directbox.com>
6
+ # Copyright (C) 2015-2017 Sascha Manns <Sascha.Manns@mailbox.org>
7
7
  # License: MIT
8
8
 
9
9
  # Dependencies
@@ -14,7 +14,13 @@ module LatexCurriculumVitae
14
14
  # Module for creating and appending the outfile
15
15
  module CVOutfile
16
16
  # Method to adding the data into the csv file
17
- def self.add_to_outfile(jobtitle, company, contact, emailaddress, csvout)
17
+ # @param [String] jobtitle Title of the job application
18
+ # @param [String] company Companyname for the application
19
+ # @param [String] contact Name of the Contact in the Company
20
+ # @param [String] emailaddress Emailaddress of the Contact
21
+ # @param [String] csvout Name of the CSV-Outfile
22
+ # @param [String] joburl The shortened URL
23
+ def self.add_to_outfile(jobtitle, company, contact, emailaddress, csvout, joburl)
18
24
  time = Time.new
19
25
  date = time.strftime('%Y-%m-%d')
20
26
  contact.gsub!('%20', ' ')
@@ -25,12 +31,12 @@ module LatexCurriculumVitae
25
31
  else
26
32
  FileUtils.touch(csvout)
27
33
  File.write "#{csvout}", <<EOF
28
- date,company,job,contact,email,status
34
+ date,company,job,contact,email,status, joburl
29
35
  EOF
30
36
  end
31
37
  CSV.open("#{csvout}", 'a+') do |csv|
32
- # datum,firma,stelle,kontakt,email,status
33
- csv << ["#{date}", "#{company}", "#{jobtitle}", "#{contact}", "#{emailaddress}", 'Open']
38
+ # datum,firma,stelle,kontakt,email,status,joburl
39
+ csv << ["#{date}", "#{company}", "#{jobtitle}", "#{contact}", "#{emailaddress}", 'Open', "#{joburl}"]
34
40
  end
35
41
  end
36
42
  end
@@ -3,7 +3,7 @@
3
3
  # @author Sascha Manns
4
4
  # @abstract Main Module for latex_curriculum_vitae
5
5
  #
6
- # Copyright (C) 2015-2016 Sascha Manns <samannsml@directbox.com>
6
+ # Copyright (C) 2015-2017 Sascha Manns <Sascha.Manns@mailbox.org>
7
7
  # License: MIT
8
8
 
9
9
  # rubocop:disable Metrics/LineLength
@@ -23,7 +23,7 @@ require File.expand_path(File.join(File.dirname(__FILE__), 'latex_curriculum_vit
23
23
  # Main Class LatexCurriculumVitae
24
24
  module LatexCurriculumVitae
25
25
  # The version information
26
- VERSION = '1.2.2'
26
+ VERSION = '1.3.1'
27
27
 
28
28
  # Variables
29
29
  home = Dir.home
@@ -32,12 +32,23 @@ module LatexCurriculumVitae
32
32
  entitytex = "#{home}/.latex_curriculum_vitae/entity.tex"
33
33
  csvout = "#{home}/.latex_curriculum_vitae/job-applications.csv"
34
34
  tmpdir = "#{datadir}/latex_curriculum_vitae/tmp"
35
- name_of_pdf, name_of_cover, name_of_resume, name_of_letter, pdf_reader = LatexCurriculumVitae::GetConfig.get
35
+ name_of_pdf, name_of_cover, name_of_resume, name_of_letter, pdf_reader, shorten_url, bitly_user, bitly_apikey = LatexCurriculumVitae::GetConfig.get
36
36
 
37
37
  # Get the needed Information for creating the application
38
- contact, emailaddress, jobtitle, contact_sex, company, letter, proactive =
38
+ contact, emailaddress, jobtitle, contact_sex, company, letter, proactive, job_url =
39
39
  LatexCurriculumVitae::Entityfile.get_information(entitytex)
40
40
 
41
+ # Shorten shorten_url
42
+ if proactive == 'yes'
43
+ joburl = 'No URL available (Proactive)'
44
+ else
45
+ if shorten_url == 'yes'
46
+ joburl = LatexCurriculumVitae::Entityfile.shorten_url(job_url, bitly_user, bitly_apikey)
47
+ else
48
+ joburl = job_url
49
+ end
50
+ end
51
+
41
52
  # Create Motivational Letter
42
53
  if letter == 'yes'
43
54
  FileUtils.cd("#{datadir}/latex_curriculum_vitae/Motivational_Letter") do
@@ -61,12 +72,12 @@ module LatexCurriculumVitae
61
72
  LatexCurriculumVitae::CV.copy_home(name_of_pdf)
62
73
  end
63
74
 
75
+ # Add entry to Outfile
76
+ CVOutfile.add_to_outfile(jobtitle, company, contact, emailaddress, csvout, joburl)
77
+
64
78
  # Start evince to check the output file
65
79
  system("#{pdf_reader} #{home}/.latex_curriculum_vitae/#{name_of_pdf}.pdf")
66
80
 
67
- # Add entry to Outfile
68
- CVOutfile.add_to_outfile(jobtitle, company, contact, emailaddress, csvout)
69
-
70
81
  # Ask if result is ok
71
82
  LatexCurriculumVitae::Email.resultok(contact, emailaddress, jobtitle, contact_sex, proactive, letter, name_of_pdf)
72
83
 
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: 1.2.2
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sascha Manns
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-12 00:00:00.000000000 Z
11
+ date: 2017-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: setup
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.2'
69
+ - !ruby/object:Gem::Dependency
70
+ name: url_shortener
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.0.9
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.0.9
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: hoe-highline
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -337,7 +351,7 @@ description: |-
337
351
  the curriculum vitae. It builds the motivational letter (if chosen in the gui), the cover and the cv. The resulting pdf will be found
338
352
  in your home directory. Also it generates an email with a standard content, which allows you to send the mail with your cv directly.
339
353
  email:
340
- - samannsml@directbox.com
354
+ - Sascha.Manns@mailbox.org
341
355
  executables:
342
356
  - latexcv.rb
343
357
  extensions: []
@@ -406,13 +420,6 @@ files:
406
420
  - data/latex_curriculum_vitae/Pictures/signatur.png
407
421
  - data/latex_curriculum_vitae/Pictures/twitter.png
408
422
  - data/latex_curriculum_vitae/Pictures/xing.png
409
- - data/latex_curriculum_vitae/Resume/cv_10.aux
410
- - data/latex_curriculum_vitae/Resume/cv_10.bbl
411
- - data/latex_curriculum_vitae/Resume/cv_10.bcf
412
- - data/latex_curriculum_vitae/Resume/cv_10.blg
413
- - data/latex_curriculum_vitae/Resume/cv_10.out
414
- - data/latex_curriculum_vitae/Resume/cv_10.pdf
415
- - data/latex_curriculum_vitae/Resume/cv_10.run.xml
416
423
  - data/latex_curriculum_vitae/Resume/cv_10.tex
417
424
  - data/latex_curriculum_vitae/Resume/friggeri-cv.cls
418
425
  - data/latex_curriculum_vitae/Resume/missfont.log
@@ -424,16 +431,15 @@ files:
424
431
  - lib/latex_curriculum_vitae/email.rb
425
432
  - lib/latex_curriculum_vitae/entityfile.rb
426
433
  - lib/latex_curriculum_vitae/get-config.rb
427
- - lib/latex_curriculum_vitae/glade/latexcv.glade
428
434
  - lib/latex_curriculum_vitae/letter.rb
429
435
  - lib/latex_curriculum_vitae/notifier.rb
430
436
  - lib/latex_curriculum_vitae/outfile.rb
431
- homepage: http://saigkill.github.io
437
+ homepage: http://saigkill.tuxfamily.org
432
438
  licenses:
433
439
  - MIT
434
440
  metadata: {}
435
441
  post_install_message: "*** Run rake setup to finish the installation *** Please file
436
- bugreports and feature requests on: https://saigkill.myjetbrains.com/youtrack/issues"
442
+ bugreports and feature requests on: https://github.com/saigkill/latex_curriculum_vitae/issues"
437
443
  rdoc_options:
438
444
  - "--main"
439
445
  - README.rdoc
@@ -1,43 +0,0 @@
1
- \relax
2
- \providecommand\hyper@newdestlabel[2]{}
3
- \abx@aux@sortscheme{ydnt}
4
- \abx@aux@sortnamekeyscheme{global}
5
- \providecommand\HyperFirstAtBeginDocument{\AtBeginDocument}
6
- \HyperFirstAtBeginDocument{\ifx\hyper@anchor\@undefined
7
- \global\let\oldcontentsline\contentsline
8
- \gdef\contentsline#1#2#3#4{\oldcontentsline{#1}{#2}{#3}}
9
- \global\let\oldnewlabel\newlabel
10
- \gdef\newlabel#1#2{\newlabelxx{#1}#2}
11
- \gdef\newlabelxx#1#2#3#4#5#6{\oldnewlabel{#1}{{#2}{#3}}}
12
- \AtEndDocument{\ifx\hyper@anchor\@undefined
13
- \let\contentsline\oldcontentsline
14
- \let\newlabel\oldnewlabel
15
- \fi}
16
- \fi}
17
- \global\let\hyper@last\relax
18
- \gdef\HyperFirstAtBeginDocument#1{#1}
19
- \providecommand*\HyPL@Entry[1]{}
20
- \HyPL@Entry{0<</S/D>>}
21
- \@writefile{toc}{\boolfalse {citerequest}\boolfalse {citetracker}\boolfalse {pagetracker}\boolfalse {backtracker}\relax }
22
- \@writefile{lof}{\boolfalse {citerequest}\boolfalse {citetracker}\boolfalse {pagetracker}\boolfalse {backtracker}\relax }
23
- \@writefile{lot}{\boolfalse {citerequest}\boolfalse {citetracker}\boolfalse {pagetracker}\boolfalse {backtracker}\relax }
24
- \pgfsyspdfmark {pgfid1}{11374558}{50996271}
25
- \abx@aux@refsection{1}{6}
26
- \abx@aux@refsection{2}{6}
27
- \abx@aux@refsection{3}{6}
28
- \abx@aux@refsection{4}{6}
29
- \abx@aux@refsection{5}{6}
30
- \abx@aux@refsection{6}{6}
31
- \newlabel{refsection:1}{{}{6}{}{Doc-Start}{}}
32
- \abx@aux@page{1}{6}
33
- \newlabel{refsection:2}{{}{6}{}{Doc-Start}{}}
34
- \abx@aux@page{2}{6}
35
- \abx@aux@page{3}{6}
36
- \abx@aux@page{4}{6}
37
- \abx@aux@page{5}{6}
38
- \newlabel{refsection:3}{{}{6}{}{Doc-Start}{}}
39
- \newlabel{refsection:4}{{}{6}{}{Doc-Start}{}}
40
- \newlabel{refsection:5}{{}{6}{}{Doc-Start}{}}
41
- \abx@aux@page{6}{6}
42
- \abx@aux@page{7}{6}
43
- \newlabel{refsection:6}{{}{6}{}{Doc-Start}{}}