runeblog 0.0.99 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/post.rb +2 -0
- data/lib/runeblog.rb +4 -11
- data/lib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d9daecd282557ea33ae6a7ec914727a1a4077fc3
|
4
|
+
data.tar.gz: 16a3d20f5e907f7725db1a9bd8342db88e2df8b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3f80c6ebfd92fb7100c39a1281c6e1f41a7a89d7e627b82765381b97b819f6e5303415a7264a9d2e9a2f76eb4f323fe9c178599f3b6e542595e3aa2a62f4074
|
7
|
+
data.tar.gz: 69a924c292dd44ac3490a0d2477808aa2bb66ed180228d06b6185831f04cb502b4ca90ea070533ece0c47d3deecdad5599613a83f57a34e6dc3657cba36860b7
|
data/lib/post.rb
CHANGED
@@ -59,6 +59,8 @@ class RuneBlog::Post
|
|
59
59
|
@meta = livetext.process_file(@draft, binding)
|
60
60
|
raise LivetextError(@draft) if @meta.nil?
|
61
61
|
|
62
|
+
# FIXME what if title changes?
|
63
|
+
|
62
64
|
@meta.views.each do |view_name| # Create dir using slug (index.html, metadata?)
|
63
65
|
view = @blog.str2view(view_name)
|
64
66
|
vdir = view.dir
|
data/lib/runeblog.rb
CHANGED
@@ -219,16 +219,7 @@ class RuneBlog
|
|
219
219
|
error(err)
|
220
220
|
end
|
221
221
|
|
222
|
-
def
|
223
|
-
meta.views.each {|view| link_post_view(view) }
|
224
|
-
# assets = find_all_assets(@meta.assets, views)
|
225
|
-
nil
|
226
|
-
rescue => err
|
227
|
-
error(err)
|
228
|
-
end
|
229
|
-
|
230
|
-
def link_post_view(view)
|
231
|
-
raise ArgumentError unless view.is_a?(String) || view.is_a?(RuneBlog::View)
|
222
|
+
def build_post_view(view)
|
232
223
|
# Create dir using slug (index.html, metadata?)
|
233
224
|
vdir = self.viewdir(view) # FIXME
|
234
225
|
dir = vdir + @meta.slug + "/"
|
@@ -307,7 +298,9 @@ class RuneBlog
|
|
307
298
|
def rebuild_post(file)
|
308
299
|
raise ArgumentError unless file.is_a?(String)
|
309
300
|
@meta = process_post(file)
|
310
|
-
|
301
|
+
@meta.views.each do |view|
|
302
|
+
build_post_view(view)
|
303
|
+
end
|
311
304
|
rescue => err
|
312
305
|
error(err)
|
313
306
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: runeblog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hal Fulton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: livetext
|
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
76
|
rubyforge_project:
|
77
|
-
rubygems_version: 2.
|
77
|
+
rubygems_version: 2.2.2
|
78
78
|
signing_key:
|
79
79
|
specification_version: 4
|
80
80
|
summary: A command-line blogging system
|