awestruct 0.6.0.RC1 → 0.6.0.alpha1

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: '0399037b69ee735bc1afbad093fdc95faa02c153'
4
- data.tar.gz: 5bd7ff867e171dd6d96ff218438a5ef0e5b66f53
3
+ metadata.gz: 6c6be05537489d0dde74527315af3f2490df09a9
4
+ data.tar.gz: ac53c8b5c359f8214743bddab97e0af09fbe13da
5
5
  SHA512:
6
- metadata.gz: ab3587a8d9d0bf6d8c129476e2ae598452e5952ba0bea7dfabd603fcd8732974da8db6742864d6fa167bd339d7db73a642b01cf4b23fb5a2d0283d32feae2c12
7
- data.tar.gz: 9bd1ab9df76ea3c7fb2feb6ef1b4822fa2c19c2f3b52544dc0fbdbf72ad94a6b4eadeba6d482f533868adfcd3c4714473eabed9db0ee328c0f0fc8d32048cbd0
6
+ metadata.gz: 3aef7394e9c084710473ad3537f3ce9b0211e9defa04174341d4c14010c1a71bd1ece132c28516a0e8bc09e88aa53778d46a200c9782cd08e7b94b96bec3e6ed
7
+ data.tar.gz: 36508eb8d76bf9c6c94306242ffe822affadebae953490d683241595946c48e152899084405fcbed6efa8034f12f270c8ebd8b468e664b20680ad2b5401df439
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
1
  source 'https://rubygems.org'
2
- ruby '>= 2.4.0'
2
+ ruby '~> 2.4.0'
3
3
 
4
4
  group :development do
5
5
  gem 'hashery', '~> 2.1.1'
@@ -1,21 +1,18 @@
1
- MIT License
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 deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
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 all
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 THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
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
- # Awestruct
2
- [![Gem](https://img.shields.io/gem/v/awestruct)](https://rubygems.org/gems/awestruct)
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)
1
+ [![Build Status](https://secure.travis-ci.org/awestruct/awestruct.png)](http://travis-ci.org/awestruct/awestruct)
5
2
 
6
- ## Requirements
3
+ [![Build Status](https://buildhive.cloudbees.com/job/awestruct/job/awestruct/badge/icon)](https://buildhive.cloudbees.com/job/awestruct/job/awestruct/)
7
4
 
8
- Ruby 2.4 or later
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
- ## License
9
+ # License
19
10
 
20
11
  Copyright (c) 2010-2014 Bob McWhirter and contributors (see git log)
21
12
 
@@ -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-01-21'
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/* man/* spec/* README* LICENSE* *.gemspec *file`.split("\0")
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']
@@ -42,7 +42,8 @@ asciidoctor:
42
42
  textile:
43
43
  :no_span_caps: true
44
44
 
45
- generation: {}
45
+ generation:
46
+ :in_threads: <%= Parallel.processor_count * 10 %>
46
47
 
47
48
  profiles:
48
49
  development:
@@ -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}\/(2[0-9]{3})-([01][0-9])-([0123][0-9])-([^.]+)\..*$/ )
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}\/(2[0-9]{3})-([01][0-9])-([0123][0-9])-([^.]+)\..*$/ )
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 || path, '.js' )
24
+ File.basename( relative_source_path, '.js' )
25
25
  end
26
26
 
27
27
  def output_filename
28
- File.basename( relative_source_path || path)
28
+ File.basename( relative_source_path )
29
29
  end
30
30
 
31
31
  def output_extension
@@ -21,7 +21,7 @@ module Awestruct
21
21
  end
22
22
 
23
23
  def simple_name
24
- File.basename( relative_source_path || path, '.redirect' )
24
+ File.basename( relative_source_path, '.redirect' )
25
25
  end
26
26
 
27
27
  def output_filename
@@ -1,3 +1,3 @@
1
1
  module Awestruct
2
- VERSION = '0.6.0.RC1'
2
+ VERSION = '0.6.0.alpha1'
3
3
  end
@@ -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.RC1
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: 2020-01-21 00:00:00.000000000 Z
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
@@ -1,6 +0,0 @@
1
- doctype html
2
- html
3
- head
4
- title Hello
5
- body
6
- = content
@@ -1,7 +0,0 @@
1
- ---
2
- layout: base
3
- ---
4
- p#intentional-syntax-error
5
- - if 2 > 4:
6
- = 'hi'
7
-