runeblog 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/runeblog.rb +11 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee71ac3258aa01751faf092b6b5edad7bab749de
4
- data.tar.gz: b25efd798c5ca4e7726428ed5a869d15a94fe6ce
3
+ metadata.gz: e996193cfee558fdab3b17b02e08f8ebe3b3c83d
4
+ data.tar.gz: 805c6cd7fe27f5a5075b29f2bf9875447e72dea0
5
5
  SHA512:
6
- metadata.gz: a24532825a50d61a620a30536b2badac6fce4b381566f3d01722f840cb5f6c923eee80dc2f33187e63e6a23c207be0104b8941a280f2decd6874436448f457ce
7
- data.tar.gz: 68bf2f8485e28a21527b8afa3528e0991c7964b8fa2e3d4441bcd8ec43871d9ce8a23d1c695b0fe939238b97ad24b90262b526b1c66db32c17b5cbe3936acd2e
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.2"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runeblog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton