lib/repl.rb in runeblog-0.1.48 vs lib/repl.rb in runeblog-0.1.49

- old
+ new

@@ -14,11 +14,10 @@ STDSCR.clear end def cmd_quit(arg, testing = false) check_empty(arg) -# system("tput rmcup") RubyText.stop system("tput clear") exit end @@ -129,10 +128,11 @@ reset_output check_empty(arg) puts unless testing files = @blog.find_src_slugs files.each {|file| @blog.rebuild_post(file) } + @blog.dirty_views.each {|view| generate_index(view) } # All views for now? File.write("#{@blog.root}/src/last_rebuild", Time.now) @out end def cmd_relink(arg, testing = false) @@ -176,10 +176,10 @@ def cmd_new_post(arg, testing = false) reset_output check_empty(arg) title = ask("\nTitle: ") @blog.create_new_post(title) - STDSCR.clear +# STDSCR.clear @out rescue => err puts err puts err.backtrace.join("\n") end