jekyll-duplicate 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 365340ca7d4d1ffeb3fc73c72956596c3f31a1eb1908eb4422f78f01db0ac601
4
- data.tar.gz: 86e98c314d7362348ea802ad2f1529bcfae43340b17f5fc69e8682d6d4de82d3
3
+ metadata.gz: 1f9c5c0a6bf72ae2d1d5c933be3840a17119e42ae49e821790ef24deda8d6e87
4
+ data.tar.gz: 0efe7dce3fed6d29aae22c67b5174f2c809d527ff3a3df0872510d20e0761991
5
5
  SHA512:
6
- metadata.gz: 80ce68a38366fca1c0ba983d1c362969493c1cda2dd82f0b22efcf2ad18ff526e33472a9f6d9dc1041b0e8396462c84fc61cc9547bdacfde2f7816fa48823409
7
- data.tar.gz: 4c95d8e32a9b92ca9c6ff070ab4adaa60611ec37e8c0533a1bb2489360de9355be9c7652f332ca3583795404ffd1786a8894380e43cc3e71160fb1a5867bc1fb
6
+ metadata.gz: 1937cc69dec7e975d05af6fde74832a3f07a33fb01515bba2209c20f3370a20531fe589cf62b13846687fc889faed94d74a4b85dace9f42ae9c2d4bd03ab3b37
7
+ data.tar.gz: b9b8fac12fc71684528f42690dcfb353e8210cfdaf1d1c56debb21733387a1e301fbc3defbd5921aa166a9a31c23e9232e120881e032d1024d42f7b89cb0ca49
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'jekyll-duplicate'
5
- s.version = '0.1.0'
5
+ s.version = '0.1.1'
6
6
  s.authors = ['Ribose Inc.']
7
7
  s.email = ['open.source@ribose.com']
8
8
 
@@ -6,22 +6,27 @@ module Jekyll
6
6
  @content = content
7
7
 
8
8
  if format == 'html'
9
- if path.end_with?('/index')
10
- @dir = url_prefix
11
- else
12
- @dir = File.join(url_prefix, path)
13
- end
9
+ @dir = File.join(url_prefix, path)
14
10
  @name = "index.html"
11
+ permalink = path
15
12
 
16
13
  elsif format == 'json'
17
- @dir = File.join(url_prefix)
14
+ @dir = url_prefix
15
+
16
+ if path.end_with?('/')
17
+ path.chomp!('/')
18
+ end
19
+
18
20
  @name = "#{path}.json"
21
+ permalink = File.join(@dir, @name)
19
22
  end
20
23
 
21
24
  self.process(@name)
22
25
 
23
26
  self.data = data.clone
24
27
 
28
+ self.data["permalink"] = permalink
29
+
25
30
  if overrides
26
31
  if overrides['frontmatter']
27
32
  overrides['frontmatter'].each do |key, value|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-duplicate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-22 00:00:00.000000000 Z
11
+ date: 2020-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0.50'
55
- description:
55
+ description:
56
56
  email:
57
57
  - open.source@ribose.com
58
58
  executables: []
@@ -70,7 +70,7 @@ homepage: https://github.com/riboseinc/jekyll-duplicate/
70
70
  licenses:
71
71
  - MIT
72
72
  metadata: {}
73
- post_install_message:
73
+ post_install_message:
74
74
  rdoc_options: []
75
75
  require_paths:
76
76
  - lib
@@ -85,8 +85,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  - !ruby/object:Gem::Version
86
86
  version: '0'
87
87
  requirements: []
88
- rubygems_version: 3.0.6
89
- signing_key:
88
+ rubygems_version: 3.0.3
89
+ signing_key:
90
90
  specification_version: 4
91
91
  summary: Jekyll plugin to render documents in additional ways
92
92
  test_files: []