ttl2html 0.2.2 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/xlsx2shape +2 -1
- data/lib/ttl2html.rb +3 -1
- data/lib/ttl2html/template.rb +1 -1
- data/lib/ttl2html/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d06692123b0db0ee6e1a41afff18a53f0d59b1544f42bb109d18d7d67f88623
|
4
|
+
data.tar.gz: '059e27c24ed7719dbbaa23560f8bc98638a0d23228019bccf1aa5d3ffb5b40d4'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d920ac982ac47703c360723885557dcdbf7f614972291fcb51758cb23110fcbb660da3e02c3563003534de41c8a9997edc48ea332109a443bc355f8b9a18536f
|
7
|
+
data.tar.gz: 5c36bf1f4d6b83466d8a5769330cae1461b973ce3a91d0b38fce4d52168d7ac575e9775e5ba6bb7a266e85dbd89d9e79b3ca53facac50fdca3a335eaf2a7e23c
|
data/bin/xlsx2shape
CHANGED
data/lib/ttl2html.rb
CHANGED
@@ -126,6 +126,8 @@ module TTL2HTML
|
|
126
126
|
param[:title] = template.get_title(v)
|
127
127
|
if @data.keys.find{|e| e.start_with?(uri + "/") }
|
128
128
|
file = uri + "/index.html"
|
129
|
+
elsif uri.end_with?("/")
|
130
|
+
file = uri + "index.html"
|
129
131
|
else
|
130
132
|
file = uri + ".html"
|
131
133
|
end
|
@@ -150,7 +152,7 @@ module TTL2HTML
|
|
150
152
|
template = Template.new("index.html.erb", @config)
|
151
153
|
param = @config.dup
|
152
154
|
param[:data_global] = @data
|
153
|
-
subjects.each do |subject|
|
155
|
+
subjects.sort.each do |subject|
|
154
156
|
param[:index_data] ||= []
|
155
157
|
param[:index_data] << subject.to_s
|
156
158
|
end
|
data/lib/ttl2html/template.rb
CHANGED
@@ -128,7 +128,7 @@ module TTL2HTML
|
|
128
128
|
return get_language_literal(data[@param[:title_property]])
|
129
129
|
end
|
130
130
|
%w(
|
131
|
-
|
131
|
+
http://www.w3.org/2000/01/rdf-schema#label
|
132
132
|
http://purl.org/dc/terms/title
|
133
133
|
http://purl.org/dc/elements/1.1/title
|
134
134
|
http://schema.org/name
|
data/lib/ttl2html/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
TTL2HTML::VERSION = "0.2.
|
1
|
+
TTL2HTML::VERSION = "0.2.7"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ttl2html
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masao Takaku
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|