awestruct 0.6.5 → 0.6.7

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
  SHA256:
3
- metadata.gz: 2e84d5fa1a01fd5a6548655e9252162b45fca40855ee4776af94ce792d68ad83
4
- data.tar.gz: fbd69003ad67d023eebea7651f43fa8f27fe94ddf1afb4fe38ad1cbe7332e921
3
+ metadata.gz: 7ea889a6bb19a3b97e492244a460a1cc38a0623fb3edcfc52f66962590296862
4
+ data.tar.gz: 0e01df0d65eeea46003888291e158dacfb1082b93b1d0455b3dc6179dd61ab10
5
5
  SHA512:
6
- metadata.gz: c3ed669aca3f76369a286745da76538004ca3cfd186ee204af544c10d8b61829de267f6926f4c392feeda4918b47fb44ed4ad62dd40f694529b7f2f90ee8e93e
7
- data.tar.gz: 5b81de54bcb6690ef458657f1a1adfdd41e6224c6690650ca90697b218b48d53ab8fb319bd7f1da5f69aaa256270ea8a45821f419d9f581af880d6656ae5d69c
6
+ metadata.gz: 332b3ad1276ea7c24181878d2a38d825110ca9126b5dee25b09266fc3dc3a92dd549970b735a99e1ee81a46fb83f044035dd52041701af0b809ea414563ae1fd
7
+ data.tar.gz: 5be5f1ad75ee0aeaccb9658a65f062943728c3ea5124488bd95809dedeb19dc9605374db2cae4a62bf7071ce0b727cc2788ab38a67247ed65abc7a227718625a
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Awestruct
2
2
  [![Gem](https://img.shields.io/gem/v/awestruct)](https://rubygems.org/gems/awestruct)
3
3
  [![Gem](https://img.shields.io/gem/dt/awestruct?color=blue)](https://rubygems.org/gems/awestruct)
4
- [![Build Status](https://secure.travis-ci.org/awestruct/awestruct.png)](https://travis-ci.org/awestruct/awestruct)
5
4
 
6
5
  ## Requirements
7
6
 
@@ -13,11 +12,11 @@ Install Awestruct using `gem install awestruct`. Then you can initialize an Awes
13
12
 
14
13
  ## For more information
15
14
 
16
- Please see the complete site at <http://awestruct.org/>.
15
+ Please see the complete site at <https://awestruct.github.io/>.
17
16
 
18
17
  ## License
19
18
 
20
- Copyright (c) 2010-2014 Bob McWhirter and contributors (see git log)
19
+ Copyright (c) 2010-2024 Bob McWhirter and contributors (see git log)
21
20
 
22
21
  Permission is hereby granted, free of charge, to any person obtaining a copy
23
22
  of this software and associated documentation files (the "Software"), to
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-02-07'
7
+ s.date = '2024-01-02'
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 = 'http://awestruct.org'
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 = `git ls-files -z -- lib/* man/* spec/* README* LICENSE* *.gemspec *file`.split("\0")
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 = `git ls-files -z -- bin/*`.split("\0").map {|f| File.basename f }
29
+ s.executables = Dir.glob("bin/*").map {|f| File.basename f }
26
30
  s.require_paths = ['lib']
27
31
 
28
32
  s.requirements = <<-EOS
@@ -31,7 +35,7 @@ Haml and Markdown filters are touchy things. Redcarpet or Rdiscount work well if
31
35
  Compass and sass are no longer hard dependencies. You'll need too add them on your own should you want them. We also should be able to work with sassc.
32
36
  EOS
33
37
 
34
- s.add_dependency 'haml', '>= 4.0.5'
38
+ s.add_dependency 'haml', '>= 4.0.5', '< 6.0'
35
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'
@@ -84,7 +84,9 @@ module Awestruct
84
84
  else
85
85
  true
86
86
  end
87
- rescue
87
+ rescue => e
88
+ $LOG.fatal "Caught exception; exiting"
89
+ $LOG.fatal e
88
90
  @success = false
89
91
  false
90
92
  end
@@ -161,7 +161,7 @@ module Awestruct
161
161
 
162
162
  opts.on_tail("-v", "--version", "Display the version") do
163
163
  puts "Awestruct: #{Awestruct::VERSION}"
164
- puts "http://awestruct.org/"
164
+ puts "https://awestruct.github.io/"
165
165
  exit
166
166
  end
167
167
  end
@@ -1,8 +1,3 @@
1
- require 'shellwords'
2
- require 'fileutils'
3
- require 'htmlcompressor'
4
- require 'uglifier'
5
-
6
1
  ##
7
2
  # Awestruct:Extensions:Minify is a transformer that minimizes JavaScript, CSS and HTML files.
8
3
  # The transform runs on the rendered stream before it's written to the output path.
@@ -57,6 +52,11 @@ module Awestruct
57
52
 
58
53
  def transform(site, page, input)
59
54
  if site.minify
55
+ require 'shellwords'
56
+ require 'fileutils'
57
+ require 'htmlcompressor'
58
+ require 'uglifier'
59
+
60
60
  ext = File.extname(page.output_path)
61
61
  if !ext.empty?
62
62
  ext_sym = ext[1..-1].to_sym
@@ -37,7 +37,11 @@ module Awestruct
37
37
  end
38
38
 
39
39
  begin
40
- page.content
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=>'http://awestruct.org', :role=>"button" }
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 &raquo;
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=>'http://awestruct.org' } View details &raquo;
19
+ %a.btn{ :href=>'https://awestruct.github.io' } View details &raquo;
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=>'http://awestruct.org' } View details &raquo;
24
+ %a.btn{ :href=>'https://awestruct.github.io' } View details &raquo;
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=>'http://awestruct.org' } View details &raquo;
29
+ %a.btn{ :href=>'https://awestruct.github.io' } View details &raquo;
@@ -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=>'http://foundation.zurb.com'} Check out Foundation 4
15
- %a.button.secondary{:href=>'http://awestruct.org'} Check out Awestruct
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=>'http://awestruct.org'} View details &raquo;
22
+ %a.button{:href=>'https://awestruct.github.io'} View details &raquo;
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=>'http://awestruct.org'} View details &raquo;
28
+ %a.button{:href=>'https://awestruct.github.io'} View details &raquo;
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=>'http://awestruct.org'} View details &raquo;
34
+ %a.button{:href=>'https://awestruct.github.io'} View details &raquo;
@@ -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=>'http://awestruct.org', :role=>"button" }
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 &raquo;
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=>'http://awestruct.org' } View details &raquo;
19
+ %a.btn{ :href=>'https://awestruct.github.io' } View details &raquo;
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=>'http://awestruct.org' } View details &raquo;
24
+ %a.btn{ :href=>'https://awestruct.github.io' } View details &raquo;
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=>'http://awestruct.org' } View details &raquo;
29
+ %a.btn{ :href=>'https://awestruct.github.io' } View details &raquo;
@@ -1,3 +1,3 @@
1
1
  module Awestruct
2
- VERSION = '0.6.5'
2
+ VERSION = '0.6.7'
3
3
  end
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: <**http://awestruct.org**>
125
+ Project web site: <**https://awestruct.github.io**>
126
126
 
127
- GitHub organization: <**http://github.com/awestruct**>
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.5
4
+ version: 0.6.7
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-02-07 00:00:00.000000000 Z
16
+ date: 2024-01-02 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: haml
@@ -22,6 +22,9 @@ dependencies:
22
22
  - - ">="
23
23
  - !ruby/object:Gem::Version
24
24
  version: 4.0.5
25
+ - - "<"
26
+ - !ruby/object:Gem::Version
27
+ version: '6.0'
25
28
  type: :runtime
26
29
  prerelease: false
27
30
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,6 +32,9 @@ dependencies:
29
32
  - - ">="
30
33
  - !ruby/object:Gem::Version
31
34
  version: 4.0.5
35
+ - - "<"
36
+ - !ruby/object:Gem::Version
37
+ version: '6.0'
32
38
  - !ruby/object:Gem::Dependency
33
39
  name: asciidoctor
34
40
  requirement: !ruby/object:Gem::Requirement
@@ -593,10 +599,13 @@ files:
593
599
  - spec/support/test-data/simple-file.txt
594
600
  - spec/support/test-data/stylesheets/screen.css
595
601
  - spec/support/test-data/subdir/index.html
596
- homepage: http://awestruct.org
602
+ homepage: https://awestruct.github.io
597
603
  licenses:
598
604
  - MIT
599
- 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
600
609
  post_install_message:
601
610
  rdoc_options:
602
611
  - "--charset=UTF-8"