awestruct 0.5.4 → 0.5.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/awestruct.gemspec +1 -1
- data/lib/awestruct/cli/auto.rb +2 -1
- data/lib/awestruct/compass/default_configuration.rb +57 -34
- data/lib/awestruct/config/default-site.yml +7 -0
- data/lib/awestruct/dependencies.rb +0 -3
- data/lib/awestruct/engine.rb +43 -49
- data/lib/awestruct/extensions/partial.rb +23 -8
- data/lib/awestruct/handlers/base_tilt_handler.rb +12 -6
- data/lib/awestruct/page.rb +7 -0
- data/lib/awestruct/site.rb +3 -1
- data/lib/awestruct/version.rb +1 -1
- data/spec/awestruct/handlers/tilt_handler_spec.rb +1 -1
- data/spec/engine_spec.rb +18 -14
- data/spec/support/test-data/engine-compass/_config/arbitrary.yml +2 -0
- data/spec/support/test-data/engine-compass/_config/compass.rb +4 -0
- data/spec/support/test-data/engine-compass/_config/other.yml +1 -0
- data/spec/support/test-data/engine-compass/_config/site.yml +26 -0
- metadata +6 -3
- data/spec/support/test-data/engine/_config/compass.rb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66f88d160a376bb1a078f1795dc89ffa8fcf4257
|
4
|
+
data.tar.gz: 3736615ca5762046254b07f5863919a6456fddcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d885b5bb8e255378237ca0cb383fd39d9853dde62bf8c74d4f7e04ae5423aaa8af53c6889cd518e048e54b7e38781e11a4690974f2b4aedbca049514fa00d0d0
|
7
|
+
data.tar.gz: aba99bcefb9e7c2880da23d32dd84e70f37e51fc47b7c81e5b80d71956266e17c7c8b3178e60ec17348f722b9955ee42e100f73c3eadf1f639a18987735178f7
|
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 = '2014-04-
|
7
|
+
s.date = '2014-04-09'
|
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']
|
data/lib/awestruct/cli/auto.rb
CHANGED
@@ -44,9 +44,10 @@ module Awestruct
|
|
44
44
|
generate_thread = Thread.new {
|
45
45
|
begin
|
46
46
|
|
47
|
+
# TODO: Have to figure something out for extensions and other files without an output path
|
48
|
+
# Probably add another method in engin to to do the regen w/o mucking with site.pages and run through things again
|
47
49
|
page = engine.page_by_output_path(path)
|
48
50
|
if ( page )
|
49
|
-
|
50
51
|
pages = engine.generate_page_and_dependencies( page )
|
51
52
|
|
52
53
|
if ( guard )
|
@@ -1,9 +1,8 @@
|
|
1
|
-
require 'compass
|
1
|
+
require 'compass'
|
2
2
|
|
3
3
|
module Awestruct
|
4
4
|
module Compass
|
5
|
-
class DefaultConfiguration
|
6
|
-
#include ::Compass::Configuration::Defaults
|
5
|
+
class DefaultConfiguration < ::Compass::Configuration::Data
|
7
6
|
|
8
7
|
attr_reader :site
|
9
8
|
|
@@ -11,97 +10,121 @@ module Awestruct
|
|
11
10
|
@site = site
|
12
11
|
end
|
13
12
|
|
14
|
-
|
15
|
-
#self
|
16
|
-
#end
|
17
|
-
|
18
|
-
def project_type
|
13
|
+
def default_project_type
|
19
14
|
:stand_alone
|
20
15
|
end
|
21
16
|
|
22
|
-
def
|
17
|
+
def default_environment
|
23
18
|
site.profile
|
24
19
|
end
|
25
20
|
|
26
|
-
def
|
21
|
+
def default_project_path
|
27
22
|
site.config.dir
|
28
23
|
end
|
29
24
|
|
30
|
-
def
|
25
|
+
def default_sass_dir
|
31
26
|
File.join site.config.dir, 'stylesheets'
|
32
27
|
end
|
33
28
|
|
34
|
-
def
|
29
|
+
def default_http_path
|
35
30
|
site.base_url
|
36
31
|
end
|
37
32
|
|
38
|
-
def
|
33
|
+
def default_css_dir
|
39
34
|
site.css_dir
|
40
35
|
end
|
41
36
|
|
42
|
-
def
|
37
|
+
def default_javascripts_dir
|
43
38
|
File.join site.config.dir, 'javascripts'
|
44
39
|
end
|
45
40
|
|
46
|
-
def
|
41
|
+
def default_http_javascripts_dir
|
47
42
|
File.join http_path, 'javascripts'
|
48
43
|
end
|
49
44
|
|
50
|
-
def
|
45
|
+
def default_http_stylesheets_dir
|
51
46
|
File.join http_path, 'stylesheets'
|
52
47
|
end
|
53
48
|
|
54
|
-
def
|
49
|
+
def default_images_dir
|
55
50
|
File.join site.config.dir, 'images'
|
56
51
|
end
|
57
52
|
|
58
|
-
def
|
53
|
+
def default_generated_images_dir
|
59
54
|
File.join site.output_path, 'images'
|
60
55
|
end
|
61
56
|
|
62
|
-
def
|
57
|
+
def default_http_generated_images_dir
|
63
58
|
File.join http_path, 'images'
|
64
59
|
end
|
65
60
|
|
66
|
-
def
|
61
|
+
def default_sprite_load_path
|
67
62
|
[images_path]
|
68
63
|
end
|
69
64
|
|
70
|
-
def
|
65
|
+
def default_images_path
|
71
66
|
File.join project_path, 'images'
|
72
67
|
end
|
73
68
|
|
74
|
-
def
|
69
|
+
def default_http_images_dir
|
75
70
|
File.join http_path, 'images'
|
76
71
|
end
|
77
72
|
|
78
|
-
def
|
73
|
+
def default_fonts_dir
|
79
74
|
File.join site.config.dir, 'fonts'
|
80
75
|
end
|
81
76
|
|
82
|
-
def
|
77
|
+
def default_http_fonts_dir
|
83
78
|
File.join http_path, 'fonts'
|
84
79
|
end
|
85
80
|
|
86
81
|
def line_comments
|
87
|
-
|
82
|
+
if self.inherited_data && self.inherited_data.is_a?(::Compass::Configuration::FileData)
|
83
|
+
return self.inherited_data.line_comments
|
84
|
+
end
|
85
|
+
if site.profile.eql? 'production'
|
86
|
+
return false
|
87
|
+
else
|
88
|
+
if site.key? :compass_line_comments
|
89
|
+
return site.compass_line_comments
|
90
|
+
end
|
91
|
+
if site.key?(:scss) && site.scss.key?(:line_comments)
|
92
|
+
return site.scss.line_comments
|
93
|
+
end
|
94
|
+
if site.key?(:sass) && site.sass.key?(:line_comments)
|
95
|
+
return site.sass.line_comments
|
96
|
+
end
|
97
|
+
true
|
98
|
+
end
|
88
99
|
end
|
89
100
|
|
90
101
|
def output_style
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
102
|
+
if self.inherited_data && self.inherited_data.is_a?(::Compass::Configuration::FileData)
|
103
|
+
return self.inherited_data.output_style
|
104
|
+
end
|
105
|
+
if site.profile.eql? 'production'
|
106
|
+
return :compressed
|
107
|
+
else
|
108
|
+
if site.key? :compass_output_style
|
109
|
+
return site.compass_output_style
|
110
|
+
end
|
111
|
+
if (site.key? :scss) && (site.scss.key? :style)
|
112
|
+
return site.scss.style
|
113
|
+
end
|
114
|
+
if (site.key? :sass) && (site.sass.key? :style)
|
115
|
+
return site.sass.style
|
116
|
+
end
|
117
|
+
end
|
118
|
+
:expanded
|
119
|
+
end
|
120
|
+
|
121
|
+
def default_relative_assets
|
95
122
|
false
|
96
123
|
end
|
97
124
|
|
98
|
-
def
|
125
|
+
def default_cache_dir
|
99
126
|
File.join site.config.dir, '.sass-cache'
|
100
127
|
end
|
101
|
-
|
102
|
-
def inherit_from! data
|
103
|
-
return
|
104
|
-
end
|
105
128
|
end
|
106
129
|
end
|
107
130
|
end
|
data/lib/awestruct/engine.rb
CHANGED
@@ -240,40 +240,20 @@ module Awestruct
|
|
240
240
|
end
|
241
241
|
|
242
242
|
def configure_compass
|
243
|
-
site.images_dir = File.join( site.config.
|
244
|
-
site.fonts_dir = File.join( site.config.
|
245
|
-
site.stylesheets_dir = File.join( site.config.
|
246
|
-
site.javascripts_dir = File.join( site.config.
|
243
|
+
site.images_dir = File.join( site.config.dir, 'images' )
|
244
|
+
site.fonts_dir = File.join( site.config.dir, 'fonts' )
|
245
|
+
site.stylesheets_dir = File.join( site.config.dir, 'stylesheets' )
|
246
|
+
site.javascripts_dir = File.join( site.config.dir, 'javascripts' )
|
247
247
|
|
248
|
+
default_config = Awestruct::Compass::DefaultConfiguration.new(site)
|
248
249
|
compass_config_file = File.join(site.config.config_dir, 'compass.rb')
|
249
250
|
if (File.exists? compass_config_file)
|
250
|
-
|
251
|
-
compass_configuration.inherit_from! ::Awestruct::Compass::DefaultConfiguration.new(site)
|
252
|
-
::Compass.add_configuration compass_configuration
|
253
|
-
else
|
254
|
-
::Compass.configuration.inherit_from! ::Awestruct::Compass::DefaultConfiguration.new(site)
|
251
|
+
default_config.inherit_from! ::Compass::Configuration::FileData.new_from_file(compass_config_file)
|
255
252
|
end
|
256
253
|
|
257
|
-
|
254
|
+
::Compass.add_configuration default_config
|
258
255
|
|
259
|
-
#
|
260
|
-
# TODO consider deprecating the old config mechanism and move to default-site.yml
|
261
|
-
[:scss, :sass].each do |sass_ext|
|
262
|
-
if !site.key? sass_ext
|
263
|
-
sass_config = {}
|
264
|
-
site[sass_ext] = sass_config
|
265
|
-
else
|
266
|
-
sass_config = site[sass_ext]
|
267
|
-
end
|
268
|
-
|
269
|
-
if !sass_config.has_key?(:line_numbers) || site.profile.eql?('production')
|
270
|
-
sass_config[:line_numbers] = ::Compass.configuration.line_comments
|
271
|
-
end
|
272
|
-
|
273
|
-
if !sass_config.has_key?(:style) || site.profile.eql?('production')
|
274
|
-
sass_config[:style] = ::Compass.configuration.output_style
|
275
|
-
end
|
276
|
-
end
|
256
|
+
# TODO: Should we add an on_stylesheet_error block?
|
277
257
|
end
|
278
258
|
|
279
259
|
def load_pages
|
@@ -318,11 +298,13 @@ module Awestruct
|
|
318
298
|
|
319
299
|
# path - relative to output dir
|
320
300
|
def page_by_output_path(path)
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
301
|
+
if (path.include? '_layout')
|
302
|
+
site.layouts.find { |p| p.source_path.to_s == path }
|
303
|
+
elsif (path.include? '_partial')
|
304
|
+
site.partials.find { |p| p.source_path.to_s == path }
|
305
|
+
else
|
306
|
+
site.pages.find { |p| p.source_path.to_s == path }
|
307
|
+
end
|
326
308
|
end
|
327
309
|
|
328
310
|
def generate_page_and_dependencies(page)
|
@@ -331,31 +313,33 @@ module Awestruct
|
|
331
313
|
return
|
332
314
|
end
|
333
315
|
|
334
|
-
if !page.output_path.nil?
|
316
|
+
if !page.output_path.nil? && !page.is_partial? && !page.__is_layout
|
335
317
|
generate_page_internal(page)
|
336
318
|
end
|
337
319
|
|
338
320
|
pages = [ page ]
|
339
321
|
|
340
|
-
pages.each do |
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
322
|
+
pages.each do |p|
|
323
|
+
if $LOG.debug?
|
324
|
+
$LOG.debug "--------------------"
|
325
|
+
$LOG.debug "Page: #{p.output_path} #{p.relative_source_path} #{p.__is_layout ? 'Layout':''}"
|
326
|
+
$LOG.debug "Detected change in content (#{p.dependencies.content_hash})" if p.dependencies.has_changed_content
|
327
|
+
$LOG.debug "!! Detected change in front matter. To fully reflect the change you'll need to restart Awestruct (#{p.dependencies.key_hash})" if p.dependencies.has_changed_keys
|
328
|
+
$LOG.debug "No changes detected" unless p.dependencies.has_changed_content or p.dependencies.has_changed_keys
|
329
|
+
$LOG.debug "Dependencies Matrix: (non unique source path)"
|
330
|
+
$LOG.debug "\t Outgoing dependencies:"
|
331
|
+
$LOG.debug "\t\t Content -> #{p.dependencies.dependencies.size}"
|
332
|
+
$LOG.debug "\t\t Key -> #{p.dependencies.key_dependencies.size}"
|
333
|
+
$LOG.debug "\t Incoming dependencies:"
|
334
|
+
$LOG.debug "\t\t Content <- #{p.dependencies.dependents.size}"
|
335
|
+
$LOG.debug "\t\t Key <- #{p.dependencies.key_dependents.size}"
|
336
|
+
$LOG.debug "--------------------"
|
337
|
+
end
|
354
338
|
end
|
355
339
|
|
356
340
|
regen_pages = Set.new
|
357
341
|
|
358
|
-
if page.dependencies.has_changed_content
|
342
|
+
if page.dependencies.has_changed_content || page.__is_layout || page.is_partial?
|
359
343
|
regen_pages += page.dependencies.dependents
|
360
344
|
end
|
361
345
|
|
@@ -372,7 +356,17 @@ module Awestruct
|
|
372
356
|
|
373
357
|
$LOG.debug "Starting regeneration of content dependent pages:" if regen_pages.size > 0 && $LOG.debug?
|
374
358
|
|
359
|
+
old_site_pages = site.pages
|
360
|
+
site.pages = regen_pages
|
361
|
+
|
362
|
+
@pipeline = Pipeline.new
|
363
|
+
load_yamls
|
364
|
+
load_pipeline
|
365
|
+
execute_pipeline
|
366
|
+
@site.pages = old_site_pages
|
367
|
+
|
375
368
|
regen_pages.each do |p|
|
369
|
+
puts "Regenerating page #{p.output_path}"
|
376
370
|
generate_page_internal(p)
|
377
371
|
pages << p
|
378
372
|
end
|
@@ -11,7 +11,6 @@ module Awestruct
|
|
11
11
|
end
|
12
12
|
|
13
13
|
page = site.engine.load_site_page( filename )
|
14
|
-
|
15
14
|
return nil if !page
|
16
15
|
|
17
16
|
params.each do |k,v|
|
@@ -19,15 +18,31 @@ module Awestruct
|
|
19
18
|
end if params
|
20
19
|
|
21
20
|
page.send("output_page=", self[:page])
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
21
|
+
page.partial = true
|
22
|
+
|
23
|
+
from_site = site.partials.find {|p| p.source_path == page.source_path}
|
24
|
+
|
25
|
+
# Setup dependency tracking
|
26
|
+
if from_site
|
27
|
+
from_site.dependencies.add_dependent self[:page]
|
28
|
+
self[:page].dependencies.add_dependency from_site
|
29
|
+
Awestruct::Dependencies.track_dependency(from_site)
|
30
|
+
else
|
31
|
+
page.dependencies.add_dependent self[:page]
|
32
|
+
self[:page].dependencies.add_dependency page
|
33
|
+
Awestruct::Dependencies.track_dependency(page)
|
34
|
+
site.partials << page
|
35
|
+
|
36
|
+
begin
|
37
|
+
page.content
|
38
|
+
rescue Exception => e
|
39
|
+
ExceptionHelper.log_error "Error occurred while rendering partial #{filename} contained in #{self[:page].source_path}"
|
40
|
+
ExceptionHelper.backtrace e
|
41
|
+
end
|
28
42
|
end
|
29
|
-
end
|
30
43
|
|
44
|
+
end
|
31
45
|
end
|
32
46
|
end
|
33
47
|
end
|
48
|
+
|
@@ -134,13 +134,19 @@ module Awestruct
|
|
134
134
|
}
|
135
135
|
return template.render(context)
|
136
136
|
rescue LoadError => e
|
137
|
-
|
138
|
-
ExceptionHelper.log_message "
|
139
|
-
|
137
|
+
error_page = context[:page]
|
138
|
+
ExceptionHelper.log_message "Could not load template library required for rendering #{File.join site.dir, error_page.source_path}."
|
139
|
+
ExceptionHelper.log_message "Please see #{File.join site.dir, error_page.output_path} for more information"
|
140
|
+
return ExceptionHelper.html_error_report e, error_page.source_path
|
140
141
|
rescue Exception => e
|
141
|
-
|
142
|
-
|
143
|
-
|
142
|
+
error_page = context[:page]
|
143
|
+
if error_page[:__is_layout] == true
|
144
|
+
ExceptionHelper.log_message "An error during rendering layout file #{File.join site.dir, error_page.source_path} occurred."
|
145
|
+
else
|
146
|
+
ExceptionHelper.log_message "An error during rendering #{File.join site.dir, error_page.source_path} occurred."
|
147
|
+
end
|
148
|
+
ExceptionHelper.log_message "Please see #{File.join site.dir, error_page.output_path} for more information"
|
149
|
+
return ExceptionHelper.html_error_report e, error_page.source_path
|
144
150
|
end
|
145
151
|
end
|
146
152
|
end
|
data/lib/awestruct/page.rb
CHANGED
@@ -12,6 +12,7 @@ module Awestruct
|
|
12
12
|
attr_accessor :site
|
13
13
|
attr_accessor :handler
|
14
14
|
attr_reader :dependencies
|
15
|
+
attr_writer :partial
|
15
16
|
|
16
17
|
def initialize(site, handler=nil)
|
17
18
|
@site = site
|
@@ -92,6 +93,8 @@ module Awestruct
|
|
92
93
|
def stale_output?(output_path)
|
93
94
|
return true if ! File.exist?( output_path )
|
94
95
|
return true if input_mtime > File.mtime( output_path )
|
96
|
+
return true if stale?
|
97
|
+
# TODO: Add stale callback and execute it
|
95
98
|
false
|
96
99
|
end
|
97
100
|
|
@@ -177,5 +180,9 @@ module Awestruct
|
|
177
180
|
self.object_id == other_page.object_id
|
178
181
|
end
|
179
182
|
|
183
|
+
def is_partial?
|
184
|
+
@partial
|
185
|
+
end
|
186
|
+
|
180
187
|
end
|
181
188
|
end
|
data/lib/awestruct/site.rb
CHANGED
@@ -10,8 +10,9 @@ module Awestruct
|
|
10
10
|
attr_reader :tmp_dir
|
11
11
|
attr_reader :timestamp
|
12
12
|
|
13
|
-
|
13
|
+
attr_accessor :pages
|
14
14
|
attr_reader :layouts
|
15
|
+
attr_reader :partials
|
15
16
|
|
16
17
|
attr_reader :config
|
17
18
|
attr_reader :engine
|
@@ -20,6 +21,7 @@ module Awestruct
|
|
20
21
|
@engine = engine
|
21
22
|
@pages = []
|
22
23
|
@layouts = Layouts.new
|
24
|
+
@partials = []
|
23
25
|
@config = config
|
24
26
|
self.encoding = false
|
25
27
|
@timestamp = Time.now.to_i
|
data/lib/awestruct/version.rb
CHANGED
@@ -44,7 +44,7 @@ describe Awestruct::Handlers::TiltHandler do
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def create_context
|
47
|
-
Hashery::OpenCascade[ { :site=>@site } ]
|
47
|
+
Hashery::OpenCascade[ { :site=>@site, page: {:source_path => '', :output_path => ''} } ]
|
48
48
|
end
|
49
49
|
|
50
50
|
it "should provide default configuration options from site based on output_extension" do
|
data/spec/engine_spec.rb
CHANGED
@@ -104,12 +104,7 @@ describe Awestruct::Engine do
|
|
104
104
|
expect( Compass.configuration.line_comments ).to eq false
|
105
105
|
expect( Compass.configuration.output_style ).to eq :compressed
|
106
106
|
expect( Compass.configuration.http_path ).to be nil
|
107
|
-
expect( Compass.configuration.relative_assets ).to eq false
|
108
|
-
|
109
|
-
engine.site.sass.line_numbers.should == false
|
110
|
-
engine.site.sass.style.should == :compressed
|
111
|
-
engine.site.scss.line_numbers.should == false
|
112
|
-
engine.site.scss.style.should == :compressed
|
107
|
+
expect( Compass.configuration.relative_assets ).to eq false
|
113
108
|
end
|
114
109
|
|
115
110
|
it "should include line comments in compass by default in development mode" do
|
@@ -120,10 +115,8 @@ describe Awestruct::Engine do
|
|
120
115
|
engine.load_user_site_yaml( 'development' )
|
121
116
|
engine.configure_compass
|
122
117
|
|
123
|
-
|
124
|
-
|
125
|
-
engine.site.scss.line_numbers.should == true
|
126
|
-
engine.site.scss.style.should == :expanded
|
118
|
+
expect( Compass.configuration.line_comments ).to eq true
|
119
|
+
expect( Compass.configuration.output_style ).to eq :expanded
|
127
120
|
end
|
128
121
|
|
129
122
|
it "wip should accept site.compass_line_comments and site.compass_output_style to configure behavior" do
|
@@ -134,10 +127,21 @@ describe Awestruct::Engine do
|
|
134
127
|
engine.load_user_site_yaml( 'staging' )
|
135
128
|
engine.configure_compass
|
136
129
|
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
130
|
+
expect( Compass.configuration.line_comments ).to eq false
|
131
|
+
expect( Compass.configuration.output_style ).to eq :compact
|
132
|
+
end
|
133
|
+
|
134
|
+
it "with a _config/compass.rb file, it should override defaults" do
|
135
|
+
opts = Awestruct::CLI::Options.new
|
136
|
+
opts.source_dir = test_data_dir 'engine-compass'
|
137
|
+
config = Awestruct::Config.new( opts )
|
138
|
+
engine = Awestruct::Engine.new(config)
|
139
|
+
engine.configure_compass
|
140
|
+
|
141
|
+
expect( Compass.configuration.line_comments ).to eq false
|
142
|
+
expect( Compass.configuration.output_style ).to eq :compressed
|
143
|
+
expect( Compass.configuration.disable_warnings ).to eq true
|
144
|
+
expect( Compass.configuration.fonts_dir ).to eq 'my-fonts'
|
141
145
|
end
|
142
146
|
|
143
147
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
tags: [ 'a', 'b', 'c' ]
|
@@ -0,0 +1,26 @@
|
|
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: ''
|
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.5.4
|
4
|
+
version: 0.5.4.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: 2014-04-
|
16
|
+
date: 2014-04-09 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: haml
|
@@ -412,8 +412,11 @@ files:
|
|
412
412
|
- spec/support/shared_handler_example.rb
|
413
413
|
- spec/support/test-config/_config/site.yml
|
414
414
|
- spec/support/test-data/.awestruct_ignore
|
415
|
+
- spec/support/test-data/engine-compass/_config/arbitrary.yml
|
416
|
+
- spec/support/test-data/engine-compass/_config/compass.rb
|
417
|
+
- spec/support/test-data/engine-compass/_config/other.yml
|
418
|
+
- spec/support/test-data/engine-compass/_config/site.yml
|
415
419
|
- spec/support/test-data/engine/_config/arbitrary.yml
|
416
|
-
- spec/support/test-data/engine/_config/compass.rb
|
417
420
|
- spec/support/test-data/engine/_config/other.yml
|
418
421
|
- spec/support/test-data/engine/_config/site.yml
|
419
422
|
- spec/support/test-data/front-matter-empty.txt
|
File without changes
|