jekyll-rdf 2.1.2.pre.develop.237 → 2.1.2.pre.develop.239
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/drops/rdf_resource.rb +10 -7
- data/lib/jekyll/drops/rdf_term.rb +1 -1
- data/lib/jekyll/rdf_generator_helper.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fa45d478c4e911c89147a3433537bbf5cfa2aa1
|
4
|
+
data.tar.gz: 7f711974f1dceda1aa4bc0c16374a660342a58ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d34b2ea37331d4b12c3433a4ec9a49ac99609d16742454bdc56a1a2fd21599c563a991bc9d04111cf66c1bb18637f9379c3193849388c0c564f8626b7a2bb18
|
7
|
+
data.tar.gz: a76edd9428343db357252b1df53c45ff1f152f2573703e67b7622d490ef531cfb3e6564f7f9bf5b013346feddc6b00a6e8cdbdf1442dfea1cb6213e6f81ec93d
|
@@ -41,11 +41,6 @@ module Jekyll #:nodoc:
|
|
41
41
|
#
|
42
42
|
attr_accessor :page
|
43
43
|
|
44
|
-
##
|
45
|
-
# The relative path to the location on the disk where this resource is rendered to
|
46
|
-
#
|
47
|
-
attr_reader :render_path
|
48
|
-
|
49
44
|
##
|
50
45
|
#
|
51
46
|
#
|
@@ -133,7 +128,14 @@ module Jekyll #:nodoc:
|
|
133
128
|
# Return the URL of the page representing this RdfResource
|
134
129
|
#
|
135
130
|
def page_url
|
136
|
-
|
131
|
+
@page_url ||= generate_file_name(@site.config["url"], @site.config["baseurl"]).chomp('index.html').chomp('.html')
|
132
|
+
end
|
133
|
+
|
134
|
+
##
|
135
|
+
# Return the path to the page representing this RdfResource
|
136
|
+
#
|
137
|
+
def render_path
|
138
|
+
@render_path ||= generate_file_name(@site.config["url"], @site.config["baseurl"])
|
137
139
|
end
|
138
140
|
|
139
141
|
##
|
@@ -216,7 +218,7 @@ module Jekyll #:nodoc:
|
|
216
218
|
begin
|
217
219
|
uri = Addressable::URI.parse(term.to_s).to_hash
|
218
220
|
file_name = "rdfsites/" # in this directory all external RDF sites are stored
|
219
|
-
if (uri[:host]
|
221
|
+
if((uri[:host].eql? domain_name) || ("#{uri[:scheme]}://#{uri[:host]}".eql? domain_name))
|
220
222
|
file_name = ""
|
221
223
|
uri[:scheme] = nil
|
222
224
|
uri[:host] = nil
|
@@ -259,6 +261,7 @@ module Jekyll #:nodoc:
|
|
259
261
|
end
|
260
262
|
file_name += 'index.html'
|
261
263
|
@render_path = file_name
|
264
|
+
@page_url = file_name.chomp('index.html').chomp('.html')
|
262
265
|
file_name
|
263
266
|
end
|
264
267
|
end
|
@@ -113,6 +113,10 @@ module Jekyll
|
|
113
113
|
page = RdfPageData.new(site, site.source, resource, mapper, global_config)
|
114
114
|
if(page.complete)
|
115
115
|
site.pages << page
|
116
|
+
resource.add_necessities(site, page)
|
117
|
+
resource.subResources.each {|key, value|
|
118
|
+
value.add_necessities(site, page)
|
119
|
+
} unless resource.subResources.nil?
|
116
120
|
end
|
117
121
|
end
|
118
122
|
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: 2.1.2.pre.develop.
|
4
|
+
version: 2.1.2.pre.develop.239
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elias Saalmann
|
@@ -16,7 +16,7 @@ authors:
|
|
16
16
|
autorequire:
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
|
-
date: 2017-08-
|
19
|
+
date: 2017-08-18 00:00:00.000000000 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: linkeddata
|