jekyll-rdf 3.1.1.pre.develop.739 → 3.2.0

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: 39c6559c597747374c1002dbe142bc64edbd12a34ccdc9d23df871f9bf138125
4
- data.tar.gz: '018236dd2d8d97073c143b71a75b8d44ee0ccf071158886a3a036bf17c3b5966'
3
+ metadata.gz: a2ebb04c650ce741adcd71e5ce45fa25e98f1f5ff72a9c525825ee6493ff1f9d
4
+ data.tar.gz: 0dcc62184c6ec4f2bafe67e02373abe4d605e3eb4d1f7df60e4ca66980d5cebf
5
5
  SHA512:
6
- metadata.gz: 95ba21cd9943b4ae2fa49f0b63c4b91fb3349ad40acc8840c43dc4bce6d7d0fa136704d07a3d3096c8994f39468dfec8c15d53bdc27d1dcebcdba9e34cf86366
7
- data.tar.gz: 79e7ac98d6dfc1dff2332daded038b826be145a5337b6487cf298c0b9d39b010843e3e9bc9db74684619ee9e9c9008cf968341a92778e7a4da68c47b02e47e39
6
+ metadata.gz: ff5c1ce99fd94ed8d7fca8adb9651800045daa36ca5c6f214a24d7b01ac5db971f8fcf0e3a3baf72d2941d5a6038e4464e1c73a6cc72b935dd83767f278a93e8
7
+ data.tar.gz: b4087456e61fcaa8d8b6dcee6044804c08a5ea9223ab879ac522a695c08d18f7f0b5dc625d9962ea54aadeef324b6a9b95b6366c80625e1b20c8e2a4be47903b
@@ -274,7 +274,7 @@ module Jekyll #:nodoc:
274
274
  @filename = path
275
275
  else
276
276
  @filedir = path[0..last_slash]
277
- @filename = path[(last_slash +1)..-1]
277
+ @filename = path[(last_slash + 1)..-1]
278
278
  end
279
279
  end
280
280
 
@@ -67,7 +67,7 @@ module Jekyll #:nodoc:
67
67
  return if @path.nil?
68
68
  return unless @path.template.nil?
69
69
  @path.template = @template
70
- @path.propagate_template(distance +1)
70
+ @path.propagate_template(distance + 1)
71
71
  end
72
72
 
73
73
  ##
@@ -49,7 +49,7 @@ module Jekyll
49
49
  ##
50
50
  # Function stub with no functionality. Its purpose is to keep RdfResource compatible.
51
51
  #
52
- def add_necessities (site, page)
52
+ def add_necessities(site, page)
53
53
  return self
54
54
  end
55
55
 
@@ -102,11 +102,15 @@ module Jekyll
102
102
  end
103
103
 
104
104
  ##
105
+ # Check at the end of the search for direct inheritance on highest level.
105
106
  # Returns the most specific class resource from +class_list+ based on
106
107
  # +current_best+.
107
- # +resource+ is the original input of request_class_template.
108
108
  #
109
- def find_highlevel_inheritance current_best, class_list, resource #check at the end of the search for direct inheritance on highest level
109
+ # +class_list+ is the list of clases that the +resource+ is assigned to.
110
+ # +resource+ is the original input of request_class_template resp. the
111
+ # resource on which to decide.
112
+ #
113
+ def find_highlevel_inheritance current_best, class_list, resource
110
114
  class_list.each{|resource|
111
115
  resource.find_direct_superclasses.each{|uri|
112
116
  @classResources[uri] ||= Jekyll::JekyllRdf::Drops::RdfResourceClass.new(RDF::URI(uri))
@@ -142,8 +146,8 @@ module Jekyll
142
146
  @consistence[hash_str].push(classRes)
143
147
  @consistence[hash_str].push([])
144
148
  end if @consistence[hash_str].nil?
145
- @consistence[hash_str][1].push(resource) # using a hash ensures that a warning is printed only once for each combination of templates
146
- # and for each resource at most once
149
+ # using a hash ensures that a warning is printed only once for each combination of templates and for each resource at most once
150
+ @consistence[hash_str][1].push(resource)
147
151
  @consistence[hash_str][0]
148
152
  end
149
153
 
@@ -79,7 +79,7 @@ module Jekyll
79
79
  next [nil, nil] if arr[1].nil?
80
80
  [arr[0][7..-1].strip, arr[1].strip[1..-2]]
81
81
  }.flatten.reject {|x| x.nil?})]
82
- rescue Errno::ENOENT => ex
82
+ rescue Errno::ENOENT
83
83
  Jekyll.logger.error("Prefix file not found: #{path}")
84
84
  raise
85
85
  end
@@ -3,7 +3,7 @@ module Jekyll
3
3
  module Helper
4
4
  module RdfGeneratorHelper
5
5
  private
6
- def prepare_pages (site, mapper)
6
+ def prepare_pages(site, mapper)
7
7
  Jekyll::Page.prepend Jekyll::JekyllRdf::Helper::RdfPageHelper
8
8
  @pageResources.each{|uri, entry|
9
9
  resource = entry.delete('./')
@@ -16,7 +16,7 @@ module Jekyll
16
16
  }
17
17
  end
18
18
 
19
- def parse_resources (resources)
19
+ def parse_resources(resources)
20
20
  @pageResources={};
21
21
  @blanknodes=[]
22
22
  resources.each do |uri|
@@ -45,10 +45,10 @@ module Jekyll
45
45
  }
46
46
  end
47
47
 
48
- def load_config (site)
48
+ def load_config(site)
49
49
  begin
50
50
  @config = site.config.fetch('jekyll_rdf')
51
- rescue KeyError => e
51
+ rescue KeyError
52
52
  Jekyll.logger.error("You've included Jekyll-RDF, but it is not configured. Aborting the jekyll-rdf plugin.")
53
53
  return false
54
54
  end
@@ -33,7 +33,7 @@ module Jekyll
33
33
  # loads the prefix data passed in the layout yaml-frontmatter or in _config.yml into page.data["rdf_prefixes"] and page.data["rdf_prefix_map"]
34
34
  def load_prefixes(path, prefHolder)
35
35
  Jekyll::JekyllRdf::Helper::RdfHelper.load_prefixes(path, prefHolder)
36
- rescue Errno::ENOENT => ex
36
+ rescue Errno::ENOENT
37
37
  Jekyll.logger.error("--> context resource: #{@resource} template: #{@template}") unless self.data["rdf"].nil?
38
38
  raise if Jekyll.env.eql? "development"
39
39
  end
@@ -58,7 +58,7 @@ module Jekyll
58
58
  if @config['remote']['default_graph'].nil?
59
59
  sparql = SPARQL::Client.new(graph)
60
60
  else
61
- sparql = SPARQL::Client.new(graph, { :graph => @config['remote']['default_graph'] })
61
+ sparql = SPARQL::Client.new(graph, graph: @config['remote']['default_graph'])
62
62
  end
63
63
  elsif(!@config['path'].nil?)
64
64
  sparql = SPARQL::Client.new(RDF::Graph.load( File.join( site.config['source'], @config['path'])))
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: 3.1.1.pre.develop.739
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elias Saalmann
@@ -15,71 +15,63 @@ 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: 2019-07-09 00:00:00.000000000 Z
21
+ date: 2022-02-28 00:00:00.000000000 Z
22
22
  dependencies:
23
- - !ruby/object:Gem::Dependency
24
- name: net-http-persistent
25
- requirement: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '2.9'
30
- type: :runtime
31
- prerelease: false
32
- version_requirements: !ruby/object:Gem::Requirement
33
- requirements:
34
- - - "~>"
35
- - !ruby/object:Gem::Version
36
- version: '2.9'
37
23
  - !ruby/object:Gem::Dependency
38
24
  name: linkeddata
39
25
  requirement: !ruby/object:Gem::Requirement
40
26
  requirements:
41
27
  - - "~>"
42
28
  - !ruby/object:Gem::Version
43
- version: '2.0'
29
+ version: '3.2'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 3.2.0
44
33
  type: :runtime
45
34
  prerelease: false
46
35
  version_requirements: !ruby/object:Gem::Requirement
47
36
  requirements:
48
37
  - - "~>"
49
38
  - !ruby/object:Gem::Version
50
- version: '2.0'
39
+ version: '3.2'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 3.2.0
51
43
  - !ruby/object:Gem::Dependency
52
44
  name: sparql-client
53
45
  requirement: !ruby/object:Gem::Requirement
54
46
  requirements:
55
47
  - - "~>"
56
48
  - !ruby/object:Gem::Version
57
- version: '3.0'
49
+ version: '3.2'
58
50
  - - ">="
59
51
  - !ruby/object:Gem::Version
60
- version: 3.0.1
52
+ version: 3.2.0
61
53
  type: :runtime
62
54
  prerelease: false
63
55
  version_requirements: !ruby/object:Gem::Requirement
64
56
  requirements:
65
57
  - - "~>"
66
58
  - !ruby/object:Gem::Version
67
- version: '3.0'
59
+ version: '3.2'
68
60
  - - ">="
69
61
  - !ruby/object:Gem::Version
70
- version: 3.0.1
62
+ version: 3.2.0
71
63
  - !ruby/object:Gem::Dependency
72
64
  name: jekyll
73
65
  requirement: !ruby/object:Gem::Requirement
74
66
  requirements:
75
- - - "~>"
67
+ - - ">="
76
68
  - !ruby/object:Gem::Version
77
69
  version: '3.1'
78
70
  type: :runtime
79
71
  prerelease: false
80
72
  version_requirements: !ruby/object:Gem::Requirement
81
73
  requirements:
82
- - - "~>"
74
+ - - ">="
83
75
  - !ruby/object:Gem::Version
84
76
  version: '3.1'
85
77
  - !ruby/object:Gem::Dependency
@@ -88,14 +80,14 @@ dependencies:
88
80
  requirements:
89
81
  - - "~>"
90
82
  - !ruby/object:Gem::Version
91
- version: '10.4'
83
+ version: '13.0'
92
84
  type: :development
93
85
  prerelease: false
94
86
  version_requirements: !ruby/object:Gem::Requirement
95
87
  requirements:
96
88
  - - "~>"
97
89
  - !ruby/object:Gem::Version
98
- version: '10.4'
90
+ version: '13.0'
99
91
  - !ruby/object:Gem::Dependency
100
92
  name: rest-client
101
93
  requirement: !ruby/object:Gem::Requirement
@@ -186,6 +178,26 @@ dependencies:
186
178
  - - "~>"
187
179
  - !ruby/object:Gem::Version
188
180
  version: '3.4'
181
+ - !ruby/object:Gem::Dependency
182
+ name: rdoc
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '6.2'
188
+ - - ">="
189
+ - !ruby/object:Gem::Version
190
+ version: 6.2.1
191
+ type: :development
192
+ prerelease: false
193
+ version_requirements: !ruby/object:Gem::Requirement
194
+ requirements:
195
+ - - "~>"
196
+ - !ruby/object:Gem::Version
197
+ version: '6.2'
198
+ - - ">="
199
+ - !ruby/object:Gem::Version
200
+ version: 6.2.1
189
201
  - !ruby/object:Gem::Dependency
190
202
  name: jekyll-theme-jod
191
203
  requirement: !ruby/object:Gem::Requirement
@@ -200,6 +212,20 @@ dependencies:
200
212
  - - "~>"
201
213
  - !ruby/object:Gem::Version
202
214
  version: 0.1.5
215
+ - !ruby/object:Gem::Dependency
216
+ name: kramdown-parser-gfm
217
+ requirement: !ruby/object:Gem::Requirement
218
+ requirements:
219
+ - - "~>"
220
+ - !ruby/object:Gem::Version
221
+ version: '1.1'
222
+ type: :development
223
+ prerelease: false
224
+ version_requirements: !ruby/object:Gem::Requirement
225
+ requirements:
226
+ - - "~>"
227
+ - !ruby/object:Gem::Version
228
+ version: '1.1'
203
229
  description: Generate static sites with Jekyll based on RDF data
204
230
  email: arndt@informatik.uni-leipzig.de
205
231
  executables: []
@@ -241,7 +267,7 @@ homepage: https://github.com/AKSW/jekyll-rdf
241
267
  licenses:
242
268
  - MIT
243
269
  metadata: {}
244
- post_install_message:
270
+ post_install_message:
245
271
  rdoc_options: []
246
272
  require_paths:
247
273
  - lib
@@ -252,12 +278,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
252
278
  version: '0'
253
279
  required_rubygems_version: !ruby/object:Gem::Requirement
254
280
  requirements:
255
- - - ">"
281
+ - - ">="
256
282
  - !ruby/object:Gem::Version
257
- version: 1.3.1
283
+ version: '0'
258
284
  requirements: []
259
- rubygems_version: 3.0.4
260
- signing_key:
285
+ rubygems_version: 3.3.5
286
+ signing_key:
261
287
  specification_version: 4
262
288
  summary: Hypertext Publication System for Templated Resource Rendering
263
289
  test_files: []