roboneuro 0.1.7 → 0.1.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 178f8979297b26fe80f582a9e6e41e6dd4bdb4eb554fdf42fd7528d991f8efac
4
- data.tar.gz: 5b7e8606cc13ac8019ca52e93ecb282e20595c751af9331d72e5b320da35f58a
3
+ metadata.gz: d6222b1286c8b93307f32a72b4732c7604aaa65d8468f0aade6039e8b4b4fe81
4
+ data.tar.gz: daf030e38d2271cdcb790d020e8daf15454f211ce86a9669dc3d8a2039d6ec0f
5
5
  SHA512:
6
- metadata.gz: 93dcbf3a086abcd68d37754c5d4faa9ee8529eb0981b7f845d2fb8af9af803d9fe66eaf145ab739a5b8d0f18c3e7d585002216f171a2037e23a8a4020b0b7ca8
7
- data.tar.gz: 723db9876f4f378f183533d2c4f17d14fc01e8f60643fa387c49eb6834f1fb6e2fc194d78e29cef3bba1345aa372f47eccf4906642b095007334fabe66beba65
6
+ metadata.gz: '039255053135989cd7699d9955f1928dcc1a15dbf7eee584f1852183023e25c2971dd63978f73ed76dd2a30a0f238cc5f2f0b0c47a6344315a7f238c3a3324fd'
7
+ data.tar.gz: aa7bcdbe4fd862a06302f841936c4304d8bda89c6d8977a66e5c4f5985edd7c30d33718d09a2bb653c742176c8af640d816058dc6514a42d8f712b28ddd9a727
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- roboneuro (0.1.7)
4
+ roboneuro (0.1.10)
5
5
  bibtex-ruby (~> 6.0.0)
6
6
  dotenv
7
7
  github-linguist (~> 5.3)
@@ -30,29 +30,10 @@ GEM
30
30
  unf (>= 0.0.5, < 1.0.0)
31
31
  dotenv (2.7.6)
32
32
  escape_utils (1.1.1)
33
- faraday (1.10.0)
34
- faraday-em_http (~> 1.0)
35
- faraday-em_synchrony (~> 1.0)
36
- faraday-excon (~> 1.1)
37
- faraday-httpclient (~> 1.0)
38
- faraday-multipart (~> 1.0)
39
- faraday-net_http (~> 1.0)
40
- faraday-net_http_persistent (~> 1.0)
41
- faraday-patron (~> 1.0)
42
- faraday-rack (~> 1.0)
43
- faraday-retry (~> 1.0)
33
+ faraday (2.3.0)
34
+ faraday-net_http (~> 2.0)
44
35
  ruby2_keywords (>= 0.0.4)
45
- faraday-em_http (1.0.0)
46
- faraday-em_synchrony (1.0.0)
47
- faraday-excon (1.1.0)
48
- faraday-httpclient (1.0.1)
49
- faraday-multipart (1.0.3)
50
- multipart-post (>= 1.2, < 3)
51
- faraday-net_http (1.0.1)
52
- faraday-net_http_persistent (1.2.0)
53
- faraday-patron (1.0.0)
54
- faraday-rack (1.0.0)
55
- faraday-retry (1.0.3)
36
+ faraday-net_http (2.0.3)
56
37
  github-linguist (5.3.3)
57
38
  charlock_holmes (~> 0.7.5)
58
39
  escape_utils (~> 1.1.0)
@@ -60,7 +41,7 @@ GEM
60
41
  rugged (>= 0.25.1)
61
42
  hashdiff (1.0.1)
62
43
  http-accept (1.7.0)
63
- http-cookie (1.0.4)
44
+ http-cookie (1.0.5)
64
45
  domain_name (~> 0.5)
65
46
  latex-decode (0.3.2)
66
47
  method_source (1.0.0)
@@ -68,13 +49,12 @@ GEM
68
49
  mime-types-data (~> 3.2015)
69
50
  mime-types-data (3.2022.0105)
70
51
  mini_portile2 (2.4.0)
71
- multipart-post (2.1.1)
72
52
  netrc (0.11.0)
73
53
  nokogiri (1.10.8)
74
54
  mini_portile2 (~> 2.4.0)
75
- octokit (4.22.0)
76
- faraday (>= 0.9)
77
- sawyer (~> 0.8.0, >= 0.5.3)
55
+ octokit (4.24.0)
56
+ faraday (>= 1, < 3)
57
+ sawyer (~> 0.9)
78
58
  openjournals-nameable (1.1.7)
79
59
  pry (0.13.1)
80
60
  coderay (~> 1.1)
@@ -103,14 +83,14 @@ GEM
103
83
  rspec-support (3.10.2)
104
84
  ruby2_keywords (0.0.5)
105
85
  rugged (1.4.3)
106
- sawyer (0.8.2)
86
+ sawyer (0.9.2)
107
87
  addressable (>= 2.3.5)
108
- faraday (> 0.8, < 2.0)
88
+ faraday (>= 0.17.3, < 3)
109
89
  thor (0.20.3)
110
90
  tilt (2.0.10)
111
91
  unf (0.1.4)
112
92
  unf_ext
113
- unf_ext (0.0.8.1)
93
+ unf_ext (0.0.8.2)
114
94
  unicode (0.4.4.4)
115
95
  vcr (6.0.0)
116
96
  webmock (3.11.2)
@@ -118,7 +118,9 @@ module Whedon
118
118
  end
119
119
 
120
120
  def deposit
121
+ puts "GEM - DEPOSITING CROSSREF"
121
122
  crossref_deposit
123
+ puts "GEM - DEPOSITING NEUROLIBRE"
122
124
  joss_deposit
123
125
 
124
126
  puts "p=dat #{@review_issue_id};p.doi='#{paper.formatted_doi}';"\
@@ -1,3 +1,3 @@
1
1
  module Whedon
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.10"
3
3
  end
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
- "http://neurolibre.org/#{paper_repo}/#{joss_id}/#{ENV['DOI_PREFIX']}.#{joss_id}.pdf"
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)
@@ -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">$joss_resource_url$.pdf</resource>
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.7
4
+ version: 0.1.10
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-06-02 00:00:00.000000000 Z
11
+ date: 2022-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bibtex-ruby