vmail 0.4.7 → 0.4.8

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -7,8 +7,10 @@ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), 'lib')
7
7
 
8
8
  desc "build and push website"
9
9
  task :web do
10
+ require 'vmail/version'
11
+ version = Vmail::VERSION
10
12
  Dir.chdir("website") do
11
- puts `./run.sh`
13
+ puts `./run.sh #{version}`
12
14
  end
13
15
  end
14
16
 
@@ -187,7 +187,7 @@ function! s:update()
187
187
  if match(res, '^\d\+') != -1
188
188
  setlocal modifiable
189
189
  let line = line('$')
190
- $put =res
190
+ put =res
191
191
  setlocal nomodifiable
192
192
  write
193
193
  let num = len(split(res, '\n', ''))
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = "0.4.7"
2
+ VERSION = "0.4.8"
3
3
  end
@@ -1,6 +1,8 @@
1
1
  require 'liquid'
2
2
  require 'rdiscount'
3
3
 
4
+ version = ARGV.first
5
+
4
6
  top = RDiscount.new(File.read("top.markdown")).to_html
5
7
 
6
8
  readme = File.expand_path("../../README.markdown", __FILE__)
@@ -21,5 +23,5 @@ bottom = RDiscount.new(File.read("bottom.markdown")).to_html
21
23
  content = [top, middle, bottom].join("\n\n")
22
24
 
23
25
  template = File.read("vmail-template.html")
24
- out = Liquid::Template.parse(template).render 'content' => content, 'timestamp' => Time.now.to_i
26
+ out = Liquid::Template.parse(template).render 'content' => content, 'timestamp' => Time.now.to_i, 'version' => version
25
27
  puts out
@@ -35,7 +35,6 @@ img.screenshot {
35
35
  }
36
36
  .sidebar ul li {
37
37
  margin-left: 0;
38
- font-weight: bold;
39
38
  }
40
39
  table.pin td {
41
40
  vertical-align: top;
@@ -23,6 +23,14 @@
23
23
 
24
24
  <div class="sidebar">
25
25
 
26
+ <h4>current version</h4>
27
+
28
+ <ul>
29
+ <li>
30
+ {{version}}
31
+ </li>
32
+ </ul>
33
+
26
34
  <h4>links</h4>
27
35
  <ul>
28
36
  <li><a href="https://github.com/danchoi/vmail">github repo</a></li>
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 7
9
- version: 0.4.7
8
+ - 8
9
+ version: 0.4.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi