serve 0.9.9 → 0.9.10
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.tar.gz.sig +0 -0
- data/History.txt +3 -0
- data/README.txt +2 -2
- data/lib/serve/application.rb +1 -1
- data/lib/serve/handlers/dynamic_handler.rb +2 -0
- data/lib/serve/version.rb +1 -1
- data/test_project/_layout.haml +5 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
|
Binary file
|
data/History.txt
CHANGED
data/README.txt
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Serve is a small Ruby script that makes it easy to start up a WEBrick server
|
|
4
4
|
in any directory. Serve is ideal for HTML prototyping and simple file sharing.
|
|
5
5
|
If the haml, redcloth, and bluecloth gems are installed serve can handle Haml,
|
|
6
|
-
Sass, Textile, and Markdown (in addition to HTML).
|
|
6
|
+
Sass, Textile, and Markdown (in addition to HTML and ERB).
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
=== Usage
|
|
@@ -52,7 +52,7 @@ Serve presently does special processing for files with following extensions:
|
|
|
52
52
|
|
|
53
53
|
textile :: Evaluates the document as Textile (requires the Redcloth gem)
|
|
54
54
|
markdown :: Evaluates the document as Markdown (requires the Bluecloth gem)
|
|
55
|
-
erb :: Experimental support for ERB
|
|
55
|
+
erb :: Experimental support for ERB
|
|
56
56
|
haml :: Evaluates the document as Haml (requires the Haml gem)
|
|
57
57
|
sass :: Evaluates the document as Sass (requires the Haml gem)
|
|
58
58
|
email :: Evaluates the document as if it is an e-mail message; the format is identical to a plain/text e-mail message's source
|
data/lib/serve/application.rb
CHANGED
|
@@ -77,6 +77,8 @@ module Serve #:nodoc:
|
|
|
77
77
|
engine = case File.extname(filename).sub(/^./, '').downcase
|
|
78
78
|
when 'haml'
|
|
79
79
|
require 'haml'
|
|
80
|
+
require 'sass'
|
|
81
|
+
require 'sass/plugin'
|
|
80
82
|
Haml::Engine.new(lines, :attr_wrapper => '"', :filename => filename)
|
|
81
83
|
when 'erb'
|
|
82
84
|
require 'erb'
|
data/lib/serve/version.rb
CHANGED
data/test_project/_layout.haml
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: serve
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- John W. Long
|
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
|
30
30
|
qXI=
|
|
31
31
|
-----END CERTIFICATE-----
|
|
32
32
|
|
|
33
|
-
date: 2008-
|
|
33
|
+
date: 2008-10-25 00:00:00 -04:00
|
|
34
34
|
default_executable:
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
metadata.gz.sig
CHANGED
|
Binary file
|