runeblog 0.1.50 → 0.1.51
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/default.rb +3 -3
- data/lib/post.rb +4 -1
- data/lib/publish.rb +2 -1
- data/lib/runeblog_version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50f7ec006bf55e6edc6f592b3241bf0ec3e05193042bc46dcf0ef37d1dd76079
|
4
|
+
data.tar.gz: 84461bf20ebfbe21a070574c7caad6d4484da77be2ba6857026f7112f4179ea3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a9003c7906cffacac6008ea88b348182e114d69dce56afec64f3ae00766026161ecf276d7ab6dd9685c0a0d2c8c9aa74ffb7be6d9e3e5ec222ae75cd56f28a8
|
7
|
+
data.tar.gz: 70933c641445556ff040cb2be39d767a1329bc94d9049e62a0e740acaae2914aa43f50da38abfabccb10418f3c92b4c1213a574a1902b1c81ee9f43789e82179
|
data/lib/default.rb
CHANGED
@@ -56,10 +56,10 @@ BlogTrailer = <<-TEXT
|
|
56
56
|
TEXT
|
57
57
|
|
58
58
|
def RuneBlog.post_template(title: "No title", date: nil, view: "test_view",
|
59
|
-
teaser: "No teaser", body: "No body", tags: [],
|
60
|
-
back: "
|
59
|
+
teaser: "No teaser", body: "No body", tags: ["untagged"],
|
60
|
+
views: [], back: "javascript:history.go(-1)", home: "no url")
|
61
61
|
viewlist = (views + [view.to_s]).join(" ")
|
62
|
-
taglist =
|
62
|
+
taglist = ".tags " + tags.join(" ")
|
63
63
|
<<-TEXT
|
64
64
|
.mixin liveblog
|
65
65
|
|
data/lib/post.rb
CHANGED
@@ -97,9 +97,12 @@ class RuneBlog::Post
|
|
97
97
|
end
|
98
98
|
|
99
99
|
def create_draft
|
100
|
+
viewhome = @blog.view.publisher.url
|
101
|
+
print "HOME = "
|
102
|
+
p viewhome
|
100
103
|
html = RuneBlog.post_template(title: @meta.title, date: @meta.pubdate,
|
101
104
|
view: @meta.view, teaser: @meta.teaser, body: @meta.body,
|
102
|
-
views: @meta.views, tags: @meta.tags)
|
105
|
+
views: @meta.views, tags: @meta.tags, home: viewhome)
|
103
106
|
srcdir = "#{@blog.root}/src/"
|
104
107
|
verify(Dir.exist?(srcdir) => "#{srcdir} not found",
|
105
108
|
@meta.slug.is_a?(String) => "slug #{@meta.slug.inspect} is invalid")
|
data/lib/publish.rb
CHANGED
data/lib/runeblog_version.rb
CHANGED