runeblog 0.1.27 → 0.1.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/blog +4 -0
- data/lib/default.rb +1 -1
- data/lib/helpers-blog.rb +1 -1
- data/lib/helpers-repl.rb +1 -1
- data/lib/post.rb +1 -0
- data/lib/runeblog.rb +3 -3
- data/lib/runeblog_version.rb +1 -1
- data/test/general.rb +3 -0
- data/test/make_blog.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e69a25448bd180d09f5f43db4d7b7358c0edd213733215c9b12adadb7a5cfd47
|
4
|
+
data.tar.gz: 33a72baebb4483faac20840907a9dab54637a36f81f70d432795f90073a2a21e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5a8f0b9bcfe12b3a4c05de80404e94e3ff5db566ea95dc507780ccb593fa6bcba60e33be1b80a0ba3677d9d5bf69d2ad3cdac3333ad59c5b2b04404f25b7094
|
7
|
+
data.tar.gz: 667416db12ff237579bb81655464c3fa66e8784b72d0f791eac4e92650340e98530d68a55516e4ffb3d8e0cc95fd26c20780ac0a2be2f9b30512b2f7db7a9524
|
data/bin/blog
CHANGED
@@ -23,6 +23,10 @@ end
|
|
23
23
|
|
24
24
|
###
|
25
25
|
|
26
|
+
major, minor = RUBY_VERSION.split(".").values_at(0,1)
|
27
|
+
ver = major.to_i*10 + minor.to_i
|
28
|
+
abort "Need Ruby 2.4 or greater" unless ver >= 24
|
29
|
+
|
26
30
|
RubyText.start(:_echo, :keypad, scroll: true, log: "blogcmd.txt", fg: Blue, bg: White)
|
27
31
|
|
28
32
|
if ! RuneBlog.exist?
|
data/lib/default.rb
CHANGED
data/lib/helpers-blog.rb
CHANGED
@@ -68,7 +68,7 @@ module RuneBlog::Helpers
|
|
68
68
|
def find_src_slugs
|
69
69
|
verify(@root => "#@root is nil",
|
70
70
|
Dir.exist?(@root) => "#@root doesn't exist",
|
71
|
-
Dir.exist?("#@root/src") => "
|
71
|
+
Dir.exist?("#@root/src") => "#@root/src doesn't exist")
|
72
72
|
files = Dir.entries("#@root/src/").grep /\d{4}.*.lt3$/
|
73
73
|
files.map! {|f| File.basename(f) }
|
74
74
|
files = files.sort.reverse
|
data/lib/helpers-repl.rb
CHANGED
data/lib/post.rb
CHANGED
data/lib/runeblog.rb
CHANGED
@@ -51,8 +51,8 @@ class RuneBlog
|
|
51
51
|
blog = self.new
|
52
52
|
blog.create_view("test_view")
|
53
53
|
rescue => err
|
54
|
-
puts "Can't create blog: '#{dir}' - #{err}"
|
55
|
-
puts err.backtrace.join("\n")
|
54
|
+
puts "Can't create blog: '#{dir}' - #{err}"
|
55
|
+
puts err.backtrace.join("\n")
|
56
56
|
end
|
57
57
|
|
58
58
|
def initialize # assumes existing blog
|
@@ -208,7 +208,7 @@ class RuneBlog
|
|
208
208
|
end
|
209
209
|
|
210
210
|
def process_post(file)
|
211
|
-
debug "=== process_post #{file.inspect}"
|
211
|
+
debug "=== process_post #{file.inspect} pwd = #{Dir.pwd}"
|
212
212
|
raise ArgumentError unless file.is_a?(String)
|
213
213
|
path = @root + "/src/#{file}"
|
214
214
|
raise FileNotFound(path) unless File.exist?(path)
|
data/lib/runeblog_version.rb
CHANGED
data/test/general.rb
CHANGED
data/test/make_blog.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.1.
|
4
|
+
version: 0.1.28
|
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-01-
|
11
|
+
date: 2019-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: livetext
|