serve 0.9.9 → 0.9.10

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,6 @@
1
+ == 0.9.10 (October 25, 2008)
2
+ * Updated to work with Haml 2.0.3. [jlong]
3
+
1
4
  == 0.9.9 (September 19, 2008)
2
5
  * Fixed ERB partial support. [jlong]
3
6
  * Added support for content_for blocks in ERB. [jlong]
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 is partial implemented
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
@@ -5,7 +5,7 @@ module Serve
5
5
  attr_accessor :options
6
6
 
7
7
  def self.run(args = ARGV)
8
- Application.new.run(args)
8
+ new.run(args)
9
9
  end
10
10
 
11
11
  def initialize
@@ -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'
@@ -2,7 +2,7 @@ module Serve #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 9
5
- TINY = 9
5
+ TINY = 10
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -2,6 +2,11 @@
2
2
  %html
3
3
  %head
4
4
  %title= @title
5
+ %link{:rel=>"stylesheet", :type=>"text/css", :href=>"/main.sass"}/
6
+ %style{:type=>"text/css"}
7
+ :sass
8
+ body
9
+ color: red
5
10
  %body
6
11
  %h1= @title
7
12
  = yield
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.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-09-19 00:00:00 -04:00
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