danmayer-resume 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +7 -0
- data/VERSION +1 -1
- data/lib/resume_exe +54 -0
- metadata +89 -4
data/Rakefile
CHANGED
@@ -19,6 +19,13 @@ begin
|
|
19
19
|
gemspec.homepage = "http://github.com/danmayer/Resume"
|
20
20
|
gemspec.authors = ["Dan Mayer"]
|
21
21
|
gemspec.executables = [GEM_NAME]
|
22
|
+
gemspec.add_development_dependency "jeweler"
|
23
|
+
gemspec.add_dependency "main"
|
24
|
+
gemspec.add_dependency "maruku"
|
25
|
+
gemspec.add_dependency "sinatra", '~> 1.0'
|
26
|
+
gemspec.add_dependency "erubis"
|
27
|
+
gemspec.add_dependency 'less'
|
28
|
+
gemspec.add_dependency 'launchy'
|
22
29
|
end
|
23
30
|
Jeweler::GemcutterTasks.new
|
24
31
|
rescue LoadError
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/lib/resume_exe
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
|
3
|
+
#This is the executable template, please see the rakefile to see how this will create your gem.
|
4
|
+
#This file is copied to bin/* where * is the approapriate name for your gem
|
5
|
+
|
6
|
+
require 'main'
|
7
|
+
require 'yaml'
|
8
|
+
|
9
|
+
Main do
|
10
|
+
option('open_html', 'o') do
|
11
|
+
cast :boolean
|
12
|
+
default false
|
13
|
+
description "This will render the resume in HTML and open it on the users machine."
|
14
|
+
end
|
15
|
+
|
16
|
+
option('contact_info', 'c') do
|
17
|
+
cast :boolean
|
18
|
+
default false
|
19
|
+
description "This will display contact information."
|
20
|
+
end
|
21
|
+
|
22
|
+
option('resume_site', 's') do
|
23
|
+
cast :boolean
|
24
|
+
default false
|
25
|
+
description "This will open a remote site with more information about the person."
|
26
|
+
end
|
27
|
+
|
28
|
+
option('mission_statement', 'm') do
|
29
|
+
cast :boolean
|
30
|
+
default false
|
31
|
+
description "This will display the mission statement."
|
32
|
+
end
|
33
|
+
|
34
|
+
def resume_run()
|
35
|
+
require File.join(File.dirname(__FILE__), '..', 'lib', 'resume_gem')
|
36
|
+
resume = Resume.new()
|
37
|
+
if params['open_html'].value
|
38
|
+
resume.open_html
|
39
|
+
elsif params['contact_info'].value
|
40
|
+
puts "contact info: \n#{resume.contact_information}"
|
41
|
+
elsif params['resume_site'].value
|
42
|
+
resume.open_resume_site
|
43
|
+
elsif params['mission_statement'].value
|
44
|
+
puts "mission statement: \n#{resume.mission_statement}"
|
45
|
+
else
|
46
|
+
help!
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
def run
|
51
|
+
resume_run
|
52
|
+
end
|
53
|
+
|
54
|
+
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 2
|
9
|
+
version: 0.0.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Dan Mayer
|
@@ -16,8 +16,92 @@ cert_chain: []
|
|
16
16
|
|
17
17
|
date: 2010-05-10 00:00:00 -04:00
|
18
18
|
default_executable: danmayer-resume
|
19
|
-
dependencies:
|
20
|
-
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: jeweler
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
version: "0"
|
30
|
+
type: :development
|
31
|
+
version_requirements: *id001
|
32
|
+
- !ruby/object:Gem::Dependency
|
33
|
+
name: main
|
34
|
+
prerelease: false
|
35
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
segments:
|
40
|
+
- 0
|
41
|
+
version: "0"
|
42
|
+
type: :runtime
|
43
|
+
version_requirements: *id002
|
44
|
+
- !ruby/object:Gem::Dependency
|
45
|
+
name: maruku
|
46
|
+
prerelease: false
|
47
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
48
|
+
requirements:
|
49
|
+
- - ">="
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
segments:
|
52
|
+
- 0
|
53
|
+
version: "0"
|
54
|
+
type: :runtime
|
55
|
+
version_requirements: *id003
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: sinatra
|
58
|
+
prerelease: false
|
59
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ~>
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
segments:
|
64
|
+
- 1
|
65
|
+
- 0
|
66
|
+
version: "1.0"
|
67
|
+
type: :runtime
|
68
|
+
version_requirements: *id004
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: erubis
|
71
|
+
prerelease: false
|
72
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
segments:
|
77
|
+
- 0
|
78
|
+
version: "0"
|
79
|
+
type: :runtime
|
80
|
+
version_requirements: *id005
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: less
|
83
|
+
prerelease: false
|
84
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
segments:
|
89
|
+
- 0
|
90
|
+
version: "0"
|
91
|
+
type: :runtime
|
92
|
+
version_requirements: *id006
|
93
|
+
- !ruby/object:Gem::Dependency
|
94
|
+
name: launchy
|
95
|
+
prerelease: false
|
96
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
segments:
|
101
|
+
- 0
|
102
|
+
version: "0"
|
103
|
+
type: :runtime
|
104
|
+
version_requirements: *id007
|
21
105
|
description: A gem for Dan Mayer's resume
|
22
106
|
email: dan@mayerdan.com
|
23
107
|
executables:
|
@@ -36,6 +120,7 @@ files:
|
|
36
120
|
- data/resume.md
|
37
121
|
- data/resume.yml
|
38
122
|
- index.html
|
123
|
+
- lib/resume_exe
|
39
124
|
- lib/resume_gem.rb
|
40
125
|
- resume.rb
|
41
126
|
- style.css
|