runeblog 0.1.70 → 0.1.71
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/helpers-repl.rb +0 -1
- data/lib/liveblog.rb +1 -0
- data/lib/publish.rb +4 -0
- data/lib/repl.rb +2 -1
- data/lib/runeblog.rb +7 -9
- data/lib/runeblog_version.rb +1 -1
- data/lib/view.rb +5 -1
- data/runeblog.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 952d50f4c764c40e1e0c51efb8cac9caa7c43ed3ec7a36975b78e2964d9d596c
|
4
|
+
data.tar.gz: 7020ee4f9aca03cda854453c2d9279700e6cbb872585c352b99c83477494cd8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08d22ba02517f587ee5e575326b5d889b0c34f8ea1502e3ab8c9d96225fc2cebf72c024698f7b800afc50ae54620ca685c25a466baa06c87b2b47e68c5dc993c'
|
7
|
+
data.tar.gz: d3ec19c4858983a6878b8ac124128c0c79eecb41512a782e07244d7b75594dbf89d0ebfb6dc12ca0977f8d5ea39e6ffcc08ce3927690d34c73777f564c686155
|
data/lib/helpers-repl.rb
CHANGED
data/lib/liveblog.rb
CHANGED
data/lib/publish.rb
CHANGED
@@ -37,6 +37,10 @@ debug "Failed!\n " if ! rc
|
|
37
37
|
rc
|
38
38
|
end
|
39
39
|
|
40
|
+
# Could not copy
|
41
|
+
# /Users/Hal/Dropbox/files/runeblog/.blogs/data/views/alpha_view/index.html to
|
42
|
+
# root@rubyhacker.com:/var/www/testblog/alpha_view
|
43
|
+
|
40
44
|
def publish(files, assets=[])
|
41
45
|
dir = "#@docroot/#@path"
|
42
46
|
view_name = @blog.view.name
|
data/lib/repl.rb
CHANGED
@@ -84,7 +84,7 @@ module RuneBlog::REPL
|
|
84
84
|
def cmd_preview(arg, testing = false)
|
85
85
|
reset_output
|
86
86
|
check_empty(arg)
|
87
|
-
local = @blog.view.
|
87
|
+
local = @blog.view.local_index
|
88
88
|
result = system("open #{local}")
|
89
89
|
raise CantOpen(local) unless result
|
90
90
|
@out
|
@@ -111,6 +111,7 @@ module RuneBlog::REPL
|
|
111
111
|
return @out if files.empty?
|
112
112
|
|
113
113
|
ret = RubyText.spinner(label: " Publishing... ") do
|
114
|
+
STDERR.puts files.inspect
|
114
115
|
@blog.view.publisher.publish(files, assets) # FIXME weird?
|
115
116
|
end
|
116
117
|
return @out unless ret
|
data/lib/runeblog.rb
CHANGED
@@ -178,8 +178,10 @@ class RuneBlog
|
|
178
178
|
|
179
179
|
view = RuneBlog::View.new(arg)
|
180
180
|
self.view = view
|
181
|
-
|
182
|
-
|
181
|
+
vdir = self.view.dir
|
182
|
+
dir0 = "#{vdir}/themes/standard/blog"
|
183
|
+
dir1 = "#{vdir}/generated/blog"
|
184
|
+
system("livetext #{dir0}/generate.lt3 >#{dir1}/index.html 2>#{dir1}/index.err")
|
183
185
|
dump("Initial creation", "last_published")
|
184
186
|
Dir.chdir(up)
|
185
187
|
@views << view
|
@@ -269,17 +271,13 @@ p "---- pwd = #{Dir.pwd}"
|
|
269
271
|
end
|
270
272
|
|
271
273
|
def generate_index(view)
|
272
|
-
# FIXME This is currently very wrong.
|
273
|
-
|
274
|
-
# puts " generate_index view = #{view.to_s}"
|
275
274
|
debug "=== generate_index view = #{view.to_s}"
|
276
275
|
raise ArgumentError unless view.is_a?(String) || view.is_a?(RuneBlog::View)
|
277
276
|
|
278
277
|
vdir = self.view.dir
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
system("livetext themes/standard/generate.lt3 >generated/blog/index.html 2>generated/blog/index.err")
|
278
|
+
dir0 = "#{vdir}/themes/standard/blog"
|
279
|
+
dir1 = "#{vdir}/generated/blog"
|
280
|
+
system("livetext #{dir0}/generate.lt3 >#{dir1}/index.html 2>#{dir1}/index.err")
|
283
281
|
rescue => err
|
284
282
|
error(err)
|
285
283
|
exit
|
data/lib/runeblog_version.rb
CHANGED
data/lib/view.rb
CHANGED
@@ -23,6 +23,10 @@ class RuneBlog::View
|
|
23
23
|
@blog.root + "/views/#@name/"
|
24
24
|
end
|
25
25
|
|
26
|
+
def local_index
|
27
|
+
dir + "/generated/blog/index.html"
|
28
|
+
end
|
29
|
+
|
26
30
|
def index
|
27
31
|
dir + "index.html"
|
28
32
|
end
|
@@ -33,7 +37,7 @@ class RuneBlog::View
|
|
33
37
|
|
34
38
|
def publishable_files
|
35
39
|
vdir = dir()
|
36
|
-
files = [
|
40
|
+
files = [local_index()]
|
37
41
|
others = Dir.entries(vdir).grep(/^\d\d\d\d/).map {|x| "#{vdir}/#{x}" }
|
38
42
|
assets = Dir.entries("#{vdir}/assets") - %w[. ..]
|
39
43
|
assets.map! {|x| "#{vdir}/assets/#{x}" }
|
data/runeblog.gemspec
CHANGED
@@ -20,7 +20,7 @@ spec = Gem::Specification.new do |s|
|
|
20
20
|
s.authors = ["Hal Fulton"]
|
21
21
|
s.email = 'rubyhacker@gmail.com'
|
22
22
|
s.executables << "blog"
|
23
|
-
s.add_runtime_dependency 'livetext', '~> 0.8', '>= 0.8.
|
23
|
+
s.add_runtime_dependency 'livetext', '~> 0.8', '>= 0.8.86'
|
24
24
|
s.add_runtime_dependency 'rubytext', '~> 0.1', '>= 0.1.16'
|
25
25
|
|
26
26
|
# Files...
|
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.1.
|
4
|
+
version: 0.1.71
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hal Fulton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: livetext
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '0.8'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.8.
|
22
|
+
version: 0.8.86
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '0.8'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.8.
|
32
|
+
version: 0.8.86
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rubytext
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|