theoj 1.4.0 → 1.4.1

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: 8e40a25606ae1f2aaadf5e1459e1d9711b4c2650faa57cea6132a35d5c20cb8a
4
- data.tar.gz: f84ded3ac7b898a5fe25cd469d6c559ad6aa57a38c293fc948cfa01604c0de89
3
+ metadata.gz: 9486cf3fe9aaf56c43efbe6123016ce9b90a054398b2cd936b3bb5dbe4d31f2a
4
+ data.tar.gz: 8709e9a5baa199b67f6debe4e2cc839fd4d7a892f6ecf8997449c119b655a9b3
5
5
  SHA512:
6
- metadata.gz: 140741757c989ae514fad023fffd967b5f7ad90a7c94b800aa9c8aa7aeb9af9eccfdf4ce111fa35f2f916e83a1baff945e87a49c74f226fd76eb5739535a58ed
7
- data.tar.gz: e8ab0f0e2dbd6da6a81ef08b824cb7accaaa8dd9e9b378dbd72671528a774deb5f72c48465412c2d74ad1367ed680f21da852280f56dd991996692ae6b66b738
6
+ metadata.gz: 896db89c08cf36344bcd312ed433b63ea759f232b7892ec3ae3711f92e40247aed257dba1a04e03d33de9bd4acde2e0ab17fcea2d3d436593dfa04b5878966a0
7
+ data.tar.gz: 6dd748505af068cbe1019e621419ce0dbae212f9eefec025554e5ee4afb670b819082a98c30bd5ca08379582e6eb69b14b69dadf5e565c76eb16c8331ab02668
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.4.1 (2022-09-28)
4
+
5
+ - Added method to Submission to get track information
6
+
3
7
  ## 1.4.0 (2022-08-01)
4
8
 
5
9
  - Added method to Journal to get year/volume/issue information for any date
@@ -7,7 +11,7 @@
7
11
 
8
12
  ## 1.3.6 (2022-07-11)
9
13
 
10
- - Improve parsing os author names
14
+ - Improve parsing of author names
11
15
 
12
16
  ## 1.3.5 (2022-07-01)
13
17
 
@@ -165,6 +165,19 @@ module Theoj
165
165
  dates_info
166
166
  end
167
167
 
168
+ def track
169
+ track_info = { name: nil, short_name: nil, code: nil, label: nil, parameterized: nil}
170
+
171
+ if review_issue.issue_id
172
+ track_lookup = Faraday.get(journal.url + "/papers/" + review_issue.issue_id.to_s + "/lookup_track" )
173
+ if track_lookup.status == 200
174
+ track_info = JSON.parse(track_lookup.body, symbolize_names: true)
175
+ end
176
+ end
177
+
178
+ track_info
179
+ end
180
+
168
181
  private
169
182
 
170
183
  def build_citation_string(metadata)
data/lib/theoj/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Theoj
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
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.4.0
4
+ version: 1.4.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-08-01 00:00:00.000000000 Z
11
+ date: 2022-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 5.1.0
19
+ version: 5.6.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 5.1.0
26
+ version: 5.6.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.4.0
33
+ version: 2.5.2
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: 2.4.0
40
+ version: 2.5.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: openjournals-nameable
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 7.20.0
61
+ version: 7.23.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: 7.20.0
68
+ version: 7.23.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rugged
71
71
  requirement: !ruby/object:Gem::Requirement