runeblog 0.0.99 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +5 -5
  2. data/lib/post.rb +2 -0
  3. data/lib/runeblog.rb +4 -11
  4. data/lib/version.rb +1 -1
  5. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 8ca7a1a5515f21e6880a0cdff3e457f011cb4ca6ea7f0ec23993eb97dfd702ad
4
- data.tar.gz: aaf0eb76d040a016b770b172b46ae86e8aefb7a472c774ad3e13c9f0e8a2674e
2
+ SHA1:
3
+ metadata.gz: d9daecd282557ea33ae6a7ec914727a1a4077fc3
4
+ data.tar.gz: 16a3d20f5e907f7725db1a9bd8342db88e2df8b1
5
5
  SHA512:
6
- metadata.gz: f9f7555b55d88811979ac194df82d099c614dcecf50b3462417599e66dc4b7b48487d0de38aa0fba6d9b5910f66751b504799cc37135091ee738900735c2c568
7
- data.tar.gz: 42117eccfeb07b905eab195eaebd6e9313c69ffb79ffbee1978e765f7de74648e09ab9c2c15084abd0e0dc84b2c2c14c9ead35c1e7d8041c4718cff0a1028767
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 link_post_all_views(meta)
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
- link_post_all_views(@meta) # FIXME ??
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
@@ -1,6 +1,6 @@
1
1
 
2
2
  class RuneBlog
3
- VERSION = "0.0.99"
3
+ VERSION = "0.1.1"
4
4
 
5
5
  Path = File.expand_path(File.join(File.dirname(__FILE__)))
6
6
  end
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.0.99
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-04 00:00:00.000000000 Z
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.7.7
77
+ rubygems_version: 2.2.2
78
78
  signing_key:
79
79
  specification_version: 4
80
80
  summary: A command-line blogging system