Skip to content

Commit dc4847f

Browse files
committed
Merge branch 'main' into resciencec
2 parents 4f03e8b + 66fd7dd commit dc4847f

File tree

7 files changed

+40
-35
lines changed

7 files changed

+40
-35
lines changed

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ if ENV["CUSTOM_RUBY_VERSION"]
55
end
66

77
gem 'octokit'
8-
gem 'sinatra', '3.0.5'
9-
gem 'sinatra-contrib', '3.0.5'
8+
gem 'sinatra', '3.1.0'
9+
gem 'sinatra-contrib', '3.1.0'
1010
gem 'openssl'
1111
gem 'puma'
1212
gem 'sidekiq'

Gemfile.lock

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
addressable (2.8.4)
4+
addressable (2.8.5)
55
public_suffix (>= 2.0.2, < 6.0)
66
bibtex-ruby (6.0.0)
77
latex-decode (~> 0.0)
88
cgi (0.3.6)
99
charlock_holmes (0.7.7)
1010
chronic (0.10.2)
1111
concurrent-ruby (1.2.2)
12-
connection_pool (2.4.0)
12+
connection_pool (2.4.1)
1313
crack (0.4.5)
1414
rexml
1515
diff-lcs (1.5.0)
1616
dotenv (2.8.1)
17-
faraday (2.7.4)
17+
faraday (2.7.10)
1818
faraday-net_http (>= 2.0, < 3.1)
1919
ruby2_keywords (>= 0.0.4)
2020
faraday-follow_redirects (0.1.0)
2121
faraday (>= 2, < 3)
2222
faraday-net_http (3.0.2)
23-
faraday-retry (2.1.0)
23+
faraday-retry (2.2.0)
2424
faraday (~> 2.0)
25-
github-linguist (7.25.0)
25+
github-linguist (7.26.0)
2626
cgi
2727
charlock_holmes (~> 0.7.7)
2828
mini_mime (~> 1.0)
@@ -38,33 +38,33 @@ GEM
3838
reverse_markdown (>= 1, < 3)
3939
rugged (>= 0.24, < 2.0)
4040
thor (>= 0.19, < 2.0)
41-
mini_mime (1.1.2)
42-
mini_portile2 (2.8.2)
41+
mini_mime (1.1.5)
42+
mini_portile2 (2.8.4)
4343
multi_json (1.15.0)
4444
mustermann (3.0.0)
4545
ruby2_keywords (~> 0.0.1)
4646
nio4r (2.5.9)
47-
nokogiri (1.14.3)
48-
mini_portile2 (~> 2.8.0)
47+
nokogiri (1.15.3)
48+
mini_portile2 (~> 2.8.2)
4949
racc (~> 1.4)
5050
octokit (6.1.1)
5151
faraday (>= 1, < 3)
5252
sawyer (~> 0.9)
5353
openssl (3.1.0)
54-
public_suffix (5.0.1)
55-
puma (6.2.2)
54+
public_suffix (5.0.3)
55+
puma (6.3.0)
5656
nio4r (~> 2.0)
57-
racc (1.6.2)
58-
rack (2.2.7)
59-
rack-protection (3.0.5)
60-
rack
57+
racc (1.7.1)
58+
rack (2.2.8)
59+
rack-protection (3.1.0)
60+
rack (~> 2.2, >= 2.2.4)
6161
rack-test (2.1.0)
6262
rack (>= 1.3)
63-
redis-client (0.14.1)
63+
redis-client (0.15.0)
6464
connection_pool
6565
reverse_markdown (2.1.1)
6666
nokogiri
67-
rexml (3.2.5)
67+
rexml (3.2.6)
6868
rspec (3.12.0)
6969
rspec-core (~> 3.12.0)
7070
rspec-expectations (~> 3.12.0)
@@ -74,10 +74,10 @@ GEM
7474
rspec-expectations (3.12.3)
7575
diff-lcs (>= 1.2.0, < 2.0)
7676
rspec-support (~> 3.12.0)
77-
rspec-mocks (3.12.5)
77+
rspec-mocks (3.12.6)
7878
diff-lcs (>= 1.2.0, < 2.0)
7979
rspec-support (~> 3.12.0)
80-
rspec-support (3.12.0)
80+
rspec-support (3.12.1)
8181
ruby2_keywords (0.0.5)
8282
rugged (1.6.3)
8383
sawyer (0.9.2)
@@ -89,24 +89,24 @@ GEM
8989
multi_json (~> 1.15)
9090
rexml (~> 3.2, >= 3.2.5)
9191
thor (~> 1.2, >= 1.2.1)
92-
sidekiq (7.1.0)
92+
sidekiq (7.1.2)
9393
concurrent-ruby (< 2)
9494
connection_pool (>= 2.3.0)
9595
rack (>= 2.2.4)
9696
redis-client (>= 0.14.0)
97-
sinatra (3.0.5)
97+
sinatra (3.1.0)
9898
mustermann (~> 3.0)
9999
rack (~> 2.2, >= 2.2.4)
100-
rack-protection (= 3.0.5)
100+
rack-protection (= 3.1.0)
101101
tilt (~> 2.0)
102-
sinatra-contrib (3.0.5)
102+
sinatra-contrib (3.1.0)
103103
multi_json
104104
mustermann (~> 3.0)
105-
rack-protection (= 3.0.5)
106-
sinatra (= 3.0.5)
105+
rack-protection (= 3.1.0)
106+
sinatra (= 3.1.0)
107107
tilt (~> 2.0)
108-
thor (1.2.1)
109-
tilt (2.1.0)
108+
thor (1.2.2)
109+
tilt (2.2.0)
110110
webmock (3.18.1)
111111
addressable (>= 2.8.0)
112112
crack (>= 0.3.2)
@@ -131,8 +131,8 @@ DEPENDENCIES
131131
rspec
132132
serrano
133133
sidekiq
134-
sinatra (= 3.0.5)
135-
sinatra-contrib (= 3.0.5)
134+
sinatra (= 3.1.0)
135+
sinatra-contrib (= 3.1.0)
136136
webmock
137137

138138
BUNDLED WITH

app/responders/repo_checks_responder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class RepoChecksResponder < Responder
66

77
def define_listening
88
@event_action = "issue_comment.created"
9-
@event_regex = /\A@#{bot_name} check repository(?: from branch ([\/\w-]+))?\.?\s*$/i
9+
@event_regex = /\A@#{bot_name} check repository(?: from branch ([\/\.\w-]+))?\.?\s*$/i
1010
end
1111

1212
def process_message(message)

app/responders/reviewers_list_responder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class ReviewersListResponder < Responder
66

77
def define_listening
88
@event_action = "issue_comment.created"
9-
@event_regex = /\A@#{bot_name} (add|remove) (\S+) (to reviewers|from reviewers|as reviewer)\.?\s*$/i
9+
@event_regex = /\A@#{bot_name} (add|remove) +(\S+) +(to reviewers|from reviewers|as reviewer)\.?\s*$/i
1010
end
1111

1212
def process_message(message)

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Buffy
22
=====
33
Buffy is an editorial bots generator, a service to provide a bot helping scientific journals manage submission reviews.
44

5-
Buffy is a configurable Ruby application that –once deployed as a web service listening to incoming GitHub webhooks– provides a bot that interacts during the peer-review process with editors, reviewers and authors to help them perform actions on the review, the software being reviewed and its corresponding paper, automating common editorial tasks like those needed by the `Journal of Open Source Software <http://joss.theoj.org/>`_, `rOpenSci <https://ropensci.org/>`_ or `Scipy <https://github.com/scipy-conference/scipy_proceedings>`_.
5+
Buffy is a configurable Ruby application that –once deployed as a web service listening to incoming GitHub webhooks– provides a bot that interacts during the peer-review process with editors, reviewers and authors to help them perform actions on the review, the software being reviewed and its corresponding paper, automating common editorial tasks like those needed by the `Journal of Open Source Software <http://joss.theoj.org/>`_, `rOpenSci <https://ropensci.org/>`_, the `Journal of Open Source Education <http://jose.theoj.org/>`_ or `Scipy <https://github.com/scipy-conference/scipy_proceedings>`_.
66

77
Buffy is an Open Source project, `the code <https://github.com/openjournals/buffy>`_ is hosted at GitHub and released under a MIT license.
88

spec/responders/repo_checks_responder_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
expect(@responder.event_regex).to match("@botsci check repository")
2121
expect(@responder.event_regex).to match("@botsci check repository \r\n")
2222
expect(@responder.event_regex).to match("@botsci check repository\r\nmore")
23-
expect(@responder.event_regex).to match("@botsci check repository from branch custom-branch")
23+
expect(@responder.event_regex).to match("@botsci check repository from branch custom-branch_6.0")
2424
expect(@responder.event_regex).to match("@botsci check repository from branch custom/branch")
2525
expect(@responder.event_regex).to match("@botsci check repository from branch development \r\n")
2626
expect(@responder.event_regex).to_not match("@botsci check repository from branch ")

spec/responders/reviewers_list_responder_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,18 @@
1515

1616
it "should define regex" do
1717
expect(@responder.event_regex).to match("@botsci add @arfon to reviewers")
18+
expect(@responder.event_regex).to match("@botsci add @arfon to reviewers")
19+
expect(@responder.event_regex).to match("@botsci add @arfon to reviewers")
20+
expect(@responder.event_regex).to match("@botsci add @arfon to reviewers")
1821
expect(@responder.event_regex).to match("@botsci add @arfon as reviewer")
1922
expect(@responder.event_regex).to match("@botsci add me as reviewer")
2023
expect(@responder.event_regex).to match("@botsci remove me from reviewers")
2124
expect(@responder.event_regex).to match("@botsci remove @arfon from reviewers ")
2225
expect(@responder.event_regex).to match("@botsci remove @arfon from reviewers \r\n")
2326
expect(@responder.event_regex).to match("@botsci remove @arfon from reviewers \r\n more ")
2427
expect(@responder.event_regex).to_not match("@botsci add to reviewers")
28+
expect(@responder.event_regex).to_not match("@botsci add@arfon to reviewers")
29+
expect(@responder.event_regex).to_not match("@botsci add @arfonto reviewers")
2530
expect(@responder.event_regex).to_not match("@botsci remove from reviewers")
2631
end
2732
end

0 commit comments

Comments
 (0)