staticmatic 0.10.1 → 0.10.2

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.
Files changed (40) hide show
  1. data/LICENSE +20 -0
  2. data/{README.rdoc → README.markdown} +0 -0
  3. data/Rakefile +22 -23
  4. data/VERSION.yml +4 -0
  5. data/lib/staticmatic.rb +1 -1
  6. data/lib/staticmatic/mixins/render.rb +3 -3
  7. data/test/base_test.rb +13 -0
  8. data/test/helpers_test.rb +12 -0
  9. data/test/render_test.rb +30 -0
  10. data/test/rescue_test.rb +36 -0
  11. data/test/sandbox/test_site/configuration.rb +0 -0
  12. data/test/sandbox/test_site/site/index +3 -0
  13. data/test/sandbox/test_site/site/index.html +10 -0
  14. data/test/sandbox/test_site/site/layout_test +1 -0
  15. data/test/sandbox/test_site/site/page_with_error +4 -0
  16. data/test/sandbox/test_site/site/page_with_partial_error +4 -0
  17. data/test/sandbox/test_site/site/stylesheets/application.css +2 -0
  18. data/test/sandbox/test_site/site/sub_folder/another_sub_folder. +4 -0
  19. data/test/sandbox/test_site/site/sub_folder/another_sub_folder/index.html +1 -0
  20. data/test/sandbox/test_site/site/sub_folder/another_sub_folder/index.html.html +1 -0
  21. data/test/sandbox/test_site/site/sub_folder/index.html +1 -0
  22. data/test/sandbox/test_site/src/helpers/application_helper.rb +5 -0
  23. data/test/sandbox/test_site/src/layouts/alternate_layout.haml +3 -0
  24. data/test/sandbox/test_site/src/layouts/application.haml +7 -0
  25. data/test/sandbox/test_site/src/layouts/projects.haml +1 -0
  26. data/test/sandbox/test_site/src/pages/hello_world.erb +1 -0
  27. data/test/sandbox/test_site/src/pages/index.haml +5 -0
  28. data/test/sandbox/test_site/src/pages/layout_test.haml +2 -0
  29. data/test/sandbox/test_site/src/pages/page_with_error.haml +5 -0
  30. data/test/sandbox/test_site/src/pages/page_with_partial_error.haml +3 -0
  31. data/test/sandbox/test_site/src/partials/menu.haml +1 -0
  32. data/test/sandbox/test_site/src/partials/partial_with_error.haml +1 -0
  33. data/test/sandbox/test_site/src/stylesheets/application.sass +2 -0
  34. data/test/sandbox/test_site/src/stylesheets/css_with_error.sass +5 -0
  35. data/test/server_test.rb +12 -0
  36. data/test/setup_test.rb +25 -0
  37. data/test/template_error_test.rb +23 -0
  38. metadata +61 -41
  39. data/History.txt +0 -6
  40. data/Manifest.txt +0 -24
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (C) 2009 Stephen Bartholomew
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
File without changes
data/Rakefile CHANGED
@@ -1,30 +1,29 @@
1
- %w[rubygems rake rake/clean fileutils newgem rubigen].each { |f| require f }
1
+ require "rubygems"
2
+ require "rake"
3
+ require "rake/testtask"
2
4
  require File.dirname(__FILE__) + '/lib/staticmatic'
3
5
 
4
- # Generate all the Rake tasks
5
- # Run 'rake -T' to see list of generated tasks (from gem root directory)
6
- $hoe = Hoe.new('staticmatic', StaticMatic::VERSION) do |p|
7
- p.developer('Stephen Bartholomew', 'steve@curve21.com')
8
- p.summary = "Lightweight Static Site Framework"
9
- p.rubyforge_name = p.name
10
- p.extra_deps = [
11
- ['haml','>= 2.0'],
12
- ['mongrel','>= 1.0']
13
- ]
14
- p.extra_dev_deps = [
15
- ['newgem', ">= #{::Newgem::VERSION}"]
16
- ]
17
-
18
- p.clean_globs |= %w[**/.DS_Store tmp *.log]
19
- path = (p.rubyforge_name == p.name) ? p.rubyforge_name : "\#{p.rubyforge_name}/\#{p.name}"
20
- p.remote_rdoc_dir = File.join(path.gsub(/^#{p.rubyforge_name}\/?/,''), 'markdown')
21
- p.rsync_args = '-av --delete --ignore-errors'
6
+ begin
7
+ require 'jeweler'
8
+ Jeweler::Tasks.new do |gem|
9
+ gem.name = "staticmatic"
10
+ gem.executables = "staticmatic"
11
+ gem.summary = "Lightweight Static Site Framework"
12
+ gem.email = "steve@curve21.com"
13
+ gem.homepage = "http://staticmatic.net"
14
+ gem.description = "Lightweight Static Site Framework"
15
+ gem.authors = ["Stephen Bartholomew"]
16
+ gem.rubyforge_project = "staticmatic"
17
+
18
+ gem.files = FileList["[A-Z]*", "{bin,lib,test}/**/*"]
19
+
20
+ gem.add_dependency("haml", ">=2.0.0")
21
+ gem.add_dependency("mongrel", ">=1.1.5")
22
+ end
23
+ rescue LoadError
24
+ puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gemgem.github.com"
22
25
  end
23
26
 
24
- require 'newgem/tasks' # load /tasks/*.rake
25
- Dir['tasks/**/*.rake'].each { |t| load t }
26
-
27
-
28
27
  desc "Run all unit tests"
29
28
  Rake::TestTask.new(:test) do |t|
30
29
  t.test_files = Dir.glob("test/*_test.rb")
@@ -0,0 +1,4 @@
1
+ ---
2
+ :major: 0
3
+ :minor: 10
4
+ :patch: 2
@@ -5,7 +5,7 @@ require 'mongrel'
5
5
  require 'fileutils'
6
6
 
7
7
  module StaticMatic
8
- VERSION = '0.10.1'
8
+ VERSION = '0.10.2'
9
9
  end
10
10
 
11
11
  ["render", "build", "setup", "server", "helpers", "rescue"].each do |mixin|
@@ -16,7 +16,7 @@ module StaticMatic::RenderMixin
16
16
  begin
17
17
  # clear all scope variables except @staticmatic
18
18
  @scope.instance_variables.each do |var|
19
- @scope.instance_variable_set(var, nil) unless var == '@staticmatic'
19
+ @scope.instance_variable_set(var, nil) unless var == ('@staticmatic' || :@staticmatic)
20
20
  end
21
21
  html = generate_html_from_template_source(File.read(full_file_path))
22
22
 
@@ -94,8 +94,8 @@ module StaticMatic::RenderMixin
94
94
  #
95
95
  def generate_html_from_template_source(source, options = {})
96
96
  html = Haml::Engine.new(source, self.configuration.haml_options.merge(options))
97
-
98
- html.render(@scope, options) { yield }
97
+ locals = options[:locals] || {}
98
+ html.render(@scope, locals) { yield }
99
99
  end
100
100
 
101
101
  def determine_layout(dir = '')
@@ -0,0 +1,13 @@
1
+ require File.dirname(__FILE__) + "/test_helper"
2
+
3
+ class StaticMatic::BaseTest < Test::Unit::TestCase
4
+ def setup
5
+ setup_staticmatic
6
+ end
7
+
8
+ should "set initial configuration settings" do
9
+ assert_equal true, @staticmatic.configuration.use_extensions_for_page_links
10
+ assert_equal 3000, @staticmatic.configuration.preview_server_port
11
+ end
12
+
13
+ end
@@ -0,0 +1,12 @@
1
+ require File.dirname(__FILE__) + "/test_helper"
2
+
3
+ class StaticMatic::HelpersTest < Test::Unit::TestCase
4
+ def setup
5
+ setup_staticmatic
6
+ end
7
+
8
+ should "include custom helper" do
9
+ content = @staticmatic.generate_html_with_layout("index")
10
+ assert_match "Hello, Steve!", content
11
+ end
12
+ end
@@ -0,0 +1,30 @@
1
+ require File.dirname(__FILE__) + "/test_helper"
2
+
3
+ class StaticMatic::RenderTest < Test::Unit::TestCase
4
+ def setup
5
+ setup_staticmatic
6
+ end
7
+
8
+ should "generate content with a layout" do
9
+ content = @staticmatic.generate_html_with_layout("index")
10
+ assert_match "StaticMatic", content
11
+ assert_match "This is some test content", content
12
+ end
13
+
14
+ should "generate html with layout assigned in template" do
15
+ content = @staticmatic.generate_html_with_layout("layout_test")
16
+ assert_match "Alternate Layout", content
17
+ end
18
+
19
+ should "generate css" do
20
+ content = @staticmatic.generate_css("application")
21
+ end
22
+
23
+ should "find source filename from path" do
24
+ assert_equal "application", @staticmatic.source_template_from_path("@base_dir/src/stylesheets/application.css")[1]
25
+ end
26
+
27
+ should "find layout from passed path" do
28
+ assert_equal "projects", @staticmatic.determine_layout("test/projects")
29
+ end
30
+ end
@@ -0,0 +1,36 @@
1
+ require File.dirname(__FILE__) + "/test_helper"
2
+
3
+ class StaticMatic::RescueTest < Test::Unit::TestCase
4
+ def setup
5
+ setup_staticmatic
6
+ end
7
+
8
+ should "catch haml template errors" do
9
+ output = @staticmatic.generate_html_with_layout("page_with_error")
10
+ assert_match /StaticMatic::TemplateError/, output
11
+ end
12
+
13
+ should "catch sass template errors" do
14
+ output = @staticmatic.generate_css("css_with_error")
15
+ assert_match /StaticMatic::TemplateError/, output
16
+ end
17
+
18
+ should "re-raise and catch partial errors" do
19
+ begin
20
+ @staticmatic.generate_html("page_with_partial_error")
21
+ rescue StaticMatic::TemplateError => template_error
22
+ assert_match /partials\/partial_with_error/, template_error.filename
23
+ end
24
+ end
25
+
26
+ should "handle non-template errors" do
27
+ begin
28
+ raise Exception.new("This is an exception")
29
+ rescue Exception => e
30
+ output = @staticmatic.render_rescue_from_error(e)
31
+ end
32
+
33
+ assert_match /Exception/, output
34
+ assert_match /This is an exception/, output
35
+ end
36
+ end
@@ -0,0 +1,3 @@
1
+ <h1>StaticMatic!</h1>
2
+ <p>This is some test content</p>
3
+ Hello, Steve!
@@ -0,0 +1,10 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html>
3
+ <head>
4
+ <title>StaticMatic</title>
5
+ <link rel="stylesheet" href="stylesheets/application.css" media="all"/>
6
+ </head>
7
+ <body>
8
+ <h1>StaticMatic!</h1>
9
+ </body>
10
+ </html>
@@ -0,0 +1 @@
1
+ <p>This is a layout test</p>
@@ -0,0 +1,4 @@
1
+ <h1>NoMethodError</h1>
2
+ <p>undefined method `bang!' for #<Object:0x1973d98></p>
3
+ <h2>Stack Trace</h2>
4
+ (haml):3:in `render'<br/>/usr/local/lib/ruby/gems/1.8/gems/haml-2.0.4/lib/haml/engine.rb:149:in `render'<br/>/usr/local/lib/ruby/gems/1.8/gems/haml-2.0.4/lib/haml/engine.rb:149:in `instance_eval'<br/>/usr/local/lib/ruby/gems/1.8/gems/haml-2.0.4/lib/haml/engine.rb:149:in `render'<br/>./bin/../lib/staticmatic/handlers/haml.rb:8:in `compile'<br/>./bin/../lib/staticmatic/template.rb:17:in `template_for'<br/>./bin/../lib/staticmatic/mixins/render.rb:4:in `render'<br/>./bin/../lib/staticmatic/mixins/build.rb:8:in `build'<br/>./bin/../lib/staticmatic/mixins/build.rb:4:in `each'<br/>./bin/../lib/staticmatic/mixins/build.rb:4:in `build'<br/>./bin/../lib/staticmatic/base.rb:58:in `send'<br/>./bin/../lib/staticmatic/base.rb:58:in `run'<br/>bin/staticmatic:23
@@ -0,0 +1,4 @@
1
+ <h1>NoMethodError</h1>
2
+ <p>undefined method `generate_partial' for nil:NilClass</p>
3
+ <h2>Stack Trace</h2>
4
+ ./bin/../lib/staticmatic/helpers.rb:178:in `partial'<br/>(haml):3:in `render'<br/>/usr/local/lib/ruby/gems/1.8/gems/haml-2.0.4/lib/haml/engine.rb:149:in `render'<br/>/usr/local/lib/ruby/gems/1.8/gems/haml-2.0.4/lib/haml/engine.rb:149:in `instance_eval'<br/>/usr/local/lib/ruby/gems/1.8/gems/haml-2.0.4/lib/haml/engine.rb:149:in `render'<br/>./bin/../lib/staticmatic/handlers/haml.rb:8:in `compile'<br/>./bin/../lib/staticmatic/template.rb:17:in `template_for'<br/>./bin/../lib/staticmatic/mixins/render.rb:4:in `render'<br/>./bin/../lib/staticmatic/mixins/build.rb:8:in `build'<br/>./bin/../lib/staticmatic/mixins/build.rb:4:in `each'<br/>./bin/../lib/staticmatic/mixins/build.rb:4:in `build'<br/>./bin/../lib/staticmatic/base.rb:58:in `send'<br/>./bin/../lib/staticmatic/base.rb:58:in `run'<br/>bin/staticmatic:23
@@ -0,0 +1,2 @@
1
+ body {
2
+ font-family: Verdana, Helvetica, sans-serif; }
@@ -0,0 +1,4 @@
1
+ <h1>NoMethodError</h1>
2
+ <p>undefined method `[]' for nil:NilClass</p>
3
+ <h2>Stack Trace</h2>
4
+ ./bin/../lib/staticmatic/template.rb:27:in `handler_for'<br/>./bin/../lib/staticmatic/template.rb:13:in `template_for'<br/>./bin/../lib/staticmatic/mixins/render.rb:4:in `render'<br/>./bin/../lib/staticmatic/mixins/build.rb:9:in `build'<br/>./bin/../lib/staticmatic/mixins/build.rb:4:in `each'<br/>./bin/../lib/staticmatic/mixins/build.rb:4:in `build'<br/>./bin/../lib/staticmatic/base.rb:58:in `send'<br/>./bin/../lib/staticmatic/base.rb:58:in `run'<br/>bin/staticmatic:23
@@ -0,0 +1 @@
1
+ An index of a sub folder
@@ -0,0 +1,5 @@
1
+ module ApplicationHelper
2
+ def greet(name)
3
+ "Hello, #{name}!"
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ %h1 Alternate Layout
2
+
3
+ = yield
@@ -0,0 +1,7 @@
1
+ !!!
2
+ %html
3
+ %head
4
+ %title StaticMatic
5
+ = stylesheets
6
+ %body
7
+ = yield
@@ -0,0 +1 @@
1
+ %h1 Sub dir test
@@ -0,0 +1 @@
1
+ <%= "Hello World!" %>
@@ -0,0 +1,5 @@
1
+ %h1 StaticMatic!
2
+
3
+ %p This is some test content
4
+
5
+ = greet("Steve")
@@ -0,0 +1,2 @@
1
+ - @layout = "alternate_layout"
2
+ %p This is a layout test
@@ -0,0 +1,5 @@
1
+ %h1 Hello
2
+
3
+ - bang!
4
+
5
+ %h2 A test
@@ -0,0 +1,3 @@
1
+ %h1 Partial Error
2
+
3
+ = partial "partial_with_error"
@@ -0,0 +1,2 @@
1
+ body
2
+ :font-family = "Verdana, Helvetica, sans-serif"
@@ -0,0 +1,5 @@
1
+ body
2
+ syntax--- error
3
+
4
+ h1
5
+ :font-family Arial
@@ -0,0 +1,12 @@
1
+ require File.dirname(__FILE__) + "/test_helper"
2
+
3
+
4
+ class StaticMatic::ServerTest < Test::Unit::TestCase
5
+ def setup
6
+ @base_dir = File.dirname(__FILE__) + '/sandbox/tmp'
7
+ end
8
+
9
+ def test_default
10
+ assert true
11
+ end
12
+ end
@@ -0,0 +1,25 @@
1
+ require File.dirname(__FILE__) + "/test_helper"
2
+
3
+ class StaticMatic::SetupTest < Test::Unit::TestCase
4
+ def setup
5
+ setup_staticmatic
6
+ end
7
+
8
+ should "setup directories" do
9
+ tmp_dir = File.dirname(__FILE__) + '/sandbox/tmp'
10
+ staticmatic = StaticMatic::Base.new(tmp_dir)
11
+ staticmatic.run('setup')
12
+
13
+ StaticMatic::Base.base_dirs.each do |dir|
14
+ assert File.exists?("#{tmp_dir}/#{dir}"), "Should create #{dir}"
15
+ end
16
+
17
+ StaticMatic::Base.base_dirs.reverse.each do |dir|
18
+ Dir.entries("#{tmp_dir}/#{dir}").each do |file|
19
+ next if file.match(/^\./)
20
+ File.delete("#{tmp_dir}/#{dir}/#{file}")
21
+ end
22
+ Dir.delete("#{tmp_dir}/#{dir}") if File.exists?("#{tmp_dir}/#{dir}")
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,23 @@
1
+ require File.dirname(__FILE__) + "/test_helper"
2
+
3
+ class StaticMatic::TemplateTest < Test::Unit::TestCase
4
+ def setup
5
+ setup_staticmatic
6
+
7
+ template_file = File.join(TEST_SITE_PATH, "src", "pages", "page_with_error.haml")
8
+
9
+ begin
10
+ @staticmatic.generate_html_from_template_source(File.read(template_file))
11
+ rescue Exception => e
12
+ @template_error = StaticMatic::TemplateError.new(template_file, e)
13
+ end
14
+ end
15
+
16
+ should "extract source around line number" do
17
+ assert_match /\- bang\!/, @template_error.source_extract
18
+ end
19
+
20
+ should "extract line number from backtrace" do
21
+ assert_equal "3", @template_error.line_number
22
+ end
23
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: staticmatic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Bartholomew
@@ -9,8 +9,8 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-30 00:00:00 +00:00
13
- default_executable:
12
+ date: 2009-09-20 00:00:00 +01:00
13
+ default_executable: staticmatic
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: haml
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: "2.0"
23
+ version: 2.0.0
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: mongrel
@@ -30,44 +30,22 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: "1.0"
33
+ version: 1.1.5
34
34
  version:
35
- - !ruby/object:Gem::Dependency
36
- name: newgem
37
- type: :development
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: 1.1.0
44
- version:
45
- - !ruby/object:Gem::Dependency
46
- name: hoe
47
- type: :development
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: 1.8.0
54
- version:
55
- description:
56
- email:
57
- - steve@curve21.com
35
+ description: Lightweight Static Site Framework
36
+ email: steve@curve21.com
58
37
  executables:
59
38
  - staticmatic
60
39
  extensions: []
61
40
 
62
41
  extra_rdoc_files:
63
- - History.txt
64
- - Manifest.txt
65
- - README.rdoc
42
+ - LICENSE
43
+ - README.markdown
66
44
  files:
67
- - History.txt
68
- - Manifest.txt
69
- - README.rdoc
45
+ - LICENSE
46
+ - README.markdown
70
47
  - Rakefile
48
+ - VERSION.yml
71
49
  - bin/staticmatic
72
50
  - lib/staticmatic.rb
73
51
  - lib/staticmatic/base.rb
@@ -77,22 +55,55 @@ files:
77
55
  - lib/staticmatic/mixins/build.rb
78
56
  - lib/staticmatic/mixins/helpers.rb
79
57
  - lib/staticmatic/mixins/render.rb
58
+ - lib/staticmatic/mixins/rescue.rb
80
59
  - lib/staticmatic/mixins/server.rb
81
60
  - lib/staticmatic/mixins/setup.rb
82
61
  - lib/staticmatic/server.rb
62
+ - lib/staticmatic/template_error.rb
83
63
  - lib/staticmatic/templates/default/application.haml
84
64
  - lib/staticmatic/templates/default/application.sass
85
65
  - lib/staticmatic/templates/default/index.haml
86
66
  - lib/staticmatic/templates/rescues/default.haml
87
67
  - lib/staticmatic/templates/rescues/template.haml
88
- - lib/staticmatic/template_error.rb
89
- - lib/staticmatic/mixins/rescue.rb
68
+ - test/base_test.rb
69
+ - test/helpers_test.rb
70
+ - test/render_test.rb
71
+ - test/rescue_test.rb
72
+ - test/sandbox/test_site/configuration.rb
73
+ - test/sandbox/test_site/site/index
74
+ - test/sandbox/test_site/site/index.html
75
+ - test/sandbox/test_site/site/layout_test
76
+ - test/sandbox/test_site/site/page_with_error
77
+ - test/sandbox/test_site/site/page_with_partial_error
78
+ - test/sandbox/test_site/site/stylesheets/application.css
79
+ - test/sandbox/test_site/site/sub_folder/another_sub_folder.
80
+ - test/sandbox/test_site/site/sub_folder/another_sub_folder/index.html
81
+ - test/sandbox/test_site/site/sub_folder/another_sub_folder/index.html.html
82
+ - test/sandbox/test_site/site/sub_folder/index.html
83
+ - test/sandbox/test_site/src/helpers/application_helper.rb
84
+ - test/sandbox/test_site/src/layouts/alternate_layout.haml
85
+ - test/sandbox/test_site/src/layouts/application.haml
86
+ - test/sandbox/test_site/src/layouts/projects.haml
87
+ - test/sandbox/test_site/src/pages/hello_world.erb
88
+ - test/sandbox/test_site/src/pages/index.haml
89
+ - test/sandbox/test_site/src/pages/layout_test.haml
90
+ - test/sandbox/test_site/src/pages/page_with_error.haml
91
+ - test/sandbox/test_site/src/pages/page_with_partial_error.haml
92
+ - test/sandbox/test_site/src/partials/menu.haml
93
+ - test/sandbox/test_site/src/partials/partial_with_error.haml
94
+ - test/sandbox/test_site/src/stylesheets/application.sass
95
+ - test/sandbox/test_site/src/stylesheets/css_with_error.sass
96
+ - test/server_test.rb
97
+ - test/setup_test.rb
98
+ - test/template_error_test.rb
99
+ - test/test_helper.rb
90
100
  has_rdoc: true
91
- homepage:
101
+ homepage: http://staticmatic.net
102
+ licenses: []
103
+
92
104
  post_install_message:
93
105
  rdoc_options:
94
- - --main
95
- - README.rdoc
106
+ - --charset=UTF-8
96
107
  require_paths:
97
108
  - lib
98
109
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -110,9 +121,18 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
121
  requirements: []
111
122
 
112
123
  rubyforge_project: staticmatic
113
- rubygems_version: 1.3.1
124
+ rubygems_version: 1.3.5
114
125
  signing_key:
115
- specification_version: 2
126
+ specification_version: 3
116
127
  summary: Lightweight Static Site Framework
117
128
  test_files:
129
+ - test/base_test.rb
130
+ - test/helpers_test.rb
131
+ - test/render_test.rb
132
+ - test/rescue_test.rb
133
+ - test/sandbox/test_site/configuration.rb
134
+ - test/sandbox/test_site/src/helpers/application_helper.rb
135
+ - test/server_test.rb
136
+ - test/setup_test.rb
137
+ - test/template_error_test.rb
118
138
  - test/test_helper.rb
@@ -1,6 +0,0 @@
1
- == 0.10.0 2009-01-01
2
-
3
- * Refactoring for forthcoming improvements
4
- * Improved Error Reporting
5
- * More useful error pages
6
- * Removed Haml specific error handling
@@ -1,24 +0,0 @@
1
- History.txt
2
- Manifest.txt
3
- README.rdoc
4
- Rakefile
5
- bin/staticmatic
6
- lib/staticmatic.rb
7
- lib/staticmatic/base.rb
8
- lib/staticmatic/configuration.rb
9
- lib/staticmatic/error.rb
10
- lib/staticmatic/helpers.rb
11
- lib/staticmatic/mixins/build.rb
12
- lib/staticmatic/mixins/helpers.rb
13
- lib/staticmatic/mixins/render.rb
14
- lib/staticmatic/mixins/server.rb
15
- lib/staticmatic/mixins/setup.rb
16
- lib/staticmatic/server.rb
17
- lib/staticmatic/templates/default/application.haml
18
- lib/staticmatic/templates/default/application.sass
19
- lib/staticmatic/templates/default/index.haml
20
- lib/staticmatic/templates/default/index.haml
21
- lib/staticmatic/templates/rescues/default.haml
22
- lib/staticmatic/templates/rescues/template.haml
23
- lib/staticmatic/template_error.rb
24
- lib/staticmatic/mixins/rescue.rb