staticmatic2 2.0.0
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/Gemfile +12 -0
- data/Gemfile.lock +27 -0
- data/LICENSE +20 -0
- data/README.markdown +107 -0
- data/Rakefile +45 -0
- data/VERSION.yml +5 -0
- data/bin/staticmatic +140 -0
- data/lib/staticmatic.rb +25 -0
- data/lib/staticmatic/base.rb +123 -0
- data/lib/staticmatic/compass.rb +5 -0
- data/lib/staticmatic/compass/app_integration.rb +18 -0
- data/lib/staticmatic/compass/configuration_defaults.rb +44 -0
- data/lib/staticmatic/compass/installer.rb +15 -0
- data/lib/staticmatic/configuration.rb +20 -0
- data/lib/staticmatic/deployers/aws-s3.rb +71 -0
- data/lib/staticmatic/deployers/config/amazon.yml +7 -0
- data/lib/staticmatic/error.rb +17 -0
- data/lib/staticmatic/helpers.rb +12 -0
- data/lib/staticmatic/helpers/assets_helper.rb +116 -0
- data/lib/staticmatic/helpers/current_path_helper.rb +22 -0
- data/lib/staticmatic/helpers/form_helper.rb +23 -0
- data/lib/staticmatic/helpers/render_helper.rb +13 -0
- data/lib/staticmatic/helpers/tag_helper.rb +35 -0
- data/lib/staticmatic/helpers/url_helper.rb +59 -0
- data/lib/staticmatic/mixins/build.rb +77 -0
- data/lib/staticmatic/mixins/helpers.rb +15 -0
- data/lib/staticmatic/mixins/render.rb +153 -0
- data/lib/staticmatic/mixins/rescue.rb +12 -0
- data/lib/staticmatic/mixins/server.rb +7 -0
- data/lib/staticmatic/mixins/setup.rb +16 -0
- data/lib/staticmatic/server.rb +86 -0
- data/lib/staticmatic/template_error.rb +44 -0
- data/lib/staticmatic/templates/rescues/default.haml +7 -0
- data/lib/staticmatic/templates/rescues/template.haml +18 -0
- data/spec/base_spec.rb +13 -0
- data/spec/compass_integration_spec.rb +27 -0
- data/spec/helpers/asset_helper_spec.rb +43 -0
- data/spec/helpers/custom_helper_spec.rb +18 -0
- data/spec/render_spec.rb +44 -0
- data/spec/rescue_spec.rb +36 -0
- data/spec/sandbox/test_site/config/compass.rb +1 -0
- data/spec/sandbox/test_site/config/site.rb +0 -0
- data/spec/sandbox/test_site/src/helpers/application_helper.rb +5 -0
- data/spec/sandbox/test_site/src/layouts/alternate_layout.haml +3 -0
- data/spec/sandbox/test_site/src/layouts/default.haml +7 -0
- data/spec/sandbox/test_site/src/layouts/projects.haml +1 -0
- data/spec/sandbox/test_site/src/pages/hello_world.erb +1 -0
- data/spec/sandbox/test_site/src/pages/index.haml +5 -0
- data/spec/sandbox/test_site/src/pages/layout_test.haml +2 -0
- data/spec/sandbox/test_site/src/pages/page_one.haml +3 -0
- data/spec/sandbox/test_site/src/pages/page_two.haml +2 -0
- data/spec/sandbox/test_site/src/pages/page_with_error.haml +5 -0
- data/spec/sandbox/test_site/src/pages/page_with_partial_error.haml +3 -0
- data/spec/sandbox/test_site/src/partials/menu.haml +1 -0
- data/spec/sandbox/test_site/src/partials/partial_with_error.haml +1 -0
- data/spec/sandbox/test_site/src/stylesheets/application.sass +5 -0
- data/spec/sandbox/test_site/src/stylesheets/css_with_error.sass +5 -0
- data/spec/sandbox/test_site/src/stylesheets/nested/a_nested_stylesheet.sass +0 -0
- data/spec/sandbox/test_site/src/stylesheets/partials/_forms.sass +2 -0
- data/spec/sandbox/test_site/src/stylesheets/sassy.scss +12 -0
- data/spec/server_spec.rb +11 -0
- data/spec/setup_spec.rb +22 -0
- data/spec/spec_helper.rb +14 -0
- data/spec/template_error_spec.rb +23 -0
- data/staticmatic.gemspec +158 -0
- data/website/Gemfile +1 -0
- data/website/config/site.rb +17 -0
- data/website/site/docs/compass_integration.html +70 -0
- data/website/site/docs/getting_started.html +49 -0
- data/website/site/docs/helpers.html +22 -0
- data/website/site/images/bycurve21.gif +0 -0
- data/website/site/images/curve21.jpg +0 -0
- data/website/site/images/homepage-build.jpg +0 -0
- data/website/site/images/homepage-previewing.jpg +0 -0
- data/website/site/images/homepage-templating.jpg +0 -0
- data/website/site/stylesheets/ie.css +5 -0
- data/website/site/stylesheets/print.css +372 -0
- data/website/site/stylesheets/screen.css +488 -0
- data/website/src/helpers/content_helper.rb +10 -0
- data/website/src/layouts/default.haml +15 -0
- data/website/src/pages/development.haml +9 -0
- data/website/src/pages/docs/_menu.haml +4 -0
- data/website/src/pages/docs/_requires_prerelease.haml +4 -0
- data/website/src/pages/docs/compass_integration.haml +54 -0
- data/website/src/pages/docs/getting_started.haml +31 -0
- data/website/src/pages/docs/helpers.haml +1 -0
- data/website/src/pages/index.haml +27 -0
- data/website/src/stylesheets/_base.scss +43 -0
- data/website/src/stylesheets/_defaults.scss +260 -0
- data/website/src/stylesheets/ie.scss +10 -0
- data/website/src/stylesheets/print.scss +33 -0
- data/website/src/stylesheets/screen.scss +73 -0
- metadata +238 -0
data/spec/base_spec.rb
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
require File.dirname(__FILE__) + "/spec_helper"
|
|
2
|
+
|
|
3
|
+
describe "StaticMatic::Base" do
|
|
4
|
+
before do
|
|
5
|
+
setup_staticmatic
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
it "should set initial configuration settings" do
|
|
9
|
+
@staticmatic.configuration.use_extensions_for_page_links.should == true
|
|
10
|
+
@staticmatic.configuration.preview_server_port.should == 3000
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
require File.dirname(__FILE__) + "/spec_helper"
|
|
2
|
+
|
|
3
|
+
describe "Compass integration" do
|
|
4
|
+
context "with the default staticmatic configuration" do
|
|
5
|
+
before do
|
|
6
|
+
setup_staticmatic
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
it "should configure compass" do
|
|
10
|
+
Compass.configuration.project_path.should == TEST_SITE_PATH
|
|
11
|
+
Compass.configuration.sass_dir.should == File.join("src", "stylesheets")
|
|
12
|
+
Compass.configuration.css_dir.should == File.join("site", "stylesheets")
|
|
13
|
+
Compass.configuration.images_dir.should == File.join("site", "images")
|
|
14
|
+
Compass.configuration.http_images_path.should == "images"
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
context "with a custom configuration" do
|
|
19
|
+
before do
|
|
20
|
+
setup_staticmatic
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
it "should allow site config to override defaults" do
|
|
24
|
+
Compass.configuration.http_path.should == "http://a.test.host"
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
|
|
2
|
+
require File.dirname(__FILE__) + "/../spec_helper"
|
|
3
|
+
|
|
4
|
+
describe "Helpers:" do
|
|
5
|
+
include StaticMatic::Helpers::AssetsHelper
|
|
6
|
+
include StaticMatic::Helpers::CurrentPathHelper
|
|
7
|
+
include StaticMatic::Helpers::TagHelper
|
|
8
|
+
before do
|
|
9
|
+
setup_staticmatic
|
|
10
|
+
@staticmatic.instance_variable_set("@current_page", "")
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
context "When using the stylesheet helper" do
|
|
14
|
+
before do
|
|
15
|
+
@links = stylesheets
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
it "should set up links for all stylesheets" do
|
|
19
|
+
@links.should match(/stylesheets\/application\.css/)
|
|
20
|
+
@links.should match(/stylesheets\/nested\/a_nested_stylesheet\.css/)
|
|
21
|
+
@links.should match(/stylesheets\/sassy\.css/)
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
it "should not link to partials" do
|
|
25
|
+
@links.should_not match(/\_forms.css/)
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
it "should setup links for specified stylesheets" do
|
|
29
|
+
stylesheets(:sassy).should match(/stylesheets\/sassy\.css/)
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
context "When using the stylesheet helper from a sub page" do
|
|
34
|
+
before do
|
|
35
|
+
@staticmatic.instance_variable_set("@current_page", "/sub/index.html")
|
|
36
|
+
@links = stylesheets
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
it "should link relative to current page" do
|
|
40
|
+
@links.should match(/\.\.\/stylesheets/)
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
require File.dirname(__FILE__) + "/../spec_helper"
|
|
3
|
+
|
|
4
|
+
describe "Helpers:" do
|
|
5
|
+
include StaticMatic::Helpers::AssetsHelper
|
|
6
|
+
include StaticMatic::Helpers::CurrentPathHelper
|
|
7
|
+
include StaticMatic::Helpers::TagHelper
|
|
8
|
+
before do
|
|
9
|
+
setup_staticmatic
|
|
10
|
+
@staticmatic.instance_variable_set("@current_page", "")
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
it "should include custom helper" do
|
|
14
|
+
content = @staticmatic.generate_html_with_layout("index")
|
|
15
|
+
content.should match(/Hello, Steve!/)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
end
|
data/spec/render_spec.rb
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
require File.dirname(__FILE__) + "/spec_helper"
|
|
2
|
+
|
|
3
|
+
describe "StaticMatic::Render" do
|
|
4
|
+
before do
|
|
5
|
+
setup_staticmatic
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
it "generate content with a layout" do
|
|
9
|
+
content = @staticmatic.generate_html_with_layout("index")
|
|
10
|
+
content.should match(/StaticMatic/)
|
|
11
|
+
content.should match(/This is some test content/)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
it "generate html with layout assigned in template" do
|
|
15
|
+
content = @staticmatic.generate_html_with_layout("layout_test")
|
|
16
|
+
content.should match(/Alternate Layout/)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
it "generate css" do
|
|
20
|
+
content = @staticmatic.generate_css("application")
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
it "find source filename from path" do
|
|
24
|
+
@staticmatic.source_template_from_path("@base_dir/src/stylesheets/application.css")[1].should == "application"
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
it "find layout from passed path" do
|
|
28
|
+
@staticmatic.determine_layout("test/projects").should == "projects"
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
context "handling scss" do
|
|
32
|
+
it "should generate css from scss" do
|
|
33
|
+
@staticmatic.generate_css("sassy").should match(/color\: \#3bbfce\;/)
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
it "should clear template variables" do
|
|
38
|
+
@staticmatic.generate_html("page_one")
|
|
39
|
+
@staticmatic.clear_template_variables!
|
|
40
|
+
output = @staticmatic.generate_html("page_two")
|
|
41
|
+
output.should match(/The variable is/)
|
|
42
|
+
output.should_not match(/hello/)
|
|
43
|
+
end
|
|
44
|
+
end
|
data/spec/rescue_spec.rb
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
require File.dirname(__FILE__) + "/spec_helper"
|
|
2
|
+
|
|
3
|
+
describe "StaticMatic::Rescue" do
|
|
4
|
+
before do
|
|
5
|
+
setup_staticmatic
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
it "catch haml template errors" do
|
|
9
|
+
output = @staticmatic.generate_html_with_layout("page_with_error")
|
|
10
|
+
output.should match(/StaticMatic::TemplateError/)
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
it "catch sass template errors" do
|
|
14
|
+
output = @staticmatic.generate_css("css_with_error")
|
|
15
|
+
output.should match(/StaticMatic::TemplateError/)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
it "re-raise and catch partial errors" do
|
|
19
|
+
begin
|
|
20
|
+
@staticmatic.generate_html("page_with_partial_error")
|
|
21
|
+
rescue StaticMatic::TemplateError => template_error
|
|
22
|
+
template_error.filename.should match(/partials\/partial_with_error/)
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
it "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
|
+
output.should match(/Exception/)
|
|
34
|
+
output.should match(/This is an exception/)
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
http_path = "http://a.test.host"
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
%h1 Sub dir test
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<%= "Hello World!" %>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
My Menu
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
- bang!
|
|
File without changes
|
data/spec/server_spec.rb
ADDED
data/spec/setup_spec.rb
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
require File.dirname(__FILE__) + "/spec_helper"
|
|
2
|
+
|
|
3
|
+
describe "StaticMatic::Setup" do
|
|
4
|
+
before do
|
|
5
|
+
setup_staticmatic
|
|
6
|
+
@tmp_dir = File.dirname(__FILE__) + '/sandbox/tmp'
|
|
7
|
+
staticmatic = StaticMatic::Base.new(@tmp_dir)
|
|
8
|
+
staticmatic.run('setup')
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
it "should set up project directory in given path" do
|
|
12
|
+
%w(
|
|
13
|
+
site/images
|
|
14
|
+
site/javascripts
|
|
15
|
+
site/stylesheets
|
|
16
|
+
src/layouts/site.haml
|
|
17
|
+
src/pages/index.haml
|
|
18
|
+
src/stylesheets/screen.sass
|
|
19
|
+
config/site.rb
|
|
20
|
+
).each {|path| File.exists?(File.join(@tmp_dir, path)).should(be_true, "#{path} expected to exist in #{@tmp_dir}") }
|
|
21
|
+
end
|
|
22
|
+
end
|
data/spec/spec_helper.rb
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
require 'rubygems'
|
|
2
|
+
require 'stringio'
|
|
3
|
+
require 'spec'
|
|
4
|
+
|
|
5
|
+
require 'lib/staticmatic'
|
|
6
|
+
|
|
7
|
+
TEST_SITE_PATH = File.expand_path(File.join(File.dirname(__FILE__), "sandbox", "test_site"))
|
|
8
|
+
|
|
9
|
+
Spec::Runner.configure do |config|
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def setup_staticmatic
|
|
13
|
+
@staticmatic = StaticMatic::Base.new(TEST_SITE_PATH)
|
|
14
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
require File.dirname(__FILE__) + "/spec_helper"
|
|
2
|
+
|
|
3
|
+
describe "StaticMatic::Template" do
|
|
4
|
+
before do
|
|
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
|
+
it "extract source around line number" do
|
|
17
|
+
@template_error.source_extract.should match(/\- bang\!/)
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
it "extract line number from backtrace" do
|
|
21
|
+
@template_error.line_number.should == "3"
|
|
22
|
+
end
|
|
23
|
+
end
|
data/staticmatic.gemspec
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
# Generated by jeweler
|
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
|
+
# -*- encoding: utf-8 -*-
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |s|
|
|
7
|
+
s.name = %q{staticmatic}
|
|
8
|
+
s.version = "0.11.0"
|
|
9
|
+
|
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
|
+
s.authors = ["Stephen Bartholomew"]
|
|
12
|
+
s.date = %q{2010-11-15}
|
|
13
|
+
s.default_executable = %q{staticmatic}
|
|
14
|
+
s.description = %q{Lightweight Static Site Framework}
|
|
15
|
+
s.email = %q{steve@curve21.com}
|
|
16
|
+
s.executables = ["staticmatic"]
|
|
17
|
+
s.extra_rdoc_files = [
|
|
18
|
+
"LICENSE",
|
|
19
|
+
"README.markdown"
|
|
20
|
+
]
|
|
21
|
+
s.files = [
|
|
22
|
+
"LICENSE",
|
|
23
|
+
"README.markdown",
|
|
24
|
+
"Rakefile",
|
|
25
|
+
"VERSION.yml",
|
|
26
|
+
"bin/staticmatic",
|
|
27
|
+
"lib/staticmatic.rb",
|
|
28
|
+
"lib/staticmatic/base.rb",
|
|
29
|
+
"lib/staticmatic/compass.rb",
|
|
30
|
+
"lib/staticmatic/compass/app_integration.rb",
|
|
31
|
+
"lib/staticmatic/compass/configuration_defaults.rb",
|
|
32
|
+
"lib/staticmatic/compass/installer.rb",
|
|
33
|
+
"lib/staticmatic/configuration.rb",
|
|
34
|
+
"lib/staticmatic/error.rb",
|
|
35
|
+
"lib/staticmatic/helpers.rb",
|
|
36
|
+
"lib/staticmatic/helpers/assets_helper.rb",
|
|
37
|
+
"lib/staticmatic/helpers/current_path_helper.rb",
|
|
38
|
+
"lib/staticmatic/helpers/form_helper.rb",
|
|
39
|
+
"lib/staticmatic/helpers/render_helper.rb",
|
|
40
|
+
"lib/staticmatic/helpers/tag_helper.rb",
|
|
41
|
+
"lib/staticmatic/helpers/url_helper.rb",
|
|
42
|
+
"lib/staticmatic/mixins/build.rb",
|
|
43
|
+
"lib/staticmatic/mixins/helpers.rb",
|
|
44
|
+
"lib/staticmatic/mixins/render.rb",
|
|
45
|
+
"lib/staticmatic/mixins/rescue.rb",
|
|
46
|
+
"lib/staticmatic/mixins/server.rb",
|
|
47
|
+
"lib/staticmatic/mixins/setup.rb",
|
|
48
|
+
"lib/staticmatic/server.rb",
|
|
49
|
+
"lib/staticmatic/template_error.rb",
|
|
50
|
+
"lib/staticmatic/templates/project/config/compass.rb",
|
|
51
|
+
"lib/staticmatic/templates/project/config/site.rb",
|
|
52
|
+
"lib/staticmatic/templates/project/src/layouts/default.haml",
|
|
53
|
+
"lib/staticmatic/templates/project/src/pages/index.haml",
|
|
54
|
+
"lib/staticmatic/templates/project/src/stylesheets/screen.sass",
|
|
55
|
+
"lib/staticmatic/templates/rescues/default.haml",
|
|
56
|
+
"lib/staticmatic/templates/rescues/template.haml",
|
|
57
|
+
"spec/base_spec.rb",
|
|
58
|
+
"spec/compass_integration_spec.rb",
|
|
59
|
+
"spec/helpers/asset_helper_spec.rb",
|
|
60
|
+
"spec/helpers/custom_helper_spec.rb",
|
|
61
|
+
"spec/render_spec.rb",
|
|
62
|
+
"spec/rescue_spec.rb",
|
|
63
|
+
"spec/sandbox/test_site/config/compass.rb",
|
|
64
|
+
"spec/sandbox/test_site/config/site.rb",
|
|
65
|
+
"spec/sandbox/test_site/src/helpers/application_helper.rb",
|
|
66
|
+
"spec/sandbox/test_site/src/layouts/alternate_layout.haml",
|
|
67
|
+
"spec/sandbox/test_site/src/layouts/default.haml",
|
|
68
|
+
"spec/sandbox/test_site/src/layouts/projects.haml",
|
|
69
|
+
"spec/sandbox/test_site/src/pages/hello_world.erb",
|
|
70
|
+
"spec/sandbox/test_site/src/pages/index.haml",
|
|
71
|
+
"spec/sandbox/test_site/src/pages/layout_test.haml",
|
|
72
|
+
"spec/sandbox/test_site/src/pages/page_one.haml",
|
|
73
|
+
"spec/sandbox/test_site/src/pages/page_two.haml",
|
|
74
|
+
"spec/sandbox/test_site/src/pages/page_with_error.haml",
|
|
75
|
+
"spec/sandbox/test_site/src/pages/page_with_partial_error.haml",
|
|
76
|
+
"spec/sandbox/test_site/src/partials/menu.haml",
|
|
77
|
+
"spec/sandbox/test_site/src/partials/partial_with_error.haml",
|
|
78
|
+
"spec/sandbox/test_site/src/stylesheets/application.sass",
|
|
79
|
+
"spec/sandbox/test_site/src/stylesheets/css_with_error.sass",
|
|
80
|
+
"spec/sandbox/test_site/src/stylesheets/nested/a_nested_stylesheet.sass",
|
|
81
|
+
"spec/sandbox/test_site/src/stylesheets/partials/_forms.sass",
|
|
82
|
+
"spec/sandbox/test_site/src/stylesheets/sassy.scss",
|
|
83
|
+
"spec/server_spec.rb",
|
|
84
|
+
"spec/setup_spec.rb",
|
|
85
|
+
"spec/spec_helper.rb",
|
|
86
|
+
"spec/template_error_spec.rb",
|
|
87
|
+
"staticmatic.gemspec",
|
|
88
|
+
"website/Gemfile",
|
|
89
|
+
"website/config/site.rb",
|
|
90
|
+
"website/site/docs/compass_integration.html",
|
|
91
|
+
"website/site/docs/getting_started.html",
|
|
92
|
+
"website/site/docs/helpers.html",
|
|
93
|
+
"website/site/images/bycurve21.gif",
|
|
94
|
+
"website/site/images/curve21.jpg",
|
|
95
|
+
"website/site/images/homepage-build.jpg",
|
|
96
|
+
"website/site/images/homepage-previewing.jpg",
|
|
97
|
+
"website/site/images/homepage-templating.jpg",
|
|
98
|
+
"website/site/stylesheets/ie.css",
|
|
99
|
+
"website/site/stylesheets/print.css",
|
|
100
|
+
"website/site/stylesheets/screen.css",
|
|
101
|
+
"website/src/helpers/content_helper.rb",
|
|
102
|
+
"website/src/layouts/default.haml",
|
|
103
|
+
"website/src/pages/development.haml",
|
|
104
|
+
"website/src/pages/docs/_menu.haml",
|
|
105
|
+
"website/src/pages/docs/_requires_prerelease.haml",
|
|
106
|
+
"website/src/pages/docs/compass_integration.haml",
|
|
107
|
+
"website/src/pages/docs/getting_started.haml",
|
|
108
|
+
"website/src/pages/docs/helpers.haml",
|
|
109
|
+
"website/src/pages/index.haml",
|
|
110
|
+
"website/src/stylesheets/_base.scss",
|
|
111
|
+
"website/src/stylesheets/_defaults.scss",
|
|
112
|
+
"website/src/stylesheets/ie.scss",
|
|
113
|
+
"website/src/stylesheets/print.scss",
|
|
114
|
+
"website/src/stylesheets/screen.scss"
|
|
115
|
+
]
|
|
116
|
+
s.homepage = %q{http://staticmatic.net}
|
|
117
|
+
s.require_paths = ["lib"]
|
|
118
|
+
s.rubyforge_project = %q{staticmatic}
|
|
119
|
+
s.rubygems_version = %q{1.3.6}
|
|
120
|
+
s.summary = %q{Lightweight Static Site Framework}
|
|
121
|
+
s.test_files = [
|
|
122
|
+
"spec/base_spec.rb",
|
|
123
|
+
"spec/compass_integration_spec.rb",
|
|
124
|
+
"spec/helpers/asset_helper_spec.rb",
|
|
125
|
+
"spec/helpers/custom_helper_spec.rb",
|
|
126
|
+
"spec/render_spec.rb",
|
|
127
|
+
"spec/rescue_spec.rb",
|
|
128
|
+
"spec/sandbox/test_site/config/compass.rb",
|
|
129
|
+
"spec/sandbox/test_site/config/site.rb",
|
|
130
|
+
"spec/sandbox/test_site/src/helpers/application_helper.rb",
|
|
131
|
+
"spec/sandbox/tmp/config/compass.rb",
|
|
132
|
+
"spec/sandbox/tmp/config/site.rb",
|
|
133
|
+
"spec/server_spec.rb",
|
|
134
|
+
"spec/setup_spec.rb",
|
|
135
|
+
"spec/spec_helper.rb",
|
|
136
|
+
"spec/template_error_spec.rb"
|
|
137
|
+
]
|
|
138
|
+
|
|
139
|
+
if s.respond_to? :specification_version then
|
|
140
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
141
|
+
s.specification_version = 3
|
|
142
|
+
|
|
143
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
|
144
|
+
s.add_runtime_dependency(%q<haml>, [">= 2.0.0"])
|
|
145
|
+
s.add_runtime_dependency(%q<rack>, [">= 1.0"])
|
|
146
|
+
s.add_runtime_dependency(%q<compass>, [">= 0.10.0"])
|
|
147
|
+
else
|
|
148
|
+
s.add_dependency(%q<haml>, [">= 2.0.0"])
|
|
149
|
+
s.add_dependency(%q<rack>, [">= 1.0"])
|
|
150
|
+
s.add_dependency(%q<compass>, [">= 0.10.0"])
|
|
151
|
+
end
|
|
152
|
+
else
|
|
153
|
+
s.add_dependency(%q<haml>, [">= 2.0.0"])
|
|
154
|
+
s.add_dependency(%q<rack>, [">= 1.0"])
|
|
155
|
+
s.add_dependency(%q<compass>, [">= 0.10.0"])
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
|