runeblog 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/runeblog.rb +11 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e996193cfee558fdab3b17b02e08f8ebe3b3c83d
|
4
|
+
data.tar.gz: 805c6cd7fe27f5a5075b29f2bf9875447e72dea0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6a9b605b46f8766b68f0cba4de92582691eb0c630e0c738566330061d911378f982bc0d3a7874f85077de172a8e4a689d7193b7faccd2759cd78ca176f53757
|
7
|
+
data.tar.gz: daf50aae81d643a772eb82859c3ceae4b2d7bb55f54c9a3be6412213eac15d62beacb8ee06ac47df7e402a6981223854163a060fd273fbbd2f6b7da1cdfa1b64
|
data/lib/runeblog.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
|
2
2
|
class RuneBlog
|
3
|
-
VERSION = "0.0.
|
3
|
+
VERSION = "0.0.3"
|
4
|
+
|
5
|
+
Path = File.expand_path(File.join(File.dirname(__FILE__)))
|
4
6
|
end
|
5
7
|
|
6
8
|
# FIXME lots of structure changes
|
@@ -80,6 +82,14 @@ def read_config
|
|
80
82
|
@config.root = root
|
81
83
|
@config.views = dirs
|
82
84
|
@config.sequence = File.read(root + "/sequence").to_i
|
85
|
+
rescue
|
86
|
+
STDERR.puts "No config file found. Create a new blog?"
|
87
|
+
resp = gets.chomp
|
88
|
+
if resp.downcase == "y"
|
89
|
+
blog_new!
|
90
|
+
STDERR.puts "Created. Now run again."
|
91
|
+
end
|
92
|
+
exit
|
83
93
|
end
|
84
94
|
|
85
95
|
### create_empty_post
|