jekyll-rdf 4.0.4 → 4.1.pre.29.gc9585ab

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: c95c2016128766974a7c7382391cde11e3d134246c560c10c6ad12e427e2d88b
4
- data.tar.gz: 80f4990f9f2b96da3fac6113f6a22a2fef4b15e7cf2b395c50e10600bd646fd7
3
+ metadata.gz: 2df2a2af228bf9d1ab102bfd6b06af47691aaa9ec0bccb47494a9d8184af3800
4
+ data.tar.gz: 67bbb6b1e193438651c232f9fd819815efc1890d2e7d520ce69e7de9d14ea979
5
5
  SHA512:
6
- metadata.gz: d0131b0b047afcb029b4326144eeb80c0d3a2c021b279d20c60df604b4505d723b0942cdb60d52b8026be65152385a9c88ef0376fb2e1401fbb20f94b476d76c
7
- data.tar.gz: c4ac7e09cfff60f9531fdd348dc5aa6002eb148566d2ef0b2bbf217ee3e79fc6f73511df03621e682e1d26b21d46fe633be2cbd584861f674a616d24f8c9ee2f
6
+ metadata.gz: e9186170a66f4873c081522abc42410415cbbe20ba62d648370036fa4d29e173c2c0cfdd81c52648b7de65603ff3928920ad0cb4dac5350542d7c1d086e01d29
7
+ data.tar.gz: b540eac39ab5ee29deaa0062e6b9f3d8fbb245647ff49e14757b1ab2a0e4f4ae87eb099f4fc9f06e52e3ed33dbe372aea29904ac34445a9f3339e1e8ab0c866f
@@ -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 NoMethodError => ne
47
- #just in case the error was caused by something different then a missing template
48
- if(ne.message.eql? "undefined method `data' for nil:NilClass")
49
- return
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
4
+ version: 4.1.pre.29.gc9585ab
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-02-27 00:00:00.000000000 Z
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: coveralls
124
+ name: simplecov
119
125
  requirement: !ruby/object:Gem::Requirement
120
126
  requirements:
121
127
  - - "~>"
122
128
  - !ruby/object:Gem::Version
123
- version: '0.8'
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: '0.8'
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.2'
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.2'
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: '0'
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: []