lib/runeblog.rb in runeblog-0.0.13 vs lib/runeblog.rb in runeblog-0.0.14

- old
+ new

@@ -1,8 +1,8 @@ class RuneBlog - VERSION = "0.0.13" + VERSION = "0.0.14" Path = File.expand_path(File.join(File.dirname(__FILE__))) DefaultData = Path + "/../data" BlogHeader = File.read(DefaultData + "/blog_header.html") rescue "not found" @@ -52,10 +52,10 @@ def new_blog! unless File.exist?(".blog") yn = ask("No .blog found. Create new blog?") if yn.upcase == "Y" #-- what if data already exists? - system("cp -r #{DefaultData} .") + system("cp -r #{RuneBlog::DefaultData} .") File.open(".blog", "w") {|f| f.puts "data" } end end end