slack-ruby-bot-server 2.2.0 → 2.3.0

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: b8080b3ce56aef52adfa56d9a44dd41441a3d5a1cade523ba0efeab835bdb49f
4
- data.tar.gz: 13a73f38797ac35168f7367a63fec5a77ec8557eb28ee276b7c4908dc32ce3fc
3
+ metadata.gz: 8190478be418eff0f5da4e0cfede6b2203664c4e0812783575e9e00519b42b1c
4
+ data.tar.gz: 8a06246c7bd7052c5adf79b3aedfd95493408d909faca16eaca538f638b0aa9f
5
5
  SHA512:
6
- metadata.gz: ac49a4aecc5e9fde9b9cfd3e8587875997cc397a122a7a186ab75718bb4d9dfd33969feb8c5d8ec29b584bfb6d886f3b2acda784487e43cab347afe56d093581
7
- data.tar.gz: 87200e20d325daed6597d119df0726ec9da6f7b908300d49c2adbac82a124ff3f55e90373585de643a4a1a161a6f7b4869f6338fbdd24f00c72f4afc9ee451e7
6
+ metadata.gz: 26e3f8e38c8196c079ae1eaa8c5a6f7ec32cb71e963cb8e3f61f1f017dde997a739d0208d25f5a6dc1d84d38c9ba90b50072a16536b38a4b1444cbf9fbbc0e3b
7
+ data.tar.gz: 371ab36d34805242886ed780d01784535a133156fe633349389281effde66d62d607422ec6539fa892a430390eada2f5c6e66f0bd54be7591f17097db6b9ee94
@@ -0,0 +1,11 @@
1
+ name: Danger Comment
2
+
3
+ on:
4
+ workflow_run:
5
+ workflows: [Danger]
6
+ types: [completed]
7
+
8
+ jobs:
9
+ comment:
10
+ uses: numbata/danger-pr-comment/.github/workflows/danger-comment.yml@v0.1.0
11
+ secrets: inherit
@@ -1,22 +1,13 @@
1
- ---
2
- name: danger
3
- on: [pull_request]
1
+ name: Danger
2
+
3
+ on:
4
+ pull_request:
5
+ types: [opened, reopened, edited, synchronize]
6
+
4
7
  jobs:
5
8
  danger:
6
- runs-on: ubuntu-latest
7
- env:
8
- BUNDLE_GEMFILE: Gemfile.danger
9
- steps:
10
- - uses: actions/checkout@v2
11
- with:
12
- fetch-depth: 0
13
- - name: Set up Ruby
14
- uses: ruby/setup-ruby@v1
15
- with:
16
- ruby-version: 2.7
17
- bundler-cache: true
18
- - name: Run Danger
19
- run: |
20
- # the personal token is public, this is ok, base64 encode to avoid tripping Github
21
- TOKEN=$(echo -n Z2hwX0xNQ3VmanBFeTBvYkZVTWh6NVNqVFFBOEUxU25abzBqRUVuaAo= | base64 --decode)
22
- DANGER_GITHUB_API_TOKEN=$TOKEN bundle exec danger --verbose
9
+ uses: numbata/danger-pr-comment/.github/workflows/danger-run.yml@v0.1.0
10
+ secrets: inherit
11
+ with:
12
+ ruby-version: '3.4'
13
+ bundler-cache: true
@@ -1,16 +1,22 @@
1
1
  ---
2
2
  name: lint
3
3
  on: [push, pull_request]
4
+ permissions:
5
+ contents: read
6
+ concurrency:
7
+ group: rubocop-${{ github.ref }}
8
+ cancel-in-progress: true
4
9
  jobs:
5
10
  lint:
6
11
  name: RuboCop
7
- runs-on: ubuntu-latest
12
+ runs-on: ubuntu-24.04
13
+ timeout-minutes: 10
8
14
  steps:
9
- - uses: actions/checkout@v3
15
+ - uses: actions/checkout@v7
10
16
  - name: Set up Ruby
11
17
  uses: ruby/setup-ruby@v1
12
18
  with:
13
- ruby-version: 3.4
19
+ ruby-version: '4.0'
14
20
  bundler-cache: true
15
21
  - name: Run RuboCop
16
22
  run: bundle exec rubocop
@@ -1,40 +1,51 @@
1
1
  ---
2
- name: test
2
+ name: MongoDB
3
3
  on: [push, pull_request]
4
+ permissions:
5
+ contents: read
6
+ concurrency:
7
+ group: mongodb-${{ github.ref }}
8
+ cancel-in-progress: true
4
9
  jobs:
5
10
  test:
6
- runs-on: ubuntu-latest
11
+ runs-on: ubuntu-24.04
12
+ timeout-minutes: 20
13
+ env:
14
+ DATABASE_ADAPTER: mongoid
15
+ MONGOID_VERSION: ${{ matrix.entry.mongoid }}
16
+ GRAPE_VERSION: ${{ matrix.entry.grape || '>= 0' }}
17
+ JSON_VERSION: ${{ matrix.entry.json }}
7
18
  strategy:
19
+ fail-fast: false
8
20
  matrix:
9
21
  entry:
10
- - { ruby: 3.2, mongoid: 6.4.8, mongodb: 4.4 }
11
- - { ruby: 3.2, mongoid: 7.2.3, mongodb: 4.4 }
12
- - { ruby: 3.2, mongoid: 7.3.0, mongodb: 4.4 }
13
- - { ruby: 3.2, mongoid: 7.3.0, mongodb: 4.4 }
14
- - { ruby: 3.3, mongoid: 7.3.0, mongodb: 5.0 }
15
- - { ruby: 3.4, mongoid: 7.5.2, mongodb: 5.0 }
16
- - { ruby: 3.4, mongoid: 8.1.11, mongodb: 6.0 }
17
- - { ruby: 3.4, mongoid: 8.1.11, mongodb: 7.0 }
18
- - { ruby: 3.4, mongoid: 8.1.11, mongodb: 8.0 }
19
- name: test (ruby=${{ matrix.entry.ruby }}, mongoid=${{ matrix.entry.mongoid }}, mongodb=${{ matrix.entry.mongodb }})
22
+ # These Active Support versions pass quirks_mode, removed in JSON 3.
23
+ - { ruby: '3.2', mongoid: '6.4.8', mongodb: '4.4', json: '~> 2.0' }
24
+ - { ruby: '3.4', mongoid: '7.5.2', mongodb: '5.0', json: '~> 2.0' }
25
+ - { ruby: '3.4', mongoid: '8.1.11', mongodb: '8.0', json: '~> 2.0' }
26
+ - { ruby: '3.3', mongoid: '~> 9.1', mongodb: '8.0', grape: '~> 3.2', json: '~> 3.0' }
27
+ - { ruby: '3.4', mongoid: '~> 9.1', mongodb: '8.0', grape: '~> 4.0', json: '~> 3.0' }
28
+ - { ruby: '4.0', mongoid: '~> 9.1', mongodb: '8.0', grape: '~> 4.0', json: '~> 3.0' }
29
+ name: test (ruby=${{ matrix.entry.ruby }}, mongoid=${{ matrix.entry.mongoid }}, mongodb=${{ matrix.entry.mongodb }}, grape=${{ matrix.entry.grape || 'auto' }}, json=${{ matrix.entry.json }})
30
+ services:
31
+ mongodb:
32
+ image: mongo:${{ matrix.entry.mongodb }}
33
+ ports:
34
+ - 27017:27017
35
+ options: >-
36
+ --health-cmd "mongosh --quiet --eval 'db.adminCommand({ ping: 1 })' || mongo --quiet --eval 'db.adminCommand({ ping: 1 })'"
37
+ --health-interval 10s
38
+ --health-timeout 5s
39
+ --health-retries 10
20
40
  steps:
21
- - uses: actions/checkout@v2
41
+ - uses: actions/checkout@v7
22
42
  - uses: ruby/setup-ruby@v1
23
43
  with:
24
44
  ruby-version: ${{ matrix.entry.ruby }}
25
- - uses: browser-actions/setup-geckodriver@latest
45
+ bundler-cache: true
46
+ cache-version: mongoid-${{ matrix.entry.mongoid }}-grape-${{ matrix.entry.grape || 'auto' }}-json-${{ matrix.entry.json }}
47
+ - uses: browser-actions/setup-firefox@v1.7.2
26
48
  with:
27
- token: ${{ secrets.GITHUB_TOKEN }}
28
- - run: geckodriver --version
29
- - uses: supercharge/mongodb-github-action@1.7.0
30
- with:
31
- mongodb-version: ${{ matrix.entry.mongodb }}
49
+ firefox-version: latest
32
50
  - name: Test
33
- uses: GabrielBB/xvfb-action@v1
34
- env:
35
- DATABASE_ADAPTER: mongoid
36
- MONGOID_VERSION: ${{ matrix.entry.mongoid }}
37
- with:
38
- run: |
39
- bundle install
40
- bundle exec rake spec
51
+ run: xvfb-run --auto-servernum bundle exec rake spec
@@ -1,43 +1,56 @@
1
1
  ---
2
- name: test
2
+ name: PostgreSQL
3
3
  on: [push, pull_request]
4
+ permissions:
5
+ contents: read
6
+ concurrency:
7
+ group: postgresql-${{ github.ref }}
8
+ cancel-in-progress: true
4
9
  jobs:
5
10
  test:
6
- runs-on: ubuntu-latest
11
+ runs-on: ubuntu-24.04
12
+ timeout-minutes: 20
13
+ env:
14
+ DATABASE_ADAPTER: activerecord
15
+ ACTIVERECORD_VERSION: ${{ matrix.entry.active_record }}
16
+ GRAPE_VERSION: ${{ matrix.entry.grape || '>= 0' }}
17
+ JSON_VERSION: ${{ matrix.entry.json }}
18
+ DATABASE_URL: postgres://test:password@localhost/slack_ruby_bot_server_test
7
19
  strategy:
20
+ fail-fast: false
8
21
  matrix:
9
22
  entry:
10
- - { ruby: 3.2, postgresql: 11, active_record: '~> 6.0.0' }
11
- - { ruby: 3.2, postgresql: 11, active_record: '~> 6.1.0' }
12
- - { ruby: 3.2, postgresql: 14, active_record: '~> 7.0.0' }
13
- - { ruby: 3.3, postgresql: 14, active_record: '~> 7.2.0' }
14
- - { ruby: 3.4, postgresql: 14, active_record: '~> 7.2.0' }
15
- - { ruby: 3.4, postgresql: 15, active_record: '~> 8.0.2' }
16
- - { ruby: 3.4, postgresql: 16, active_record: '~> 8.0.2' }
17
- - { ruby: 3.4, postgresql: 17, active_record: '~> 8.0.2' }
18
- name: test (ruby=${{ matrix.entry.ruby }}, postgresql=${{ matrix.entry.postgresql }}, active_record=${{ matrix.entry.active_record }})
23
+ # Active Support 6.x and 8.0 pass quirks_mode, removed in JSON 3.
24
+ - { ruby: '3.2', postgresql: '11', active_record: '~> 6.1.0', json: '~> 2.0' }
25
+ - { ruby: '3.3', postgresql: '14', active_record: '~> 7.2.0', json: '~> 3.0' }
26
+ - { ruby: '3.4', postgresql: '17', active_record: '~> 8.0.2', json: '~> 2.0' }
27
+ - { ruby: '3.3', postgresql: '18', active_record: '~> 8.1', grape: '~> 3.2', json: '~> 3.0' }
28
+ - { ruby: '3.4', postgresql: '18', active_record: '~> 8.1', grape: '~> 4.0', json: '~> 3.0' }
29
+ - { ruby: '4.0', postgresql: '18', active_record: '~> 8.1', grape: '~> 4.0', json: '~> 3.0' }
30
+ name: test (ruby=${{ matrix.entry.ruby }}, postgresql=${{ matrix.entry.postgresql }}, active_record=${{ matrix.entry.active_record }}, grape=${{ matrix.entry.grape || 'auto' }}, json=${{ matrix.entry.json }})
31
+ services:
32
+ postgresql:
33
+ image: postgres:${{ matrix.entry.postgresql }}
34
+ env:
35
+ POSTGRES_DB: slack_ruby_bot_server_test
36
+ POSTGRES_USER: test
37
+ POSTGRES_PASSWORD: password
38
+ ports:
39
+ - 5432:5432
40
+ options: >-
41
+ --health-cmd "pg_isready -U test -d slack_ruby_bot_server_test"
42
+ --health-interval 10s
43
+ --health-timeout 5s
44
+ --health-retries 10
19
45
  steps:
20
- - uses: actions/checkout@v2
46
+ - uses: actions/checkout@v7
21
47
  - uses: ruby/setup-ruby@v1
22
48
  with:
23
49
  ruby-version: ${{ matrix.entry.ruby }}
24
- - uses: browser-actions/setup-geckodriver@latest
25
- with:
26
- token: ${{ secrets.GITHUB_TOKEN }}
27
- - run: geckodriver --version
28
- - uses: harmon758/postgresql-action@v1
50
+ bundler-cache: true
51
+ cache-version: activerecord-${{ matrix.entry.active_record }}-grape-${{ matrix.entry.grape || 'auto' }}-json-${{ matrix.entry.json }}
52
+ - uses: browser-actions/setup-firefox@v1.7.2
29
53
  with:
30
- postgresql version: ${{ matrix.entry.postgresql }}
31
- postgresql db: slack_ruby_bot_server_test
32
- postgresql user: test
33
- postgresql password: password
54
+ firefox-version: latest
34
55
  - name: Test
35
- uses: GabrielBB/xvfb-action@v1
36
- env:
37
- DATABASE_ADAPTER: activerecord
38
- ACTIVERECORD_VERSION: ${{ matrix.entry.active_record }}
39
- DATABASE_URL: postgres://test:password@localhost/slack_ruby_bot_server_test
40
- with:
41
- run: |
42
- bundle install
43
- bundle exec rake spec
56
+ run: xvfb-run --auto-servernum bundle exec rake spec
data/.rubocop_todo.yml CHANGED
@@ -1,17 +1,11 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2025-09-22 12:22:59 UTC using RuboCop version 1.80.2.
3
+ # on 2025-10-08 12:27:28 UTC using RuboCop version 1.81.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 2
10
- # Configuration parameters: Severity.
11
- Bundler/DuplicatedGroup:
12
- Exclude:
13
- - 'Gemfile'
14
-
15
9
  # Offense count: 1
16
10
  # Configuration parameters: Severity.
17
11
  Gemspec/RequiredRubyVersion:
data/AGENTS.md ADDED
@@ -0,0 +1,55 @@
1
+ # Agent Instructions
2
+
3
+ ## Project
4
+
5
+ Slack Ruby Bot Server is a Ruby gem providing a Grape API and multi-team Slack bot lifecycle management. Read [CONTRIBUTING.md](CONTRIBUTING.md) before making changes.
6
+
7
+ - `lib/slack-ruby-bot-server/api/`: endpoints, presenters, helpers, and middleware.
8
+ - `lib/slack-ruby-bot-server/models/` and `lib/slack-ruby-bot-server/ext/`: models and database-specific behavior.
9
+ - `lib/slack-ruby-bot-server/app.rb` and `service.rb`: application setup and service lifecycle.
10
+ - `public/`: registration UI and static assets.
11
+ - `spec/`: RSpec API, model, service, and browser integration tests.
12
+ - `spec/database_adapters/`: adapter setup, test schemas, and database cleanup.
13
+ - `.github/workflows/`: compatibility matrices, lint, and Danger.
14
+
15
+ ## Dependencies and Tests
16
+
17
+ Set the adapter and version selectors before installing dependencies. Use a Ruby version covered by CI; the examples below match the current Ruby 4/Grape 4 jobs.
18
+
19
+ Start MongoDB locally, then run:
20
+
21
+ ```sh
22
+ export DATABASE_ADAPTER=mongoid MONGOID_VERSION='~> 9.1' GRAPE_VERSION='~> 4.0' JSON_VERSION='~> 3.0'
23
+ export DATABASE_URL=mongodb://localhost/slack_ruby_bot_server_test
24
+ bundle install
25
+ bundle exec rake
26
+ ```
27
+
28
+ For PostgreSQL, start the server and adjust local credentials in `DATABASE_URL` as needed:
29
+
30
+ ```sh
31
+ export DATABASE_ADAPTER=activerecord ACTIVERECORD_VERSION='~> 8.1' GRAPE_VERSION='~> 4.0' JSON_VERSION='~> 3.0'
32
+ export DATABASE_URL=postgresql://localhost/slack_ruby_bot_server_test
33
+ bundle install
34
+ bundle exec rake
35
+ ```
36
+
37
+ Use only a dedicated local test database. The suite deletes or truncates records, and the Active Record schema recreates the teams table.
38
+
39
+ `bundle exec rake` runs RuboCop and the full RSpec suite. Use `bundle exec rspec path/to/spec.rb` for focused checks. Validate shared behavior against both adapters before committing; batch final checks rather than repeatedly running full suites during editing.
40
+
41
+ Browser tests require Firefox. Selenium Manager provisions geckodriver when needed. On Linux, install Xvfb and run `xvfb-run --auto-servernum bundle exec rake`. Adapter suites must run sequentially on one host because Capybara uses port 9293.
42
+
43
+ `Gemfile.lock` is intentionally ignored. Re-resolve dependencies when switching adapter/version combinations; do not add the lockfile to the gem repository.
44
+
45
+ ## Changes and Compatibility
46
+
47
+ Preserve both database adapters, representative legacy ORM major versions, and the modern Ruby/Grape 3/4 combinations in the six-job-per-adapter CI matrices. Avoid multiplying equivalent jobs across database server versions. Quote version strings in workflow YAML and validate workflow changes with `actionlint`.
48
+
49
+ Keep JSON 2 constraints scoped to affected legacy matrix jobs through `JSON_VERSION`; modern jobs explicitly test JSON 3. Do not add a blanket JSON upper bound to the Gemfile or gemspec.
50
+
51
+ Follow existing Ruby conventions and `.rubocop.yml`; do not relax cops or add exclusions just to make checks pass. Add focused regression tests for changed behavior and update directly related documentation. Keep Markdown paragraphs on one line.
52
+
53
+ Add a changelog entry under the next release, with contributor attribution and the linked PR number once available. Danger checks the changelog and table of contents.
54
+
55
+ Keep each PR branch to one logical commit. Include `Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>` for Copilot contributions, and identify AI-authored GitHub descriptions/comments as posted on behalf of the requesting user. Never force-push `master`. Do not publish a release or push a release tag without explicit authorization.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  ### Changelog
2
2
 
3
+ ### 2.3.0 (2026/10/25)
4
+
5
+ * [#188](https://github.com/slack-ruby/slack-ruby-bot-server/pull/188): Reduce the database CI matrices from 22 to 12 jobs while retaining representative legacy ORM majors and modern Ruby/Grape 3/4 coverage - [@dblock](https://github.com/dblock), [@Copilot](https://github.com/apps/copilot-swe-agent).
6
+ * [#189](https://github.com/slack-ruby/slack-ruby-bot-server/pull/189): Add a prefixed Team fabricator entry point and preserve application-defined `:team` fabricators in the legacy RSpec helper - [@dblock](https://github.com/dblock), [@Copilot](https://github.com/apps/copilot-swe-agent).
7
+ * [#186](https://github.com/slack-ruby/slack-ruby-bot-server/pull/186): Document persisted custom Team attributes for both adapters and Rails concern loading/reloading - [@dblock](https://github.com/dblock), [@Copilot](https://github.com/apps/copilot-swe-agent).
8
+ * [#183](https://github.com/slack-ruby/slack-ruby-bot-server/pull/183): Add a `config.server_pages` block to configure page middleware options centrally without changing the installed library's defaults - [@dblock](https://github.com/dblock), [@Copilot](https://github.com/apps/copilot-swe-agent).
9
+ * [#184](https://github.com/slack-ruby/slack-ruby-bot-server/pull/184): Add a configurable API application and separately mountable team read/registration endpoints, preserving the default API while supporting custom routes and registration-only applications - [@dblock](https://github.com/dblock), [@Copilot](https://github.com/apps/copilot-swe-agent).
10
+ * [#185](https://github.com/slack-ruby/slack-ruby-bot-server/pull/185): Skip inactive installations in status checks and deactivate revoked credentials through service callbacks, returning an explicit failed ping instead of failing the whole status response - [@dblock](https://github.com/dblock), [@Copilot](https://github.com/apps/copilot-swe-agent).
11
+ ### 2.2.1 (2026/10/24)
12
+
13
+ * [#182](https://github.com/slack-ruby/slack-ruby-bot-server/pull/182): Modernize CI with current actions, native database services, dependency caching, and explicit Ruby 4, Mongoid 9, Active Record 8.1, PostgreSQL 18, Grape 3/4, and JSON 2/3 coverage while retaining existing compatibility combinations - [@dblock](https://github.com/dblock), [@Copilot](https://github.com/apps/copilot-swe-agent).
14
+ * [#181](https://github.com/slack-ruby/slack-ruby-bot-server/pull/181): Migrated Danger to `danger-pr-comment` workflow - [@dblock](https://github.com/dblock).
15
+ * [#180](https://github.com/slack-ruby/slack-ruby-bot-server/pull/180): Add support for Grape v3 - [@markokajzer](https://github.com/markokajzer).
16
+
3
17
  ### 2.2.0 (2025/09/22)
4
18
 
5
19
  * [#176](https://github.com/slack-ruby/slack-ruby-bot-server/pull/176): Deps: bump mongoid-scroll to 2.0 - [@markokajzer](https://github.com/markokajzer).
data/CONTRIBUTING.md CHANGED
@@ -28,15 +28,22 @@ git checkout -b my-feature-branch
28
28
 
29
29
  ## Bundle Install and Test
30
30
 
31
- Ensure that you can build the project and run tests.
31
+ Select a database adapter before installing dependencies. For example, to match the Ruby 4 MongoDB/Grape 4 job, start MongoDB locally and run:
32
32
 
33
- ```
33
+ ```sh
34
+ export DATABASE_ADAPTER=mongoid MONGOID_VERSION='~> 9.1' GRAPE_VERSION='~> 4.0' JSON_VERSION='~> 3.0'
35
+ export DATABASE_URL=mongodb://localhost/slack_ruby_bot_server_test
34
36
  bundle install
35
37
  bundle exec rake
36
38
  ```
37
39
 
38
- If you are a linux user, you will need to install [geckodriver](https://github.com/mozilla/geckodriver/releases), [firefox](https://download-installer.cdn.mozilla.net/pub/firefox/releases/), and `Xvfb`.
39
- And, to get a display for the headless browser, run `Xvfb` manually. You can see more explanations [here](http://elementalselenium.com/tips/38-headless).
40
+ For PostgreSQL, set `DATABASE_ADAPTER=activerecord`, `ACTIVERECORD_VERSION`, and `DATABASE_URL` instead. `GRAPE_VERSION` optionally constrains the Grape version for either adapter; without it, Bundler selects a compatible version. CI preserves the older compatibility combinations and adds explicit Grape 3 and 4 jobs with current ORM versions, including Ruby 4. Each database runs in a health-checked service container, while Firefox runs under Xvfb. Selenium Manager provisions the matching driver.
41
+
42
+ CI runs six jobs per adapter: three representative legacy ORM/database stacks and three modern combinations (Ruby 3.3/Grape 3, Ruby 3.4/Grape 4, and Ruby 4/Grape 4). Mongoid retains 6.4, 7.5, 8.1, and 9.1; Active Record retains 6.1, 7.2, 8.0, and 8.1. Redundant database-server variants and older ORM minor combinations are omitted. A combination no longer appearing in CI is not by itself a change to the gem's supported runtime dependencies.
43
+
44
+ `JSON_VERSION` optionally constrains the development/test JSON dependency; otherwise it is unrestricted. CI uses JSON 2 for Mongoid 6-8 and Active Record 6.1 and 8.0 because their Active Support versions pass `quirks_mode`, removed in JSON 3. Mongoid 9, Active Record 7.2, and Active Record 8.1 jobs explicitly test JSON 3. These selectors do not restrict the published gem's runtime dependencies.
45
+
46
+ On Linux, install [Firefox](https://www.mozilla.org/firefox/) and `Xvfb`, then run:
40
47
 
41
48
  ```
42
49
  xvfb-run --auto-servernum bundle exec rake
@@ -121,7 +128,7 @@ git push origin my-feature-branch -f
121
128
 
122
129
  ## Check on Your Pull Request
123
130
 
124
- Go back to your pull request after a few minutes and see whether it passed muster with Travis-CI. Everything should look green, otherwise fix issues and amend your commit as described above.
131
+ Go back to your pull request after a few minutes and check its GitHub Actions results. Everything should look green, otherwise fix issues and update your commit as described above.
125
132
 
126
133
  ## Be Patient
127
134
 
data/Dangerfile CHANGED
@@ -1,2 +1,4 @@
1
- danger.import_dangerfile(gem: 'slack-ruby-danger')
1
+ danger.import_dangerfile(gem: 'danger-pr-comment')
2
+
3
+ changelog.check!
2
4
  toc.check!
data/Gemfile CHANGED
@@ -2,24 +2,17 @@ source 'https://rubygems.org'
2
2
 
3
3
  case ENV.fetch('DATABASE_ADAPTER', nil)
4
4
  when 'mongoid' then
5
+ gem 'database_cleaner-mongoid', '~> 2.0.1'
5
6
  gem 'kaminari-mongoid'
6
7
  gem 'mongoid', ENV['MONGOID_VERSION'] || '~> 7.3.0'
7
8
  gem 'mongoid-scroll', '~> 2.0'
8
9
  gem 'mongoid-shell'
9
- gem 'mutex_m'
10
-
11
- group :development, :test do
12
- gem 'database_cleaner-mongoid', '~> 2.0.1'
13
- end
14
10
  when 'activerecord' then
15
11
  gem 'activerecord', ENV['ACTIVERECORD_VERSION'] || '~> 6.0.0'
12
+ gem 'database_cleaner-active_record', '~> 2.2.0'
16
13
  gem 'otr-activerecord'
17
14
  gem 'pagy_cursor', '~> 0.6.1'
18
15
  gem 'pg'
19
-
20
- group :development, :test do
21
- gem 'database_cleaner-active_record', '~> 2.2.0'
22
- end
23
16
  when nil
24
17
  warn "Missing ENV['DATABASE_ADAPTER']."
25
18
  else
@@ -28,22 +21,28 @@ end
28
21
 
29
22
  gemspec
30
23
 
31
- group :development, :test do
32
- gem 'bundler'
33
- gem 'byebug'
34
- gem 'capybara', '~> 3.40.0'
35
- gem 'fabrication'
36
- gem 'faker'
37
- gem 'faraday', '0.17.5'
38
- gem 'hyperclient', '~> 0.9.3'
39
- gem 'rack', '~> 2.2.3'
40
- gem 'rack-server-pages'
41
- gem 'rack-test'
42
- gem 'rake'
43
- gem 'rspec'
44
- gem 'rubocop', '1.80.2'
45
- gem 'selenium-webdriver', '~> 4.35.0'
46
- gem 'vcr'
47
- gem 'webmock'
48
- gem 'webrick', '~> 1.9.1'
49
- end
24
+ gem 'bundler'
25
+ gem 'byebug'
26
+ gem 'capybara'
27
+ gem 'danger-changelog'
28
+ gem 'danger-pr-comment'
29
+ gem 'danger-toc'
30
+ gem 'fabrication'
31
+ gem 'faker'
32
+ gem 'faraday'
33
+ gem 'faraday-rack'
34
+ gem 'grape', ENV.fetch('GRAPE_VERSION', '>= 0')
35
+ gem 'hyperclient'
36
+ gem 'json', ENV.fetch('JSON_VERSION', '>= 0')
37
+ gem 'mutex_m'
38
+ gem 'rack'
39
+ gem 'rack-server-pages'
40
+ gem 'rack-test'
41
+ gem 'rackup'
42
+ gem 'rake'
43
+ gem 'rspec'
44
+ gem 'rubocop'
45
+ gem 'selenium-webdriver'
46
+ gem 'vcr'
47
+ gem 'webmock'
48
+ gem 'webrick'