staticmatic 0.9.5 → 0.10.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.
Files changed (79) hide show
  1. data/History.txt +6 -0
  2. data/Manifest.txt +24 -0
  3. data/README.rdoc +48 -0
  4. data/Rakefile +22 -27
  5. data/bin/staticmatic +0 -0
  6. data/lib/staticmatic.rb +12 -4
  7. data/lib/staticmatic/base.rb +30 -242
  8. data/lib/staticmatic/mixins/build.rb +46 -0
  9. data/lib/staticmatic/mixins/helpers.rb +15 -0
  10. data/lib/staticmatic/mixins/render.rb +125 -0
  11. data/lib/staticmatic/mixins/rescue.rb +12 -0
  12. data/lib/staticmatic/mixins/server.rb +6 -0
  13. data/lib/staticmatic/mixins/setup.rb +20 -0
  14. data/lib/staticmatic/template_error.rb +40 -0
  15. data/lib/staticmatic/templates/{application.haml → default/application.haml} +0 -0
  16. data/lib/staticmatic/templates/{application.sass → default/application.sass} +0 -0
  17. data/lib/staticmatic/templates/{index.haml → default/index.haml} +0 -0
  18. data/lib/staticmatic/templates/rescues/default.haml +7 -0
  19. data/lib/staticmatic/templates/rescues/template.haml +18 -0
  20. data/test/test_helper.rb +20 -48
  21. metadata +55 -124
  22. data/CHANGELOG +0 -57
  23. data/LICENSE +0 -21
  24. data/README +0 -56
  25. data/example/site/contact.html +0 -17
  26. data/example/site/index.html +0 -16
  27. data/example/site/javascripts/application.css +0 -2
  28. data/example/src/layouts/application.haml +0 -11
  29. data/example/src/pages/contact.haml +0 -3
  30. data/example/src/pages/index.haml +0 -3
  31. data/example/src/pages/test test/blah.haml +0 -1
  32. data/example/src/stylesheets/application.sass +0 -4
  33. data/lib/staticmatic/version.rb +0 -34
  34. data/test/base_test.rb +0 -60
  35. data/test/helpers_test.rb +0 -296
  36. data/test/sandbox/test_site/configuration.rb +0 -0
  37. data/test/sandbox/test_site/site/index.html +0 -10
  38. data/test/sandbox/test_site/site/stylesheets/application.css +0 -2
  39. data/test/sandbox/test_site/src/helpers/application_helper.rb +0 -5
  40. data/test/sandbox/test_site/src/layouts/alternate_layout.haml +0 -3
  41. data/test/sandbox/test_site/src/layouts/application.haml +0 -7
  42. data/test/sandbox/test_site/src/layouts/projects.haml +0 -1
  43. data/test/sandbox/test_site/src/pages/index.haml +0 -5
  44. data/test/sandbox/test_site/src/pages/layout_test.haml +0 -2
  45. data/test/sandbox/test_site/src/partials/menu.haml +0 -1
  46. data/test/sandbox/test_site/src/stylesheets/application.sass +0 -2
  47. data/test/server_test.rb +0 -12
  48. data/test/test_helper_test.rb +0 -49
  49. data/test/version_test.rb +0 -28
  50. data/website/site/download.html +0 -84
  51. data/website/site/faq.html +0 -101
  52. data/website/site/helper_central/index.html +0 -144
  53. data/website/site/how_to_use.html +0 -307
  54. data/website/site/images/bycurve21.gif +0 -0
  55. data/website/site/images/curve21.jpg +0 -0
  56. data/website/site/images/homepage-build.jpg +0 -0
  57. data/website/site/images/homepage-previewing.jpg +0 -0
  58. data/website/site/images/homepage-templating.jpg +0 -0
  59. data/website/site/index.html +0 -98
  60. data/website/site/releases/0_8_10.html +0 -106
  61. data/website/site/releases/0_8_4.html +0 -101
  62. data/website/site/releases/0_8_8.html +0 -96
  63. data/website/site/releases/0_9_0.html +0 -124
  64. data/website/site/stylesheets/application.css +0 -287
  65. data/website/src/helpers/application_helper.rb +0 -5
  66. data/website/src/layouts/application.haml +0 -43
  67. data/website/src/layouts/test.haml +0 -4
  68. data/website/src/pages/_qa.haml +0 -2
  69. data/website/src/pages/download.haml +0 -15
  70. data/website/src/pages/faq.haml +0 -8
  71. data/website/src/pages/helper_central/_helper.haml +0 -7
  72. data/website/src/pages/helper_central/index.haml +0 -21
  73. data/website/src/pages/how_to_use.haml +0 -270
  74. data/website/src/pages/index.haml +0 -27
  75. data/website/src/pages/releases/0_8_10.haml +0 -22
  76. data/website/src/pages/releases/0_8_4.haml +0 -25
  77. data/website/src/pages/releases/0_8_8.haml +0 -35
  78. data/website/src/pages/releases/0_9_0.haml +0 -34
  79. data/website/src/partials/news.haml +0 -10
@@ -0,0 +1,46 @@
1
+ module StaticMatic::BuildMixin
2
+
3
+ def build
4
+ build_css
5
+ build_html
6
+ end
7
+
8
+ # Build HTML from the source files
9
+ def build_html
10
+ Dir["#{@src_dir}/pages/**/*.haml"].each do |path|
11
+ next if File.basename(path) =~ /^\_/ # skip partials
12
+ file_dir, template = source_template_from_path(path.sub(/^#{@src_dir}\/pages/, ''))
13
+ save_page(File.join(file_dir, template), generate_html_with_layout(template, file_dir))
14
+ end
15
+ end
16
+
17
+ # Build CSS from the source files
18
+ def build_css
19
+ Dir["#{@src_dir}/stylesheets/**/*.sass"].each do |path|
20
+ file_dir, template = source_template_from_path(path.sub(/^#{@src_dir}\/stylesheets/, ''))
21
+ save_stylesheet(File.join(file_dir, template), generate_css(template, file_dir))
22
+ end
23
+ end
24
+
25
+ def copy_file(from, to)
26
+ FileUtils.cp(from, to)
27
+ end
28
+
29
+ def save_page(filename, content)
30
+ generate_site_file(filename, 'html', content)
31
+ end
32
+
33
+ def save_stylesheet(filename, content)
34
+ generate_site_file(File.join('stylesheets', filename), 'css', content)
35
+ end
36
+
37
+ def generate_site_file(filename, extension, content)
38
+ path = File.join(@site_dir,"#{filename}.#{extension}")
39
+ FileUtils.mkdir_p(File.dirname(path))
40
+ File.open(path, 'w+') do |f|
41
+ f << content
42
+ end
43
+
44
+ puts "created #{path}"
45
+ end
46
+ end
@@ -0,0 +1,15 @@
1
+ module StaticMatic::HelpersMixin
2
+ # Loads any helpers present in the helpers dir and mixes them into the template helpers
3
+ def load_helpers
4
+
5
+ Dir["#{@src_dir}/helpers/**/*_helper.rb"].each do |helper|
6
+ load_helper(helper)
7
+ end
8
+ end
9
+
10
+ def load_helper(helper)
11
+ load helper
12
+ module_name = File.basename(helper, '.rb').gsub(/(^|\_)./) { |c| c.upcase }.gsub(/\_/, '')
13
+ Haml::Helpers.class_eval("include #{module_name}")
14
+ end
15
+ end
@@ -0,0 +1,125 @@
1
+ module StaticMatic::RenderMixin
2
+
3
+ def source_for_layout
4
+ if layout_exists?(@layout)
5
+ File.read(full_layout_path(@layout))
6
+ else
7
+ raise StaticMatic::Error.new("", full_layout_path(@layout), "Layout not found")
8
+ end
9
+ end
10
+
11
+ # Generate html from source file:
12
+ # generate_html("index")
13
+ def generate_html(source_file, source_dir = '')
14
+ full_file_path = File.join(@src_dir, 'pages', source_dir, "#{source_file}.haml")
15
+
16
+ begin
17
+ # clear all scope variables except @staticmatic
18
+ @scope.instance_variables.each do |var|
19
+ @scope.instance_variable_set(var, nil) unless var == '@staticmatic'
20
+ end
21
+ html = generate_html_from_template_source(File.read(full_file_path))
22
+
23
+ @layout = determine_layout(source_dir)
24
+ rescue StaticMatic::TemplateError => e
25
+ raise e # re-raise inline errors
26
+ rescue Exception => e
27
+ raise StaticMatic::TemplateError.new(full_file_path, e)
28
+ end
29
+
30
+ html
31
+ end
32
+
33
+ def generate_html_with_layout(source, source_dir = '')
34
+ @current_page = File.join(source_dir, "#{source}.html")
35
+ @current_file_stack.unshift(File.join(source_dir, "#{source}.haml"))
36
+ begin
37
+ template_content = generate_html(source, source_dir)
38
+ @layout = determine_layout(source_dir)
39
+ generate_html_from_template_source(source_for_layout) { template_content }
40
+ rescue Exception => e
41
+ render_rescue_from_error(e)
42
+ ensure
43
+ @current_page = nil
44
+ @current_file_stack.shift
45
+ end
46
+ end
47
+
48
+ def generate_partial(name, options = {})
49
+ partial_dir, partial_name = File.dirname(self.current_file), name # default relative to current file
50
+ partial_dir, partial_name = File.split(name) if name.index('/') # contains a path so it's absolute from src/pages dir
51
+ partial_name = "_#{partial_name}.haml"
52
+
53
+ partial_path = File.join(@src_dir, 'pages', partial_dir, partial_name)
54
+ unless File.exists?(partial_path)
55
+ # couldn't find it in the pages subdirectory tree so try old way (ignoring the path)
56
+ partial_dir = 'partials'
57
+ partial_name = "#{File.basename(name)}.haml"
58
+ partial_path = File.join(@src_dir, partial_dir, partial_name)
59
+ end
60
+
61
+ if File.exists?(partial_path)
62
+ partial_rel_path = "/#{partial_dir}/#{partial_name}".gsub(/\/+/, '/')
63
+ @current_file_stack.unshift(partial_rel_path)
64
+ begin
65
+ generate_html_from_template_source(File.read(partial_path), options)
66
+ rescue Exception => e
67
+ raise StaticMatic::TemplateError.new(partial_path, e)
68
+ ensure
69
+ @current_file_stack.shift
70
+ end
71
+ else
72
+ raise StaticMatic::Error.new("", name, "Partial not found")
73
+ end
74
+ end
75
+
76
+ def generate_css(source, source_dir = '')
77
+ full_file_path = File.join(@src_dir, 'stylesheets', source_dir, "#{source}.sass")
78
+ begin
79
+ sass_options = { :load_paths => [ File.join(@src_dir, 'stylesheets') ] }.merge(self.configuration.sass_options)
80
+ stylesheet = Sass::Engine.new(File.read(full_file_path), sass_options)
81
+ stylesheet.to_css
82
+ rescue Exception => e
83
+ render_rescue_from_error(StaticMatic::TemplateError.new(full_file_path, e))
84
+ end
85
+ end
86
+
87
+ # Generates html from the passed source string
88
+ #
89
+ # generate_html_from_template_source("%h1 Welcome to My Site") -> "<h1>Welcome to My Site</h1>"
90
+ #
91
+ # Pass a block containing a string to yield within in the passed source:
92
+ #
93
+ # generate_html_from_template_source("content:\n= yield") { "blah" } -> "content: blah"
94
+ #
95
+ def generate_html_from_template_source(source, options = {})
96
+ html = Haml::Engine.new(source, options)
97
+
98
+ html.render(@scope) { yield }
99
+ end
100
+
101
+ def determine_layout(dir = '')
102
+ layout_name = "application"
103
+
104
+ if @scope.instance_variable_get("@layout")
105
+ layout_name = @scope.instance_variable_get("@layout")
106
+ elsif dir
107
+ dirs = dir.split("/")
108
+ dir_layout_name = dirs[1]
109
+
110
+ if layout_exists?(dir_layout_name)
111
+ layout_name = dir_layout_name
112
+ end
113
+ end
114
+
115
+ layout_name
116
+ end
117
+
118
+ # Returns a raw template name from a source file path:
119
+ # source_template_from_path("/path/to/site/src/stylesheets/application.sass") -> "application"
120
+ def source_template_from_path(path)
121
+ file_dir, file_name = File.split(path)
122
+ file_name.chomp!(File.extname(file_name))
123
+ [ file_dir, file_name ]
124
+ end
125
+ end
@@ -0,0 +1,12 @@
1
+ module StaticMatic::RescueMixin
2
+ # Pass back an error template for the given exception
3
+ def render_rescue_from_error(exception)
4
+ rescue_template = (exception.is_a?(StaticMatic::TemplateError)) ? "template" : "default"
5
+
6
+ error_template_path = File.expand_path(File.dirname(__FILE__) + "/../templates/rescues/#{rescue_template}.haml")
7
+
8
+ @scope.instance_variable_set("@exception", exception)
9
+
10
+ generate_html_from_template_source(File.read(error_template_path))
11
+ end
12
+ end
@@ -0,0 +1,6 @@
1
+ module StaticMatic::ServerMixin
2
+ def preview
3
+ puts "StaticMatic Preview Server Starting..."
4
+ StaticMatic::Server.start(self)
5
+ end
6
+ end
@@ -0,0 +1,20 @@
1
+ module StaticMatic::SetupMixin
2
+
3
+ def setup
4
+ Dir.mkdir(@base_dir) unless File.exists?(@base_dir)
5
+
6
+ StaticMatic::BASE_DIRS.each do |directory|
7
+ directory = "#{@base_dir}/#{directory}"
8
+ if !File.exists?(directory)
9
+ Dir.mkdir(directory)
10
+ puts "created #{directory}"
11
+ end
12
+ end
13
+
14
+ StaticMatic::TEMPLATES.each do |template, destination|
15
+ copy_file("#{@templates_dir}/#{template}", "#{@src_dir}/#{destination}")
16
+ end
17
+
18
+ puts "Done"
19
+ end
20
+ end
@@ -0,0 +1,40 @@
1
+ class StaticMatic::TemplateError < StandardError
2
+ SOURCE_CODE_RADIUS = 3
3
+
4
+ attr_reader :original_exception, :backtrace
5
+
6
+ def initialize(template, original_exception)
7
+ @template, @original_exception = template, original_exception
8
+ @backtrace = original_exception.backtrace
9
+
10
+ @source = File.read(template)
11
+ end
12
+
13
+ # TODO: Replace 'haml|sass' with any registered engines
14
+ def line_number
15
+ @line_number ||= $2 if backtrace.find { |line| line =~ /\((haml|sass)\)\:(\d+)/ }
16
+ end
17
+
18
+ def filename
19
+ @template
20
+ end
21
+
22
+ def source_extract(indentation = 0)
23
+ return unless num = line_number
24
+ num = num.to_i
25
+
26
+ source_code = @source.split("\n")
27
+
28
+ start_on_line = [ num - SOURCE_CODE_RADIUS - 1, 0 ].max
29
+ end_on_line = [ num + SOURCE_CODE_RADIUS - 1, source_code.length].min
30
+
31
+ indent = ' ' * indentation
32
+ line_counter = start_on_line
33
+ return unless source_code = source_code[start_on_line..end_on_line]
34
+
35
+ source_code.collect do |line|
36
+ line_counter += 1
37
+ "#{indent}#{line_counter}: #{line}\n"
38
+ end.to_s
39
+ end
40
+ end
@@ -0,0 +1,7 @@
1
+ %h1= @exception.class.name
2
+
3
+ %p= @exception.message
4
+
5
+ %h2 Stack Trace
6
+
7
+ = @exception.backtrace.join("<br/>")
@@ -0,0 +1,18 @@
1
+ %html
2
+ %head
3
+ %style{:type => "text/css"}
4
+ body { font-family: helvetica, verdana, arial; font-size: 10pt;}
5
+ %body
6
+ %h1
7
+ = @exception.class.name
8
+ in
9
+ = @exception.filename
10
+
11
+ %p= @exception.original_exception.message
12
+
13
+ = @exception.source_extract.gsub(/\n/, "<br/>")
14
+
15
+
16
+ %h2 Backtrace
17
+
18
+ = @exception.backtrace.join("<br/>")
data/test/test_helper.rb CHANGED
@@ -1,48 +1,20 @@
1
- require 'test/unit'
2
-
3
- class Test::Unit::TestCase
4
-
5
- # Split an (X)HTML tag into its constituent parts, e.g. tag name, tag attributes (if any),
6
- # and tag content (if any). We are assuming that we are being given a valid XHTML tag (i.e
7
- # all attributes have both a name and a value, and that value is enclosed in double quotes).
8
- # Returns a hash:
9
- # { :name => 'tag_name', :attributes => {'attribute1' => 'value1', ...}, :content => 'text content' }
10
- def split_html_tag(tag)
11
- # Rather then try to come up with some big huge regexp that matches every bit of
12
- # the tag, let's just easily match each part.
13
-
14
- # Match the tag name
15
- name_match = /<(\w+)/.match(tag)
16
- name = (name_match.nil? ? nil : name_match[1])
17
-
18
- # Match the tag content
19
- content_match = /<.+>(.*)<\/.+>/.match(tag)
20
- content = (content_match.nil? ? nil : content_match[1])
21
-
22
- # Match _all_ the key => value attribute pairs
23
- attributes = {}
24
- rest_of_tag = tag
25
- while (attribute_match = /(\w+)="([^"]+)"/.match(rest_of_tag))
26
- attributes[attribute_match[1]] = attribute_match[2]
27
- rest_of_tag = attribute_match.post_match
28
- end
29
-
30
- {:name => name, :attributes => attributes, :content => content}
31
- end
32
-
33
- # Asserts that two html tags match each other. In this case 'matching' means that they have
34
- # the same name, same attributes (which can be in any order) and the same content (if any).
35
- # Note: this does not check tags for well-formedness.
36
- def assert_tags_match(tag_one, tag_two, message = nil)
37
- message = build_message message, 'Tag <?> does not match <?>.', tag_one, tag_two
38
- assert_block message do
39
- split_tag_one = split_html_tag(tag_one)
40
- split_tag_two = split_html_tag(tag_two)
41
-
42
- (split_tag_one[:name] === split_tag_two[:name]) &&
43
- (split_tag_one[:attributes] === split_tag_two[:attributes]) &&
44
- (split_tag_one[:content] === split_tag_two[:content])
45
- end
46
- end
47
-
48
- end
1
+ require 'rubygems'
2
+ require 'stringio'
3
+ require 'test/unit'
4
+
5
+ require File.dirname(__FILE__) + '/../lib/staticmatic'
6
+
7
+ TEST_SITE_PATH = File.join(File.dirname(__FILE__), "sandbox", "test_site")
8
+
9
+ class Test::Unit::TestCase
10
+ def self.should(description, &block)
11
+ test_name = "test_should_#{description.gsub(/[\s]/,'_')}".to_sym
12
+ raise "#{test_name} is already defined in #{self}" if self.instance_methods.include?(test_name.to_s)
13
+ define_method(test_name, &block)
14
+ end
15
+ end
16
+
17
+ def setup_staticmatic
18
+ @staticmatic = StaticMatic::Base.new(TEST_SITE_PATH)
19
+ end
20
+
metadata CHANGED
@@ -1,16 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: staticmatic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Bartholomew
8
- - Brent Beardsley (brentbeardsley@gmail.com)
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
11
 
13
- date: 2008-12-15 00:00:00 +00:00
12
+ date: 2009-01-01 00:00:00 +00:00
14
13
  default_executable:
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
@@ -21,7 +20,7 @@ dependencies:
21
20
  requirements:
22
21
  - - ">="
23
22
  - !ruby/object:Gem::Version
24
- version: 2.0.0
23
+ version: "2.0"
25
24
  version:
26
25
  - !ruby/object:Gem::Dependency
27
26
  name: mongrel
@@ -31,133 +30,69 @@ dependencies:
31
30
  requirements:
32
31
  - - ">="
33
32
  - !ruby/object:Gem::Version
34
- version: "0"
33
+ version: "1.0"
35
34
  version:
36
- description:
37
- email: steve@curve21.com
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: FIX (describe your package)
56
+ email:
57
+ - steve@curve21.com
38
58
  executables:
39
59
  - staticmatic
40
60
  extensions: []
41
61
 
42
- extra_rdoc_files: []
43
-
62
+ extra_rdoc_files:
63
+ - History.txt
64
+ - Manifest.txt
65
+ - README.rdoc
44
66
  files:
45
- - bin
67
+ - History.txt
68
+ - Manifest.txt
69
+ - README.rdoc
70
+ - Rakefile
46
71
  - bin/staticmatic
47
- - CHANGELOG
48
- - example
49
- - example/site
50
- - example/site/contact.html
51
- - example/site/images
52
- - example/site/index.html
53
- - example/site/javascripts
54
- - example/site/javascripts/application.css
55
- - example/site/stylesheets
56
- - example/src
57
- - example/src/layouts
58
- - example/src/layouts/application.haml
59
- - example/src/pages
60
- - example/src/pages/contact.haml
61
- - example/src/pages/index.haml
62
- - example/src/pages/test test
63
- - example/src/pages/test test/blah.haml
64
- - example/src/stylesheets
65
- - example/src/stylesheets/application.sass
66
- - lib
67
- - lib/staticmatic
72
+ - lib/staticmatic.rb
68
73
  - lib/staticmatic/base.rb
69
74
  - lib/staticmatic/configuration.rb
70
75
  - lib/staticmatic/error.rb
71
76
  - lib/staticmatic/helpers.rb
77
+ - lib/staticmatic/mixins/build.rb
78
+ - lib/staticmatic/mixins/helpers.rb
79
+ - lib/staticmatic/mixins/render.rb
80
+ - lib/staticmatic/mixins/server.rb
81
+ - lib/staticmatic/mixins/setup.rb
72
82
  - lib/staticmatic/server.rb
73
- - lib/staticmatic/templates
74
- - lib/staticmatic/templates/application.haml
75
- - lib/staticmatic/templates/application.sass
76
- - lib/staticmatic/templates/index.haml
77
- - lib/staticmatic/version.rb
78
- - lib/staticmatic.rb
79
- - LICENSE
80
- - Rakefile
81
- - README
82
- - test
83
- - test/base_test.rb
84
- - test/helpers_test.rb
85
- - test/sandbox
86
- - test/sandbox/test_site
87
- - test/sandbox/test_site/configuration.rb
88
- - test/sandbox/test_site/site
89
- - test/sandbox/test_site/site/images
90
- - test/sandbox/test_site/site/index.html
91
- - test/sandbox/test_site/site/javascripts
92
- - test/sandbox/test_site/site/stylesheets
93
- - test/sandbox/test_site/site/stylesheets/application.css
94
- - test/sandbox/test_site/src
95
- - test/sandbox/test_site/src/helpers
96
- - test/sandbox/test_site/src/helpers/application_helper.rb
97
- - test/sandbox/test_site/src/layouts
98
- - test/sandbox/test_site/src/layouts/alternate_layout.haml
99
- - test/sandbox/test_site/src/layouts/application.haml
100
- - test/sandbox/test_site/src/layouts/projects.haml
101
- - test/sandbox/test_site/src/pages
102
- - test/sandbox/test_site/src/pages/index.haml
103
- - test/sandbox/test_site/src/pages/layout_test.haml
104
- - test/sandbox/test_site/src/partials
105
- - test/sandbox/test_site/src/partials/menu.haml
106
- - test/sandbox/test_site/src/stylesheets
107
- - test/sandbox/test_site/src/stylesheets/application.sass
108
- - test/sandbox/tmp
109
- - test/server_test.rb
110
- - test/test_helper.rb
111
- - test/test_helper_test.rb
112
- - test/version_test.rb
113
- - website
114
- - website/site
115
- - website/site/download.html
116
- - website/site/faq.html
117
- - website/site/helper_central
118
- - website/site/helper_central/index.html
119
- - website/site/how_to_use.html
120
- - website/site/images
121
- - website/site/images/bycurve21.gif
122
- - website/site/images/curve21.jpg
123
- - website/site/images/homepage-build.jpg
124
- - website/site/images/homepage-previewing.jpg
125
- - website/site/images/homepage-templating.jpg
126
- - website/site/index.html
127
- - website/site/releases
128
- - website/site/releases/0_8_10.html
129
- - website/site/releases/0_8_4.html
130
- - website/site/releases/0_8_8.html
131
- - website/site/releases/0_9_0.html
132
- - website/site/stylesheets
133
- - website/site/stylesheets/application.css
134
- - website/src
135
- - website/src/helpers
136
- - website/src/helpers/application_helper.rb
137
- - website/src/layouts
138
- - website/src/layouts/application.haml
139
- - website/src/layouts/test.haml
140
- - website/src/pages
141
- - website/src/pages/_qa.haml
142
- - website/src/pages/download.haml
143
- - website/src/pages/faq.haml
144
- - website/src/pages/helper_central
145
- - website/src/pages/helper_central/_helper.haml
146
- - website/src/pages/helper_central/index.haml
147
- - website/src/pages/how_to_use.haml
148
- - website/src/pages/index.haml
149
- - website/src/pages/releases
150
- - website/src/pages/releases/0_8_10.haml
151
- - website/src/pages/releases/0_8_4.haml
152
- - website/src/pages/releases/0_8_8.haml
153
- - website/src/pages/releases/0_9_0.haml
154
- - website/src/partials
155
- - website/src/partials/news.haml
156
- has_rdoc: false
157
- homepage: http//staticmatic.rubyforge.org
83
+ - lib/staticmatic/templates/default/application.haml
84
+ - lib/staticmatic/templates/default/application.sass
85
+ - lib/staticmatic/templates/default/index.haml
86
+ - lib/staticmatic/templates/rescues/default.haml
87
+ - lib/staticmatic/templates/rescues/template.haml
88
+ - lib/staticmatic/template_error.rb
89
+ - lib/staticmatic/mixins/rescue.rb
90
+ has_rdoc: true
91
+ homepage: FIX (url)
158
92
  post_install_message:
159
- rdoc_options: []
160
-
93
+ rdoc_options:
94
+ - --main
95
+ - README.rdoc
161
96
  require_paths:
162
97
  - lib
163
98
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -178,10 +113,6 @@ rubyforge_project: staticmatic
178
113
  rubygems_version: 1.3.1
179
114
  signing_key:
180
115
  specification_version: 2
181
- summary: Manage static sites using Haml & Sass
116
+ summary: FIX (describe your package)
182
117
  test_files:
183
- - test/base_test.rb
184
- - test/helpers_test.rb
185
- - test/server_test.rb
186
- - test/test_helper_test.rb
187
- - test/version_test.rb
118
+ - test/test_helper.rb