middleman 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/middleman.rb +4 -4
  3. data/middleman.gemspec +2 -2
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
1
+ 0.3.4
@@ -72,20 +72,20 @@ class Middleman < Sinatra::Base
72
72
  get /(.*)/ do |path|
73
73
  path << "index.html" if path.match(%r{/$})
74
74
  path.gsub!(%r{^/}, '')
75
- template = path.gsub(File.extname(path), '').to_sym
75
+ @template = path.gsub(File.extname(path), '').to_sym
76
76
  @full_request_path = path
77
77
 
78
78
  result = nil
79
79
 
80
80
  %w(haml erb builder maruku mab sass).each do |renderer|
81
- next if !File.exists?(File.join(options.views, "#{template}.#{renderer}"))
81
+ next if !File.exists?(File.join(options.views, "#{@template}.#{renderer}"))
82
82
 
83
83
  renderer = "markaby" if renderer == "mab"
84
84
  result = if renderer == "sass"
85
85
  content_type 'text/css', :charset => 'utf-8'
86
- sass(template, Compass.sass_engine_options)
86
+ sass(@template, Compass.sass_engine_options)
87
87
  else
88
- send(renderer.to_sym, template)
88
+ send(renderer.to_sym, @template)
89
89
  end
90
90
 
91
91
  break
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{middleman}
5
- s.version = "0.3.3"
5
+ s.version = "0.3.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Thomas Reynolds"]
9
- s.date = %q{2009-08-04}
9
+ s.date = %q{2009-08-05}
10
10
  s.email = %q{tdreyno@gmail.com}
11
11
  s.executables = ["mm-init", "mm-build", "mm-server"]
12
12
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Reynolds
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-04 00:00:00 -07:00
12
+ date: 2009-08-05 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency