awestruct 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a08d19ea467620afb84c0396162767bb2df5c1d
4
- data.tar.gz: 0e7d000b9298c47c01d2c07c228736a68de3f8bf
3
+ metadata.gz: cba6d723e3f0004e825f80ea48307f55a87f3377
4
+ data.tar.gz: e0c2fb8c91294a8af0e5a54e8b81fc4bcbf25bcb
5
5
  SHA512:
6
- metadata.gz: ebcae9f08b9ad9687eacfff2dad6589a0af5bbc3861f2336e3021c4bd82db7e890301169fad6dd3f0f3e24a7c0bffa2c9d50213e806d48ed9081541631259487
7
- data.tar.gz: e05a713a980aabc1bc895bef7c6a25baa5a6af3f0bdd7135b535532823256b03b11965481a025a3139875f658aaba1bc74c10ac288ea8914b7dbd23d2a7831a0
6
+ metadata.gz: 8c9fed3b23b687e4c5b8254258cf4595d4d63baa59394e13a3e820c0b955f530b43cdcfa23114543ae3a72aff8eefcb2f467807c4c05cf715b88c55de2b0874b
7
+ data.tar.gz: f95216f681a0323168edba565617a2e3e45699ca490761e7c2367fe17e6505cdbe72d4e113130131a7d65399ae7acc1f037c25a35bd48911c85e3d5b7d7bb7f4
@@ -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-02-20'
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', '~> 1.5', '>= 1.5.2'
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'
@@ -19,7 +19,7 @@ module Awestruct
19
19
  mkdir('stylesheets')
20
20
  }
21
21
 
22
- def initialize(dir = Dir.pwd, framework = 'compass', scaffold = true)
22
+ def initialize(dir = Dir.pwd, framework = 'none', scaffold = true)
23
23
  @dir = dir
24
24
  @framework = framework
25
25
  @scaffold = scaffold
@@ -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 &raquo;
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 &raquo;
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 &raquo;
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 &raquo;
@@ -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 &copy; #{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' }
@@ -1,3 +1,3 @@
1
1
  module Awestruct
2
- VERSION = '0.6.0'
2
+ VERSION = '0.6.1'
3
3
  end
@@ -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.0
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-02-20 00:00:00.000000000 Z
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