awestruct 0.5.4.rc → 0.5.4.rc2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +29 -0
- data/LICENSE.txt +18 -0
- data/README.md +31 -0
- data/Rakefile +100 -0
- data/awestruct.gemspec +48 -0
- data/lib/awestruct/cli/auto.rb +3 -4
- data/lib/awestruct/cli/generate.rb +2 -2
- data/lib/awestruct/cli/manifest.rb +4 -4
- data/lib/awestruct/deploy/base_deploy.rb +7 -4
- data/lib/awestruct/deploy/github_pages_deploy.rb +2 -1
- data/lib/awestruct/engine.rb +6 -0
- data/lib/awestruct/extensions/partial.rb +4 -0
- data/lib/awestruct/extensions/relative.rb +2 -2
- data/lib/awestruct/extensions/sitemap.rb +2 -1
- data/lib/awestruct/handlers/base_tilt_handler.rb +12 -7
- data/lib/awestruct/handlers/front_matter_handler.rb +3 -2
- data/lib/awestruct/handlers/interpolation_handler.rb +2 -3
- data/lib/awestruct/handlers/restructuredtext_handler.rb +4 -6
- data/lib/awestruct/page.rb +2 -1
- data/lib/awestruct/util/exception_helper.rb +29 -0
- data/lib/awestruct/version.rb +1 -2
- data/man/awestruct.adoc +135 -0
- data/spec/deploy_spec.rb +38 -9
- data/spec/front_matter_handler_spec.rb +6 -0
- data/spec/github_pages_deploy_spec.rb +1 -0
- data/spec/test-data/.awestruct_ignore +2 -0
- data/spec/test-data/front-matter-empty.txt +3 -0
- data/spec/test-data/handlers/textile-empty-page.textile +0 -0
- data/spec/textile_handler_spec.rb +11 -0
- metadata +276 -314
- data/lib/awestruct/page.rb.old +0 -181
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'awestruct/util/exception_helper'
|
1
2
|
require 'awestruct/handlers/base_handler'
|
2
3
|
|
3
4
|
require 'yaml'
|
@@ -84,9 +85,9 @@ module Awestruct
|
|
84
85
|
end
|
85
86
|
|
86
87
|
begin
|
87
|
-
@front_matter = yaml_content.empty? ? {} : (YAML.load
|
88
|
+
@front_matter = yaml_content.empty? ? {} : (YAML.load(yaml_content) || {})
|
88
89
|
rescue => e
|
89
|
-
|
90
|
+
ExceptionHelper.log_message "could not parse #{relative_source_path}"
|
90
91
|
raise e
|
91
92
|
end
|
92
93
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
require 'awestruct/util/exception_helper'
|
2
2
|
require 'awestruct/handlers/base_handler'
|
3
3
|
|
4
4
|
module Awestruct
|
@@ -23,8 +23,7 @@ module Awestruct
|
|
23
23
|
begin
|
24
24
|
c = context.instance_eval( content )
|
25
25
|
rescue Exception => e # Don't barf all over ourselves if an exception is thrown
|
26
|
-
|
27
|
-
$LOG.error e.backtrace.join("\n") if $LOG.error?
|
26
|
+
ExceptionHelper.log_building_error e, relative_source_path
|
28
27
|
c = delegate.raw_content
|
29
28
|
end
|
30
29
|
c
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
require 'awestruct/util/exception_helper'
|
2
2
|
require 'awestruct/handler_chain'
|
3
3
|
require 'awestruct/handlers/base_handler'
|
4
4
|
require 'awestruct/handlers/file_handler'
|
@@ -47,7 +47,6 @@ module Awestruct
|
|
47
47
|
if front_matter['initial_header_level'].to_s =~ /^[1-6]$/
|
48
48
|
hl = front_matter['initial_header_level']
|
49
49
|
end
|
50
|
-
rendered = ''
|
51
50
|
begin
|
52
51
|
doc = execute_shell( [ "rst2html",
|
53
52
|
"--strip-comments",
|
@@ -55,12 +54,11 @@ module Awestruct
|
|
55
54
|
" --initial-header-level=#{hl}" ].join(' '),
|
56
55
|
content )
|
57
56
|
content = Nokogiri::HTML( doc ).at( '/html/body/div[@class="document"]' ).inner_html.strip
|
58
|
-
content
|
57
|
+
content.gsub( "\r", '' )
|
59
58
|
rescue => e
|
60
|
-
|
61
|
-
|
59
|
+
ExceptionHelper.log_building_error e, relative_source_path
|
60
|
+
ExceptionHelper.html_error_report e, relative_source_path
|
62
61
|
end
|
63
|
-
content
|
64
62
|
end
|
65
63
|
end
|
66
64
|
end
|
data/lib/awestruct/page.rb
CHANGED
@@ -42,8 +42,9 @@ module Awestruct
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def inherit_front_matter_from(hash)
|
45
|
+
$LOG.debug "inherit_front_matter_from for #{self.inspect}" if $LOG.debug?
|
45
46
|
hash.each do |k,v|
|
46
|
-
$LOG.debug "#{
|
47
|
+
$LOG.debug "#{output_path} overwrite key: #{k}:#{self[k]} -> #{v}" if ( key?( k ) and !self[k].nil? and !self[k].eql? v) if $LOG.debug?
|
47
48
|
unless ( key?( k ) )
|
48
49
|
self[k.to_sym] = v
|
49
50
|
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module Awestruct
|
2
|
+
class ExceptionHelper
|
3
|
+
def self.log_message message
|
4
|
+
$LOG.error message if $LOG.error
|
5
|
+
end
|
6
|
+
|
7
|
+
def self.log_error exception
|
8
|
+
$LOG.error "An error occurred: #{exception.message}" if $LOG.error
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.log_backtrace exception
|
12
|
+
$LOG.error "#{exception.backtrace.join("\n")}" if $LOG.error
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.log_building_error exception, relative_source_path
|
16
|
+
$LOG.error "While processing file #{relative_source_path}"
|
17
|
+
self.log_error exception
|
18
|
+
self.log_backtrace exception
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.html_error_report exception, relative_source_path
|
22
|
+
"<h1>#{exception.message}</h1>
|
23
|
+
<h2>Rendering file #{relative_source_path} resulted in a failure.</h2>
|
24
|
+
<p>Line: #{(exception.respond_to? :line) ? exception.line : 'unknown'}</p>
|
25
|
+
<p>Backtrace:</p>
|
26
|
+
<pre>#{exception.backtrace.join "\n"}</pre>"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
data/lib/awestruct/version.rb
CHANGED
data/man/awestruct.adoc
ADDED
@@ -0,0 +1,135 @@
|
|
1
|
+
awestruct(1)
|
2
|
+
============
|
3
|
+
:doctype: manpage
|
4
|
+
|
5
|
+
|
6
|
+
NAME
|
7
|
+
----
|
8
|
+
awestruct - generates a static HTML site from templates in the current project
|
9
|
+
|
10
|
+
|
11
|
+
SYNOPSIS
|
12
|
+
--------
|
13
|
+
*awestruct* ['OPTION']...
|
14
|
+
|
15
|
+
|
16
|
+
DESCRIPTION
|
17
|
+
-----------
|
18
|
+
The awestruct(1) command generates a static HTML site for the current project.
|
19
|
+
Awestruct recognizes a variety of templates supported by the Ruby ecosystem, many of which are handled by Tilt.
|
20
|
+
|
21
|
+
This command must be run from the root of the project.
|
22
|
+
|
23
|
+
|
24
|
+
OPTIONS
|
25
|
+
-------
|
26
|
+
|
27
|
+
Project Setup
|
28
|
+
~~~~~~~~~~~~~
|
29
|
+
|
30
|
+
*-i, --init*::
|
31
|
+
Initialize a new project in the 'current' directory.
|
32
|
+
|
33
|
+
*-f, --framework*='FRAMEWORK'::
|
34
|
+
Specify a Compass framework during initialization to use in the project. ('bootstrap', 'foundation', 'blueprint', '960')
|
35
|
+
|
36
|
+
*--[no-]scaffold*::
|
37
|
+
Create scaffolding during initialization. (default: true)
|
38
|
+
|
39
|
+
Site Generation / Preview
|
40
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~
|
41
|
+
|
42
|
+
*-d, --dev*::
|
43
|
+
Run in development mode. (implies *--auto*, *--server*, *--port 4242* and *--profile development*)
|
44
|
+
|
45
|
+
*--auto*::
|
46
|
+
Auto-generate files whenever changes are noticed.
|
47
|
+
|
48
|
+
*-p, --port*='PORT'::
|
49
|
+
The server port to use when running a local server. (default: 4242)
|
50
|
+
|
51
|
+
*-b, --bind*='BIND'::
|
52
|
+
The server address to use when running a local server. (default: 0.0.0.0)
|
53
|
+
|
54
|
+
*-g, --[no-]generate*::
|
55
|
+
Generate the site.
|
56
|
+
|
57
|
+
*-P, --profile*='PROFILE'::
|
58
|
+
Activate a configuration profile.
|
59
|
+
|
60
|
+
*--force*::
|
61
|
+
Force a regeneration of all files.
|
62
|
+
|
63
|
+
*-s, --server*::
|
64
|
+
Serve the generated site from an embedded server.
|
65
|
+
|
66
|
+
*-u, --url*='URL'::
|
67
|
+
Set the site.base_url property.
|
68
|
+
|
69
|
+
*--output-dir*='DIR'::
|
70
|
+
The location of the output directory. Defaults to './_site'. Must either be absolute or relative to the current directory.
|
71
|
+
|
72
|
+
*--source-dir*='DIR'::
|
73
|
+
The location of the director containing (or will contain) site sources. Defaults to the current directory. Must either be absolute or relative to the current directory.
|
74
|
+
|
75
|
+
////
|
76
|
+
*--run*='SCRIPT'::
|
77
|
+
Run a script before regenerating the site.
|
78
|
+
////
|
79
|
+
|
80
|
+
Site Deployment
|
81
|
+
~~~~~~~~~~~~~~~
|
82
|
+
|
83
|
+
*--deploy*::
|
84
|
+
Deploy the site.
|
85
|
+
|
86
|
+
Processing Information
|
87
|
+
~~~~~~~~~~~~~~~~~~~~~~
|
88
|
+
|
89
|
+
*-w, --verbose*::
|
90
|
+
Verbosely print processing information and configuration file checks to STDERR.
|
91
|
+
|
92
|
+
Program Information
|
93
|
+
~~~~~~~~~~~~~~~~~~~
|
94
|
+
|
95
|
+
*-h, --help*::
|
96
|
+
Show the help message.
|
97
|
+
|
98
|
+
*-v, --version*::
|
99
|
+
Print program version number.
|
100
|
+
|
101
|
+
|
102
|
+
EXIT STATUS
|
103
|
+
-----------
|
104
|
+
*0*::
|
105
|
+
Success
|
106
|
+
|
107
|
+
*1*::
|
108
|
+
Failure (syntax or usage error; configuration error; document processing failure; unexpected error).
|
109
|
+
|
110
|
+
|
111
|
+
BUGS
|
112
|
+
----
|
113
|
+
See the *Awestruct* issue tracker: <**https://github.com/awestruct/awestruct/issues?state=open**>
|
114
|
+
|
115
|
+
|
116
|
+
AUTHORS
|
117
|
+
-------
|
118
|
+
*Awestruct* was created by Bob McWhirter and has received contributions from many other individuals.
|
119
|
+
The tool was inspired by Jekyll in the same genre.
|
120
|
+
|
121
|
+
RESOURCES
|
122
|
+
---------
|
123
|
+
Git source repository on GitHub: <**https://github.com/awestruct/awestruct**>
|
124
|
+
|
125
|
+
Project web site: <**http://awestruct.org**>
|
126
|
+
|
127
|
+
GitHub organization: <**http://github.com/awestruct**>
|
128
|
+
|
129
|
+
Mailinglist / forum: <**http://talk.awestruct.org**>
|
130
|
+
|
131
|
+
|
132
|
+
COPYING
|
133
|
+
-------
|
134
|
+
Copyright \(C) Bob McWhirter 2013.
|
135
|
+
Free use of this software is granted under the terms of the MIT License.
|
data/spec/deploy_spec.rb
CHANGED
@@ -44,6 +44,7 @@ describe Awestruct::CLI::Deploy do
|
|
44
44
|
|
45
45
|
deploy_config = mock
|
46
46
|
deploy_config.stub(:[]).with('gzip').and_return true
|
47
|
+
deploy_config.stub(:[]).with('gzip_level')
|
47
48
|
deploy_config.stub(:[]).with('source_dir').and_return '.'
|
48
49
|
deploy_config.stub(:[]).with('scm').and_return nil
|
49
50
|
deploy_config.stub(:[]).with('uncommitted').and_return true
|
@@ -64,16 +65,17 @@ describe Awestruct::CLI::Deploy do
|
|
64
65
|
|
65
66
|
deploy_config = mock
|
66
67
|
deploy_config.stub(:[]).with('gzip').and_return true
|
68
|
+
deploy_config.stub(:[]).with('gzip_level')
|
67
69
|
deploy_config.stub(:[]).with('source_dir').and_return '.'
|
68
70
|
deploy_config.stub(:[]).with('scm').and_return nil
|
69
71
|
deploy_config.stub(:[]).with('uncommitted').and_return nil
|
70
72
|
|
71
73
|
deployer = Awestruct::Deploy::Base.new(site_config, deploy_config)
|
72
|
-
deployer.should_receive(:gzip_file).with("#{site_dir}/yes.html")
|
73
|
-
deployer.should_receive(:gzip_file).with("#{site_dir}/yes.js")
|
74
|
-
deployer.should_receive(:gzip_file).with("#{site_dir}/subdir/yes.css")
|
75
|
-
deployer.should_not_receive(:gzip_file).with("#{site_dir}/no.txt")
|
76
|
-
deployer.should_not_receive(:gzip_file).with("#{site_dir}/no.html.gz")
|
74
|
+
deployer.should_receive(:gzip_file).with("#{site_dir}/yes.html", Zlib::BEST_COMPRESSION)
|
75
|
+
deployer.should_receive(:gzip_file).with("#{site_dir}/yes.js", Zlib::BEST_COMPRESSION)
|
76
|
+
deployer.should_receive(:gzip_file).with("#{site_dir}/subdir/yes.css", Zlib::BEST_COMPRESSION)
|
77
|
+
deployer.should_not_receive(:gzip_file).with("#{site_dir}/no.txt", Zlib::BEST_COMPRESSION)
|
78
|
+
deployer.should_not_receive(:gzip_file).with("#{site_dir}/no.html.gz", Zlib::BEST_COMPRESSION)
|
77
79
|
deployer.gzip_site(site_dir)
|
78
80
|
end
|
79
81
|
|
@@ -88,6 +90,7 @@ describe Awestruct::CLI::Deploy do
|
|
88
90
|
|
89
91
|
deploy_config = mock
|
90
92
|
deploy_config.stub(:[]).with('gzip').and_return true
|
93
|
+
deploy_config.stub(:[]).with('gzip_level')
|
91
94
|
deploy_config.stub(:[]).with('source_dir').and_return '.'
|
92
95
|
deploy_config.stub(:[]).with('scm').and_return nil
|
93
96
|
deploy_config.stub(:[]).with('uncommitted').and_return nil
|
@@ -96,11 +99,37 @@ describe Awestruct::CLI::Deploy do
|
|
96
99
|
deployer.gzip_site(site_dir)
|
97
100
|
|
98
101
|
# Gzip only once
|
99
|
-
deployer.should_not_receive(:gzip_file).with("#{site_dir}/yes.html")
|
100
|
-
deployer.should_not_receive(:gzip_file).with("#{site_dir}/yes.js")
|
101
|
-
deployer.should_not_receive(:gzip_file).with("#{site_dir}/subdir/yes.css")
|
102
|
-
deployer.should_not_receive(:gzip_file).with("#{site_dir}/no.txt")
|
102
|
+
deployer.should_not_receive(:gzip_file).with("#{site_dir}/yes.html", Zlib::BEST_COMPRESSION)
|
103
|
+
deployer.should_not_receive(:gzip_file).with("#{site_dir}/yes.js", Zlib::BEST_COMPRESSION)
|
104
|
+
deployer.should_not_receive(:gzip_file).with("#{site_dir}/subdir/yes.css", Zlib::BEST_COMPRESSION)
|
105
|
+
deployer.should_not_receive(:gzip_file).with("#{site_dir}/no.txt", Zlib::BEST_COMPRESSION)
|
103
106
|
deployer.gzip_site(site_dir)
|
104
107
|
end
|
105
108
|
|
109
|
+
it "should gzip with the compression level" do
|
110
|
+
site_tmp_dir = Dir.mktmpdir("site_dir")
|
111
|
+
site_src_dir = File.join(File.dirname(__FILE__), 'test-data/gzip')
|
112
|
+
FileUtils.cp_r(site_src_dir, site_tmp_dir)
|
113
|
+
site_dir = "#{site_tmp_dir}/gzip"
|
114
|
+
|
115
|
+
site_config = mock
|
116
|
+
site_config.stub(:output_dir).and_return "#{site_dir}"
|
117
|
+
|
118
|
+
deploy_config = mock
|
119
|
+
deploy_config.stub(:[]).with('gzip').and_return true
|
120
|
+
deploy_config.stub(:[]).with('gzip_level').and_return 6
|
121
|
+
deploy_config.stub(:[]).with('source_dir').and_return '.'
|
122
|
+
deploy_config.stub(:[]).with('scm').and_return nil
|
123
|
+
deploy_config.stub(:[]).with('uncommitted').and_return nil
|
124
|
+
|
125
|
+
deployer = Awestruct::Deploy::Base.new(site_config, deploy_config)
|
126
|
+
deployer.should_receive(:gzip_file).with("#{site_dir}/yes.html", 6)
|
127
|
+
deployer.should_receive(:gzip_file).with("#{site_dir}/yes.js", 6)
|
128
|
+
deployer.should_receive(:gzip_file).with("#{site_dir}/subdir/yes.css", 6)
|
129
|
+
deployer.should_not_receive(:gzip_file).with("#{site_dir}/no.txt", 6)
|
130
|
+
deployer.should_not_receive(:gzip_file).with("#{site_dir}/no.html.gz", 6)
|
131
|
+
deployer.gzip_site(site_dir)
|
132
|
+
end
|
133
|
+
|
134
|
+
|
106
135
|
end
|
@@ -28,6 +28,12 @@ describe Awestruct::Handlers::FrontMatterHandler do
|
|
28
28
|
handler.raw_content.strip.should == 'This is some content'
|
29
29
|
end
|
30
30
|
|
31
|
+
it 'should be able to split empty front-matter from content' do
|
32
|
+
handler = Awestruct::Handlers::FrontMatterHandler.new( @site, file_input('front-matter-empty.txt') )
|
33
|
+
handler.front_matter.should == {}
|
34
|
+
handler.raw_content.strip.should == 'This is some content'
|
35
|
+
end
|
36
|
+
|
31
37
|
it 'should be able to split front-matter from content for files without actual front-matter' do
|
32
38
|
handler = Awestruct::Handlers::FrontMatterHandler.new( @site, file_input('front-matter-file-no-front.txt') )
|
33
39
|
handler.front_matter.should_not be_nil
|
@@ -11,6 +11,7 @@ describe Awestruct::Deploy::GitHubPagesDeploy do
|
|
11
11
|
@deploy_config.stub(:[]).with('branch').and_return('the-branch')
|
12
12
|
@deploy_config.stub(:[]).with('repository').and_return('the-repo')
|
13
13
|
@deploy_config.stub(:[]).with('gzip').and_return('false')
|
14
|
+
@deploy_config.stub(:[]).with('gzip_level')
|
14
15
|
@deploy_config.stub(:[]).with('scm').and_return('git')
|
15
16
|
@deploy_config.stub(:[]).with('source_dir').and_return('.')
|
16
17
|
@deploy_config.stub(:[]).with('uncommitted').and_return('false')
|
File without changes
|
@@ -8,6 +8,10 @@ verify_with_span = lambda { |output|
|
|
8
8
|
output.should == "<h3>Test</h3>\n<p>the <span class=\"caps\">WHO</span></p>"
|
9
9
|
}
|
10
10
|
|
11
|
+
verify_empty = lambda { |output|
|
12
|
+
output.should == ""
|
13
|
+
}
|
14
|
+
|
11
15
|
theories =
|
12
16
|
[
|
13
17
|
{
|
@@ -24,6 +28,13 @@ theories =
|
|
24
28
|
:extension => '.html',
|
25
29
|
:matcher => verify_with_span,
|
26
30
|
:site_overrides => { :textile => { :no_span_caps => false } }
|
31
|
+
},
|
32
|
+
{
|
33
|
+
:page => "textile-empty-page.textile",
|
34
|
+
:simple_name => "textile-empty-page",
|
35
|
+
:syntax => :textile,
|
36
|
+
:extension => '.html',
|
37
|
+
:matcher => verify_empty
|
27
38
|
}
|
28
39
|
]
|
29
40
|
|
metadata
CHANGED
@@ -1,15 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awestruct
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.4.
|
4
|
+
version: 0.5.4.rc2
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
- Bob McWhirter
|
8
|
+
- Bob McWhirter
|
9
|
+
- Jason Porter
|
10
|
+
- Lance Ball
|
11
|
+
- Dan Allen
|
12
|
+
- Torsten Curdt
|
13
|
+
- other contributors
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
date: 2013-
|
17
|
+
date: 2013-11-11 00:00:00.000000000 Z
|
13
18
|
dependencies:
|
14
19
|
- !ruby/object:Gem::Dependency
|
15
20
|
name: haml
|
@@ -112,17 +117,33 @@ dependencies:
|
|
112
117
|
requirement: !ruby/object:Gem::Requirement
|
113
118
|
none: false
|
114
119
|
requirements:
|
115
|
-
- -
|
120
|
+
- - ! '>='
|
116
121
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
122
|
+
version: 4.0.9
|
118
123
|
type: :runtime
|
119
124
|
prerelease: false
|
120
125
|
version_requirements: !ruby/object:Gem::Requirement
|
121
126
|
none: false
|
122
127
|
requirements:
|
123
|
-
- -
|
128
|
+
- - ! '>='
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: 4.0.9
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: mime-types
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
none: false
|
135
|
+
requirements:
|
136
|
+
- - '='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '1.25'
|
139
|
+
type: :runtime
|
140
|
+
prerelease: false
|
141
|
+
version_requirements: !ruby/object:Gem::Requirement
|
142
|
+
none: false
|
143
|
+
requirements:
|
144
|
+
- - '='
|
124
145
|
- !ruby/object:Gem::Version
|
125
|
-
version: '
|
146
|
+
version: '1.25'
|
126
147
|
- !ruby/object:Gem::Dependency
|
127
148
|
name: rest-client
|
128
149
|
requirement: !ruby/object:Gem::Requirement
|
@@ -160,17 +181,17 @@ dependencies:
|
|
160
181
|
requirement: !ruby/object:Gem::Requirement
|
161
182
|
none: false
|
162
183
|
requirements:
|
163
|
-
- -
|
184
|
+
- - ~>
|
164
185
|
- !ruby/object:Gem::Version
|
165
|
-
version: 0
|
186
|
+
version: '1.0'
|
166
187
|
type: :runtime
|
167
188
|
prerelease: false
|
168
189
|
version_requirements: !ruby/object:Gem::Requirement
|
169
190
|
none: false
|
170
191
|
requirements:
|
171
|
-
- -
|
192
|
+
- - ~>
|
172
193
|
- !ruby/object:Gem::Version
|
173
|
-
version: 0
|
194
|
+
version: '1.0'
|
174
195
|
- !ruby/object:Gem::Dependency
|
175
196
|
name: rack
|
176
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -187,240 +208,261 @@ dependencies:
|
|
187
208
|
- - ~>
|
188
209
|
- !ruby/object:Gem::Version
|
189
210
|
version: 1.5.2
|
190
|
-
description: Awestruct is a
|
191
|
-
|
211
|
+
description: Awestruct is a static site baking and publishing tool. It supports an
|
212
|
+
extensive list of both templating and markup languages via Tilt (Haml, Slim, AsciiDoc,
|
213
|
+
Markdown, Sass via Compass, etc), provides mobile-first layout and styling via Bootstrap
|
214
|
+
or Foundation, offers a variety of deployment options (rsync, git, S3), handles
|
215
|
+
site optimizations (minification, compression, cache busting), includes built-in
|
216
|
+
extensions such as blog post management and is highly extensible.
|
217
|
+
email:
|
218
|
+
- bob@mcwhirter.org
|
219
|
+
- lightguard.jp@gmail.com
|
220
|
+
- lball@redhat.com
|
221
|
+
- dan.j.allen@gmail.com
|
222
|
+
- tcurdt@vafer.org
|
192
223
|
executables:
|
193
224
|
- awestruct
|
194
225
|
extensions: []
|
195
|
-
extra_rdoc_files:
|
226
|
+
extra_rdoc_files:
|
227
|
+
- README.md
|
196
228
|
files:
|
197
|
-
-
|
229
|
+
- Gemfile
|
230
|
+
- LICENSE.txt
|
231
|
+
- README.md
|
232
|
+
- Rakefile
|
233
|
+
- awestruct.gemspec
|
234
|
+
- lib/awestruct/astruct.rb
|
235
|
+
- lib/awestruct/astruct_mixin.rb
|
236
|
+
- lib/awestruct/cli/auto.rb
|
237
|
+
- lib/awestruct/cli/deploy.rb
|
238
|
+
- lib/awestruct/cli/generate.rb
|
239
|
+
- lib/awestruct/cli/init.rb
|
240
|
+
- lib/awestruct/cli/invoker.rb
|
241
|
+
- lib/awestruct/cli/manifest.rb
|
242
|
+
- lib/awestruct/cli/options.rb
|
243
|
+
- lib/awestruct/cli/server.rb
|
244
|
+
- lib/awestruct/compatibility.rb
|
198
245
|
- lib/awestruct/config.rb
|
199
|
-
- lib/awestruct/
|
246
|
+
- lib/awestruct/config/default-site.yml
|
200
247
|
- lib/awestruct/context.rb
|
248
|
+
- lib/awestruct/context_helper.rb
|
249
|
+
- lib/awestruct/dependencies.rb
|
250
|
+
- lib/awestruct/deploy/base_deploy.rb
|
251
|
+
- lib/awestruct/deploy/github_pages_deploy.rb
|
252
|
+
- lib/awestruct/deploy/rsync_deploy.rb
|
253
|
+
- lib/awestruct/deploy/s3_deploy.rb
|
254
|
+
- lib/awestruct/deployers.rb
|
255
|
+
- lib/awestruct/engine.rb
|
256
|
+
- lib/awestruct/extensions/assets.rb
|
257
|
+
- lib/awestruct/extensions/atomizer.rb
|
258
|
+
- lib/awestruct/extensions/cachebuster.rb
|
259
|
+
- lib/awestruct/extensions/coffeescripttransform.rb
|
260
|
+
- lib/awestruct/extensions/data_dir.rb
|
261
|
+
- lib/awestruct/extensions/disqus.rb
|
262
|
+
- lib/awestruct/extensions/extend_string.rb
|
263
|
+
- lib/awestruct/extensions/flattr.rb
|
264
|
+
- lib/awestruct/extensions/google_analytics.rb
|
265
|
+
- lib/awestruct/extensions/gsub.rb
|
266
|
+
- lib/awestruct/extensions/indexifier.rb
|
267
|
+
- lib/awestruct/extensions/intense_debate.rb
|
268
|
+
- lib/awestruct/extensions/minify.rb
|
269
|
+
- lib/awestruct/extensions/obfuscate.rb
|
270
|
+
- lib/awestruct/extensions/paginator.rb
|
271
|
+
- lib/awestruct/extensions/partial.rb
|
272
|
+
- lib/awestruct/extensions/pipeline.rb
|
273
|
+
- lib/awestruct/extensions/posts.rb
|
274
|
+
- lib/awestruct/extensions/relative.rb
|
275
|
+
- lib/awestruct/extensions/remotePartial.rb
|
276
|
+
- lib/awestruct/extensions/sitemap.rb
|
277
|
+
- lib/awestruct/extensions/sitemap.xml.haml
|
278
|
+
- lib/awestruct/extensions/tag_cloud.html.haml
|
279
|
+
- lib/awestruct/extensions/tag_cloud.rb
|
280
|
+
- lib/awestruct/extensions/tagger.rb
|
281
|
+
- lib/awestruct/extensions/template.atom.haml
|
201
282
|
- lib/awestruct/frameworks/960/base_layout.html.haml
|
283
|
+
- lib/awestruct/frameworks/base_Gemfile
|
284
|
+
- lib/awestruct/frameworks/base_Rakefile
|
202
285
|
- lib/awestruct/frameworks/base_awestruct_ignore
|
203
286
|
- lib/awestruct/frameworks/base_index.html.haml
|
204
287
|
- lib/awestruct/frameworks/base_pipeline.rb
|
205
288
|
- lib/awestruct/frameworks/base_site.yml
|
206
|
-
- lib/awestruct/frameworks/
|
207
|
-
- lib/awestruct/frameworks/bootstrap/base_layout.html.haml
|
289
|
+
- lib/awestruct/frameworks/blueprint/base_layout.html.haml
|
208
290
|
- lib/awestruct/frameworks/bootstrap/base_index.html.haml
|
209
|
-
- lib/awestruct/frameworks/
|
291
|
+
- lib/awestruct/frameworks/bootstrap/base_layout.html.haml
|
210
292
|
- lib/awestruct/frameworks/foundation/base_index.html.haml
|
293
|
+
- lib/awestruct/frameworks/foundation/base_layout.html.haml
|
211
294
|
- lib/awestruct/frameworks/foundation/humans.txt
|
212
|
-
- lib/awestruct/
|
213
|
-
- lib/awestruct/
|
214
|
-
- lib/awestruct/
|
215
|
-
- lib/awestruct/astruct.rb
|
216
|
-
- lib/awestruct/pipeline.rb
|
217
|
-
- lib/awestruct/deploy/base_deploy.rb
|
218
|
-
- lib/awestruct/deploy/s3_deploy.rb
|
219
|
-
- lib/awestruct/deploy/github_pages_deploy.rb
|
220
|
-
- lib/awestruct/deploy/rsync_deploy.rb
|
221
|
-
- lib/awestruct/context_helper.rb
|
295
|
+
- lib/awestruct/handler_chain.rb
|
296
|
+
- lib/awestruct/handler_chains.rb
|
297
|
+
- lib/awestruct/handlers/asciidoctor_handler.rb
|
222
298
|
- lib/awestruct/handlers/base_handler.rb
|
223
|
-
- lib/awestruct/handlers/
|
224
|
-
- lib/awestruct/handlers/
|
299
|
+
- lib/awestruct/handlers/base_tilt_handler.rb
|
300
|
+
- lib/awestruct/handlers/css_tilt_handler.rb
|
301
|
+
- lib/awestruct/handlers/file_handler.rb
|
302
|
+
- lib/awestruct/handlers/front_matter_handler.rb
|
225
303
|
- lib/awestruct/handlers/interpolation_handler.rb
|
226
|
-
- lib/awestruct/handlers/verbatim_file_handler.rb
|
227
|
-
- lib/awestruct/handlers/restructuredtext_handler.rb
|
228
|
-
- lib/awestruct/handlers/no_op_handler.rb
|
229
|
-
- lib/awestruct/handlers/tilt_handler.rb
|
230
304
|
- lib/awestruct/handlers/javascript_handler.rb
|
231
305
|
- lib/awestruct/handlers/layout_handler.rb
|
232
|
-
- lib/awestruct/handlers/
|
233
|
-
- lib/awestruct/handlers/
|
306
|
+
- lib/awestruct/handlers/no_op_handler.rb
|
307
|
+
- lib/awestruct/handlers/page_delegating_handler.rb
|
308
|
+
- lib/awestruct/handlers/redirect_handler.rb
|
309
|
+
- lib/awestruct/handlers/restructuredtext_handler.rb
|
310
|
+
- lib/awestruct/handlers/string_handler.rb
|
234
311
|
- lib/awestruct/handlers/template/asciidoc.rb
|
235
|
-
- lib/awestruct/handlers/
|
312
|
+
- lib/awestruct/handlers/template/mustache.rb
|
313
|
+
- lib/awestruct/handlers/tilt_handler.rb
|
314
|
+
- lib/awestruct/handlers/verbatim_file_handler.rb
|
236
315
|
- lib/awestruct/handlers/yaml_handler.rb
|
237
|
-
- lib/awestruct/
|
238
|
-
- lib/awestruct/
|
239
|
-
- lib/awestruct/
|
240
|
-
- lib/awestruct/
|
316
|
+
- lib/awestruct/layouts.rb
|
317
|
+
- lib/awestruct/logger.rb
|
318
|
+
- lib/awestruct/page.rb
|
319
|
+
- lib/awestruct/page_loader.rb
|
320
|
+
- lib/awestruct/pipeline.rb
|
321
|
+
- lib/awestruct/rack/app.rb
|
322
|
+
- lib/awestruct/scm/git.rb
|
323
|
+
- lib/awestruct/site.rb
|
241
324
|
- lib/awestruct/util/COPYING
|
242
325
|
- lib/awestruct/util/default_inflections.rb
|
326
|
+
- lib/awestruct/util/exception_helper.rb
|
243
327
|
- lib/awestruct/util/inflector.rb
|
244
|
-
- lib/awestruct/config/default-site.yml
|
245
|
-
- lib/awestruct/site.rb
|
246
|
-
- lib/awestruct/deployers.rb
|
247
|
-
- lib/awestruct/scm/git.rb
|
248
|
-
- lib/awestruct/astruct_mixin.rb
|
249
328
|
- lib/awestruct/version.rb
|
250
|
-
- lib/awestruct/page_loader.rb
|
251
|
-
- lib/awestruct/handler_chain.rb
|
252
|
-
- lib/awestruct/cli/options.rb
|
253
|
-
- lib/awestruct/cli/auto.rb
|
254
|
-
- lib/awestruct/cli/invoker.rb
|
255
|
-
- lib/awestruct/cli/generate.rb
|
256
|
-
- lib/awestruct/cli/init.rb
|
257
|
-
- lib/awestruct/cli/server.rb
|
258
|
-
- lib/awestruct/cli/deploy.rb
|
259
|
-
- lib/awestruct/cli/manifest.rb
|
260
|
-
- lib/awestruct/extensions/posts.rb
|
261
|
-
- lib/awestruct/extensions/tag_cloud.html.haml
|
262
|
-
- lib/awestruct/extensions/google_analytics.rb
|
263
|
-
- lib/awestruct/extensions/atomizer.rb
|
264
|
-
- lib/awestruct/extensions/pipeline.rb
|
265
|
-
- lib/awestruct/extensions/indexifier.rb
|
266
|
-
- lib/awestruct/extensions/template.atom.haml
|
267
|
-
- lib/awestruct/extensions/data_dir.rb
|
268
|
-
- lib/awestruct/extensions/sitemap.xml.haml
|
269
|
-
- lib/awestruct/extensions/tag_cloud.rb
|
270
|
-
- lib/awestruct/extensions/cachebuster.rb
|
271
|
-
- lib/awestruct/extensions/relative.rb
|
272
|
-
- lib/awestruct/extensions/flattr.rb
|
273
|
-
- lib/awestruct/extensions/coffeescripttransform.rb
|
274
|
-
- lib/awestruct/extensions/extend_string.rb
|
275
|
-
- lib/awestruct/extensions/assets.rb
|
276
|
-
- lib/awestruct/extensions/paginator.rb
|
277
|
-
- lib/awestruct/extensions/gsub.rb
|
278
|
-
- lib/awestruct/extensions/intense_debate.rb
|
279
|
-
- lib/awestruct/extensions/tagger.rb
|
280
|
-
- lib/awestruct/extensions/disqus.rb
|
281
|
-
- lib/awestruct/extensions/partial.rb
|
282
|
-
- lib/awestruct/extensions/sitemap.rb
|
283
|
-
- lib/awestruct/extensions/obfuscate.rb
|
284
|
-
- lib/awestruct/extensions/remotePartial.rb
|
285
|
-
- lib/awestruct/extensions/minify.rb
|
286
|
-
- lib/awestruct/page.rb
|
287
|
-
- lib/awestruct/compatibility.rb
|
288
|
-
- lib/awestruct/page.rb.old
|
289
|
-
- lib/awestruct/dependencies.rb
|
290
|
-
- lib/awestruct/logger.rb
|
291
|
-
- lib/awestruct/engine.rb
|
292
329
|
- man/awestruct.1
|
293
|
-
-
|
294
|
-
- spec/
|
330
|
+
- man/awestruct.adoc
|
331
|
+
- spec/asciidoc_handler_spec.rb
|
332
|
+
- spec/astruct_spec.rb
|
295
333
|
- spec/awestruct/scm/git_spec.rb
|
296
|
-
- spec/
|
297
|
-
- spec/
|
334
|
+
- spec/coffeescript_handler_spec.rb
|
335
|
+
- spec/config_spec.rb
|
336
|
+
- spec/context_helper_spec.rb
|
337
|
+
- spec/deploy_spec.rb
|
338
|
+
- spec/disqus_spec.rb
|
339
|
+
- spec/engine_spec.rb
|
340
|
+
- spec/erb_handler_spec.rb
|
341
|
+
- spec/file_handler_spec.rb
|
298
342
|
- spec/front_matter_handler_spec.rb
|
343
|
+
- spec/github_pages_deploy_spec.rb
|
344
|
+
- spec/haml_handler_spec.rb
|
345
|
+
- spec/handler_chain_spec.rb
|
346
|
+
- spec/handler_chains_spec.rb
|
347
|
+
- spec/interpolation_handler_spec.rb
|
348
|
+
- spec/invoker_spec.rb
|
349
|
+
- spec/javascript_handler_spec.rb
|
350
|
+
- spec/layout_handler_spec.rb
|
351
|
+
- spec/layouts_spec.rb
|
352
|
+
- spec/less_handler_spec.rb
|
353
|
+
- spec/markdown_handler_spec.rb
|
354
|
+
- spec/minify_spec.rb
|
355
|
+
- spec/mustache_handler_spec.rb
|
356
|
+
- spec/options_spec.rb
|
299
357
|
- spec/orgmode_handler_spec.rb
|
300
|
-
- spec/
|
301
|
-
- spec/
|
302
|
-
- spec/
|
303
|
-
- spec/
|
304
|
-
- spec/
|
358
|
+
- spec/page_delegating_handler_spec.rb
|
359
|
+
- spec/page_loader_spec.rb
|
360
|
+
- spec/page_loader_spec_for_layouts.rb
|
361
|
+
- spec/page_spec.rb
|
362
|
+
- spec/pipeline_spec.rb
|
363
|
+
- spec/posts_archive_spec.rb
|
364
|
+
- spec/redirect_handler_spec.rb
|
305
365
|
- spec/restructuredtext_handler_spec.rb
|
306
366
|
- spec/rsync_deploy_spec.rb
|
307
|
-
- spec/
|
308
|
-
- spec/pipeline_spec.rb
|
309
|
-
- spec/page_loader_spec.rb
|
310
|
-
- spec/tilt_handler_spec.rb
|
311
|
-
- spec/config_spec.rb
|
367
|
+
- spec/sass_handler_spec.rb
|
312
368
|
- spec/scss_handler_spec.rb
|
313
|
-
- spec/
|
314
|
-
- spec/
|
315
|
-
- spec/
|
316
|
-
- spec/
|
317
|
-
- spec/
|
318
|
-
- spec/
|
319
|
-
- spec/test-data
|
320
|
-
- spec/test-data/engine/_config/other.yml
|
369
|
+
- spec/server_spec.rb
|
370
|
+
- spec/slim_handler_spec.rb
|
371
|
+
- spec/spec_helper.rb
|
372
|
+
- spec/support/emmet_matchers.rb
|
373
|
+
- spec/support/nokogiri_matchers.rb
|
374
|
+
- spec/support/shared_handler_example.rb
|
375
|
+
- spec/test-data/.awestruct_ignore
|
321
376
|
- spec/test-data/engine/_config/arbitrary.yml
|
377
|
+
- spec/test-data/engine/_config/other.yml
|
378
|
+
- spec/test-data/engine/_config/site.yml
|
379
|
+
- spec/test-data/front-matter-empty.txt
|
380
|
+
- spec/test-data/front-matter-file-no-content.txt
|
322
381
|
- spec/test-data/front-matter-file-no-front.txt
|
323
|
-
- spec/test-data/front-matter-middle.txt
|
324
|
-
- spec/test-data/stylesheets/screen.css
|
325
|
-
- spec/test-data/out-of-site/page-three.html.haml
|
326
|
-
- spec/test-data/front-matter-looking.txt
|
327
|
-
- spec/test-data/subdir/index.html
|
328
382
|
- spec/test-data/front-matter-file-utf8.txt
|
329
|
-
- spec/test-data/
|
330
|
-
- spec/test-data/
|
331
|
-
- spec/test-data/
|
332
|
-
- spec/test-data/
|
333
|
-
- spec/test-data/
|
334
|
-
- spec/test-data/
|
335
|
-
- spec/test-data/
|
336
|
-
- spec/test-data/
|
337
|
-
- spec/test-data/handlers/
|
338
|
-
- spec/test-data/handlers/
|
339
|
-
- spec/test-data/handlers/mustache-page.html.mustache
|
340
|
-
- spec/test-data/handlers/haml-page.atom.haml
|
341
|
-
- spec/test-data/handlers/scss-page.scss
|
342
|
-
- spec/test-data/handlers/markdown-page.markdown
|
343
|
-
- spec/test-data/handlers/less-page-with-import.less
|
344
|
-
- spec/test-data/handlers/asciidoc-page.adoc
|
345
|
-
- spec/test-data/handlers/slim-page.xml.slim
|
346
|
-
- spec/test-data/handlers/asciidoc-page.ad
|
347
|
-
- spec/test-data/handlers/haml-with-textile-page.html.haml
|
348
|
-
- spec/test-data/handlers/inner-page.html.haml
|
349
|
-
- spec/test-data/handlers/mustache-page.xml.mustache
|
350
|
-
- spec/test-data/handlers/haml-with-variables.html.haml
|
383
|
+
- spec/test-data/front-matter-file.txt
|
384
|
+
- spec/test-data/front-matter-looking.txt
|
385
|
+
- spec/test-data/front-matter-middle.txt
|
386
|
+
- spec/test-data/gzip/no.html.gz
|
387
|
+
- spec/test-data/gzip/no.txt
|
388
|
+
- spec/test-data/gzip/subdir/yes.css
|
389
|
+
- spec/test-data/gzip/yes.html
|
390
|
+
- spec/test-data/gzip/yes.js
|
391
|
+
- spec/test-data/handlers/asciidoc-page.ad
|
392
|
+
- spec/test-data/handlers/asciidoc-page.adoc
|
351
393
|
- spec/test-data/handlers/asciidoc-page.asciidoc
|
352
|
-
- spec/test-data/handlers/
|
394
|
+
- spec/test-data/handlers/asciidoc_with_attributes.ad
|
395
|
+
- spec/test-data/handlers/asciidoc_with_interpolation.ad
|
396
|
+
- spec/test-data/handlers/asciidoc_without_interpolation.ad
|
397
|
+
- spec/test-data/handlers/asciidoctor_with_front_matter.ad
|
398
|
+
- spec/test-data/handlers/asciidoctor_with_headers.ad
|
399
|
+
- spec/test-data/handlers/coffeescript-page.coffee
|
400
|
+
- spec/test-data/handlers/empty-layout.haml
|
401
|
+
- spec/test-data/handlers/erb-page.html.erb
|
402
|
+
- spec/test-data/handlers/erb-page.xml.erb
|
403
|
+
- spec/test-data/handlers/erb-utf-page.html.erb
|
404
|
+
- spec/test-data/handlers/haml-error.html.haml
|
405
|
+
- spec/test-data/handlers/haml-layout-two.html.haml
|
406
|
+
- spec/test-data/handlers/haml-layout.html.haml
|
407
|
+
- spec/test-data/handlers/haml-page.atom.haml
|
353
408
|
- spec/test-data/handlers/haml-page.html.haml
|
354
|
-
- spec/test-data/handlers/
|
409
|
+
- spec/test-data/handlers/haml-page.xml.haml
|
355
410
|
- spec/test-data/handlers/haml-with-markdown-page.html.haml
|
356
|
-
- spec/test-data/handlers/
|
357
|
-
- spec/test-data/handlers/restructuredtext-page.rst
|
358
|
-
- spec/test-data/handlers/javascript-page.js
|
359
|
-
- spec/test-data/handlers/asciidoc_with_interpolation.ad
|
360
|
-
- spec/test-data/handlers/slim-with-variables.html.slim
|
361
|
-
- spec/test-data/handlers/slim-with-markdown-page.html.slim
|
411
|
+
- spec/test-data/handlers/haml-with-textile-page.html.haml
|
362
412
|
- spec/test-data/handlers/haml-with-utf.html.haml
|
413
|
+
- spec/test-data/handlers/haml-with-variables.html.haml
|
414
|
+
- spec/test-data/handlers/hello.bogus
|
415
|
+
- spec/test-data/handlers/inner-page.html.haml
|
416
|
+
- spec/test-data/handlers/javascript-page.js
|
363
417
|
- spec/test-data/handlers/less-page-include.less
|
364
|
-
- spec/test-data/handlers/
|
418
|
+
- spec/test-data/handlers/less-page-with-import.less
|
365
419
|
- spec/test-data/handlers/less-page.less
|
366
|
-
- spec/test-data/handlers/
|
420
|
+
- spec/test-data/handlers/markdown-page.markdown
|
367
421
|
- spec/test-data/handlers/markdown-page.md
|
368
|
-
- spec/test-data/handlers/
|
422
|
+
- spec/test-data/handlers/markdown-page.mkd
|
423
|
+
- spec/test-data/handlers/mustache-page.html.mustache
|
424
|
+
- spec/test-data/handlers/mustache-page.xml.mustache
|
369
425
|
- spec/test-data/handlers/orgmode-page.org
|
370
426
|
- spec/test-data/handlers/outer-layout.html.haml
|
371
|
-
- spec/test-data/handlers/
|
372
|
-
- spec/test-data/handlers/
|
373
|
-
- spec/test-data/handlers/
|
374
|
-
- spec/test-data/handlers/
|
375
|
-
- spec/test-data/handlers/simple-redirect-page.redirect
|
376
|
-
- spec/test-data/handlers/asciidoc_with_attributes.ad
|
377
|
-
- spec/test-data/handlers/erb-page.xml.erb
|
378
|
-
- spec/test-data/handlers/haml-layout.html.haml
|
427
|
+
- spec/test-data/handlers/outside_relative/git_keep
|
428
|
+
- spec/test-data/handlers/redirect-page.redirect
|
429
|
+
- spec/test-data/handlers/restructuredtext-page.rst
|
430
|
+
- spec/test-data/handlers/sass-page-include.sass
|
379
431
|
- spec/test-data/handlers/sass-page.sass
|
432
|
+
- spec/test-data/handlers/scss-page-include.scss
|
433
|
+
- spec/test-data/handlers/scss-page.scss
|
434
|
+
- spec/test-data/handlers/simple-redirect-page.redirect
|
435
|
+
- spec/test-data/handlers/slim-page.atom.slim
|
436
|
+
- spec/test-data/handlers/slim-page.html.slim
|
437
|
+
- spec/test-data/handlers/slim-page.xml.slim
|
438
|
+
- spec/test-data/handlers/slim-with-markdown-page.html.slim
|
439
|
+
- spec/test-data/handlers/slim-with-utf.html.slim
|
440
|
+
- spec/test-data/handlers/slim-with-variables.html.slim
|
441
|
+
- spec/test-data/handlers/textile-empty-page.textile
|
442
|
+
- spec/test-data/handlers/textile-page.textile
|
380
443
|
- spec/test-data/images/logo.png
|
381
|
-
- spec/test-data/gzip/no.txt
|
382
|
-
- spec/test-data/gzip/no.html.gz
|
383
|
-
- spec/test-data/gzip/yes.js
|
384
|
-
- spec/test-data/gzip/subdir/yes.css
|
385
|
-
- spec/test-data/gzip/yes.html
|
386
|
-
- spec/test-data/front-matter-file-no-content.txt
|
387
|
-
- spec/test-data/simple-file.txt
|
388
444
|
- spec/test-data/index.html
|
389
|
-
- spec/test-data/simple-data.yaml
|
390
|
-
- spec/test-data/front-matter-file.txt
|
391
445
|
- spec/test-data/javascript/bootstrap-dropdown.js
|
392
|
-
- spec/
|
393
|
-
- spec/
|
394
|
-
- spec/
|
395
|
-
- spec/
|
396
|
-
- spec/
|
397
|
-
- spec/
|
398
|
-
- spec/
|
399
|
-
- spec/
|
446
|
+
- spec/test-data/out-of-site/page-three.html.haml
|
447
|
+
- spec/test-data/page-loader/_layouts/layout-one.md
|
448
|
+
- spec/test-data/page-loader/_layouts/layout-two.html.haml
|
449
|
+
- spec/test-data/page-loader/page-draft.md
|
450
|
+
- spec/test-data/page-loader/page-one.md
|
451
|
+
- spec/test-data/page-loader/page-two.html.haml
|
452
|
+
- spec/test-data/simple-data.yaml
|
453
|
+
- spec/test-data/simple-file.txt
|
454
|
+
- spec/test-data/stylesheets/screen.css
|
455
|
+
- spec/test-data/subdir/index.html
|
400
456
|
- spec/textile_handler_spec.rb
|
401
|
-
- spec/
|
402
|
-
- spec/
|
403
|
-
- spec/handler_chains_spec.rb
|
404
|
-
- spec/slim_handler_spec.rb
|
405
|
-
- spec/handler_chain_spec.rb
|
406
|
-
- spec/javascript_handler_spec.rb
|
407
|
-
- spec/server_spec.rb
|
408
|
-
- spec/spec_helper.rb
|
409
|
-
- spec/erb_handler_spec.rb
|
410
|
-
- spec/page_spec.rb
|
411
|
-
- spec/less_handler_spec.rb
|
412
|
-
- spec/layout_handler_spec.rb
|
413
|
-
- spec/haml_handler_spec.rb
|
414
|
-
- spec/markdown_handler_spec.rb
|
415
|
-
- spec/layouts_spec.rb
|
416
|
-
- spec/invoker_spec.rb
|
417
|
-
- spec/deploy_spec.rb
|
457
|
+
- spec/tilt_handler_spec.rb
|
458
|
+
- spec/yaml_handler_spec.rb
|
418
459
|
- bin/awestruct
|
419
460
|
homepage: http://awestruct.org
|
420
461
|
licenses:
|
421
462
|
- MIT
|
422
463
|
post_install_message:
|
423
|
-
rdoc_options:
|
464
|
+
rdoc_options:
|
465
|
+
- --charset=UTF-8
|
424
466
|
require_paths:
|
425
467
|
- lib
|
426
468
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -431,7 +473,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
431
473
|
version: '0'
|
432
474
|
segments:
|
433
475
|
- 0
|
434
|
-
hash: -
|
476
|
+
hash: -898131793492095079
|
435
477
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
436
478
|
none: false
|
437
479
|
requirements:
|
@@ -439,137 +481,57 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
439
481
|
- !ruby/object:Gem::Version
|
440
482
|
version: 1.3.1
|
441
483
|
requirements:
|
442
|
-
- Any markup languages you are using and its dependencies
|
443
|
-
|
444
|
-
|
445
|
-
|
484
|
+
- ! 'Any markup languages you are using and its dependencies.
|
485
|
+
|
486
|
+
Haml and Markdown filters are touchy things. Redcarpet or Rdiscount work well if
|
487
|
+
you''re running on MRI. JRuby should be using haml 4.0.0+ with Kramdown.''
|
488
|
+
|
489
|
+
'
|
490
|
+
rubyforge_project: awestruct
|
446
491
|
rubygems_version: 1.8.25
|
447
492
|
signing_key:
|
448
493
|
specification_version: 3
|
449
|
-
summary: Static site
|
494
|
+
summary: Static site baking and publishing tool
|
450
495
|
test_files:
|
451
|
-
- spec/
|
452
|
-
- spec/mustache_handler_spec.rb
|
453
|
-
- spec/awestruct/scm/git_spec.rb
|
454
|
-
- spec/options_spec.rb
|
455
|
-
- spec/posts_archive_spec.rb
|
456
|
-
- spec/front_matter_handler_spec.rb
|
457
|
-
- spec/orgmode_handler_spec.rb
|
458
|
-
- spec/support/shared_handler_example.rb
|
459
|
-
- spec/support/emmet_matchers.rb
|
460
|
-
- spec/support/nokogiri_matchers.rb
|
496
|
+
- spec/asciidoc_handler_spec.rb
|
461
497
|
- spec/astruct_spec.rb
|
462
|
-
- spec/
|
463
|
-
- spec/restructuredtext_handler_spec.rb
|
464
|
-
- spec/rsync_deploy_spec.rb
|
498
|
+
- spec/awestruct/scm/git_spec.rb
|
465
499
|
- spec/coffeescript_handler_spec.rb
|
466
|
-
- spec/pipeline_spec.rb
|
467
|
-
- spec/page_loader_spec.rb
|
468
|
-
- spec/tilt_handler_spec.rb
|
469
500
|
- spec/config_spec.rb
|
470
|
-
- spec/scss_handler_spec.rb
|
471
|
-
- spec/page_delegating_handler_spec.rb
|
472
|
-
- spec/test-data/page-loader/page-two.html.haml
|
473
|
-
- spec/test-data/page-loader/page-one.md
|
474
|
-
- spec/test-data/page-loader/page-draft.md
|
475
|
-
- spec/test-data/page-loader/_layouts/layout-one.md
|
476
|
-
- spec/test-data/page-loader/_layouts/layout-two.html.haml
|
477
|
-
- spec/test-data/engine/_config/site.yml
|
478
|
-
- spec/test-data/engine/_config/other.yml
|
479
|
-
- spec/test-data/engine/_config/arbitrary.yml
|
480
|
-
- spec/test-data/front-matter-file-no-front.txt
|
481
|
-
- spec/test-data/front-matter-middle.txt
|
482
|
-
- spec/test-data/stylesheets/screen.css
|
483
|
-
- spec/test-data/out-of-site/page-three.html.haml
|
484
|
-
- spec/test-data/front-matter-looking.txt
|
485
|
-
- spec/test-data/subdir/index.html
|
486
|
-
- spec/test-data/front-matter-file-utf8.txt
|
487
|
-
- spec/test-data/handlers/hello.bogus
|
488
|
-
- spec/test-data/handlers/scss-page-include.scss
|
489
|
-
- spec/test-data/handlers/haml-layout-two.html.haml
|
490
|
-
- spec/test-data/handlers/haml-error.html.haml
|
491
|
-
- spec/test-data/handlers/haml-page.xml.haml
|
492
|
-
- spec/test-data/handlers/markdown-page.mkd
|
493
|
-
- spec/test-data/handlers/outside_relative/git_keep
|
494
|
-
- spec/test-data/handlers/asciidoctor_with_front_matter.ad
|
495
|
-
- spec/test-data/handlers/slim-page.html.slim
|
496
|
-
- spec/test-data/handlers/empty-layout.haml
|
497
|
-
- spec/test-data/handlers/mustache-page.html.mustache
|
498
|
-
- spec/test-data/handlers/haml-page.atom.haml
|
499
|
-
- spec/test-data/handlers/scss-page.scss
|
500
|
-
- spec/test-data/handlers/markdown-page.markdown
|
501
|
-
- spec/test-data/handlers/less-page-with-import.less
|
502
|
-
- spec/test-data/handlers/asciidoc-page.adoc
|
503
|
-
- spec/test-data/handlers/slim-page.xml.slim
|
504
|
-
- spec/test-data/handlers/asciidoc-page.ad
|
505
|
-
- spec/test-data/handlers/haml-with-textile-page.html.haml
|
506
|
-
- spec/test-data/handlers/inner-page.html.haml
|
507
|
-
- spec/test-data/handlers/mustache-page.xml.mustache
|
508
|
-
- spec/test-data/handlers/haml-with-variables.html.haml
|
509
|
-
- spec/test-data/handlers/asciidoc-page.asciidoc
|
510
|
-
- spec/test-data/handlers/sass-page-include.sass
|
511
|
-
- spec/test-data/handlers/haml-page.html.haml
|
512
|
-
- spec/test-data/handlers/slim-page.atom.slim
|
513
|
-
- spec/test-data/handlers/haml-with-markdown-page.html.haml
|
514
|
-
- spec/test-data/handlers/asciidoctor_with_headers.ad
|
515
|
-
- spec/test-data/handlers/restructuredtext-page.rst
|
516
|
-
- spec/test-data/handlers/javascript-page.js
|
517
|
-
- spec/test-data/handlers/asciidoc_with_interpolation.ad
|
518
|
-
- spec/test-data/handlers/slim-with-variables.html.slim
|
519
|
-
- spec/test-data/handlers/slim-with-markdown-page.html.slim
|
520
|
-
- spec/test-data/handlers/haml-with-utf.html.haml
|
521
|
-
- spec/test-data/handlers/less-page-include.less
|
522
|
-
- spec/test-data/handlers/slim-with-utf.html.slim
|
523
|
-
- spec/test-data/handlers/less-page.less
|
524
|
-
- spec/test-data/handlers/redirect-page.redirect
|
525
|
-
- spec/test-data/handlers/markdown-page.md
|
526
|
-
- spec/test-data/handlers/erb-page.html.erb
|
527
|
-
- spec/test-data/handlers/orgmode-page.org
|
528
|
-
- spec/test-data/handlers/outer-layout.html.haml
|
529
|
-
- spec/test-data/handlers/asciidoc_without_interpolation.ad
|
530
|
-
- spec/test-data/handlers/textile-page.textile
|
531
|
-
- spec/test-data/handlers/coffeescript-page.coffee
|
532
|
-
- spec/test-data/handlers/erb-utf-page.html.erb
|
533
|
-
- spec/test-data/handlers/simple-redirect-page.redirect
|
534
|
-
- spec/test-data/handlers/asciidoc_with_attributes.ad
|
535
|
-
- spec/test-data/handlers/erb-page.xml.erb
|
536
|
-
- spec/test-data/handlers/haml-layout.html.haml
|
537
|
-
- spec/test-data/handlers/sass-page.sass
|
538
|
-
- spec/test-data/images/logo.png
|
539
|
-
- spec/test-data/gzip/no.txt
|
540
|
-
- spec/test-data/gzip/no.html.gz
|
541
|
-
- spec/test-data/gzip/yes.js
|
542
|
-
- spec/test-data/gzip/subdir/yes.css
|
543
|
-
- spec/test-data/gzip/yes.html
|
544
|
-
- spec/test-data/front-matter-file-no-content.txt
|
545
|
-
- spec/test-data/simple-file.txt
|
546
|
-
- spec/test-data/index.html
|
547
|
-
- spec/test-data/simple-data.yaml
|
548
|
-
- spec/test-data/front-matter-file.txt
|
549
|
-
- spec/test-data/javascript/bootstrap-dropdown.js
|
550
|
-
- spec/file_handler_spec.rb
|
551
|
-
- spec/interpolation_handler_spec.rb
|
552
|
-
- spec/page_loader_spec_for_layouts.rb
|
553
|
-
- spec/github_pages_deploy_spec.rb
|
554
501
|
- spec/context_helper_spec.rb
|
555
|
-
- spec/
|
556
|
-
- spec/sass_handler_spec.rb
|
502
|
+
- spec/deploy_spec.rb
|
557
503
|
- spec/disqus_spec.rb
|
558
|
-
- spec/
|
559
|
-
- spec/
|
560
|
-
- spec/
|
561
|
-
- spec/
|
562
|
-
- spec/
|
504
|
+
- spec/engine_spec.rb
|
505
|
+
- spec/erb_handler_spec.rb
|
506
|
+
- spec/file_handler_spec.rb
|
507
|
+
- spec/front_matter_handler_spec.rb
|
508
|
+
- spec/github_pages_deploy_spec.rb
|
509
|
+
- spec/haml_handler_spec.rb
|
563
510
|
- spec/handler_chain_spec.rb
|
511
|
+
- spec/handler_chains_spec.rb
|
512
|
+
- spec/interpolation_handler_spec.rb
|
513
|
+
- spec/invoker_spec.rb
|
564
514
|
- spec/javascript_handler_spec.rb
|
565
|
-
- spec/server_spec.rb
|
566
|
-
- spec/spec_helper.rb
|
567
|
-
- spec/erb_handler_spec.rb
|
568
|
-
- spec/page_spec.rb
|
569
|
-
- spec/less_handler_spec.rb
|
570
515
|
- spec/layout_handler_spec.rb
|
571
|
-
- spec/haml_handler_spec.rb
|
572
|
-
- spec/markdown_handler_spec.rb
|
573
516
|
- spec/layouts_spec.rb
|
574
|
-
- spec/
|
575
|
-
- spec/
|
517
|
+
- spec/less_handler_spec.rb
|
518
|
+
- spec/markdown_handler_spec.rb
|
519
|
+
- spec/minify_spec.rb
|
520
|
+
- spec/mustache_handler_spec.rb
|
521
|
+
- spec/options_spec.rb
|
522
|
+
- spec/orgmode_handler_spec.rb
|
523
|
+
- spec/page_delegating_handler_spec.rb
|
524
|
+
- spec/page_loader_spec.rb
|
525
|
+
- spec/page_spec.rb
|
526
|
+
- spec/pipeline_spec.rb
|
527
|
+
- spec/posts_archive_spec.rb
|
528
|
+
- spec/redirect_handler_spec.rb
|
529
|
+
- spec/restructuredtext_handler_spec.rb
|
530
|
+
- spec/rsync_deploy_spec.rb
|
531
|
+
- spec/sass_handler_spec.rb
|
532
|
+
- spec/scss_handler_spec.rb
|
533
|
+
- spec/server_spec.rb
|
534
|
+
- spec/slim_handler_spec.rb
|
535
|
+
- spec/textile_handler_spec.rb
|
536
|
+
- spec/tilt_handler_spec.rb
|
537
|
+
- spec/yaml_handler_spec.rb
|