potion 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/potion +2 -1
- data/lib/potion/site.rb +1 -1
- data/lib/potion/version.rb +1 -1
- metadata +1 -1
data/bin/potion
CHANGED
@@ -10,7 +10,7 @@ require 'directory_watcher'
|
|
10
10
|
|
11
11
|
include WEBrick
|
12
12
|
|
13
|
-
program :version, "0.0.
|
13
|
+
program :version, "0.0.3"
|
14
14
|
program :description, 'A simple, extensible, static site generator that supports code, photos and files'
|
15
15
|
|
16
16
|
command :preview do |c|
|
@@ -45,6 +45,7 @@ command :preview do |c|
|
|
45
45
|
dw.start
|
46
46
|
end
|
47
47
|
|
48
|
+
puts "Server starting at: 'localhost:4000'"
|
48
49
|
server = HTTPServer.new(:Port => 4000, :BindAddress => "localhost")
|
49
50
|
server.mount("/", HTTPServlet::FileHandler, destination)
|
50
51
|
|
data/lib/potion/site.rb
CHANGED
@@ -37,7 +37,7 @@ class Potion::Site
|
|
37
37
|
|
38
38
|
def load_config
|
39
39
|
config_path = File.join(@base_path, "_config.yaml")
|
40
|
-
raise "No config file found at #{config_path}" unless File.exists?(config_path)
|
40
|
+
raise "No config file found at '#{config_path}'" unless File.exists?(config_path)
|
41
41
|
config = YAML.load(File.open(config_path))
|
42
42
|
return {} if config == false
|
43
43
|
config
|
data/lib/potion/version.rb
CHANGED