bridgetown-core 0.20.0 → 0.21.0.beta1
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/lib/bridgetown-core.rb +3 -0
- data/lib/bridgetown-core/collection.rb +13 -10
- data/lib/bridgetown-core/component.rb +178 -0
- data/lib/bridgetown-core/concerns/front_matter_importer.rb +52 -0
- data/lib/bridgetown-core/concerns/site/content.rb +2 -3
- data/lib/bridgetown-core/concerns/site/writable.rb +1 -1
- data/lib/bridgetown-core/concerns/validatable.rb +0 -4
- data/lib/bridgetown-core/configuration.rb +10 -9
- data/lib/bridgetown-core/converter.rb +9 -0
- data/lib/bridgetown-core/converters/erb_templates.rb +50 -34
- data/lib/bridgetown-core/converters/markdown.rb +1 -1
- data/lib/bridgetown-core/converters/ruby_templates.rb +17 -0
- data/lib/bridgetown-core/drops/relations_drop.rb +23 -0
- data/lib/bridgetown-core/drops/resource_drop.rb +3 -1
- data/lib/bridgetown-core/drops/unified_payload_drop.rb +1 -0
- data/lib/bridgetown-core/filters/from_liquid.rb +23 -0
- data/lib/bridgetown-core/helpers.rb +48 -9
- data/lib/bridgetown-core/layout.rb +27 -12
- data/lib/bridgetown-core/model/origin.rb +1 -1
- data/lib/bridgetown-core/model/{file_origin.rb → repo_origin.rb} +32 -25
- data/lib/bridgetown-core/reader.rb +2 -2
- data/lib/bridgetown-core/renderer.rb +1 -1
- data/lib/bridgetown-core/resource/base.rb +69 -27
- data/lib/bridgetown-core/resource/relations.rb +132 -0
- data/lib/bridgetown-core/resource/taxonomy_term.rb +10 -1
- data/lib/bridgetown-core/resource/taxonomy_type.rb +9 -0
- data/lib/bridgetown-core/resource/transformer.rb +14 -12
- data/lib/bridgetown-core/ruby_template_view.rb +7 -11
- data/lib/bridgetown-core/utils.rb +8 -1
- data/lib/bridgetown-core/utils/ruby_exec.rb +6 -9
- data/lib/bridgetown-core/utils/ruby_front_matter.rb +39 -0
- data/lib/bridgetown-core/version.rb +2 -2
- data/lib/bridgetown-core/watcher.rb +1 -1
- data/lib/site_template/package.json.erb +2 -2
- data/lib/site_template/src/_posts/0000-00-00-welcome-to-bridgetown.md.erb +1 -1
- data/lib/site_template/webpack.config.js.erb +3 -1
- metadata +10 -3
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bridgetown-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.21.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bridgetown Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -336,7 +336,9 @@ files:
|
|
336
336
|
- lib/bridgetown-core/commands/registrations.rb
|
337
337
|
- lib/bridgetown-core/commands/serve.rb
|
338
338
|
- lib/bridgetown-core/commands/serve/servlet.rb
|
339
|
+
- lib/bridgetown-core/component.rb
|
339
340
|
- lib/bridgetown-core/concerns/data_accessible.rb
|
341
|
+
- lib/bridgetown-core/concerns/front_matter_importer.rb
|
340
342
|
- lib/bridgetown-core/concerns/layout_placeable.rb
|
341
343
|
- lib/bridgetown-core/concerns/liquid_renderable.rb
|
342
344
|
- lib/bridgetown-core/concerns/publishable.rb
|
@@ -369,6 +371,7 @@ files:
|
|
369
371
|
- lib/bridgetown-core/converters/liquid_templates.rb
|
370
372
|
- lib/bridgetown-core/converters/markdown.rb
|
371
373
|
- lib/bridgetown-core/converters/markdown/kramdown_parser.rb
|
374
|
+
- lib/bridgetown-core/converters/ruby_templates.rb
|
372
375
|
- lib/bridgetown-core/converters/smartypants.rb
|
373
376
|
- lib/bridgetown-core/current.rb
|
374
377
|
- lib/bridgetown-core/deprecator.rb
|
@@ -379,6 +382,7 @@ files:
|
|
379
382
|
- lib/bridgetown-core/drops/drop.rb
|
380
383
|
- lib/bridgetown-core/drops/excerpt_drop.rb
|
381
384
|
- lib/bridgetown-core/drops/page_drop.rb
|
385
|
+
- lib/bridgetown-core/drops/relations_drop.rb
|
382
386
|
- lib/bridgetown-core/drops/resource_drop.rb
|
383
387
|
- lib/bridgetown-core/drops/site_drop.rb
|
384
388
|
- lib/bridgetown-core/drops/static_file_drop.rb
|
@@ -391,6 +395,7 @@ files:
|
|
391
395
|
- lib/bridgetown-core/filters.rb
|
392
396
|
- lib/bridgetown-core/filters/condition_helpers.rb
|
393
397
|
- lib/bridgetown-core/filters/date_filters.rb
|
398
|
+
- lib/bridgetown-core/filters/from_liquid.rb
|
394
399
|
- lib/bridgetown-core/filters/grouping_filters.rb
|
395
400
|
- lib/bridgetown-core/filters/url_filters.rb
|
396
401
|
- lib/bridgetown-core/frontmatter_defaults.rb
|
@@ -409,8 +414,8 @@ files:
|
|
409
414
|
- lib/bridgetown-core/mime.types
|
410
415
|
- lib/bridgetown-core/model/base.rb
|
411
416
|
- lib/bridgetown-core/model/builder_origin.rb
|
412
|
-
- lib/bridgetown-core/model/file_origin.rb
|
413
417
|
- lib/bridgetown-core/model/origin.rb
|
418
|
+
- lib/bridgetown-core/model/repo_origin.rb
|
414
419
|
- lib/bridgetown-core/page.rb
|
415
420
|
- lib/bridgetown-core/path_manager.rb
|
416
421
|
- lib/bridgetown-core/plugin.rb
|
@@ -430,6 +435,7 @@ files:
|
|
430
435
|
- lib/bridgetown-core/resource/base.rb
|
431
436
|
- lib/bridgetown-core/resource/destination.rb
|
432
437
|
- lib/bridgetown-core/resource/permalink_processor.rb
|
438
|
+
- lib/bridgetown-core/resource/relations.rb
|
433
439
|
- lib/bridgetown-core/resource/taxonomy_term.rb
|
434
440
|
- lib/bridgetown-core/resource/taxonomy_type.rb
|
435
441
|
- lib/bridgetown-core/resource/transformer.rb
|
@@ -451,6 +457,7 @@ files:
|
|
451
457
|
- lib/bridgetown-core/utils/ansi.rb
|
452
458
|
- lib/bridgetown-core/utils/platforms.rb
|
453
459
|
- lib/bridgetown-core/utils/ruby_exec.rb
|
460
|
+
- lib/bridgetown-core/utils/ruby_front_matter.rb
|
454
461
|
- lib/bridgetown-core/utils/thread_event.rb
|
455
462
|
- lib/bridgetown-core/version.rb
|
456
463
|
- lib/bridgetown-core/watcher.rb
|