rresume 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/rresume/person.rb +99 -26
- data/lib/rresume/tool.rb +1 -1
- data/{lib/thomas.rb → test/example_thomas.rb} +120 -56
- data/test/huhu.html +33 -0
- data/test/profil.html +535 -0
- data/test/tc_HTML_Konformitaet_thopre_de.rb +18 -0
- data/test/tc_thomas_neue_methode.rb +17 -1
- data/test/tc_tool.rb +38 -4
- data/test/toolcheck.rb +24 -0
- data/test/ts_rresume.rb +3 -2
- data/test/vorlage_profil.html +82 -83
- metadata +7 -4
- data/test/beispeil2.rb +0 -22
@@ -0,0 +1,18 @@
|
|
1
|
+
$:.unshift File.join(File.dirname(__FILE__), "..", "lib")
|
2
|
+
|
3
|
+
require 'test/unit' unless defined? $ZENTEST and $ZENTEST
|
4
|
+
require 'rubygems'
|
5
|
+
require 'rresume'
|
6
|
+
require 'mechanize'
|
7
|
+
|
8
|
+
class TestTool < Test::Unit::TestCase
|
9
|
+
|
10
|
+
def setup
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_html_mein_profil
|
14
|
+
assert(false)
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
|
@@ -74,6 +74,21 @@ class TestThomas < Test::Unit::TestCase
|
|
74
74
|
"Englisch",
|
75
75
|
"Italienisch (Grundkenntnisse)",
|
76
76
|
]
|
77
|
+
# freier Text, hier kann man weitere Kenntnisse angeben, die nicht einem
|
78
|
+
# bestimmten Projekt zuzuordnen sind (z.B. OOD, XML, etc.)
|
79
|
+
# Dies wird als einfacher Text in einem Textkasten ausgegeben. HTML-code
|
80
|
+
# ist erlaubt und wird empfohlen.
|
81
|
+
thomas.sonstiges =<<END
|
82
|
+
<ul>
|
83
|
+
<li>Objektorientieres Design und Entwicklung</li>
|
84
|
+
<li>Ruby</li>
|
85
|
+
<li>Ruby on Rails</li>
|
86
|
+
<li>XML</li>
|
87
|
+
<li>Test-Driven-Development / Unit-Tests</li>
|
88
|
+
<li>SCCS / CVS / Subversion - Versionsverwaltungssysteme</li>
|
89
|
+
<li>CSS</li>
|
90
|
+
</ul>
|
91
|
+
END
|
77
92
|
|
78
93
|
# Container fuer saemtliche Projekte
|
79
94
|
projectlist = ProjectList.new(thomas)
|
@@ -489,6 +504,7 @@ Datenbank Oracle 7.x.x, Shell-Scripts, awk, Python. - Realisierung von Batchprog
|
|
489
504
|
|
490
505
|
thomas << categories
|
491
506
|
|
507
|
+
|
492
508
|
### AUSGABE
|
493
509
|
|
494
510
|
#thomas.write(mode=:html,order=:newest_first,:mit_verfuegbarkeit)
|
@@ -517,7 +533,7 @@ Datenbank Oracle 7.x.x, Shell-Scripts, awk, Python. - Realisierung von Batchprog
|
|
517
533
|
assert_equal(vergleich,buffer,"Buffer ist nicht gleich der Vorlagedatei vorlage_profil.html")
|
518
534
|
end
|
519
535
|
|
520
|
-
# das sollte eigentlich
|
536
|
+
# das sollte eigentlich auch noch in eine Klasse
|
521
537
|
def tools_in_categories?(categories)
|
522
538
|
# Testen, ob wir alle Tools in eine Kategorie aufgenommen haben
|
523
539
|
ObjectSpace.each_object(Tool) {|tool|
|
data/test/tc_tool.rb
CHANGED
@@ -18,21 +18,55 @@ class TestTool < Test::Unit::TestCase
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def test_last_used
|
21
|
-
|
21
|
+
thomas = Person.new("Thomas","Preymesser")
|
22
|
+
aTool = Tool.new("Ada")
|
23
|
+
projectlist = ProjectList.new(@thomas)
|
24
|
+
ada1 = Project.new("Ada1")
|
25
|
+
ada1.von(1,2006)
|
26
|
+
ada1.bis(7,2006)
|
27
|
+
ada1.used_tool(aTool)
|
28
|
+
projectlist << ada1
|
29
|
+
assert_equal("7/2006", aTool.last_used)
|
22
30
|
end
|
23
31
|
|
24
32
|
def test_total_for
|
25
|
-
|
33
|
+
thomas = Person.new("Thomas","Preymesser")
|
34
|
+
aTool = Tool.new("Ada")
|
35
|
+
projectlist = ProjectList.new(@thomas)
|
36
|
+
ada1 = Project.new("Ada1")
|
37
|
+
ada1.von(1,2006)
|
38
|
+
ada1.bis(7,2006)
|
39
|
+
ada1.used_tool(aTool)
|
40
|
+
projectlist << ada1
|
41
|
+
|
42
|
+
assert_equal(7, aTool.total_for)
|
26
43
|
end
|
27
44
|
|
28
45
|
def test_update
|
46
|
+
thomas = Person.new("Thomas","Preymesser")
|
47
|
+
aTool = Tool.new("Ada")
|
48
|
+
projectlist = ProjectList.new(@thomas)
|
49
|
+
ada1 = Project.new("Ada1")
|
50
|
+
ada1.von(1,2006)
|
51
|
+
ada1.bis(7,2006)
|
52
|
+
ada1.used_tool(aTool)
|
53
|
+
projectlist << ada1
|
54
|
+
|
29
55
|
assert(true)
|
30
56
|
end
|
31
57
|
|
32
58
|
def test_zuletzt
|
33
|
-
|
59
|
+
thomas = Person.new("Thomas","Preymesser")
|
60
|
+
aTool = Tool.new("Ada")
|
61
|
+
projectlist = ProjectList.new(@thomas)
|
62
|
+
ada1 = Project.new("Ada1")
|
63
|
+
ada1.von(1,2006)
|
64
|
+
ada1.bis(7,2006)
|
65
|
+
ada1.used_tool(aTool)
|
66
|
+
projectlist << ada1
|
67
|
+
|
68
|
+
assert_equal("7/2006", aTool.last_used)
|
34
69
|
end
|
35
70
|
|
36
71
|
end
|
37
72
|
|
38
|
-
# Number of errors detected: 2
|
data/test/toolcheck.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# Toolcheck
|
2
|
+
# Hilfsfunktion
|
3
|
+
|
4
|
+
# das sollte eigentlich auch noch in eine Klasse
|
5
|
+
def tools_in_categories?(categories)
|
6
|
+
# Testen, ob wir alle Tools in eine Kategorie aufgenommen haben
|
7
|
+
ObjectSpace.each_object(Tool) {|tool|
|
8
|
+
found=false
|
9
|
+
categories.each {|cate|
|
10
|
+
if cate[1] != cate[1].uniq
|
11
|
+
raise RuntimeError, "Kategorie #{cate[0]} doppelter Eintrag in Kategorie"
|
12
|
+
end
|
13
|
+
cate[1].each {|t|
|
14
|
+
if t.name == tool.name
|
15
|
+
found = true
|
16
|
+
end
|
17
|
+
}
|
18
|
+
}
|
19
|
+
if !found
|
20
|
+
raise RuntimeError, "Tool #{tool.name} ist keiner Kategorie zugeordnet"
|
21
|
+
end
|
22
|
+
}
|
23
|
+
end
|
24
|
+
|
data/test/ts_rresume.rb
CHANGED
data/test/vorlage_profil.html
CHANGED
@@ -1,87 +1,86 @@
|
|
1
1
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<title>Profil Thomas Preymesser</title>
|
6
|
+
</head>
|
7
|
+
|
8
|
+
<body background="" bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#ff0000">
|
9
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
2
10
|
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
</
|
7
|
-
<
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
<div>Englisch
|
77
|
-
</div>
|
78
|
-
<div>Italienisch (Grundkenntnisse)
|
79
|
-
</div>
|
80
|
-
</td>
|
81
|
-
</tr>
|
82
|
-
</table>
|
83
|
-
</body>
|
84
|
-
</html>
|
11
|
+
<p> </p>
|
12
|
+
<table BORDER="1" WIDTH="100%" cellpadding="5">
|
13
|
+
<tr>
|
14
|
+
<td valign="top"> <b>Profil</b> von<br> Thomas Preymesser
|
15
|
+
<br> Stand: 2006-08-17
|
16
|
+
<br>
|
17
|
+
</td>
|
18
|
+
<td> Prinzenallee 36<br> 13359 Berlin
|
19
|
+
<br> Tel.: 030 - 49 78 37 06
|
20
|
+
<br>
|
21
|
+
</td>
|
22
|
+
<td valign="top"> mobile: 0172 - 8111 959<br> email:
|
23
|
+
<a href="mailto:tp@thopre.de">tp@thopre.de</a><br>
|
24
|
+
</td>
|
25
|
+
</tr>
|
26
|
+
</table>
|
27
|
+
<ol>
|
28
|
+
<li><a href="#hw">Hardware</a> </li>
|
29
|
+
<li><a href="#bs">Betriebssysteme</a> </li>
|
30
|
+
<li><a href="#db">Datenbanken</a> </li>
|
31
|
+
<li><a href="#to">Tools / Sonstiges</a> </li>
|
32
|
+
<li><a href="#la">Programmiersprachen</a> </li>
|
33
|
+
<li><a href="#pr">Projekte</a> </li>
|
34
|
+
</ol>
|
35
|
+
<hr>
|
36
|
+
<h1>Aktuelles</h1>
|
37
|
+
<p> </p>
|
38
|
+
<table border="1" cellspacing="0" cellpadding="4">
|
39
|
+
<tr>
|
40
|
+
<td> <b> bevorzugter Einsatzort: </b> </td>
|
41
|
+
<td> Raum Berlin. </td>
|
42
|
+
</tr>
|
43
|
+
<tr>
|
44
|
+
<td> <b> Stundensatz: </b> </td>
|
45
|
+
<td> <!-- 70 €/h zuzügl. MwSt. --> nach Vereinbarung </td>
|
46
|
+
</tr>
|
47
|
+
</table>
|
48
|
+
<h1><a name="link">Persönliche Daten</a></h1>
|
49
|
+
<table width="95%" border="0" cellspacing="0" cellpadding="4">
|
50
|
+
<tr> <!-- Row 1 Column 1 -->
|
51
|
+
<td> <b> Geburtsdatum: </b> </td>
|
52
|
+
<!-- Row 1 Column 2 -->
|
53
|
+
<td> 1961-11-21 </td>
|
54
|
+
</tr>
|
55
|
+
<tr> <!-- Row 2 Column 1 -->
|
56
|
+
<td valign="top"> <b> Ausbildung: </b> </td>
|
57
|
+
<!-- Row 2 Column 2 -->
|
58
|
+
<td>
|
59
|
+
<div>Fachhochschulreife
|
60
|
+
</div>
|
61
|
+
<div>Studium Nachrichtentechnik
|
62
|
+
</div>
|
63
|
+
<div>Fachinformatiker (Fachrichtung Anwendungsentwicklung)
|
64
|
+
</div>
|
65
|
+
</td>
|
66
|
+
</tr>
|
67
|
+
<tr>
|
68
|
+
<td> <b> Fortbildung: </b> </td>
|
69
|
+
<td>
|
70
|
+
<div>Certified Business Engineer (geprüfter Wirtschaftsinformatiker)
|
71
|
+
</div>
|
72
|
+
</td>
|
73
|
+
</tr>
|
74
|
+
<tr>
|
75
|
+
<td valign="top"> <b> Fremdsprachen: </b> </td>
|
76
|
+
<td>
|
77
|
+
<div>Englisch
|
78
|
+
</div>
|
79
|
+
<div>Italienisch (Grundkenntnisse)
|
80
|
+
</div>
|
81
|
+
</td>
|
82
|
+
</tr>
|
83
|
+
</table>
|
85
84
|
<h1>
|
86
85
|
Projekte
|
87
86
|
</h1>
|
@@ -515,4 +514,4 @@ AMBOSS UNIX COBOL C-ISAM </td>
|
|
515
514
|
<td align="right">10/2000</td>
|
516
515
|
</tr>
|
517
516
|
</table>
|
518
|
-
<br>
|
517
|
+
<br>created with <a href="http://www.thopre.de/rresume/">rresume</a>
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
|
|
3
3
|
specification_version: 1
|
4
4
|
name: rresume
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.1.
|
7
|
-
date: 2006-08-
|
6
|
+
version: 0.1.1
|
7
|
+
date: 2006-08-20 00:00:00 +02:00
|
8
8
|
summary: Create resumes with Ruby
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -31,7 +31,6 @@ authors:
|
|
31
31
|
files:
|
32
32
|
- lib/profil.html
|
33
33
|
- lib/profil.pdf
|
34
|
-
- lib/thomas.rb
|
35
34
|
- lib/pdf-test.rb
|
36
35
|
- lib/hula.html
|
37
36
|
- lib/README
|
@@ -60,9 +59,13 @@ files:
|
|
60
59
|
- test/tc_minimal.rb
|
61
60
|
- test/unterschied_projectlist
|
62
61
|
- test/vorlage_profil.html
|
63
|
-
- test/
|
62
|
+
- test/profil.html
|
64
63
|
- test/tc_thomas_neue_methode.rb
|
64
|
+
- test/huhu.html
|
65
65
|
- test/vorlage_profil.txt
|
66
|
+
- test/tc_HTML_Konformitaet_thopre_de.rb
|
67
|
+
- test/example_thomas.rb
|
68
|
+
- test/toolcheck.rb
|
66
69
|
- README
|
67
70
|
test_files:
|
68
71
|
- test/ts_rresume.rb
|
data/test/beispeil2.rb
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
buffer = ">>>"
|
2
|
-
def buffer.write(str)
|
3
|
-
self << str
|
4
|
-
end
|
5
|
-
|
6
|
-
# Ausgabe umlenken
|
7
|
-
$stdout = buffer #-> ">>>"
|
8
|
-
puts "hallo" #-> "hallo\n"
|
9
|
-
|
10
|
-
puts "Thomas Preymesser"
|
11
|
-
# Ausgabe zur�cksetzen
|
12
|
-
$stdout = STDOUT
|
13
|
-
p buffer #-> ">>>hallo\n"
|
14
|
-
|
15
|
-
vergleich=""
|
16
|
-
f=File.new("vorlage_profil.html","r")
|
17
|
-
f.each { |line|
|
18
|
-
# puts line
|
19
|
-
vergleich<<line
|
20
|
-
}
|
21
|
-
p vergleich
|
22
|
-
|