awestruct 0.6.0 → 0.6.1
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.
- checksums.yaml +4 -4
- data/awestruct.gemspec +2 -2
- data/lib/awestruct/cli/init.rb +1 -1
- data/lib/awestruct/frameworks/bootstrap/base_layout.html.haml +0 -2
- data/lib/awestruct/frameworks/none/base_index.html.haml +29 -0
- data/lib/awestruct/frameworks/none/base_layout.html.haml +28 -0
- data/lib/awestruct/version.rb +1 -1
- data/spec/awestruct/cli/init_spec.rb +4 -0
- metadata +10 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cba6d723e3f0004e825f80ea48307f55a87f3377
|
|
4
|
+
data.tar.gz: e0c2fb8c91294a8af0e5a54e8b81fc4bcbf25bcb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8c9fed3b23b687e4c5b8254258cf4595d4d63baa59394e13a3e820c0b955f530b43cdcfa23114543ae3a72aff8eefcb2f467807c4c05cf715b88c55de2b0874b
|
|
7
|
+
data.tar.gz: f95216f681a0323168edba565617a2e3e45699ca490761e7c2367fe17e6505cdbe72d4e113130131a7d65399ae7acc1f037c25a35bd48911c85e3d5b7d7bb7f4
|
data/awestruct.gemspec
CHANGED
|
@@ -4,7 +4,7 @@ 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 = '2020-
|
|
7
|
+
s.date = '2020-05-24'
|
|
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']
|
|
@@ -35,7 +35,7 @@ Compass and sass are no longer hard dependencies. You'll need too add them on yo
|
|
|
35
35
|
EOS
|
|
36
36
|
|
|
37
37
|
s.add_dependency 'haml', '>= 4.0.5', '< 6.0'
|
|
38
|
-
s.add_dependency 'asciidoctor', '
|
|
38
|
+
s.add_dependency 'asciidoctor', '>= 1.5.2', '<3.0'
|
|
39
39
|
s.add_dependency 'tilt', '~> 2.0', '>= 2.0.1'
|
|
40
40
|
s.add_dependency 'mime-types', '~> 3.0'
|
|
41
41
|
s.add_dependency 'rest-client', '~> 2.0'
|
data/lib/awestruct/cli/init.rb
CHANGED
|
@@ -9,8 +9,6 @@
|
|
|
9
9
|
padding-top: 60px;
|
|
10
10
|
}
|
|
11
11
|
%link{ :rel=>'stylesheet', :type=>'text/css', :href=>"#{site.base_url}/stylesheets/styles.css" }
|
|
12
|
-
/[if lt IE 9]
|
|
13
|
-
%script{ :type=>'text/javascript', :src=>'//html5shim.googlecode.com/svn/trunk/html5.js' }
|
|
14
12
|
%body
|
|
15
13
|
%nav.navbar.navbar-default.navbar-fixed-top{:role=>'navigation'}
|
|
16
14
|
.container-fluid
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: base
|
|
3
|
+
---
|
|
4
|
+
.jumbotron
|
|
5
|
+
%h1 You're awestruct!
|
|
6
|
+
%p This site is all setup to Awestruct.
|
|
7
|
+
%p
|
|
8
|
+
%a.btn.btn-primary.btn-lg{ :href=>'http://awestruct.org', :role=>"button" }
|
|
9
|
+
%i.icon-info-sign.icon-white
|
|
10
|
+
Learn more »
|
|
11
|
+
|
|
12
|
+
.container-fluid
|
|
13
|
+
.row
|
|
14
|
+
.col-md-4
|
|
15
|
+
%h2 About
|
|
16
|
+
%p Awestruct is a framework for creating static HTML sites. It's inspired by the awesome Jekyll utility in the same genre.
|
|
17
|
+
%p Additionally, Awestruct integrates technologies such as Compass, Markdown and Haml.
|
|
18
|
+
%p
|
|
19
|
+
%a.btn{ :href=>'http://awestruct.org' } View details »
|
|
20
|
+
.col-md-4
|
|
21
|
+
%h2 Goal
|
|
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
|
+
%p
|
|
24
|
+
%a.btn{ :href=>'http://awestruct.org' } View details »
|
|
25
|
+
.col-md-4
|
|
26
|
+
%h2 Concept
|
|
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
|
+
%p
|
|
29
|
+
%a.btn{ :href=>'http://awestruct.org' } View details »
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
!!!5
|
|
2
|
+
%html
|
|
3
|
+
%head
|
|
4
|
+
%meta{ :charset=>'utf-8' }
|
|
5
|
+
%title An awesome site
|
|
6
|
+
%meta{ :name=>'viewport', :content=>'width=device-width, initial-scale=1.0' }
|
|
7
|
+
:css
|
|
8
|
+
body {
|
|
9
|
+
padding-top: 60px;
|
|
10
|
+
}
|
|
11
|
+
%link{ :rel=>'stylesheet', :type=>'text/css', :href=>"#{site.base_url}/stylesheets/styles.css" }
|
|
12
|
+
%body
|
|
13
|
+
%nav.navbar.navbar-default.navbar-fixed-top{:role=>'navigation'}
|
|
14
|
+
.container-fluid
|
|
15
|
+
.navbar-header
|
|
16
|
+
%a.navbar-brand{ :href=>"#{site.base_url}" } #{site.name}
|
|
17
|
+
|
|
18
|
+
%ul.nav.navbar-nav.navbar-right
|
|
19
|
+
%li
|
|
20
|
+
%a{ :href=>"#{site.base_url}" } Home
|
|
21
|
+
|
|
22
|
+
.container
|
|
23
|
+
~ content
|
|
24
|
+
%hr
|
|
25
|
+
%footer
|
|
26
|
+
%p © #{site.org} #{Date.today.year}
|
|
27
|
+
-# Uncomment script tags (remove leading -#) when you're ready to use behaviors
|
|
28
|
+
-# %script{ :type=>'text/javascript', :src=>'//cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js' }
|
data/lib/awestruct/version.rb
CHANGED
|
@@ -11,6 +11,10 @@ describe Awestruct::CLI::Init do
|
|
|
11
11
|
FileUtils.rm_rf 'spec/support/clean_init'
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
it "should not fail during init without framework" do
|
|
15
|
+
init = Awestruct::CLI::Init.new('spec/support/clean_init')
|
|
16
|
+
expect(init.run).to eql true
|
|
17
|
+
end
|
|
14
18
|
it "should not fail during init with foundation" do
|
|
15
19
|
init = Awestruct::CLI::Init.new('spec/support/clean_init', 'foundation', true)
|
|
16
20
|
expect(init.run).to eql true
|
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.1
|
|
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: 2020-
|
|
16
|
+
date: 2020-05-24 00:00:00.000000000 Z
|
|
17
17
|
dependencies:
|
|
18
18
|
- !ruby/object:Gem::Dependency
|
|
19
19
|
name: haml
|
|
@@ -39,22 +39,22 @@ dependencies:
|
|
|
39
39
|
name: asciidoctor
|
|
40
40
|
requirement: !ruby/object:Gem::Requirement
|
|
41
41
|
requirements:
|
|
42
|
-
- - "~>"
|
|
43
|
-
- !ruby/object:Gem::Version
|
|
44
|
-
version: '1.5'
|
|
45
42
|
- - ">="
|
|
46
43
|
- !ruby/object:Gem::Version
|
|
47
44
|
version: 1.5.2
|
|
45
|
+
- - "<"
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '3.0'
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
|
-
- - "~>"
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version: '1.5'
|
|
55
52
|
- - ">="
|
|
56
53
|
- !ruby/object:Gem::Version
|
|
57
54
|
version: 1.5.2
|
|
55
|
+
- - "<"
|
|
56
|
+
- !ruby/object:Gem::Version
|
|
57
|
+
version: '3.0'
|
|
58
58
|
- !ruby/object:Gem::Dependency
|
|
59
59
|
name: tilt
|
|
60
60
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -413,6 +413,8 @@ files:
|
|
|
413
413
|
- lib/awestruct/frameworks/foundation/base_index.html.haml
|
|
414
414
|
- lib/awestruct/frameworks/foundation/base_layout.html.haml
|
|
415
415
|
- lib/awestruct/frameworks/foundation/humans.txt
|
|
416
|
+
- lib/awestruct/frameworks/none/base_index.html.haml
|
|
417
|
+
- lib/awestruct/frameworks/none/base_layout.html.haml
|
|
416
418
|
- lib/awestruct/handler_chain.rb
|
|
417
419
|
- lib/awestruct/handler_chains.rb
|
|
418
420
|
- lib/awestruct/handlers/asciidoctor_handler.rb
|