full_time 1.1.0 → 1.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0caea206e29e76942b2bb718ec80749580dd78b32c43491fe3a075b84d56f39
4
- data.tar.gz: a4b737ff12a62af9485218377a148a5284c0494b7f01f8aa20b47d5053c252c1
3
+ metadata.gz: 7a0cdbc1dceb09ce60825f7df69fe776b8d242370505aeb0cddcabda0de8a50a
4
+ data.tar.gz: f21fda1bddeea76947e98b78f1451f7749069090cafb4ca79732f0ce669ec1de
5
5
  SHA512:
6
- metadata.gz: 36036084b36a31b1c01ed014f5bc1e983829d4a0294ea43dd42cc14e0bf8fec253f4a1e489708a937c68a5a2f507d89bd1876e83b1ab8265057dff7761ce2033
7
- data.tar.gz: f26b6fab515834d2d92b9192637f2bb220f053e28c290d399bf1fcd2e42c95e7d220707d17f784aef8ab313ea446c7c97742b90dad2af3b82494cd38a15ef8d6
6
+ metadata.gz: 98f5cb81c1c07a0f16b94ef34f6d1bd7efee4d3b3f0e17ad1c889d5cfaa8525a828f0568d980eac8ad5f334072e2bf9d93397fafa9d095279fdad308150d1ad8
7
+ data.tar.gz: f720bf475195c2a9e32d1d439eb055257c09517d7539983d1f21913412bd82b7eee8d31cebbd34af47c05a579114207ba99c3f149ee7f493c13e7f717f3d1b2c
data/README.md CHANGED
@@ -29,6 +29,8 @@ Depending on your export target you have to install the next gems:
29
29
  Declare your CV within DSL:
30
30
 
31
31
  ```ruby
32
+ # cv.rb
33
+
32
34
  FullTime.profile do
33
35
  name 'Rebecca Lee'
34
36
  email 'revy@blacklagoon.moe'
@@ -66,7 +68,7 @@ FullTime.profile do
66
68
  end
67
69
 
68
70
  certification do
69
- course do
71
+ certificate do
70
72
  title 'Two Hand Shooting: Part 1'
71
73
  company 'Bang! Bang! Bang!'
72
74
  homepage 'https://bangbangbang.com'
@@ -81,9 +83,9 @@ FullTime.profile do
81
83
  end
82
84
  ```
83
85
 
84
- The next command converts your CV to HTML:
86
+ The next command converts your CV to HTML within custom ERB template:
85
87
 
86
- $ full_time -t html ./example/cv.rb ./example/template.html.erb > ./example/cv.html
88
+ $ full_time -t html cv.rb ./example/template.html.erb > cv.html
87
89
 
88
90
  For the more extensive example checkout `example/cv.rb`.
89
91
 
@@ -97,23 +99,12 @@ For the more extensive example checkout `example/cv.rb`.
97
99
  * Education
98
100
  * University
99
101
  * Certification
100
- * Course
102
+ * Certificate
101
103
  ```
102
104
 
103
105
  ## TODO
104
106
 
105
107
  * Present any collection with a list in the template
106
- * Extend "Certification" with `expire_date`, `license_number`, `url`, `authority` (like in LinkedIn) + Adjust README "High-Level Structure"
107
- ```ruby
108
- certificate do
109
- title 'AWS Certified Developer - Associate (DVA)'
110
- authority 'Amazon Web Services'
111
- expire_date 'March 2020'
112
- license_number 'S4BBW3CKBBQQQM94'
113
- homepage 'https://aws.amazon.com/certification/certified-developer-associate'
114
- url 'https://www.certmetrics.com/amazon/public/badge.aspx?i=2&t=c&d=2018-03-01&ci=AWS00435488'
115
- end
116
- ```
117
108
  * Add "Intro"
118
109
  ```ruby
119
110
  intro <<-INTRO
@@ -124,7 +115,7 @@ INTRO
124
115
  ```
125
116
  * Add "Skills" –> "Services" (Mandrill, Pingdom, etc)
126
117
  * Add the different template engines, e.g. render to `pdf`, `doc`, etc
127
- * Add LinkedIn export support
118
+ * Add LinkedIn export
128
119
  * Add CI
129
120
  * Add badges
130
121
 
data/example/cv.html CHANGED
@@ -417,29 +417,29 @@
417
417
  <div class="col-12">
418
418
  <h2>Certification</h2>
419
419
 
420
- <!-- courses should be presented as a list (<ul>) -->
421
- <h3>AWS Certified Solutions Architect - Associate (SAA) ( Amazon Web Services )</h3>
422
- <div><a href="https://www.certmetrics.com/amazon/public/badge.aspx?i=1&t=c&d=2018-04-02&ci=AWS00435488">https://www.certmetrics.com/amazon/public/badge.aspx?i=1&t=c&d=2018-04-02&ci=AWS00435488</a></div>
420
+ <!-- certificates should be presented as a list (<ul>) -->
421
+ <h3>Amazon Web Services – AWS Certified Solutions Architect - Associate (SAA) (April 2018 April 2020)</h3>
422
+ <div><a href="https://www.certmetrics.com/amazon/public/badge.aspx?i=1&t=c&d=2018-04-02&ci=AWS00435488">MGV91PF2BE1QQBGD</a></div>
423
423
 
424
- <!-- courses should be presented as a list (<ul>) -->
425
- <h3>AWS Certified Developer - Associate (DVA) ( Amazon Web Services )</h3>
426
- <div><a href="https://www.certmetrics.com/amazon/public/badge.aspx?i=2&t=c&d=2018-03-01&ci=AWS00435488">https://www.certmetrics.com/amazon/public/badge.aspx?i=2&t=c&d=2018-03-01&ci=AWS00435488</a></div>
424
+ <!-- certificates should be presented as a list (<ul>) -->
425
+ <h3>Amazon Web Services – AWS Certified Developer - Associate (DVA) (March 2018 March 2020)</h3>
426
+ <div><a href="https://www.certmetrics.com/amazon/public/badge.aspx?i=2&t=c&d=2018-03-01&ci=AWS00435488">S4BBW3CKBBQQQM94</a></div>
427
427
 
428
- <!-- courses should be presented as a list (<ul>) -->
429
- <h3>Web Application Architectures ( Coursera )</h3>
430
- <div><a href="https://www.coursera.org/course/webapplications">https://www.coursera.org/course/webapplications</a></div>
428
+ <!-- certificates should be presented as a list (<ul>) -->
429
+ <h3>Coursera – Web Application Architectures </h3>
430
+ <div><a href=""></a></div>
431
431
 
432
- <!-- courses should be presented as a list (<ul>) -->
433
- <h3>Algorithms: Design and Analysis, Part 1 ( Coursera )</h3>
434
- <div><a href="https://www.coursera.org/course/algo">https://www.coursera.org/course/algo</a></div>
432
+ <!-- certificates should be presented as a list (<ul>) -->
433
+ <h3>Coursera – Algorithms: Design and Analysis, Part 1 </h3>
434
+ <div><a href=""></a></div>
435
435
 
436
- <!-- courses should be presented as a list (<ul>) -->
437
- <h3>Gamification ( Coursera )</h3>
438
- <div><a href="https://www.coursera.org/course/Gamification">https://www.coursera.org/course/Gamification</a></div>
436
+ <!-- certificates should be presented as a list (<ul>) -->
437
+ <h3>Coursera Gamification </h3>
438
+ <div><a href=""></a></div>
439
439
 
440
- <!-- courses should be presented as a list (<ul>) -->
441
- <h3>Functional Programming Principles in Scala ( Coursera )</h3>
442
- <div><a href="https://www.coursera.org/course/progfun">https://www.coursera.org/course/progfun</a></div>
440
+ <!-- certificates should be presented as a list (<ul>) -->
441
+ <h3>Coursera – Functional Programming Principles in Scala </h3>
442
+ <div><a href=""></a></div>
443
443
 
444
444
  </div>
445
445
  <div class="col-12">
data/example/cv.rb CHANGED
@@ -227,40 +227,46 @@ FullTime.profile do
227
227
  end
228
228
 
229
229
  certification do
230
- course do
230
+ certificate do
231
231
  title 'AWS Certified Solutions Architect - Associate (SAA)'
232
- company 'Amazon Web Services'
233
- homepage 'https://www.certmetrics.com/amazon/public/badge.aspx?i=1&t=c&d=2018-04-02&ci=AWS00435488'
232
+ authority 'Amazon Web Services'
233
+ start_date 'April 2018'
234
+ end_date 'April 2020'
235
+ license_number 'MGV91PF2BE1QQBGD'
236
+ url 'https://www.certmetrics.com/amazon/public/badge.aspx?i=1&t=c&d=2018-04-02&ci=AWS00435488'
234
237
  end
235
238
 
236
- course do
239
+ certificate do
237
240
  title 'AWS Certified Developer - Associate (DVA)'
238
- company 'Amazon Web Services'
239
- homepage 'https://www.certmetrics.com/amazon/public/badge.aspx?i=2&t=c&d=2018-03-01&ci=AWS00435488'
241
+ authority 'Amazon Web Services'
242
+ start_date 'March 2018'
243
+ end_date 'March 2020'
244
+ license_number 'S4BBW3CKBBQQQM94'
245
+ url 'https://www.certmetrics.com/amazon/public/badge.aspx?i=2&t=c&d=2018-03-01&ci=AWS00435488'
240
246
  end
241
247
 
242
- course do
248
+ certificate do
243
249
  title 'Web Application Architectures'
244
- company 'Coursera'
245
- homepage 'https://www.coursera.org/course/webapplications'
250
+ authority 'Coursera'
251
+ end_date 'May 2015'
246
252
  end
247
253
 
248
- course do
254
+ certificate do
249
255
  title 'Algorithms: Design and Analysis, Part 1'
250
- company 'Coursera'
251
- homepage 'https://www.coursera.org/course/algo'
256
+ authority 'Coursera'
257
+ end_date 'April 2015'
252
258
  end
253
259
 
254
- course do
260
+ certificate do
255
261
  title 'Gamification'
256
- company 'Coursera'
257
- homepage 'https://www.coursera.org/course/Gamification'
262
+ authority 'Coursera'
263
+ end_date 'April 2014'
258
264
  end
259
265
 
260
- course do
266
+ certificate do
261
267
  title 'Functional Programming Principles in Scala'
262
- company 'Coursera'
263
- homepage 'https://www.coursera.org/course/progfun'
268
+ authority 'Coursera'
269
+ end_date 'December 2013'
264
270
  end
265
271
  end
266
272
 
@@ -70,10 +70,10 @@
70
70
  </div>
71
71
  <div class="col-12">
72
72
  <h2>Certification</h2>
73
- <% certification.courses.each do |course| %>
74
- <!-- courses should be presented as a list (<ul>) -->
75
- <h3><%= course.title %> ( <%= course.company %> )</h3>
76
- <div><a href="<%= course.homepage %>"><%= course.homepage %></a></div>
73
+ <% certification.certificates.each do |certificate| %>
74
+ <!-- certificates should be presented as a list (<ul>) -->
75
+ <h3><%= certificate.authority %> – <%= certificate.title %> <% if certificate.start_date && certificate.end_date %>(<%= certificate.start_date %> – <%= certificate.end_date %>)<% end %></h3>
76
+ <div><a href="<%= certificate.url %>"><%= certificate.license_number %></a></div>
77
77
  <% end %>
78
78
  </div>
79
79
  <div class="col-12">
@@ -0,0 +1,12 @@
1
+ module FullTime
2
+ class Certificate
3
+ extend FullTime::DSL
4
+
5
+ dsl_attr_accessor :title,
6
+ :authority,
7
+ :start_date,
8
+ :end_date,
9
+ :license_number,
10
+ :url
11
+ end
12
+ end
@@ -1,27 +1,26 @@
1
1
  module FullTime
2
2
  class Certification
3
- attr_accessor :courses
3
+ attr_accessor :certificates
4
4
 
5
5
  def initialize
6
- @courses = List.new
6
+ @certificates = List.new
7
7
  end
8
8
 
9
- def courses(&block)
9
+ def certificates(&block)
10
10
  if block_given?
11
- @courses.instance_eval(&block)
11
+ @certificates.instance_eval(&block)
12
12
  end
13
13
 
14
- @courses
14
+ @certificates
15
15
  end
16
16
 
17
- def course(&block)
17
+ def certificate(&block)
18
18
  if block_given?
19
- course = Course.new
20
- course.instance_eval(&block)
21
- @courses << course
22
- course
19
+ certificate = Certificate.new
20
+ certificate.instance_eval(&block)
21
+ @certificates << certificate
22
+ certificate
23
23
  end
24
24
  end
25
- # alias :course, :certification
26
25
  end
27
26
  end
@@ -1,3 +1,3 @@
1
1
  module FullTime
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
data/lib/full_time.rb CHANGED
@@ -10,7 +10,7 @@ require "full_time/certification"
10
10
  require "full_time/company"
11
11
  require "full_time/project"
12
12
  require "full_time/university"
13
- require "full_time/course"
13
+ require "full_time/certificate"
14
14
 
15
15
  module FullTime
16
16
  def self.profile(&block)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: full_time
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Babichev
@@ -66,9 +66,9 @@ files:
66
66
  - example/template.html.erb
67
67
  - exe/full_time
68
68
  - lib/full_time.rb
69
+ - lib/full_time/certificate.rb
69
70
  - lib/full_time/certification.rb
70
71
  - lib/full_time/company.rb
71
- - lib/full_time/course.rb
72
72
  - lib/full_time/dsl.rb
73
73
  - lib/full_time/education.rb
74
74
  - lib/full_time/employment.rb
@@ -1,7 +0,0 @@
1
- module FullTime
2
- class Course
3
- extend FullTime::DSL
4
-
5
- dsl_attr_accessor :title, :company, :homepage
6
- end
7
- end