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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2a57bb68d0bd974cda7641180f472efb92d414686aa46b74b8d0ebb8b3b9cb6
4
- data.tar.gz: d95b486f365f3ce8d6c806169a37558a17dc1c4e40535f3ba3e839d5745e1df3
3
+ metadata.gz: 50f7ec006bf55e6edc6f592b3241bf0ec3e05193042bc46dcf0ef37d1dd76079
4
+ data.tar.gz: 84461bf20ebfbe21a070574c7caad6d4484da77be2ba6857026f7112f4179ea3
5
5
  SHA512:
6
- metadata.gz: 47d48835489d967d13fe939cb60d792a15c50c8d35bdc22f3fa648932517a1d0d89de169ffa437b2ce4920628cb06efe85a7157fdd07d7642e9134fcfcc78c47
7
- data.tar.gz: e631792421c1a708a2e235b34dc73f015e2b40486eca92049f776e47f2b2c8107ab6d499549b6babb4c873871ac37ca39112df8a19ffb228e17b879d376cb1b8
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: [], views: [],
60
- back: "no url", home: "no url")
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 = tags.empty? ? "" : (".tags " + tags.join(" "))
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
@@ -26,7 +26,8 @@ class RuneBlog::Publishing
26
26
  end
27
27
 
28
28
  def url
29
- url = "#@proto://#@server/#@path/#{@blog.view.name}"
29
+ vname = @blog.view.name.gsub(/_/, "\\_")
30
+ url = "#@proto://#@server/#@path/#{vname}"
30
31
  end
31
32
 
32
33
  def system!(str)
@@ -1,6 +1,6 @@
1
1
 
2
2
  class RuneBlog
3
- VERSION = "0.1.50"
3
+ VERSION = "0.1.51"
4
4
 
5
5
  Path = File.expand_path(File.join(File.dirname(__FILE__)))
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runeblog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.50
4
+ version: 0.1.51
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton