theoj 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/theoj/paper.rb +8 -6
- data/lib/theoj/version.rb +1 -1
- metadata +19 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e547b163db1515379b7d14d756ce1a33c87ac3edc664ec1b88d9398886e82ca9
|
4
|
+
data.tar.gz: 98454621720c0c22f4d7a37134b344b55a9e0c29168b62ced477ae2eba4ad226
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 593a9a2099f19f529e3b96693d757dd3c97c61e74cb2a549a90734fd3e02b0f0dd4e24e3df175a9f91fc2ea54503098f08ff708defadd4c8ebd0351387a60cca
|
7
|
+
data.tar.gz: 89889649760946e68a6feafa397cead283c29242708c55a91cf07e33f7251e40935abe12125d6a6f8a1e354be4c63265136d41817123059dc5d376d280d709d3
|
data/CHANGELOG.md
CHANGED
data/lib/theoj/paper.rb
CHANGED
@@ -105,7 +105,9 @@ module Theoj
|
|
105
105
|
end
|
106
106
|
|
107
107
|
def load_metadata
|
108
|
-
@paper_metadata ||= if paper_path.
|
108
|
+
@paper_metadata ||= if paper_path.nil?
|
109
|
+
{}
|
110
|
+
elsif paper_path.include?('.tex')
|
109
111
|
YAML.load_file(paper_path.gsub('.tex', '.yml'))
|
110
112
|
else
|
111
113
|
YAML.load_file(paper_path)
|
@@ -132,14 +134,14 @@ module Theoj
|
|
132
134
|
parsed_authors
|
133
135
|
end
|
134
136
|
|
135
|
-
def parse_affiliations(
|
136
|
-
|
137
|
+
def parse_affiliations(affiliations_yaml)
|
138
|
+
affiliations_metadata = {}
|
137
139
|
|
138
|
-
|
139
|
-
|
140
|
+
affiliations_yaml.each do |affiliation|
|
141
|
+
affiliations_metadata[affiliation['index']] = affiliation['name']
|
140
142
|
end
|
141
143
|
|
142
|
-
|
144
|
+
affiliations_metadata
|
143
145
|
end
|
144
146
|
|
145
147
|
def detect_languages
|
data/lib/theoj/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: theoj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juanjo Bazán
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|
@@ -28,58 +28,58 @@ dependencies:
|
|
28
28
|
name: faraday
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '1.10'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '1.10'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: openjournals-nameable
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '1.1'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '1.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: github-linguist
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 7.19.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 7.19.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rugged
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 1.4.2
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 1.4.2
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
157
|
- !ruby/object:Gem::Version
|
158
158
|
version: '0'
|
159
159
|
requirements: []
|
160
|
-
rubygems_version: 3.
|
160
|
+
rubygems_version: 3.3.3
|
161
161
|
signing_key:
|
162
162
|
specification_version: 4
|
163
163
|
summary: Editorial objects used by the Open Journals
|