jekyll-geolexica 1.3.2 → 1.3.3

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
  SHA256:
3
- metadata.gz: 67c4d60740e83494acb30fd440be8d266fd00ace302af8c4073447a46c439d0d
4
- data.tar.gz: 5c107cf69d3cdc76311879db97a0c2964bfe04ecb22ddd2e51555a81346f7014
3
+ metadata.gz: 31487110145fb228ccd7123a45ed470ee26c97c364ed0948e3ab9efa209d85e0
4
+ data.tar.gz: 2f07f5fb7d01406eace52605061d0961e806a7df572104e6de6313d6749b5d90
5
5
  SHA512:
6
- metadata.gz: e14e4f153814b962824cef24ba93adeafc2bfbdbb4b6dd076e6fcd723d6c87dbd004053209ae5c002fcf675e8cbc5cbe28a2f11c4b506bc28eb99899c27b2967
7
- data.tar.gz: 609e0ba53992cd8b812f63309b7b48e3d5a4701b3871f0084e37a41c622433836c60ef58e3bfc0dd4cfa4e35c1cfc75b481476820c5720af3da2ff9e670ede39
6
+ metadata.gz: 71a50de9d482683a358d2a22b9d3a4c4bff5b3a519cdf92c6f05a8f123be6cf911a7a5c4ac033f1702a042865a959e3fe35f83f3d9ddd8107b300bdd3221f970
7
+ data.tar.gz: 98f974dfe5ce82bed827ff4ce9d231bebb801873702f52a65066fad945b3069963275c82d690a4e22881973dfc7e5cadf2f43a96f6acacf84b11a5257d3d4c8b
@@ -26,26 +26,12 @@ module Jekyll
26
26
  def default_data
27
27
  {
28
28
  "layout" => layout,
29
+ "liquid" => uses_liquid,
29
30
  "permalink" => permalink,
30
31
  "representations" => concept.pages,
31
32
  }
32
33
  end
33
34
 
34
- # Disables Liquid processing for given content.
35
- #
36
- # FIXME Still may break if +content+ contains the "{% endraw %}" sequence,
37
- # which is very unlikely as we work with trusted input.
38
- # Preferred solution is to make the whole page a non-Liquid file,
39
- # or mark as already processed, or something, but it is unclear how
40
- # to achieve that.
41
- def escape_liquid(content)
42
- [
43
- "{\% raw \%}",
44
- content,
45
- "{\% endraw \%}",
46
- ].join("")
47
- end
48
-
49
35
  class HTML < ConceptPage
50
36
  def page_name
51
37
  "#{termid}.html"
@@ -59,6 +45,10 @@ module Jekyll
59
45
  "concept"
60
46
  end
61
47
 
48
+ def uses_liquid
49
+ true
50
+ end
51
+
62
52
  def permalink
63
53
  "/concepts/#{termid}/"
64
54
  end
@@ -78,8 +68,11 @@ module Jekyll
78
68
  end
79
69
 
80
70
  def content
81
- s = ConceptSerializer.new(concept, site)
82
- escape_liquid(s.to_json)
71
+ ConceptSerializer.new(concept, site).to_json
72
+ end
73
+
74
+ def uses_liquid
75
+ false
83
76
  end
84
77
 
85
78
  def permalink
@@ -100,6 +93,10 @@ module Jekyll
100
93
  "concept.jsonld"
101
94
  end
102
95
 
96
+ def uses_liquid
97
+ true
98
+ end
99
+
103
100
  def permalink
104
101
  "/api/concepts/#{termid}.jsonld"
105
102
  end
@@ -118,6 +115,10 @@ module Jekyll
118
115
  "concept.ttl"
119
116
  end
120
117
 
118
+ def uses_liquid
119
+ true
120
+ end
121
+
121
122
  def permalink
122
123
  "/api/concepts/#{termid}.ttl"
123
124
  end
@@ -136,6 +137,10 @@ module Jekyll
136
137
  "concept.tbx.xml"
137
138
  end
138
139
 
140
+ def uses_liquid
141
+ true
142
+ end
143
+
139
144
  def permalink
140
145
  "/api/concepts/#{termid}.tbx.xml"
141
146
  end
@@ -155,8 +160,11 @@ module Jekyll
155
160
  end
156
161
 
157
162
  def content
158
- s = ConceptSerializer.new(concept, site)
159
- escape_liquid(s.to_yaml)
163
+ ConceptSerializer.new(concept, site).to_yaml
164
+ end
165
+
166
+ def uses_liquid
167
+ false
160
168
  end
161
169
 
162
170
  def permalink
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Jekyll
5
5
  module Geolexica
6
- VERSION = "1.3.2".freeze
6
+ VERSION = "1.3.3".freeze
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-geolexica
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-01 00:00:00.000000000 Z
11
+ date: 2020-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -100,7 +100,7 @@ dependencies:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
102
  version: '3.9'
103
- description:
103
+ description:
104
104
  email:
105
105
  - open.source@ribose.com
106
106
  executables: []
@@ -193,7 +193,7 @@ metadata:
193
193
  bug_tracker_uri: https://github.com/geolexica/geolexica-server/issues
194
194
  homepage_uri: https://open.ribose.com/
195
195
  source_code_uri: https://github.com/geolexica/geolexica-server
196
- post_install_message:
196
+ post_install_message:
197
197
  rdoc_options: []
198
198
  require_paths:
199
199
  - lib
@@ -209,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
209
  version: '0'
210
210
  requirements: []
211
211
  rubygems_version: 3.0.3
212
- signing_key:
212
+ signing_key:
213
213
  specification_version: 4
214
214
  summary: Geolexica plugin for Jekyll
215
215
  test_files: []