scholarmarkdown 3.4.1 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/bin/template_override_ceur/content/styles/ceurart.scss +3 -4
- data/lib/scholarmarkdown/snippets.rb +14 -7
- data/scholarmarkdown.gemspec +3 -3
- 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: 2ac06109aa7a14a12bd1c463b8e7bd03154cf133e80028bf19335e9bbeb95554
|
4
|
+
data.tar.gz: 46ecb4219bc353293a351dab6397c0b12efe00c9722bf548629314c4d5f74976
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af3d55866af76e60fa7f3112f65c60c260da2c4206fdb20bec866d85a2508b313a7382be169f45c0264bfc12b4312b2e18ad856fad47c3213dfb457a6b52b468
|
7
|
+
data.tar.gz: 5bf647afe859081acc28c9f77d7cb6e18f76ff67cc83d23a8fd62251de6e019d7846ee211b7dbc96c689fd91e4866dd73da6f2de5f085cca08470a0d7033923e
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.5.0
|
@@ -145,7 +145,6 @@ hyphens:none;
|
|
145
145
|
margin-bottom: 0.5em;
|
146
146
|
text-transform:capitalize;
|
147
147
|
.title {
|
148
|
-
text-transform: uppercase;
|
149
148
|
display: block;
|
150
149
|
font-weight: bold;
|
151
150
|
font-size:1.333em;
|
@@ -533,15 +532,15 @@ vertical-align:top;
|
|
533
532
|
content: ',';
|
534
533
|
}
|
535
534
|
#authors .first-name {
|
536
|
-
color:
|
535
|
+
color: lightgray;
|
537
536
|
}
|
538
537
|
|
539
538
|
#author-name {
|
540
539
|
font-size:1.333em;
|
541
540
|
}
|
542
541
|
|
543
|
-
#
|
544
|
-
font-size:
|
542
|
+
#affiliations li {
|
543
|
+
font-size:0.90em;
|
545
544
|
}
|
546
545
|
|
547
546
|
#author-email {
|
@@ -23,20 +23,27 @@ def section id, classes = nil
|
|
23
23
|
end
|
24
24
|
|
25
25
|
# Create a person block
|
26
|
-
def person
|
26
|
+
def person(name, website, profile, mainAuthor = true)
|
27
27
|
if mainAuthor
|
28
28
|
# Add person to global list of authors
|
29
|
-
|
30
|
-
$authors = []
|
31
|
-
end
|
29
|
+
$authors ||= []
|
32
30
|
$authors.push(name)
|
33
31
|
end
|
34
32
|
|
33
|
+
# Handle "Firstname, Lastname" format
|
34
|
+
display_name =
|
35
|
+
if name.include?(",")
|
36
|
+
firstname, lastname = name.split(",", 2).map(&:strip)
|
37
|
+
%{<span class="first-name">#{h firstname}</span> #{h lastname}}
|
38
|
+
else
|
39
|
+
h name
|
40
|
+
end
|
41
|
+
|
35
42
|
if not website
|
36
|
-
|
43
|
+
%{<span id="author-name">#{display_name}</span>}
|
37
44
|
elsif not profile
|
38
|
-
%{<a href="#{h website}">#{
|
45
|
+
%{<a id="author-name" href="#{h website}">#{display_name}</a>}
|
39
46
|
else
|
40
|
-
%{<a rev="lsc:participatesIn" property="foaf:maker schema:creator schema:author schema:publisher" href="#{h website}" typeof="foaf:Person schema:Person" resource="#{profile}">#{
|
47
|
+
%{<a id="author-name" rev="lsc:participatesIn" property="foaf:maker schema:creator schema:author schema:publisher" href="#{h website}" typeof="foaf:Person schema:Person" resource="#{profile}">#{display_name}</a>}
|
41
48
|
end
|
42
49
|
end
|
data/scholarmarkdown.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: scholarmarkdown 3.
|
5
|
+
# stub: scholarmarkdown 3.5.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "scholarmarkdown".freeze
|
9
|
-
s.version = "3.
|
9
|
+
s.version = "3.5.0".freeze
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["Ruben Taelman".freeze]
|
14
|
-
s.date = "2025-
|
14
|
+
s.date = "2025-09-11"
|
15
15
|
s.email = "rubensworks@gmail.com".freeze
|
16
16
|
s.executables = ["generate-scholarmarkdown".freeze]
|
17
17
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scholarmarkdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ruben Taelman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: puma
|