GitCV 0.0.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 +7 -0
- data/lib/GitCV.rb +20 -0
- metadata +44 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a107849383a487718650d9aa00145b9fdc594c3c
|
4
|
+
data.tar.gz: 2cbda16f0f6d72785703dc5c7cceddf8f667004a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e8dc5eb7c622b8d9871ca61d9c9e24e6d0cf886d2968f4f25bd92db46b77453d022c300e7d8b4ec32506751889dcbf47f36204a08ce5fa4c511aa70091431236
|
7
|
+
data.tar.gz: 8b377d7c2feab3661f04ac81be9c573a81199006894a95092fe191068730ca137beaaaec492a3a70deb28cc86d9dc45da55dca9a36a3cddaddfc7d1397208d1c
|
data/lib/GitCV.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'prawn'
|
2
|
+
require 'octokit'
|
3
|
+
|
4
|
+
class GitCV
|
5
|
+
def self.create(username)
|
6
|
+
user = Octokit.user "#{username}"
|
7
|
+
puts "For user : #{user.name}"
|
8
|
+
puts "#{user.fields} \n public repositories : "
|
9
|
+
puts "#{user[:public_repos]} \n followers : #{user[:followers]} \n following #{user[:following]}"
|
10
|
+
puts "Account created at : #{user[:created_at]} \n pub link : #{user.rels[:gists].href}"
|
11
|
+
|
12
|
+
Prawn::Document.generate("#{user.name}.pdf") do
|
13
|
+
text "Username : #{user.name} \n Followers : #{user[:followers]}
|
14
|
+
\n email : #{user[:email]} \n Hireable : #{user[:hireable]} \n Company : #{user[:Company]}
|
15
|
+
\n Following : #{user[:following]} \n Location #{user[:location]}
|
16
|
+
\n Public repositories : #{user[:public_repos]} \n contributions : #{user[:contributions]}
|
17
|
+
\n Biography : #{user[:bio]} \n #{user[:avatar]}"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
metadata
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: GitCV
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Guga katsiashvili
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-09-20 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: A simple gem to make cv (in pdf) out from github page GITCV
|
14
|
+
email: guga.katsiashvili@gmail.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/GitCV.rb
|
20
|
+
homepage: http://rubygems.org/gems/TommyGun
|
21
|
+
licenses:
|
22
|
+
- MIT
|
23
|
+
metadata: {}
|
24
|
+
post_install_message:
|
25
|
+
rdoc_options: []
|
26
|
+
require_paths:
|
27
|
+
- lib
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
requirements: []
|
39
|
+
rubyforge_project:
|
40
|
+
rubygems_version: 2.4.8
|
41
|
+
signing_key:
|
42
|
+
specification_version: 4
|
43
|
+
summary: TommyGun!
|
44
|
+
test_files: []
|