jekyll-rdf 4.0.3 → 4.0.4.pre.27.ge71d162
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/helper/rdf_hook_helper.rb +10 -7
- metadata +18 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38a8b285e2cf9da4e04bdc9d2559f5d0238db8b0730162edb46673d37828e034
|
4
|
+
data.tar.gz: 5d8d3f98765434406dac01f8064fbc81bbd40c81adad2d66fcbeced3b0269cd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d826bce23be5f02321f9978d54994b8779fd26bc11847e5dbd0427006b79a98fa4193fd0d26954d465d19647ce168466ab308c50222f3b6b94e442ac7c695c8
|
7
|
+
data.tar.gz: 19af137100b3198c0f5678a84d114341f51afee9b1010861d9bf981c8b5d94b1aa2c093e8cfec57476ade794ff82141e3179f41bc3d8144c392c3ead7b8f8b6b
|
@@ -43,13 +43,10 @@ module Jekyll
|
|
43
43
|
base_path = page.instance_variable_get(:@base_dir)
|
44
44
|
base_path ||= payload.site["source"]
|
45
45
|
end
|
46
|
-
rescue
|
47
|
-
#
|
48
|
-
|
49
|
-
|
50
|
-
else
|
51
|
-
raise
|
52
|
-
end
|
46
|
+
rescue MissingTemplate
|
47
|
+
# the case that a template is missing
|
48
|
+
# aka. undefined method `data' for nil:NilClass
|
49
|
+
return
|
53
50
|
end
|
54
51
|
if(page.data["rdf_prefixes"].nil? && !(prefix_path.nil? || base_path.nil?))
|
55
52
|
Jekyll::JekyllRdf::Helper::RdfHelper.load_prefixes(
|
@@ -70,7 +67,13 @@ module Jekyll
|
|
70
67
|
return nil
|
71
68
|
end
|
72
69
|
|
70
|
+
class MissingTemplate < StandardError
|
71
|
+
end
|
72
|
+
|
73
73
|
def check_prefix_definition layout
|
74
|
+
if layout.nil?
|
75
|
+
raise MissingTemplate.new "Missing template"
|
76
|
+
end
|
74
77
|
unless(layout.data["rdf_prefix_path"].nil?)
|
75
78
|
return [layout.instance_variable_get(:@base_dir), layout.data["rdf_prefix_path"]]
|
76
79
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-rdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.4.pre.27.ge71d162
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elias Saalmann
|
@@ -15,10 +15,10 @@ authors:
|
|
15
15
|
- Natanael Arndt
|
16
16
|
- Simon Bin
|
17
17
|
- Jan Beckert
|
18
|
-
autorequire:
|
18
|
+
autorequire:
|
19
19
|
bindir: bin
|
20
20
|
cert_chain: []
|
21
|
-
date: 2023-
|
21
|
+
date: 2023-07-03 00:00:00.000000000 Z
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
24
24
|
name: linkeddata
|
@@ -87,6 +87,9 @@ dependencies:
|
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '13.0'
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 13.0.6
|
90
93
|
type: :development
|
91
94
|
prerelease: false
|
92
95
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -94,6 +97,9 @@ dependencies:
|
|
94
97
|
- - "~>"
|
95
98
|
- !ruby/object:Gem::Version
|
96
99
|
version: '13.0'
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 13.0.6
|
97
103
|
- !ruby/object:Gem::Dependency
|
98
104
|
name: rest-client
|
99
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -115,19 +121,19 @@ dependencies:
|
|
115
121
|
- !ruby/object:Gem::Version
|
116
122
|
version: 2.0.1
|
117
123
|
- !ruby/object:Gem::Dependency
|
118
|
-
name:
|
124
|
+
name: simplecov
|
119
125
|
requirement: !ruby/object:Gem::Requirement
|
120
126
|
requirements:
|
121
127
|
- - "~>"
|
122
128
|
- !ruby/object:Gem::Version
|
123
|
-
version:
|
129
|
+
version: 0.22.0
|
124
130
|
type: :development
|
125
131
|
prerelease: false
|
126
132
|
version_requirements: !ruby/object:Gem::Requirement
|
127
133
|
requirements:
|
128
134
|
- - "~>"
|
129
135
|
- !ruby/object:Gem::Version
|
130
|
-
version:
|
136
|
+
version: 0.22.0
|
131
137
|
- !ruby/object:Gem::Dependency
|
132
138
|
name: test-unit
|
133
139
|
requirement: !ruby/object:Gem::Requirement
|
@@ -210,14 +216,14 @@ dependencies:
|
|
210
216
|
requirements:
|
211
217
|
- - "~>"
|
212
218
|
- !ruby/object:Gem::Version
|
213
|
-
version: '0.
|
219
|
+
version: '0.3'
|
214
220
|
type: :development
|
215
221
|
prerelease: false
|
216
222
|
version_requirements: !ruby/object:Gem::Requirement
|
217
223
|
requirements:
|
218
224
|
- - "~>"
|
219
225
|
- !ruby/object:Gem::Version
|
220
|
-
version: '0.
|
226
|
+
version: '0.3'
|
221
227
|
- !ruby/object:Gem::Dependency
|
222
228
|
name: kramdown-parser-gfm
|
223
229
|
requirement: !ruby/object:Gem::Requirement
|
@@ -273,7 +279,7 @@ homepage: https://github.com/AKSW/jekyll-rdf
|
|
273
279
|
licenses:
|
274
280
|
- MIT
|
275
281
|
metadata: {}
|
276
|
-
post_install_message:
|
282
|
+
post_install_message:
|
277
283
|
rdoc_options: []
|
278
284
|
require_paths:
|
279
285
|
- lib
|
@@ -284,12 +290,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
284
290
|
version: '0'
|
285
291
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
286
292
|
requirements:
|
287
|
-
- - "
|
293
|
+
- - ">"
|
288
294
|
- !ruby/object:Gem::Version
|
289
|
-
version:
|
295
|
+
version: 1.3.1
|
290
296
|
requirements: []
|
291
297
|
rubygems_version: 3.3.26
|
292
|
-
signing_key:
|
298
|
+
signing_key:
|
293
299
|
specification_version: 4
|
294
300
|
summary: Hypertext Publication System for Templated Resource Rendering
|
295
301
|
test_files: []
|