jekyll-rdf 4.0.4 → 4.1.pre.28.g88b6f69

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: 071c544c20d9b340351cce8316bc4f4f4299d34d6dabb17f0d284bd80f4546de
4
+ data.tar.gz: 8efb9d8272bf26994bba5a8dc0b7712782edc1d4673b81aded61eb560f2546fc
5
5
  SHA512:
6
- metadata.gz: d0131b0b047afcb029b4326144eeb80c0d3a2c021b279d20c60df604b4505d723b0942cdb60d52b8026be65152385a9c88ef0376fb2e1401fbb20f94b476d76c
7
- data.tar.gz: c4ac7e09cfff60f9531fdd348dc5aa6002eb148566d2ef0b2bbf217ee3e79fc6f73511df03621e682e1d26b21d46fe633be2cbd584861f674a616d24f8c9ee2f
6
+ metadata.gz: 6e90de1d15bf070174a4a252d61417a19e3e9672ae7027769ed91c1eceddb4a0d6095cd8a029fb3343d28696477d5d334b5662a52cf919cf9e7a32e412e1599b
7
+ data.tar.gz: c77b417bbe786035116e346a57b940298463b6a80947ad1c1fb317bcd69f3165d8d921dbc3b5981875456e0e5dc6b82c6ceb0644cf2418d4ddb47d2f8c135ff4
@@ -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.28.g88b6f69
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: []