roboneuro 0.1.5 → 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/processor.rb +2 -1
- data/lib/whedon/version.rb +1 -1
- data/lib/whedon.rb +4 -1
- data/resources/crossref.template +1 -1
- 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: 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/processor.rb
CHANGED
@@ -118,7 +118,7 @@ module Whedon
|
|
118
118
|
end
|
119
119
|
|
120
120
|
def deposit
|
121
|
-
|
121
|
+
crossref_deposit
|
122
122
|
joss_deposit
|
123
123
|
|
124
124
|
puts "p=dat #{@review_issue_id};p.doi='#{paper.formatted_doi}';"\
|
@@ -173,6 +173,7 @@ module Whedon
|
|
173
173
|
})
|
174
174
|
|
175
175
|
response = request.execute
|
176
|
+
puts response.body
|
176
177
|
if response.code == 200
|
177
178
|
puts "Deposit looks good. Check your email!"
|
178
179
|
else
|
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
|
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>
|
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.8
|
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-
|
11
|
+
date: 2022-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bibtex-ruby
|