middleman 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/middleman.rb +3 -0
- data/middleman.gemspec +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.4
|
data/lib/middleman.rb
CHANGED
@@ -72,6 +72,9 @@ class Middleman < Sinatra::Base
|
|
72
72
|
get %r{/(.*).css} do |path|
|
73
73
|
content_type 'text/css', :charset => 'utf-8'
|
74
74
|
begin
|
75
|
+
static_version = File.join(Dir.pwd, 'public') + request.path_info
|
76
|
+
send_file(static_version) if File.exists? static_version
|
77
|
+
|
75
78
|
location_of_sass_file = defined?(MIDDLEMAN_BUILDER) ? "build" : "views"
|
76
79
|
css_filename = File.join(Dir.pwd, location_of_sass_file) + request.path_info
|
77
80
|
sass(path.to_sym, Compass.sass_engine_options.merge({ :css_filename => css_filename }))
|
data/middleman.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{middleman}
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Thomas Reynolds"]
|
12
|
-
s.date = %q{2009-09-
|
12
|
+
s.date = %q{2009-09-19}
|
13
13
|
s.email = %q{tdreyno@gmail.com}
|
14
14
|
s.executables = ["mm-init", "mm-build", "mm-server"]
|
15
15
|
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.5.
|
4
|
+
version: 0.5.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-09-
|
12
|
+
date: 2009-09-19 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|