json_resume 1.0.5 → 1.0.6

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
  SHA1:
3
- metadata.gz: 913e12cb64b3ffa1abafc513a8d045d3881f0d87
4
- data.tar.gz: 4cb24bfc2fe9eef0a2dcdcb15e47cfce4553f699
3
+ metadata.gz: 306a50f052c0f15a7b9deacce6088ccd1b15cbca
4
+ data.tar.gz: af03a9cb8890760e4805ef28d6255df7919b63cf
5
5
  SHA512:
6
- metadata.gz: 21a807bd62453c97bd4a136cf634ec16f2732602b40308caee868bf35a28f5ef5321b143f95f86a51e69e3b576975b568aa8f47181ef91badf09121f51a9f281
7
- data.tar.gz: b97f030922fa1f631838d688b8a30fc190684b37c4f95ad077dcd984a2f699dea356a1fc50d536200cfdf02a5067a5f765b0bf84d795c16fb291a70fa56197a9
6
+ metadata.gz: e248f2bd9ff74f6ca8788be2f176ecbef6ffb5fbccfdc72b93a96d50539115791f7f18c82fb3c53298d6f2e34174c4c4e6cfcfc38ff39311cd837c054b34d67a
7
+ data.tar.gz: 000542e81fb92e58ff7f83100103b0ce33bcdd6b4f0279c176e0b3e244d916f9d8183bcc614fcfd22b0bfb42f7bff9c997f8092579a669bb97e87cbe6b13e923
data/README.md CHANGED
@@ -25,7 +25,7 @@ Note: YAML files are also supported. Try `$ json_resume sample --in=yaml`.
25
25
  ```
26
26
  json_resume convert [--template=/path/to/custom/template]
27
27
  [--out=html|html_pdf|tex|tex_pdf|md]
28
- [--locale=es|en|ge|fi|pt|zh_cn]
28
+ [--locale=es|en|ge|fi|pl|pt|zh_cn]
29
29
  [--dest_dir=/path/to/put/output/files]
30
30
  [--theme=default|classic] <json_input>
31
31
 
@@ -81,12 +81,18 @@ A directory `resume/` will be generated in cwd, which can be put hosted on /var/
81
81
 
82
82
  ## i18n Support
83
83
 
84
- Support for ``en``, ``ge``, ``es``, ``fi`` and ``pt`` right now. Pull requests for others are welcome.
84
+ Support for ``en``, ``ge``, ``es``, ``fi``, ``pl`` and ``pt`` right now. Pull requests for others are welcome.
85
85
 
86
86
  ```
87
87
  $ json_resume convert --locale=es prateek_cv.json
88
88
  ```
89
89
 
90
+ It is also possible to define a custom location for locale definitions.
91
+ Pass the option `--locale_dir=path/to/defs`.
92
+ In this location there should be the definitions available.
93
+ The default one is `en.yml`, others may be provided as well.
94
+ This is useful if you want to define new headings.
95
+
90
96
  ## Markup Language
91
97
 
92
98
  JSON is parsed as per the `markdown` standards. This implies all this works-
@@ -26,7 +26,8 @@ class JsonResumeCLI < Thor
26
26
  desc 'convert /path/to/json/file', 'converts the json to pretty resume format'
27
27
  option :out, default: 'html', banner: 'output_type', desc: 'html|html_pdf|tex|tex_pdf|md'
28
28
  option :template, banner: 'template_path', desc: 'path to customized template (optional)'
29
- option :locale, default: 'en', banner: 'locale', desc: 'en|ge|es|pt|zh_cn'
29
+ option :locale_dir, desc: 'path to locale definitions (optional)'
30
+ option :locale, default: 'en', banner: 'locale', desc: 'en|ge|es|pl|pt|zh_cn'
30
31
  option :theme, default: 'default', banner: 'theme', desc: 'default|classic'
31
32
  option :dest_dir, default: 'current', banner: 'dest_dir', desc: 'location of dest. dir (optional)'
32
33
  def convert(json_input)
@@ -185,7 +186,13 @@ class JsonResumeCLI < Thor
185
186
  end
186
187
 
187
188
  def assign_i18n(locale)
188
- I18n.load_path = Dir["#{@@orig_locn}/../locale/*.yml"]
189
+ if options[:locale_dir]
190
+ locale_dir = "#{File.expand_path(options[:locale_dir])}/*.yml"
191
+ else
192
+ locale_dir = "#{@@orig_locn}/../locale/*.yml"
193
+ end
194
+ puts "Using #{locale_dir} for locale files"
195
+ I18n.load_path = Dir[locale_dir]
189
196
  I18n.enforce_available_locales = true
190
197
  I18n.locale = locale.to_sym
191
198
  end
@@ -1,3 +1,3 @@
1
1
  module JsonResume
2
- VERSION = '1.0.5'
2
+ VERSION = '1.0.6'
3
3
  end
@@ -0,0 +1,45 @@
1
+ ---
2
+ pl:
3
+ headings:
4
+ # "Academic Achievements"
5
+ acad_achievements: "Dorobek naukowy"
6
+ # "Degree"
7
+ degree: "Stopień naukowy"
8
+ # "Education"
9
+ education: "Wykształcenie"
10
+ # "Professional Experience"
11
+ experience: "Doświadczenie zawodowe"
12
+ # "Extra Curricular Awards"
13
+ extra_curricular: "Dodatkowe osiągnięcia"
14
+ # "GitHub Projects"
15
+ github_projects: "Projekty na GitHubie"
16
+ # GPA
17
+ gpa: "Ocena końcowa"
18
+ # "Graduate Courses Taken"
19
+ grad_courses: "Studia podyplomowe"
20
+ # "Graduation Year"
21
+ graduation_year: "Rok ukończenia studiów"
22
+ # "Institution"
23
+ institution: "Uczelnia"
24
+ # "issued on"
25
+ issuance: "opublikowany w"
26
+ # "Major"
27
+ major: "Kierunek"
28
+ # "Memberships"
29
+ memberships: "Członkostwo"
30
+ # "Other Personal Projects"
31
+ other_projects: "Inne indywidualne projekty"
32
+ # "Publications"
33
+ papers: "Publikacje"
34
+ # "Patents"
35
+ patents: "Patenty"
36
+ # "Research Experience"
37
+ research_experience: "Doświadczenie badawcze"
38
+ # "Technical Skills"
39
+ skills: "Umiejętności techniczne"
40
+ # "Qualifications summary"
41
+ summary: "Podsumowanie kwalifikacji"
42
+ # "Technologies got to work on"
43
+ technology_used: "Środowisko techniczne"
44
+ # "Undergraduate Courses Taken"
45
+ undergrad_courses: "Studia licencjackie"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_resume
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Prateek Agarwal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-20 00:00:00.000000000 Z
11
+ date: 2018-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -180,6 +180,7 @@ files:
180
180
  - locale/es.yml
181
181
  - locale/fi.yml
182
182
  - locale/ge.yml
183
+ - locale/pl.yml
183
184
  - locale/pt.yml
184
185
  - locale/zh_cn.yml
185
186
  - spec/json_resume/formatter_html_spec.rb