Skip to content

Commit 3004f28

Browse files
committedOct 15, 2024·
Merge branch 'main' into joss
2 parents 26e0b46 + 2d07db3 commit 3004f28

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed
 

‎Gemfile.lock

+21-21
Original file line numberDiff line numberDiff line change
@@ -11,48 +11,50 @@ GEM
1111
cgi (0.4.1)
1212
charlock_holmes (0.7.9)
1313
chronic (0.10.2)
14-
concurrent-ruby (1.3.3)
14+
concurrent-ruby (1.3.4)
1515
connection_pool (2.4.1)
1616
crack (1.0.0)
1717
bigdecimal
1818
rexml
1919
diff-lcs (1.5.1)
20-
dotenv (3.1.2)
21-
faraday (2.10.0)
22-
faraday-net_http (>= 2.0, < 3.2)
20+
dotenv (3.1.4)
21+
faraday (2.12.0)
22+
faraday-net_http (>= 2.0, < 3.4)
23+
json
2324
logger
2425
faraday-follow_redirects (0.1.0)
2526
faraday (>= 2, < 3)
26-
faraday-net_http (3.1.0)
27+
faraday-net_http (3.3.0)
2728
net-http
2829
faraday-retry (2.2.1)
2930
faraday (~> 2.0)
30-
github-linguist (7.30.0)
31+
github-linguist (8.0.1)
3132
cgi
3233
charlock_holmes (~> 0.7.7)
3334
mini_mime (~> 1.0)
3435
rugged (~> 1.0)
35-
hashdiff (1.1.0)
36+
hashdiff (1.1.1)
3637
issue (1.0.2)
3738
openssl (~> 3.2)
3839
rack (~> 3.1)
40+
json (2.7.2)
3941
latex-decode (0.4.0)
4042
licensee (9.17.1)
4143
dotenv (>= 2, < 4)
4244
octokit (>= 4.20, < 10.0)
4345
reverse_markdown (>= 1, < 3)
4446
rugged (>= 0.24, < 2.0)
4547
thor (>= 0.19, < 2.0)
46-
logger (1.6.0)
48+
logger (1.6.1)
4749
mini_mime (1.1.5)
4850
mini_portile2 (2.8.7)
4951
multi_json (1.15.0)
50-
mustermann (3.0.0)
52+
mustermann (3.0.3)
5153
ruby2_keywords (~> 0.0.1)
5254
net-http (0.4.1)
5355
uri
5456
nio4r (2.7.3)
55-
nokogiri (1.16.6)
57+
nokogiri (1.16.7)
5658
mini_portile2 (~> 2.8.2)
5759
racc (~> 1.4)
5860
octokit (9.1.0)
@@ -61,10 +63,10 @@ GEM
6163
ojra (1.1.1)
6264
faraday (~> 2.9)
6365
openssl (3.2.0)
64-
public_suffix (6.0.0)
65-
puma (6.4.2)
66+
public_suffix (6.0.1)
67+
puma (6.4.3)
6668
nio4r (~> 2.0)
67-
racc (1.8.0)
69+
racc (1.8.1)
6870
rack (3.1.7)
6971
rack-protection (4.0.0)
7072
base64 (>= 0.1.0)
@@ -77,15 +79,14 @@ GEM
7779
connection_pool
7880
reverse_markdown (2.1.1)
7981
nokogiri
80-
rexml (3.3.4)
81-
strscan
82+
rexml (3.3.7)
8283
rspec (3.13.0)
8384
rspec-core (~> 3.13.0)
8485
rspec-expectations (~> 3.13.0)
8586
rspec-mocks (~> 3.13.0)
86-
rspec-core (3.13.0)
87+
rspec-core (3.13.1)
8788
rspec-support (~> 3.13.0)
88-
rspec-expectations (3.13.1)
89+
rspec-expectations (3.13.3)
8990
diff-lcs (>= 1.2.0, < 2.0)
9091
rspec-support (~> 3.13.0)
9192
rspec-mocks (3.13.1)
@@ -103,7 +104,7 @@ GEM
103104
multi_json (~> 1.15)
104105
rexml (~> 3.2, >= 3.2.5)
105106
thor (~> 1.2, >= 1.2.1)
106-
sidekiq (7.3.0)
107+
sidekiq (7.3.2)
107108
concurrent-ruby (< 2)
108109
connection_pool (>= 2.3.0)
109110
logger
@@ -121,10 +122,9 @@ GEM
121122
rack-protection (= 4.0.0)
122123
sinatra (= 4.0.0)
123124
tilt (~> 2.0)
124-
strscan (3.1.0)
125-
thor (1.3.1)
125+
thor (1.3.2)
126126
tilt (2.4.0)
127-
uri (0.13.0)
127+
uri (0.13.1)
128128
webmock (3.23.1)
129129
addressable (>= 2.8.0)
130130
crack (>= 0.3.2)

‎app/lib/doi_checker.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def acm_105555_prefix(entry)
137137
if entry.has_field?('doi') && entry.doi.include?("10.5555/")
138138
{ validity: :invalid, msg: "#{entry.doi} is INVALID - 10.5555 is a known broken prefix, replace with https://dl.acm.org/doi/{doi} in the {url} field" }
139139
elsif entry.has_field?('url') && entry.url.include?("https://dl.acm.org/doi/10.5555")
140-
{ validity: :skip, msg: "#{entry.url} - correctly put 10.5555 prefixed doi in the url field, editor should ensure this resolves" }
140+
{ validity: :skip, msg: "#{entry.url} - non-DOI with 10.5555 correctly placed in the url field, editor should ensure this resolves" }
141141
else
142142
false
143143
end

‎spec/doi_checker_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
entry = BibTeX::Entry.new(url: "https://dl.acm.org/doi/10.5555/2827719.2827740")
129129
validity = subject.handle_special_case(entry)
130130
expect(validity[:validity]).to eq(:skip)
131-
expect(validity[:msg]).to eq("https://dl.acm.org/doi/10.5555/2827719.2827740 - correctly put 10.5555 prefixed doi in the url field, editor should ensure this resolves")
131+
expect(validity[:msg]).to eq("https://dl.acm.org/doi/10.5555/2827719.2827740 - non-DOI with 10.5555 correctly placed in the url field, editor should ensure this resolves")
132132
end
133133

134134
it "should handle special cases separately from normal DOI checking" do

0 commit comments

Comments
 (0)
Please sign in to comment.