runeblog 0.0.25 → 0.0.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/VERSION +1 -1
- data/data/views/_default/post_header.html +26 -23
- data/lib/runeblog.rb +8 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e864d009575482ec34e4a38a1b7498b79a1444e3
|
4
|
+
data.tar.gz: cfbdbc4f3078d2ea1af6e2bbd36920cb08887020
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f7ffaba4caf91bbe66075fb3fb11a615a4a2d349a767607039c94a67318873d131cd61e9aa6230353d2ebef748c73ce84facd04a2fc9035a482b9ef9e2e7cc7
|
7
|
+
data.tar.gz: 4351cf1556e89ab5abf11ed8009f6c2650e19956460aad24b261fb8129a17a4d5ba7a53fd10bf875db9cc5dfcdc026ebe0ae7f12371d930e0f611b3b45f4282e
|
data/data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
RuneBlog v 0.0.
|
1
|
+
RuneBlog v 0.0.26 2017-05-09
|
@@ -20,43 +20,46 @@
|
|
20
20
|
}(document, 'script', 'facebook-jssdk'));
|
21
21
|
</script>
|
22
22
|
|
23
|
-
|
24
|
-
<title>#{@meta.title}</title>
|
25
|
-
<meta property='fb:admins' content='767352779' />
|
26
|
-
|
23
|
+
<!-- meta property='fb:admins' content='767352779' /> -->
|
27
24
|
<meta property='og:url' content='http://rubyhacker.com/blog2/#{@meta.slug}.html'/>
|
28
25
|
<meta property='og:type' content='article'/>
|
29
26
|
<meta property='og:title' content='#{@meta.title}'/>
|
30
27
|
<meta property='og:image' content='http://rubyhacker.com/blog2/blog3b.gif'/>
|
31
28
|
<meta property='og:description' content='#{@meta.teaser}'/>
|
32
|
-
</head>
|
33
29
|
|
34
|
-
<table bgcolor=#eeeeee>
|
35
|
-
<tr height=5>
|
30
|
+
<table bgcolor=#eeeeee cellspacing=5>
|
36
31
|
<tr>
|
37
|
-
<td
|
38
|
-
|
39
|
-
<br>
|
40
|
-
<font size=+2 color=red>#{@meta.title}</font>
|
41
|
-
<br>
|
42
|
-
#{@meta.pubdate}
|
32
|
+
<td valign=top>
|
33
|
+
<br> <font size=+2 color=red>#{@meta.title.chomp}</font> <br> #{@meta.pubdate.chomp}
|
43
34
|
</td>
|
44
|
-
|
45
|
-
<td
|
46
|
-
|
35
|
+
|
36
|
+
<td width=2% bgcolor=red></td>
|
37
|
+
|
38
|
+
<td valign=top>
|
39
|
+
<a href='https://twitter.com/share'
|
40
|
+
class='twitter-share-button'
|
41
|
+
data-text='#{@meta.title}'
|
42
|
+
data-url='#{'url'}'
|
43
|
+
data-via='hal_fulton'
|
44
|
+
data-related='hal_fulton'>Tweet</a>
|
47
45
|
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
|
48
46
|
<br>
|
49
47
|
<a href='https://twitter.com/hal_fulton' class='twitter-follow-button' data-show-count='false'>Follow @hal_fulton</a>
|
50
48
|
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
|
51
49
|
|
50
|
+
<br>
|
51
|
+
<div
|
52
|
+
class='fb-like'
|
53
|
+
data-share='true'
|
54
|
+
data-width='450'
|
55
|
+
data-show-faces='true'>
|
56
|
+
</div>
|
57
|
+
|
58
|
+
</td>
|
59
|
+
|
60
|
+
</tr>
|
61
|
+
</table>
|
52
62
|
|
53
|
-
<body>
|
54
|
-
<div
|
55
|
-
class='fb-like'
|
56
|
-
data-share='true'
|
57
|
-
data-width='450'
|
58
|
-
data-show-faces='true'>
|
59
|
-
</div>
|
60
63
|
|
61
64
|
<hr>
|
62
65
|
|
data/lib/runeblog.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
class RuneBlog
|
3
|
-
VERSION = "0.0.
|
3
|
+
VERSION = "0.0.26"
|
4
4
|
|
5
5
|
Path = File.expand_path(File.join(File.dirname(__FILE__)))
|
6
6
|
DefaultData = Path + "/../data"
|
@@ -169,9 +169,11 @@ def deploy
|
|
169
169
|
vdir = @config.viewdir(@view)
|
170
170
|
files = ["#{vdir}/index.html"]
|
171
171
|
files += Dir.entries(vdir).grep(/^\d\d\d\d/).map {|x| "#{vdir}/#{x}" }
|
172
|
-
cmd = "scp -r #{files.join(' ')} root@#{server}:#{dir}"
|
173
|
-
|
172
|
+
cmd = "scp -r #{files.join(' ')} root@#{server}:#{dir} >/dev/null 2>&1"
|
173
|
+
print red("\n Deploying #{files.size} files... ")
|
174
|
+
# puts cmd
|
174
175
|
system(cmd)
|
176
|
+
puts red("finished.")
|
175
177
|
end
|
176
178
|
|
177
179
|
### process_post
|
@@ -249,6 +251,7 @@ def link_post_view(view)
|
|
249
251
|
# Add header/trailer to post index
|
250
252
|
head = File.read(vdir + "custom/post_header.html") rescue RuneBlog::PostHeader
|
251
253
|
tail = File.read(vdir + "custom/post_trailer.html") rescue RuneBlog::PostTrailer
|
254
|
+
# STDERR.puts "lpv: meta = #{@meta.teaser.inspect}"
|
252
255
|
@posthead = interpolate(head)
|
253
256
|
@posttail = interpolate(tail)
|
254
257
|
File.open(dir + "index.html", "w") do |f|
|
@@ -424,7 +427,7 @@ def list_posts
|
|
424
427
|
if posts.empty?
|
425
428
|
puts " No posts"
|
426
429
|
else
|
427
|
-
posts.each {|post| puts " #{post}" }
|
430
|
+
posts.each {|post| puts " #{colored_slug(post)}" }
|
428
431
|
end
|
429
432
|
end
|
430
433
|
rescue
|
@@ -442,7 +445,7 @@ def list_drafts
|
|
442
445
|
if posts.empty?
|
443
446
|
puts " No posts"
|
444
447
|
else
|
445
|
-
posts.each {|post| puts " #{post.sub(/.lt3$/, "")}" }
|
448
|
+
posts.each {|post| puts " #{colored_slug(post.sub(/.lt3$/, ""))}" }
|
446
449
|
end
|
447
450
|
end
|
448
451
|
rescue
|