Package not found. Please check the package name and try again.

benofsky-bolt 0.4.3 → 0.4.4

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/lib/bolt/serve.rb CHANGED
@@ -77,11 +77,10 @@ module Bolt
77
77
  parse_config
78
78
 
79
79
  page_name = request['GET'].gsub(/\.html/,'')[1..-1]
80
+ page_name = "index" if page_name == ""
80
81
  page = @pages[page_name]
81
82
 
82
- if(!page.nil?)
83
- page_name = "index" if page_name == ""
84
-
83
+ if(!page.nil?)
85
84
  # A tad hacky, otherwise @current_page isn't set properly and all hell breaks loose
86
85
  body = PageBinding.new(page_name).instance_eval(&page)
87
86
  @server.reply(body)
@@ -4,6 +4,5 @@ DRb.start_service()
4
4
  @serve_instance = DRbObject.new(nil, $drb_uri)
5
5
 
6
6
  def page(path, &block)
7
- @serve_instance.pages[""] = block if path == "index"
8
7
  @serve_instance.pages[path] = block
9
8
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 3
9
- version: 0.4.3
8
+ - 4
9
+ version: 0.4.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ben McRedmond