awestruct 0.6.0.RC1 → 0.6.0.alpha1
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/Gemfile +1 -1
- data/LICENSE.txt +11 -14
- data/README.md +4 -13
- data/awestruct.gemspec +2 -2
- data/lib/awestruct/config/default-site.yml +2 -1
- data/lib/awestruct/engine.rb +0 -1
- data/lib/awestruct/extensions/posts.rb +2 -2
- data/lib/awestruct/handlers/javascript_handler.rb +2 -2
- data/lib/awestruct/handlers/redirect_handler.rb +1 -1
- data/lib/awestruct/version.rb +1 -1
- data/spec/awestruct/engine_spec.rb +0 -28
- metadata +3 -7
- data/spec/support/test-data/engine-generate-syntax-errors/_config/site.yml +0 -26
- data/spec/support/test-data/engine-generate-syntax-errors/_ext/pipeline.rb +0 -8
- data/spec/support/test-data/engine-generate-syntax-errors/_layouts/base.html.slim +0 -6
- data/spec/support/test-data/engine-generate-syntax-errors/index.html.slim +0 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6c6be05537489d0dde74527315af3f2490df09a9
|
|
4
|
+
data.tar.gz: ac53c8b5c359f8214743bddab97e0af09fbe13da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3aef7394e9c084710473ad3537f3ce9b0211e9defa04174341d4c14010c1a71bd1ece132c28516a0e8bc09e88aa53778d46a200c9782cd08e7b94b96bec3e6ed
|
|
7
|
+
data.tar.gz: 36508eb8d76bf9c6c94306242ffe822affadebae953490d683241595946c48e152899084405fcbed6efa8034f12f270c8ebd8b468e664b20680ad2b5401df439
|
data/Gemfile
CHANGED
data/LICENSE.txt
CHANGED
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2010-2019 Bob McWhirter and contributors (see git log)
|
|
1
|
+
Copyright (c) 2010-2014 Bob McWhirter and contributors (see git log)
|
|
4
2
|
|
|
5
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to
|
|
7
|
-
in the Software without restriction, including without limitation the
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
4
|
+
of this software and associated documentation files (the "Software"), to
|
|
5
|
+
deal in the Software without restriction, including without limitation the
|
|
6
|
+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
7
|
+
sell copies of the Software, and to permit persons to whom the Software is
|
|
10
8
|
furnished to do so, subject to the following conditions:
|
|
11
9
|
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
copies or substantial portions of the Software.
|
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
|
11
|
+
all copies or substantial portions of the Software.
|
|
14
12
|
|
|
15
13
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
14
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
18
|
-
AUTHORS
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
SOFTWARE.
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
16
|
+
THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
17
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
18
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
|
@@ -1,21 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
[](https://rubygems.org/gems/awestruct)
|
|
3
|
-
[](https://rubygems.org/gems/awestruct)
|
|
4
|
-
[](https://travis-ci.org/awestruct/awestruct)
|
|
1
|
+
[](http://travis-ci.org/awestruct/awestruct)
|
|
5
2
|
|
|
6
|
-
|
|
3
|
+
[](https://buildhive.cloudbees.com/job/awestruct/job/awestruct/)
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
## Getting started
|
|
11
|
-
|
|
12
|
-
Install Awestruct using `gem install awestruct`. Then you can initialize an Awestruct projet by running `awestruct --init`. To generate the static site use `awestruct generate`.
|
|
13
|
-
|
|
14
|
-
## For more information
|
|
5
|
+
# For more information
|
|
15
6
|
|
|
16
7
|
Please see the complete site at <http://awestruct.org/>.
|
|
17
8
|
|
|
18
|
-
|
|
9
|
+
# License
|
|
19
10
|
|
|
20
11
|
Copyright (c) 2010-2014 Bob McWhirter and contributors (see git log)
|
|
21
12
|
|
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 = '
|
|
7
|
+
s.date = '2018-03-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']
|
|
@@ -23,7 +23,7 @@ spec = Gem::Specification.new do |s|
|
|
|
23
23
|
s.rdoc_options = ['--charset=UTF-8']
|
|
24
24
|
s.extra_rdoc_files = 'README.md'
|
|
25
25
|
|
|
26
|
-
s.files = `git ls-files -z -- lib
|
|
26
|
+
s.files = `git ls-files -z -- {lib,man,spec}/* {README,LICENSE}* *{.gemspec,file}`.split("\0")
|
|
27
27
|
s.test_files = s.files.select { |path| path =~ /^spec\/.*_spec\.rb/ }
|
|
28
28
|
s.executables = `git ls-files -z -- bin/*`.split("\0").map {|f| File.basename f }
|
|
29
29
|
s.require_paths = ['lib']
|
data/lib/awestruct/engine.rb
CHANGED
|
@@ -435,7 +435,6 @@ module Awestruct
|
|
|
435
435
|
end
|
|
436
436
|
rescue Exception => e
|
|
437
437
|
Awestruct::ExceptionHelper.log_building_error e, page.relative_source_path
|
|
438
|
-
return Awestruct::ExceptionHelper::EXITCODES[:generation_error]
|
|
439
438
|
ensure
|
|
440
439
|
return Awestruct::ExceptionHelper::EXITCODES[:generation_error] if c.include? 'Backtrace:'
|
|
441
440
|
end
|
|
@@ -39,10 +39,10 @@ module Awestruct
|
|
|
39
39
|
day = sprintf( "%02d", date.day )
|
|
40
40
|
page.date = date
|
|
41
41
|
slug = $1
|
|
42
|
-
if ( page.relative_source_path =~ /^#{@path_prefix}\/(
|
|
42
|
+
if ( page.relative_source_path =~ /^#{@path_prefix}\/(20[01][0-9])-([01][0-9])-([0123][0-9])-([^.]+)\..*$/ )
|
|
43
43
|
slug = $4
|
|
44
44
|
end
|
|
45
|
-
elsif ( page.relative_source_path =~ /^#{@path_prefix}\/(
|
|
45
|
+
elsif ( page.relative_source_path =~ /^#{@path_prefix}\/(20[01][0-9])-([01][0-9])-([0123][0-9])-([^.]+)\..*$/ )
|
|
46
46
|
year = $1
|
|
47
47
|
month = $2
|
|
48
48
|
day = $3
|
|
@@ -21,11 +21,11 @@ module Awestruct
|
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
def simple_name
|
|
24
|
-
File.basename( relative_source_path
|
|
24
|
+
File.basename( relative_source_path, '.js' )
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
def output_filename
|
|
28
|
-
File.basename( relative_source_path
|
|
28
|
+
File.basename( relative_source_path )
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
def output_extension
|
data/lib/awestruct/version.rb
CHANGED
|
@@ -217,34 +217,6 @@ describe Awestruct::Engine do
|
|
|
217
217
|
end
|
|
218
218
|
end
|
|
219
219
|
|
|
220
|
-
it "should exit unsuccessfully if page syntax is invalid, using threads" do
|
|
221
|
-
output_dir = Dir.mktmpdir 'engine-generate-with-errors'
|
|
222
|
-
|
|
223
|
-
begin
|
|
224
|
-
Logging.init :trace, :debug, :verbose, :info, :warn, :error, :fatal
|
|
225
|
-
$LOG = Logging.logger.new 'awestruct'
|
|
226
|
-
$LOG.add_appenders(
|
|
227
|
-
Logging.appenders.string_io({level: :info, layout: Logging.layouts.pattern(pattern: "%m\n"),
|
|
228
|
-
color_scheme: :default})
|
|
229
|
-
)
|
|
230
|
-
$LOG.level = :debug
|
|
231
|
-
|
|
232
|
-
opts = Awestruct::CLI::Options.new
|
|
233
|
-
opts.source_dir = test_data_dir 'engine-generate-syntax-errors'
|
|
234
|
-
opts.output_dir = output_dir
|
|
235
|
-
config = Awestruct::Config.new( opts )
|
|
236
|
-
engine = Awestruct::Engine.new(config)
|
|
237
|
-
begin
|
|
238
|
-
engine.run('development', 'http://localhost:4242', 'http://localhost:4242')
|
|
239
|
-
fail('Expected generation error')
|
|
240
|
-
rescue SystemExit => e
|
|
241
|
-
e.status.should eql Awestruct::ExceptionHelper::EXITCODES[:generation_error]
|
|
242
|
-
end
|
|
243
|
-
ensure
|
|
244
|
-
FileUtils.remove_entry_secure output_dir, true
|
|
245
|
-
end
|
|
246
|
-
end
|
|
247
|
-
|
|
248
220
|
it "should exit unsuccessfully if generate page output fails, using processes" do
|
|
249
221
|
output_dir = Dir.mktmpdir 'engine-generate-with-errors'
|
|
250
222
|
|
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.0.alpha1
|
|
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:
|
|
16
|
+
date: 2018-03-24 00:00:00.000000000 Z
|
|
17
17
|
dependencies:
|
|
18
18
|
- !ruby/object:Gem::Dependency
|
|
19
19
|
name: haml
|
|
@@ -511,10 +511,6 @@ files:
|
|
|
511
511
|
- spec/support/test-data/engine-generate-no-errors/_ext/pipeline.rb
|
|
512
512
|
- spec/support/test-data/engine-generate-no-errors/_layouts/base.html.slim
|
|
513
513
|
- spec/support/test-data/engine-generate-no-errors/index.html.slim
|
|
514
|
-
- spec/support/test-data/engine-generate-syntax-errors/_config/site.yml
|
|
515
|
-
- spec/support/test-data/engine-generate-syntax-errors/_ext/pipeline.rb
|
|
516
|
-
- spec/support/test-data/engine-generate-syntax-errors/_layouts/base.html.slim
|
|
517
|
-
- spec/support/test-data/engine-generate-syntax-errors/index.html.slim
|
|
518
514
|
- spec/support/test-data/engine-generate-with-errors/_config/site.yml
|
|
519
515
|
- spec/support/test-data/engine-generate-with-errors/_ext/pipeline.rb
|
|
520
516
|
- spec/support/test-data/engine-generate-with-errors/_layouts/base.html.slim
|
|
@@ -628,7 +624,7 @@ requirements:
|
|
|
628
624
|
Haml and Markdown filters are touchy things. Redcarpet or Rdiscount work well if you're running on MRI. JRuby should be using haml 4.0.0+ with Kramdown.
|
|
629
625
|
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.
|
|
630
626
|
rubyforge_project: awestruct
|
|
631
|
-
rubygems_version: 2.6.1
|
|
627
|
+
rubygems_version: 2.6.14.1
|
|
632
628
|
signing_key:
|
|
633
629
|
specification_version: 4
|
|
634
630
|
summary: Static site baking and publishing tool
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
profiles:
|
|
2
|
-
development:
|
|
3
|
-
show_drafts: false
|
|
4
|
-
cook: microwave
|
|
5
|
-
base_url: http://localhost:4242
|
|
6
|
-
production:
|
|
7
|
-
show_drafts: true
|
|
8
|
-
cook: oven
|
|
9
|
-
asciidoctor:
|
|
10
|
-
:eruby: erb
|
|
11
|
-
:attributes:
|
|
12
|
-
imagesdir: /img
|
|
13
|
-
staging:
|
|
14
|
-
compass_line_comments: off
|
|
15
|
-
compass_output_style: :compact
|
|
16
|
-
base_url: http://stage.example.com
|
|
17
|
-
|
|
18
|
-
title: Awestruction!
|
|
19
|
-
intl_name: Internéšnl
|
|
20
|
-
|
|
21
|
-
asciidoctor:
|
|
22
|
-
:safe: 0
|
|
23
|
-
:eruby: erubis
|
|
24
|
-
:attributes:
|
|
25
|
-
imagesdir: /assets/images
|
|
26
|
-
idprefix: ''
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
require 'awestruct/extensions/pipeline'
|
|
2
|
-
|
|
3
|
-
Awestruct::Extensions::Pipeline.new do
|
|
4
|
-
# extension Awestruct::Extensions::Posts.new '/news'
|
|
5
|
-
# extension Awestruct::Extensions::Indexifier.new
|
|
6
|
-
# Indexifier *must* come before Atomizer
|
|
7
|
-
# extension Awestruct::Extensions::Atomizer.new :posts, '/feed.atom'
|
|
8
|
-
end
|