awestruct 0.6.4 → 0.6.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/awestruct.gemspec +10 -6
- data/lib/awestruct/cli/invoker.rb +3 -1
- data/lib/awestruct/cli/options.rb +1 -1
- data/lib/awestruct/extensions/partial.rb +5 -1
- data/lib/awestruct/frameworks/bootstrap/base_index.html.haml +4 -4
- data/lib/awestruct/frameworks/foundation/base_index.html.haml +7 -7
- data/lib/awestruct/frameworks/none/base_index.html.haml +4 -4
- data/lib/awestruct/handlers/front_matter_handler.rb +2 -3
- data/lib/awestruct/handlers/yaml_handler.rb +2 -2
- data/lib/awestruct/version.rb +1 -1
- data/man/awestruct.adoc +2 -4
- metadata +7 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d11d7f035acc9b03fa5f8b986c005836bf8bd8a1bc87547e2641d8e0156f35cd
|
4
|
+
data.tar.gz: b0ea93494ccc5c0cc3d5ac81ac12b4bba7ee53678b79c7ff8e1c4bdcae5e6b2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88e821c890a57c3bd522e9984438c93fc83876f107a595aa5a6bb23740b0aec2153469df871dfe82b0e6a9540b4c57a70f211c9d5074bf5bf0b6a127fc56103d
|
7
|
+
data.tar.gz: 96ec194dda79640a405bfb98be2d42ec25e6c3d365eb6c0a1d2ebbfd82eb7e02c609406b3a747dbea15d307dc900abc51c7145b293a52fe57abd63c863d116cb
|
data/README.md
CHANGED
@@ -13,7 +13,7 @@ Install Awestruct using `gem install awestruct`. Then you can initialize an Awes
|
|
13
13
|
|
14
14
|
## For more information
|
15
15
|
|
16
|
-
Please see the complete site at <
|
16
|
+
Please see the complete site at <https://awestruct.github.io/>.
|
17
17
|
|
18
18
|
## License
|
19
19
|
|
data/awestruct.gemspec
CHANGED
@@ -4,25 +4,29 @@ require 'awestruct/version'
|
|
4
4
|
spec = Gem::Specification.new do |s|
|
5
5
|
s.name = 'awestruct'
|
6
6
|
s.version = Awestruct::VERSION
|
7
|
-
s.date = '2023-
|
7
|
+
s.date = '2023-04-16'
|
8
8
|
|
9
9
|
s.authors = ['Bob McWhirter', 'Jason Porter', 'Lance Ball', 'Dan Allen', 'Torsten Curdt', 'other contributors']
|
10
10
|
s.email = ['bob@mcwhirter.org', 'lightguard.jp@gmail.com', 'lball@redhat.com', 'dan.j.allen@gmail.com', 'tcurdt@vafer.org']
|
11
|
-
s.homepage = '
|
11
|
+
s.homepage = 'https://awestruct.github.io'
|
12
12
|
s.summary = 'Static site baking and publishing tool'
|
13
13
|
s.description = 'Awestruct is a static site baking and publishing tool. It supports an extensive list of both templating and markup languages via Tilt (Haml, Slim, AsciiDoc, Markdown, Sass via Compass, etc), provides mobile-first layout and styling via Bootstrap or Foundation, offers a variety of deployment options (rsync, git, S3), handles site optimizations (minification, compression, cache busting), includes built-in extensions such as blog post management and is highly extensible.'
|
14
14
|
|
15
15
|
s.license = 'MIT'
|
16
|
-
|
16
|
+
s.metadata = {
|
17
|
+
'bug_tracker_uri' => 'https://github.com/awestruct/awestruct/issues',
|
18
|
+
'changelog_uri' => 'https://github.com/awestruct/awestruct/releases',
|
19
|
+
'source_code_uri' => 'https://github.com/awestruct/awestruct'
|
20
|
+
}
|
17
21
|
s.platform = Gem::Platform::RUBY
|
18
22
|
s.required_ruby_version = '>= 2.4.0'
|
19
23
|
|
20
24
|
s.rdoc_options = ['--charset=UTF-8']
|
21
25
|
s.extra_rdoc_files = 'README.md'
|
22
26
|
|
23
|
-
s.files =
|
27
|
+
s.files = Dir.glob(["lib/**/*", "man/**/*", "spec/**/*", "spec/**/.awestruct_ignore", "README*", "LICENSE*", "*.gemspec", "*file"]).reject {|fn| File.directory?(fn) }
|
24
28
|
s.test_files = s.files.select { |path| path =~ /^spec\/.*_spec\.rb/ }
|
25
|
-
s.executables =
|
29
|
+
s.executables = Dir.glob("bin/*").map {|f| File.basename f }
|
26
30
|
s.require_paths = ['lib']
|
27
31
|
|
28
32
|
s.requirements = <<-EOS
|
@@ -32,7 +36,7 @@ Compass and sass are no longer hard dependencies. You'll need too add them on yo
|
|
32
36
|
EOS
|
33
37
|
|
34
38
|
s.add_dependency 'haml', '>= 4.0.5', '< 6.0'
|
35
|
-
s.add_dependency 'asciidoctor', '>= 1.5.2'
|
39
|
+
s.add_dependency 'asciidoctor', '>= 1.5.2'
|
36
40
|
s.add_dependency 'tilt', '~> 2.0', '>= 2.0.1'
|
37
41
|
s.add_dependency 'mime-types', '~> 3.0'
|
38
42
|
s.add_dependency 'rest-client', '~> 2.0'
|
@@ -37,7 +37,11 @@ module Awestruct
|
|
37
37
|
end
|
38
38
|
|
39
39
|
begin
|
40
|
-
|
40
|
+
if site.partial_debug
|
41
|
+
"<!-- start partial: #{path} -->\n#{page.content}\n<!-- end partial: #{path} -->"
|
42
|
+
else
|
43
|
+
page.content
|
44
|
+
end
|
41
45
|
rescue Exception => e
|
42
46
|
ExceptionHelper.log_message "Error occurred while rendering partial #{filename} contained in #{self[:page].source_path}"
|
43
47
|
ExceptionHelper.log_backtrace e
|
@@ -5,7 +5,7 @@ layout: base
|
|
5
5
|
%h1 You're awestruct!
|
6
6
|
%p This site is all setup to use Bootstrap 3 with Awestruct.
|
7
7
|
%p
|
8
|
-
%a.btn.btn-primary.btn-lg{ :href=>'
|
8
|
+
%a.btn.btn-primary.btn-lg{ :href=>'https://awestruct.geihub.io', :role=>"button" }
|
9
9
|
%i.icon-info-sign.icon-white
|
10
10
|
Learn more »
|
11
11
|
|
@@ -16,14 +16,14 @@ layout: base
|
|
16
16
|
%p Awestruct is a framework for creating static HTML sites. It's inspired by the awesome Jekyll utility in the same genre.
|
17
17
|
%p Additionally, Awestruct integrates technologies such as Compass, Markdown and Haml.
|
18
18
|
%p
|
19
|
-
%a.btn{ :href=>'
|
19
|
+
%a.btn{ :href=>'https://awestruct.github.io' } View details »
|
20
20
|
.col-md-4
|
21
21
|
%h2 Goal
|
22
22
|
%p The goal of Awestruct is to make it trivially easy to bake out non-trivial static websites. In addition to providing template-driven site creation (using Haml), Awestruct provides facilities for easily priming the site creation with additional non-page data.
|
23
23
|
%p
|
24
|
-
%a.btn{ :href=>'
|
24
|
+
%a.btn{ :href=>'https://awestruct.github.io' } View details »
|
25
25
|
.col-md-4
|
26
26
|
%h2 Concept
|
27
27
|
%p The core concept of Awestruct is that of structures, specifically Ruby OpenStruct structures. The struct aspect allows arbitrary, schema-less data to be associated with a specific page or the entire site.
|
28
28
|
%p
|
29
|
-
%a.btn{ :href=>'
|
29
|
+
%a.btn{ :href=>'https://awestruct.github.io' } View details »
|
@@ -3,7 +3,7 @@ layout: base
|
|
3
3
|
---
|
4
4
|
.row
|
5
5
|
.large-12.columns
|
6
|
-
%h1 You're awestruct!
|
6
|
+
%h1 You're awestruct!
|
7
7
|
%hr
|
8
8
|
|
9
9
|
.row
|
@@ -11,24 +11,24 @@ layout: base
|
|
11
11
|
.panel
|
12
12
|
%h3 Get started
|
13
13
|
%p This site is all setup to use Foundation 4 with Awestruct.
|
14
|
-
%a.button{:href=>'
|
15
|
-
%a.button.secondary{:href=>'
|
14
|
+
%a.button{:href=>'https://foundation.zurb.com'} Check out Foundation 4
|
15
|
+
%a.button.secondary{:href=>'https://awestruct.github.io'} Check out Awestruct
|
16
16
|
|
17
17
|
.row
|
18
18
|
.large-4.columns
|
19
|
-
%h3 About
|
19
|
+
%h3 About
|
20
20
|
%p Awestruct is a framework for creating static HTML sites. It's inspired by the awesome Jekyll utility in the same genre. Additionally, Awestruct integrates technologies such as Compass, Markdown and Haml.
|
21
21
|
%p
|
22
|
-
%a.button{:href=>'
|
22
|
+
%a.button{:href=>'https://awestruct.github.io'} View details »
|
23
23
|
|
24
24
|
.large-4.columns
|
25
25
|
%h3 Goal
|
26
26
|
%p The goal of Awestruct is to make it trivially easy to bake out non-trivial static websites. In addition to providing template-driven site creation (using Haml), Awestruct provides facilities for easily priming the site creation with additional non-page data.
|
27
27
|
%p
|
28
|
-
%a.button{:href=>'
|
28
|
+
%a.button{:href=>'https://awestruct.github.io'} View details »
|
29
29
|
|
30
30
|
.large-4.columns
|
31
31
|
%h3 Concept
|
32
32
|
%p The core concept of Awestruct is that of structures, specifically Ruby OpenStruct structures. The struct aspect allows arbitrary, schema-less data to be associated with a specific page or the entire site.
|
33
33
|
%p
|
34
|
-
%a.button{:href=>'
|
34
|
+
%a.button{:href=>'https://awestruct.github.io'} View details »
|
@@ -5,7 +5,7 @@ layout: base
|
|
5
5
|
%h1 You're awestruct!
|
6
6
|
%p This site is all setup to Awestruct.
|
7
7
|
%p
|
8
|
-
%a.btn.btn-primary.btn-lg{ :href=>'
|
8
|
+
%a.btn.btn-primary.btn-lg{ :href=>'https://awestruct.github.io', :role=>"button" }
|
9
9
|
%i.icon-info-sign.icon-white
|
10
10
|
Learn more »
|
11
11
|
|
@@ -16,14 +16,14 @@ layout: base
|
|
16
16
|
%p Awestruct is a framework for creating static HTML sites. It's inspired by the awesome Jekyll utility in the same genre.
|
17
17
|
%p Additionally, Awestruct integrates technologies such as Compass, Markdown and Haml.
|
18
18
|
%p
|
19
|
-
%a.btn{ :href=>'
|
19
|
+
%a.btn{ :href=>'https://awestruct.github.io' } View details »
|
20
20
|
.col-md-4
|
21
21
|
%h2 Goal
|
22
22
|
%p The goal of Awestruct is to make it trivially easy to bake out non-trivial static websites. In addition to providing template-driven site creation (using Haml), Awestruct provides facilities for easily priming the site creation with additional non-page data.
|
23
23
|
%p
|
24
|
-
%a.btn{ :href=>'
|
24
|
+
%a.btn{ :href=>'https://awestruct.github.io' } View details »
|
25
25
|
.col-md-4
|
26
26
|
%h2 Concept
|
27
27
|
%p The core concept of Awestruct is that of structures, specifically Ruby OpenStruct structures. The struct aspect allows arbitrary, schema-less data to be associated with a specific page or the entire site.
|
28
28
|
%p
|
29
|
-
%a.btn{ :href=>'
|
29
|
+
%a.btn{ :href=>'https://awestruct.github.io' } View details »
|
@@ -1,8 +1,7 @@
|
|
1
1
|
require 'awestruct/util/exception_helper'
|
2
|
+
require 'awestruct/util/yaml_load'
|
2
3
|
require 'awestruct/handlers/base_handler'
|
3
4
|
|
4
|
-
require 'yaml'
|
5
|
-
|
6
5
|
module Awestruct
|
7
6
|
module Handlers
|
8
7
|
class FrontMatterHandler < BaseHandler
|
@@ -85,7 +84,7 @@ module Awestruct
|
|
85
84
|
end
|
86
85
|
|
87
86
|
begin
|
88
|
-
@front_matter = yaml_content.empty? ? {} : (
|
87
|
+
@front_matter = yaml_content.empty? ? {} : (Awestruct.yaml_load(yaml_content) || {})
|
89
88
|
rescue => e
|
90
89
|
ExceptionHelper.log_message "could not parse #{relative_source_path}"
|
91
90
|
ExceptionHelper.mark_failed
|
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'awestruct/handlers/base_handler'
|
2
|
-
require '
|
2
|
+
require 'awestruct/util/yaml_load'
|
3
3
|
|
4
4
|
module Awestruct
|
5
5
|
module Handlers
|
@@ -11,7 +11,7 @@ module Awestruct
|
|
11
11
|
|
12
12
|
def front_matter
|
13
13
|
return @front_matter if @front_matter
|
14
|
-
@front_matter =
|
14
|
+
@front_matter = Awestruct.yaml_load( delegate.raw_content )
|
15
15
|
@front_matter
|
16
16
|
end
|
17
17
|
|
data/lib/awestruct/version.rb
CHANGED
data/man/awestruct.adoc
CHANGED
@@ -122,11 +122,9 @@ RESOURCES
|
|
122
122
|
---------
|
123
123
|
Git source repository on GitHub: <**https://github.com/awestruct/awestruct**>
|
124
124
|
|
125
|
-
Project web site: <**
|
125
|
+
Project web site: <**https://awestruct.github.io**>
|
126
126
|
|
127
|
-
GitHub organization: <**
|
128
|
-
|
129
|
-
Mailinglist / forum: <**http://talk.awestruct.org**>
|
127
|
+
GitHub organization: <**https://github.com/awestruct**>
|
130
128
|
|
131
129
|
|
132
130
|
COPYING
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awestruct
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob McWhirter
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2023-
|
16
|
+
date: 2023-04-16 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: haml
|
@@ -42,9 +42,6 @@ dependencies:
|
|
42
42
|
- - ">="
|
43
43
|
- !ruby/object:Gem::Version
|
44
44
|
version: 1.5.2
|
45
|
-
- - "<"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '3.0'
|
48
45
|
type: :runtime
|
49
46
|
prerelease: false
|
50
47
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -52,9 +49,6 @@ dependencies:
|
|
52
49
|
- - ">="
|
53
50
|
- !ruby/object:Gem::Version
|
54
51
|
version: 1.5.2
|
55
|
-
- - "<"
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
version: '3.0'
|
58
52
|
- !ruby/object:Gem::Dependency
|
59
53
|
name: tilt
|
60
54
|
requirement: !ruby/object:Gem::Requirement
|
@@ -605,10 +599,13 @@ files:
|
|
605
599
|
- spec/support/test-data/simple-file.txt
|
606
600
|
- spec/support/test-data/stylesheets/screen.css
|
607
601
|
- spec/support/test-data/subdir/index.html
|
608
|
-
homepage:
|
602
|
+
homepage: https://awestruct.github.io
|
609
603
|
licenses:
|
610
604
|
- MIT
|
611
|
-
metadata:
|
605
|
+
metadata:
|
606
|
+
bug_tracker_uri: https://github.com/awestruct/awestruct/issues
|
607
|
+
changelog_uri: https://github.com/awestruct/awestruct/releases
|
608
|
+
source_code_uri: https://github.com/awestruct/awestruct
|
612
609
|
post_install_message:
|
613
610
|
rdoc_options:
|
614
611
|
- "--charset=UTF-8"
|