jekyll-rdf 3.0.0.pre.develop.537 → 3.0.0.pre.develop.544

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: 476be698472eda2fce0ae7eeaa25d6bdd819544ccf04c8c9fe8c78d206d0959d
4
- data.tar.gz: 9bfb076e661ee022fc15d7614c29c3a31d4a39c5d380ce130558898f30f4d34c
3
+ metadata.gz: 16d718822696064b4dd9770ab9ca577a0d2a5c25b033647ade9421457346278d
4
+ data.tar.gz: 98d984c2c0c7800e8192c0fa955bdf27c52c69c3263b879acd02a233e282a899
5
5
  SHA512:
6
- metadata.gz: 109bde7af5014e0600c1f99564d7091c2b6dbb7cee5f7c960f7830f2fea9e234ab93eaa6572f5f4c975e780b75ae3843c5a0388faf942f7cf9d42fddfd698656
7
- data.tar.gz: 349a512e01ef9c366a2fb70f8ada47688b79c5bb299fa1b904f9966f7b166ff21cda15a837d3fd9fbdae2eb52f310aa4d5d004f9ad7f939ebf38272582c24a61
6
+ metadata.gz: aef044d8cc5984e3e52e5a53fd5319a872b402eca70189a51949c90846351565b9c2e7a53617a6015bfe63d9bf3100a52cad236c57dae2c75dc049fe42dc8bed
7
+ data.tar.gz: 50f02fa377d226b842f9297cb10148d39aed2322053cb90d300f12489c6c7e955c2fdd14ae8bcc96f5030a4506b81348d2df6af4c009d3047edea41ec9ba2e61
@@ -54,8 +54,8 @@ module Jekyll
54
54
  return unless valid_resource?(resource)
55
55
  query.gsub!('?resourceUri', to_string_wrap(resource))
56
56
  end if query.include? '?resourceUri' #the only purpose of the if statement is to substitute ?resourceUri
57
- if(!Jekyll::JekyllRdf::Helper::RdfHelper::page.data["rdf_prefixes"].nil?)
58
- query = query.prepend(" ").prepend(Jekyll::JekyllRdf::Helper::RdfHelper::page.data["rdf_prefixes"])
57
+ unless Jekyll::JekyllRdf::Helper::RdfHelper::prefixes["rdf_prefixes"].nil?
58
+ query = query.prepend(" ").prepend(Jekyll::JekyllRdf::Helper::RdfHelper::prefixes["rdf_prefixes"])
59
59
  end
60
60
  begin
61
61
  result = Jekyll::JekyllRdf::Helper::RdfHelper::sparql.query(query).map do |solution|
@@ -53,7 +53,10 @@ module Jekyll
53
53
  end
54
54
 
55
55
  def read_yaml(base, name, opts = {})
56
- @path = @site.layouts[Jekyll::JekyllRdf::Helper::RdfPageHelper.template(true)].path unless Jekyll::JekyllRdf::Helper::RdfPageHelper.template.nil?
56
+ begin
57
+ template = @site.layouts[Jekyll::JekyllRdf::Helper::RdfPageHelper.template(true)] #load actual template
58
+ @path = template.path unless template.nil?
59
+ end unless Jekyll::JekyllRdf::Helper::RdfPageHelper.template.nil?
57
60
  super(base, name, opts)
58
61
  end
59
62
 
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.0.0.pre.develop.537
4
+ version: 3.0.0.pre.develop.544
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elias Saalmann
@@ -17,7 +17,7 @@ authors:
17
17
  autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
- date: 2018-10-09 00:00:00.000000000 Z
20
+ date: 2018-10-10 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: net-http-persistent