roboneuro 0.1.7 → 0.1.8
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/Gemfile.lock +8 -8
- data/lib/whedon/version.rb +1 -1
- data/lib/whedon.rb +4 -8
- data/resources/crossref.template +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6bc5531d47410a0156c6817e01acd475e252dfb41c36785b0c15abac3f2bf14
|
4
|
+
data.tar.gz: 6c8a3f226c75cc67e658dc4d2a41c50bd62fc90126651540cdcc249721c49d40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d9198dff147e2fb229da918d3a32eadde149a766962f092080c6f8d0fbcffbaac915731b7b17d4b4853d1b34e05024f7985dee06585842fe0364b3b2f716da1
|
7
|
+
data.tar.gz: 2872e08d3cda62804bdee632620ea9b085808cf384055f7ec47b0fc1a6ee2f45fc2f45e60bf50a1fd468bd55b5c9f8420117778583b096b2cbfea520f0516e49
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
roboneuro (0.1.
|
4
|
+
roboneuro (0.1.8)
|
5
5
|
bibtex-ruby (~> 6.0.0)
|
6
6
|
dotenv
|
7
7
|
github-linguist (~> 5.3)
|
@@ -60,7 +60,7 @@ GEM
|
|
60
60
|
rugged (>= 0.25.1)
|
61
61
|
hashdiff (1.0.1)
|
62
62
|
http-accept (1.7.0)
|
63
|
-
http-cookie (1.0.
|
63
|
+
http-cookie (1.0.5)
|
64
64
|
domain_name (~> 0.5)
|
65
65
|
latex-decode (0.3.2)
|
66
66
|
method_source (1.0.0)
|
@@ -72,9 +72,9 @@ GEM
|
|
72
72
|
netrc (0.11.0)
|
73
73
|
nokogiri (1.10.8)
|
74
74
|
mini_portile2 (~> 2.4.0)
|
75
|
-
octokit (4.
|
76
|
-
faraday (>=
|
77
|
-
sawyer (~> 0.
|
75
|
+
octokit (4.23.0)
|
76
|
+
faraday (>= 1, < 3)
|
77
|
+
sawyer (~> 0.9)
|
78
78
|
openjournals-nameable (1.1.7)
|
79
79
|
pry (0.13.1)
|
80
80
|
coderay (~> 1.1)
|
@@ -103,14 +103,14 @@ GEM
|
|
103
103
|
rspec-support (3.10.2)
|
104
104
|
ruby2_keywords (0.0.5)
|
105
105
|
rugged (1.4.3)
|
106
|
-
sawyer (0.
|
106
|
+
sawyer (0.9.1)
|
107
107
|
addressable (>= 2.3.5)
|
108
|
-
faraday (
|
108
|
+
faraday (>= 0.17.3, < 3)
|
109
109
|
thor (0.20.3)
|
110
110
|
tilt (2.0.10)
|
111
111
|
unf (0.1.4)
|
112
112
|
unf_ext
|
113
|
-
unf_ext (0.0.8.
|
113
|
+
unf_ext (0.0.8.2)
|
114
114
|
unicode (0.4.4.4)
|
115
115
|
vcr (6.0.0)
|
116
116
|
webmock (3.11.2)
|
data/lib/whedon/version.rb
CHANGED
data/lib/whedon.rb
CHANGED
@@ -234,8 +234,11 @@ module Whedon
|
|
234
234
|
"#{ENV['JOURNAL_ALIAS']}.#{id}"
|
235
235
|
end
|
236
236
|
|
237
|
+
# HARDCODED
|
238
|
+
# We run into a problem with domain registration for neurolibre.github.io/preperints
|
239
|
+
# Therefore we decided to add neurolibre.github.io/preprints to xml metadata.
|
237
240
|
def pdf_url
|
238
|
-
"
|
241
|
+
"https://neurolibre.github.io/#{paper_repo}/#{joss_id}/#{ENV['DOI_PREFIX']}.#{joss_id}.pdf"
|
239
242
|
end
|
240
243
|
|
241
244
|
def paper_org
|
@@ -371,13 +374,6 @@ module Whedon
|
|
371
374
|
"#{ENV['JOURNAL_URL']}/papers/#{formatted_doi}"
|
372
375
|
end
|
373
376
|
|
374
|
-
# NeuroLibre journal URL and PDF urls are not identical.
|
375
|
-
# To properly locate PDFs, the preprints repo is hardcoded below.
|
376
|
-
def neurolibre_pdf_url
|
377
|
-
"https://neurolibre.github.io/preperints/#{formatted_doi}"
|
378
|
-
#"#{Rails.application.settings["papers_html_url"]}/#{joss_id}/#{doi_to_file}.pdf"
|
379
|
-
end
|
380
|
-
|
381
377
|
# Return the Review object associated with the Paper
|
382
378
|
def review_issue
|
383
379
|
review = Whedon::Review.new(review_issue_id, review_repository)
|
data/resources/crossref.template
CHANGED
@@ -77,7 +77,7 @@
|
|
77
77
|
<resource>$joss_resource_url$</resource>
|
78
78
|
<collection property="text-mining">
|
79
79
|
<item>
|
80
|
-
<resource mime_type="application/pdf">$
|
80
|
+
<resource mime_type="application/pdf">$paper_url$</resource>
|
81
81
|
</item>
|
82
82
|
</collection>
|
83
83
|
</doi_data>
|