roboneuro 0.1.2 → 0.1.3
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 +2 -2
- data/README.md +2 -0
- data/fixtures/paper/paper-single-author.md +2 -2
- data/fixtures/paper/paper.md +2 -2
- data/lib/whedon/compilers.rb +0 -3
- data/lib/whedon/processor.rb +8 -2
- data/lib/whedon/version.rb +1 -1
- data/resources/NeuroLibre/defaults.yaml +2 -2
- data/resources/NeuroLibre/latex.template +13 -7
- data/resources/NeuroLibre/logo.png +0 -0
- data/resources/crossref.template +2 -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: 8c5144858281c93c49bf4c84aa8fc29d298561539e10e3eb65adc45d0b60bc8f
|
4
|
+
data.tar.gz: a591afde7412ff24427f952ddb992ab6e2f629d78d4e1c8a46d0a2a1672ef79e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01177b8a7791aab9f2b583b711e7057bb3637befdd53ba22dc2a4756f51f1918976e810ff649fce96cd4d51e685eeb8ab29375072cd003fabb814b65905b436d
|
7
|
+
data.tar.gz: 87a1b4fda0aadf51fedc64c4dd34e8ad09411297a4301bc962cca173a726cdf7603fc28c607c6c07a331e797cdb5e35a8fd331358fe18a6f3e4caf1e2f7592d3
|
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.3)
|
5
5
|
bibtex-ruby (~> 6.0.0)
|
6
6
|
dotenv
|
7
7
|
github-linguist (~> 5.3)
|
@@ -102,7 +102,7 @@ GEM
|
|
102
102
|
rspec-support (~> 3.10.0)
|
103
103
|
rspec-support (3.10.2)
|
104
104
|
ruby2_keywords (0.0.5)
|
105
|
-
rugged (1.4.
|
105
|
+
rugged (1.4.3)
|
106
106
|
sawyer (0.8.2)
|
107
107
|
addressable (>= 2.3.5)
|
108
108
|
faraday (> 0.8, < 2.0)
|
data/README.md
CHANGED
@@ -14,6 +14,8 @@ Hopefully...
|
|
14
14
|
|
15
15
|
[](https://github.com/openjournals/whedon/actions/workflows/tests.yml)
|
16
16
|
|
17
|
+
[](https://badge.fury.io/rb/roboneuro)
|
18
|
+
|
17
19
|
## Installation
|
18
20
|
|
19
21
|
Depending on how Ruby is installed on your system there might slightly different steps be necessary. Note that Whedon is only tested for reasonably modern versions of Ruby (i.e. > 2.1) [Bundler](http://bundler.io/) is used to install dependencies.
|
data/fixtures/paper/paper.md
CHANGED
data/lib/whedon/compilers.rb
CHANGED
@@ -106,7 +106,6 @@ module Compilers
|
|
106
106
|
def pdf_from_markdown(custom_branch=nil, draft=true, paper_issue=nil, paper_volume=nil, paper_year=nil)
|
107
107
|
latex_template_path = "#{Whedon.resources}/#{ENV['JOURNAL_ALIAS']}/latex.template"
|
108
108
|
csl_file = "#{Whedon.resources}/#{ENV['JOURNAL_ALIAS']}/apa.csl"
|
109
|
-
book_exec_icon = "#{Whedon.resources}/#{ENV['JOURNAL_ALIAS']}/logo_link.png"
|
110
109
|
|
111
110
|
url = "#{ENV['JOURNAL_URL']}/papers/lookup/#{@review_issue_id}"
|
112
111
|
response = RestClient.get(url)
|
@@ -148,7 +147,6 @@ module Compilers
|
|
148
147
|
"book_doi" => book_doi,
|
149
148
|
"docker_doi" => docker_doi,
|
150
149
|
"book_exec_url" => book_exec_url,
|
151
|
-
"book_exec_icon" => book_exec_icon,
|
152
150
|
"paper_url" => paper.pdf_url,
|
153
151
|
"journal_name" => ENV['JOURNAL_NAME'],
|
154
152
|
"review_issue_url" => paper.review_issue_url,
|
@@ -178,7 +176,6 @@ module Compilers
|
|
178
176
|
-V book_doi="#{book_doi}" \
|
179
177
|
-V docker_doi="#{docker_doi}" \
|
180
178
|
-V book_exec_url="#{book_exec_url}" \
|
181
|
-
-V book_exec_icon="#{book_exec_icon}" \
|
182
179
|
-V review_issue_url="#{paper.review_issue_url}" \
|
183
180
|
-V editor_url="#{editor_url}" \
|
184
181
|
-V graphics="true" \
|
data/lib/whedon/processor.rb
CHANGED
@@ -122,7 +122,9 @@ module Whedon
|
|
122
122
|
joss_deposit
|
123
123
|
|
124
124
|
puts "p=dat #{@review_issue_id};p.doi='#{paper.formatted_doi}';"\
|
125
|
-
"p.
|
125
|
+
"p.repository_doi=#{repository_doi};p.accepted_at=Time.now;"\
|
126
|
+
"p.data_doi=#{data_doi};p.book_doi=#{book_doi};"\
|
127
|
+
"p.docker_doi=#{docker_doi};p.book_exec_url=#{book_exec_url};"\
|
126
128
|
"p.citation_string='#{citation_string}';"\
|
127
129
|
"p.authors='#{paper.authors_string}';p.title='#{paper.title}';"
|
128
130
|
end
|
@@ -136,7 +138,11 @@ module Whedon
|
|
136
138
|
:id => paper.review_issue_id,
|
137
139
|
:metadata => Base64.encode64(paper.deposit_payload.to_json),
|
138
140
|
:doi => paper.formatted_doi,
|
139
|
-
:
|
141
|
+
:repository_doi => repository_doi,
|
142
|
+
:data_doi => data_doi,
|
143
|
+
:book_doi => book_doi,
|
144
|
+
:docker_doi => docker_doi,
|
145
|
+
:book_exec_url => book_exec_url,
|
140
146
|
:citation_string => citation_string,
|
141
147
|
:title => paper.plain_title,
|
142
148
|
:secret => ENV['WHEDON_SECRET']
|
data/lib/whedon/version.rb
CHANGED
@@ -4,9 +4,9 @@ csl: /usr/local/share/openjournals/NeuroLibre/apa.csl
|
|
4
4
|
variables:
|
5
5
|
joss_resource_url: 'N/A'
|
6
6
|
journal_abbrev_title: 'NeuroLibre'
|
7
|
-
journal_alias: '
|
7
|
+
journal_alias: 'neurolibre'
|
8
8
|
journal_issn: '0000-0000'
|
9
|
-
journal_name: 'NeuroLibre
|
9
|
+
journal_name: 'NeuroLibre Reproducible Preprint Server'
|
10
10
|
journal_url: 'https://neurolibre.org/'
|
11
11
|
|
12
12
|
metadata:
|
@@ -431,29 +431,35 @@ $endif$
|
|
431
431
|
%\hrule
|
432
432
|
\sffamily\small
|
433
433
|
|
434
|
-
\
|
435
|
-
|
436
|
-
\vspace{1mm}
|
434
|
+
\vspace{-4.5cm}
|
437
435
|
|
438
436
|
{\bfseries DOI:} \href{https://doi.org/$formatted_doi$}{\color{red}{$formatted_doi$}}
|
439
437
|
|
440
438
|
\vspace{2mm}
|
441
439
|
|
442
|
-
|
440
|
+
{\bfseries Reproducible Preprint}
|
441
|
+
\begin{itemize}
|
442
|
+
\setlength\itemsep{0em}
|
443
|
+
\item \href{$book_exec_url$}{\color{red}{Jupyter Book}} \ExternalLink
|
444
|
+
\end{itemize}
|
445
|
+
|
446
|
+
\vspace{2mm}
|
447
|
+
|
448
|
+
{\bfseries Code}
|
443
449
|
\begin{itemize}
|
444
450
|
\setlength\itemsep{0em}
|
445
451
|
\item \href{$review_issue_url$}{\color{red}{Technical Screening}} \ExternalLink
|
446
|
-
\item \href{$repository$}{\color{red}{
|
452
|
+
\item \href{$repository$}{\color{red}{Submitted Repository}} \ExternalLink
|
447
453
|
\end{itemize}
|
448
454
|
|
449
455
|
\vspace{2mm}
|
450
456
|
|
451
|
-
{\bfseries
|
457
|
+
{\bfseries Archives}
|
452
458
|
\begin{itemize}
|
453
459
|
\setlength\itemsep{0em}
|
454
460
|
\item \href{$repository_doi$}{\color{red}{Repository}} \ExternalLink
|
455
461
|
\item \href{$data_doi$}{\color{red}{Dataset}} \ExternalLink
|
456
|
-
\item \href{$book_doi$}{\color{red}{
|
462
|
+
\item \href{$book_doi$}{\color{red}{Jupyter Book}} \ExternalLink
|
457
463
|
\item \href{$docker_doi$}{\color{red}{Container}} \ExternalLink
|
458
464
|
\end{itemize}
|
459
465
|
|
Binary file
|
data/resources/crossref.template
CHANGED
@@ -7,14 +7,13 @@
|
|
7
7
|
<depositor_name>NeuroLibre Admin</depositor_name>
|
8
8
|
<email_address>roboneurolibre@gmail.com</email_address>
|
9
9
|
</depositor>
|
10
|
-
<registrant>
|
10
|
+
<registrant>Centre de Recherche de l'Institut Universitaire de Geriatrie de Montreal</registrant>
|
11
11
|
</head>
|
12
12
|
<body>
|
13
13
|
<journal>
|
14
14
|
<journal_metadata>
|
15
15
|
<full_title>$journal_name$</full_title>
|
16
16
|
<abbrev_title>$journal_abbrev_title$</abbrev_title>
|
17
|
-
<issn media_type="electronic">$journal_issn$</issn>
|
18
17
|
<doi_data>
|
19
18
|
<doi>10.55458/$journal_alias$</doi>
|
20
19
|
<resource>$journal_url$</resource>
|
@@ -58,7 +57,7 @@
|
|
58
57
|
</rel:related_item>
|
59
58
|
<rel:related_item>
|
60
59
|
<rel:description>Dataset archive</rel:description>
|
61
|
-
<rel:inter_work_relation relationship-type="hasPart" identifier-type="doi">$
|
60
|
+
<rel:inter_work_relation relationship-type="hasPart" identifier-type="doi">$data_doi$</rel:inter_work_relation>
|
62
61
|
</rel:related_item>
|
63
62
|
<rel:related_item>
|
64
63
|
<rel:description>Book archive</rel:description>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roboneuro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Agah Karakuzu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bibtex-ruby
|