vitae 0.2.0 → 0.2.1

This diff has not been reviewed by any users.
Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,7 @@ module Vitae
7
7
  end
8
8
 
9
9
  def self.project_root= root
10
- Server.set :public, File.join(root, "themes") if root && defined?(Server)
10
+ Server.set :public_folder, File.join(root, "themes") if root && defined?(Server)
11
11
  @@project_root = root
12
12
  end
13
13
 
@@ -38,6 +38,10 @@ class CV
38
38
  def vitae_config
39
39
  @vitae_config ||= data_hash.delete("vitae_config")
40
40
  end
41
+
42
+ def ga_tracking_id
43
+ vitae_config["ga_tracking_id"]
44
+ end
41
45
 
42
46
  def data_hash
43
47
  @data_hash ||= (YAML::load_file(@yaml_file) rescue Hash.new)
@@ -10,4 +10,15 @@
10
10
  %br
11
11
  %br
12
12
  - unless CV.size==1
13
- = link_to "Vitae Home", "/"
13
+ = link_to "Vitae Home", "/"
14
+
15
+ :javascript
16
+ var _gaq = _gaq || [];
17
+ _gaq.push(['_setAccount', '#{@cv.ga_tracking_id}']);
18
+ _gaq.push(['_trackPageview']);
19
+
20
+ (function() {
21
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
22
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
23
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
24
+ })();
@@ -19,4 +19,49 @@
19
19
  - postal-code: 9016
20
20
  - phones: !omap
21
21
  - home: (03) 477 99 44
22
- - mobile: 027 477 7723
22
+ - mobile: 027 477 7723
23
+
24
+ - In Short:
25
+ Live in Dunedin, NZ. Program a bit.
26
+
27
+ - Projects: !omap
28
+ - Vitae:
29
+ start: 2010-12-01
30
+ description: A structured CV publishing system, specifically the one used to generate and very likely serve this CV.
31
+ role: Designer and programmer.
32
+ - Mewzet.com:
33
+ start: 2009-01-01
34
+ url: http://mewzet.com
35
+ description: A web application to teach music theory online.
36
+ role: Co-founder, designer and programmer.
37
+ - GunnMap:
38
+ start: 2007-06-01
39
+ end: 2008-01-01
40
+ url: http://gunn.co.nz/map
41
+ description: A system to help wikipedia contributors very easily create maps of country level demographics. Wikimedia has a <a href="http://commons.wikimedia.org/wiki/Category:Maps_generated_with_GunnMap">list</a> of some of the generated maps.
42
+ role: Designer and programmer
43
+ - AstroTour:
44
+ start: 2006-01-01
45
+ end: 2007-12-30
46
+ url: http://gunn.co.nz/astrotour
47
+ description: An interactive, customisble, scriptable, 3D, in browser simulation of the solar system.
48
+ role: Designer and programmer
49
+
50
+ - Expertise:
51
+ Ruby: prefer strong
52
+ Rails: prefer strong
53
+ Sinatra: prefer strong
54
+ Flash: prefer strong
55
+ Flex: prefer strong
56
+ ActionScript: prefer strong
57
+ Javascript: prefer
58
+ Jquery: prefer
59
+ CSS: weak
60
+ rspec: weak
61
+ html:
62
+ haml: prefer strong
63
+ sass: prefer weak
64
+ mysql: prefer
65
+ RR: prefer
66
+ Test::Unit: prefer strong
67
+ <em>shoulda</em>: prefer
@@ -1,3 +1,3 @@
1
1
  module Vitae
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -12,12 +12,12 @@ Gem::Specification.new do |s|
12
12
  s.summary = %q{A structured CV publishing system.}
13
13
  s.description = %q{Vitae is to CVs what rubygems is to ruby code. Still very under development. Semi-usable at this point.}
14
14
 
15
- s.add_dependency "sinatra", "~>1.1.0"
16
- s.add_dependency "haml", "~>3.0.0"
17
- s.add_dependency "thor", "~>0.14.0"
18
- s.add_dependency "pdfkit", "~>0.5.0"
15
+ s.add_dependency "sinatra", "~>1.2.0"
16
+ s.add_dependency "haml", "~>3.1.0"
17
+ s.add_dependency "thor", "~>0.16.0"
18
+ s.add_dependency "pdfkit", "~>0.5.2"
19
19
 
20
- s.add_development_dependency "nokogiri", "~>1.4.0"
20
+ s.add_development_dependency "nokogiri", "~>1.5.0"
21
21
 
22
22
  s.files = `git ls-files`.split("\n")
23
23
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
metadata CHANGED
@@ -1,107 +1,80 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: vitae
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 2
8
- - 0
9
- version: 0.2.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.1
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Arthur Gunn
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2011-02-04 00:00:00 +13:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-09-02 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: sinatra
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &2169263960 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
18
+ requirements:
26
19
  - - ~>
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 1
30
- - 1
31
- - 0
32
- version: 1.1.0
20
+ - !ruby/object:Gem::Version
21
+ version: 1.2.0
33
22
  type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: haml
37
23
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *2169263960
25
+ - !ruby/object:Gem::Dependency
26
+ name: haml
27
+ requirement: &2169262920 !ruby/object:Gem::Requirement
39
28
  none: false
40
- requirements:
29
+ requirements:
41
30
  - - ~>
42
- - !ruby/object:Gem::Version
43
- segments:
44
- - 3
45
- - 0
46
- - 0
47
- version: 3.0.0
31
+ - !ruby/object:Gem::Version
32
+ version: 3.1.0
48
33
  type: :runtime
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: thor
52
34
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *2169262920
36
+ - !ruby/object:Gem::Dependency
37
+ name: thor
38
+ requirement: &2169262280 !ruby/object:Gem::Requirement
54
39
  none: false
55
- requirements:
40
+ requirements:
56
41
  - - ~>
57
- - !ruby/object:Gem::Version
58
- segments:
59
- - 0
60
- - 14
61
- - 0
62
- version: 0.14.0
42
+ - !ruby/object:Gem::Version
43
+ version: 0.16.0
63
44
  type: :runtime
64
- version_requirements: *id003
65
- - !ruby/object:Gem::Dependency
66
- name: pdfkit
67
45
  prerelease: false
68
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *2169262280
47
+ - !ruby/object:Gem::Dependency
48
+ name: pdfkit
49
+ requirement: &2169251160 !ruby/object:Gem::Requirement
69
50
  none: false
70
- requirements:
51
+ requirements:
71
52
  - - ~>
72
- - !ruby/object:Gem::Version
73
- segments:
74
- - 0
75
- - 5
76
- - 0
77
- version: 0.5.0
53
+ - !ruby/object:Gem::Version
54
+ version: 0.5.2
78
55
  type: :runtime
79
- version_requirements: *id004
80
- - !ruby/object:Gem::Dependency
81
- name: nokogiri
82
56
  prerelease: false
83
- requirement: &id005 !ruby/object:Gem::Requirement
57
+ version_requirements: *2169251160
58
+ - !ruby/object:Gem::Dependency
59
+ name: nokogiri
60
+ requirement: &2169250300 !ruby/object:Gem::Requirement
84
61
  none: false
85
- requirements:
62
+ requirements:
86
63
  - - ~>
87
- - !ruby/object:Gem::Version
88
- segments:
89
- - 1
90
- - 4
91
- - 0
92
- version: 1.4.0
64
+ - !ruby/object:Gem::Version
65
+ version: 1.5.0
93
66
  type: :development
94
- version_requirements: *id005
95
- description: Vitae is to CVs what rubygems is to ruby code. Still very under development. Semi-usable at this point.
96
- email:
67
+ prerelease: false
68
+ version_requirements: *2169250300
69
+ description: Vitae is to CVs what rubygems is to ruby code. Still very under development.
70
+ Semi-usable at this point.
71
+ email:
97
72
  - arthur@gunn.co.nz
98
- executables:
73
+ executables:
99
74
  - vitae
100
75
  extensions: []
101
-
102
76
  extra_rdoc_files: []
103
-
104
- files:
77
+ files:
105
78
  - .gitignore
106
79
  - Gemfile
107
80
  - README.rdoc
@@ -136,39 +109,31 @@ files:
136
109
  - test/utilities_test.rb
137
110
  - test/vitae_executable_test.rb
138
111
  - vitae.gemspec
139
- has_rdoc: true
140
112
  homepage: https://github.com/gunn/vitae
141
113
  licenses: []
142
-
143
114
  post_install_message:
144
115
  rdoc_options: []
145
-
146
- require_paths:
116
+ require_paths:
147
117
  - lib
148
- required_ruby_version: !ruby/object:Gem::Requirement
118
+ required_ruby_version: !ruby/object:Gem::Requirement
149
119
  none: false
150
- requirements:
151
- - - ">="
152
- - !ruby/object:Gem::Version
153
- segments:
154
- - 0
155
- version: "0"
156
- required_rubygems_version: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ! '>='
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ required_rubygems_version: !ruby/object:Gem::Requirement
157
125
  none: false
158
- requirements:
159
- - - ">="
160
- - !ruby/object:Gem::Version
161
- segments:
162
- - 0
163
- version: "0"
126
+ requirements:
127
+ - - ! '>='
128
+ - !ruby/object:Gem::Version
129
+ version: '0'
164
130
  requirements: []
165
-
166
131
  rubyforge_project:
167
- rubygems_version: 1.3.7
132
+ rubygems_version: 1.8.10
168
133
  signing_key:
169
134
  specification_version: 3
170
135
  summary: A structured CV publishing system.
171
- test_files:
136
+ test_files:
172
137
  - test/active_server_test.rb
173
138
  - test/basic_server_test.rb
174
139
  - test/cv_format_test.rb