jekyll-bookshop 1.4.6 → 1.5.0
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/jekyll-bookshop.rb +11 -4
- data/lib/jekyll-bookshop/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3aa1795f0a5014047a0b8cfb8609c7823b7d2c7bbf77fe8407eb9bd1253fb2bb
|
4
|
+
data.tar.gz: 83960fdbd3ffa085318d97dc88585fe834e4a6ad2fb9d8df37cc9e857f14cd36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50bd3c38d1908c97a4383528b41cd50058734ba6122b45ee06009700f49b07d56bccdd4b15beb2f60a88f536d73335519d5ae294511ec05d572b3f5fab7df68c
|
7
|
+
data.tar.gz: ae5991b08a43512539b82306083253a869c8984be25a4b7e16cc700119ece2142b3f1b189047e4161c7108fbdbdbd039899d6fcf844cf3df3fb15c4a4bac6a69
|
data/lib/jekyll-bookshop.rb
CHANGED
@@ -6,7 +6,10 @@ module JekyllBookshop
|
|
6
6
|
|
7
7
|
# Look for includes in the built bookshop directory
|
8
8
|
def tag_includes_dirs(context)
|
9
|
-
Array(
|
9
|
+
Array([
|
10
|
+
Pathname.new(context['site']['bookshop_theme_path'] + '/components').cleanpath.to_s,
|
11
|
+
Pathname.new(context['site']['bookshop_site_path'] + '/components').cleanpath.to_s
|
12
|
+
]).freeze
|
10
13
|
end
|
11
14
|
|
12
15
|
# Support the bind syntax, spreading an object into params
|
@@ -57,11 +60,15 @@ module JekyllBookshop
|
|
57
60
|
|
58
61
|
# Add the paths to find bookshop's styles
|
59
62
|
def self.open_bookshop(site)
|
60
|
-
|
61
|
-
site.
|
63
|
+
bookshop_theme_path = site.theme.root + '/_bookshop'
|
64
|
+
bookshop_site_path = site.source + '/_bookshop'
|
65
|
+
site.config['bookshop_theme_path'] = Pathname.new(bookshop_theme_path).cleanpath.to_s
|
66
|
+
site.config['bookshop_site_path'] = Pathname.new(bookshop_site_path).cleanpath.to_s
|
67
|
+
|
62
68
|
site.config['sass'] ||= {}
|
63
69
|
site.config['sass']['load_paths'] ||= []
|
64
|
-
site.config['sass']['load_paths'].push(Pathname.new(
|
70
|
+
site.config['sass']['load_paths'].push(Pathname.new(bookshop_theme_path + '/sass').cleanpath.to_s)
|
71
|
+
site.config['sass']['load_paths'].push(Pathname.new(bookshop_site_path + '/sass').cleanpath.to_s)
|
65
72
|
end
|
66
73
|
end
|
67
74
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-bookshop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Liam Bigelow
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '5.0'
|
33
|
-
description:
|
33
|
+
description:
|
34
34
|
email:
|
35
35
|
- liam@cloudcannon.com
|
36
36
|
executables: []
|
@@ -43,7 +43,7 @@ homepage: https://github.com/cloudcannon/bookshop
|
|
43
43
|
licenses:
|
44
44
|
- MIT
|
45
45
|
metadata: {}
|
46
|
-
post_install_message:
|
46
|
+
post_install_message:
|
47
47
|
rdoc_options: []
|
48
48
|
require_paths:
|
49
49
|
- lib
|
@@ -59,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
59
59
|
version: '0'
|
60
60
|
requirements: []
|
61
61
|
rubygems_version: 3.0.3
|
62
|
-
signing_key:
|
62
|
+
signing_key:
|
63
63
|
specification_version: 4
|
64
64
|
summary: A Jekyll plugin to load components from bookshop
|
65
65
|
test_files: []
|