scholarmarkdown 3.4.0 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7db79f28820d930dea3e2c316b2fea6fee595435723932ce06b3c5e185f459e2
4
- data.tar.gz: 28143dcde959ef945711eb2f83724095ba9b5a434c3abd339ee26646a48e4958
3
+ metadata.gz: 2ac06109aa7a14a12bd1c463b8e7bd03154cf133e80028bf19335e9bbeb95554
4
+ data.tar.gz: 46ecb4219bc353293a351dab6397c0b12efe00c9722bf548629314c4d5f74976
5
5
  SHA512:
6
- metadata.gz: 140640e53bb3b8920d5027bf6b6adabe1428e7dcd1e328f9a515212d11f6ad3540f93c801112d51f0aeb9c1e15d9a4c3f1a261ed35083ecb58c5debe2f2758fe
7
- data.tar.gz: 6beabcd14fb110f50db87b8add969b497d3a9e4678fbea9cb564fda47ca0ee574710808189ca4987056e9cb7a9fbf6fefd7d79b92067bd5f856f22e8d094b1cb
6
+ metadata.gz: af3d55866af76e60fa7f3112f65c60c260da2c4206fdb20bec866d85a2508b313a7382be169f45c0264bfc12b4312b2e18ad856fad47c3213dfb457a6b52b468
7
+ data.tar.gz: 5bf647afe859081acc28c9f77d7cb6e18f76ff67cc83d23a8fd62251de6e019d7846ee211b7dbc96c689fd91e4866dd73da6f2de5f085cca08470a0d7033923e
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.4.0
1
+ 3.5.0
@@ -366,9 +366,12 @@ header {
366
366
 
367
367
  #authors {
368
368
  list-style: none;
369
- margin: 1em 0;
369
+ margin: 1em auto;
370
370
  padding: 0;
371
+ letter-spacing: -.1px;
372
+ font-size: 0.8em;
371
373
  text-align: center;
374
+ width: 375px;
372
375
 
373
376
  li {
374
377
  display: inline;
@@ -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: gray;
535
+ color: lightgray;
537
536
  }
538
537
 
539
538
  #author-name {
540
539
  font-size:1.333em;
541
540
  }
542
541
 
543
- #author-org {
544
- font-size:1.0835em;
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 name, website, profile, mainAuthor = true
26
+ def person(name, website, profile, mainAuthor = true)
27
27
  if mainAuthor
28
28
  # Add person to global list of authors
29
- unless $authors
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
- h name
43
+ %{<span id="author-name">#{display_name}</span>}
37
44
  elsif not profile
38
- %{<a href="#{h website}">#{h name}</a>}
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}">#{h name}</a>}
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
@@ -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.4.0 ruby lib
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.4.0".freeze
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-04-04"
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.0
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-04-04 00:00:00.000000000 Z
11
+ date: 2025-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puma