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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a62d185febf4123fc8d4ed23590b5de3b55ca151f014839d2d843fe2c29c5e6
4
- data.tar.gz: ca9dffc3767d974cccb94af5a9dfa5fc29de7b59acec33dbcac081129440b872
3
+ metadata.gz: e69a25448bd180d09f5f43db4d7b7358c0edd213733215c9b12adadb7a5cfd47
4
+ data.tar.gz: 33a72baebb4483faac20840907a9dab54637a36f81f70d432795f90073a2a21e
5
5
  SHA512:
6
- metadata.gz: 65f13f6fc0c058c4cd9d4344fa8fc2f91b3856a11795c7b3a67f1d47f449fa7bb9e672826005d8c2d3aa999cdc2aa79eb3e64281fe79f5597e2cf6c760b6d1d2
7
- data.tar.gz: f4c00317f30a3fc619d7d39d4a198a39ae0175f30a3ac0d04c8b55a87f5f6c0df6679ac9d4a1745b9344bda89d8d0df38972a7c2feee38016430ec2d26869b0b
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
@@ -11,7 +11,7 @@ BlogHeader = <<-TEXT
11
11
  <table>
12
12
  <tr>
13
13
  <td>
14
- <img src=../assets/fakeimage.jpg width=400 height=300>
14
+ <img src=../../assets/fakeimage.jpg width=400 height=300>
15
15
  </td>
16
16
  <td>
17
17
  <h3>Yet another blog... by Kilgore Trout</h3>
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") => "#{@root/src} doesn't exist")
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
@@ -112,7 +112,7 @@ module RuneBlog::REPL
112
112
 
113
113
  def flush_output(initial = "")
114
114
  @out ||= ""
115
- puts @out # CHANGE_FOR_CURSES?
115
+ puts @out
116
116
  reset_output
117
117
  end
118
118
 
data/lib/post.rb CHANGED
@@ -134,6 +134,7 @@ class RuneBlog::Post
134
134
  create_dir(dir) unless Dir.exist?(dir)
135
135
  Dir.chdir(dir) do
136
136
  create_post_subtree(view_name) # unless existing??
137
+ system("cp body.txt index.html")
137
138
  @blog.generate_index(view_name)
138
139
  end
139
140
  end
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}" # CHANGE_FOR_CURSES?
55
- puts err.backtrace.join("\n") # CHANGE_FOR_CURSES?
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)
@@ -1,6 +1,6 @@
1
1
 
2
2
  class RuneBlog
3
- VERSION = "0.1.27"
3
+ VERSION = "0.1.28"
4
4
 
5
5
  Path = File.expand_path(File.join(File.dirname(__FILE__)))
6
6
  end
data/test/general.rb CHANGED
@@ -6,6 +6,9 @@ require 'runeblog'
6
6
  require 'lib/repl'
7
7
  require 'rubytext'
8
8
 
9
+ major, minor = RUBY_VERSION.split(".").values_at(0,1)
10
+ ver = major.to_i*10 + minor.to_i
11
+ abort "Need Ruby 2.4 or greater" unless ver >= 24
9
12
 
10
13
  RubyText.start
11
14
 
data/test/make_blog.rb CHANGED
@@ -1,5 +1,9 @@
1
1
  $LOAD_PATH << "."
2
2
 
3
+ major, minor = RUBY_VERSION.split(".").values_at(0,1)
4
+ ver = major.to_i*10 + minor.to_i
5
+ abort "Need Ruby 2.4 or greater" unless ver >= 24
6
+
3
7
  require 'global'
4
8
  # require 'rubytext'
5
9
  require 'repl'
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.27
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-08 00:00:00.000000000 Z
11
+ date: 2019-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: livetext