Skip to content

Commit c807a21

Browse files
author
Mattia Roccoberton
authored
Merge pull request #11 from blocknotes/support-for-ruby-3.0
Support for Ruby 3.0
2 parents fadea58 + 2729b18 commit c807a21

6 files changed

+51
-11
lines changed

.github/workflows/specs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: Specs
2+
name: Specs Rails 6.0
33

44
on:
55
pull_request:
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
ruby: ['2.6', '2.7']
17-
gemfile: ['rails60_activeadmin22_activeresource51', 'rails60_activeadmin_activeresource', 'rails61_activeadmin29_activeresource51', 'rails61_activeadmin_activeresource']
17+
gemfile: ['rails60_activeadmin22_activeresource51', 'rails60_activeadmin_activeresource']
1818

1919
env:
2020
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile

.github/workflows/specs2.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Specs Rails 6.1
3+
4+
on:
5+
pull_request:
6+
branches: [master]
7+
push:
8+
branches: [master]
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
ruby: ['2.6', '2.7', '3.0']
17+
gemfile: ['rails61_activeadmin29_activeresource51', 'rails61_activeadmin_activeresource']
18+
19+
env:
20+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
21+
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v2
25+
26+
- name: Set up Ruby
27+
uses: ruby/setup-ruby@v1
28+
with:
29+
ruby-version: ${{ matrix.ruby }}
30+
bundler-cache: true
31+
32+
- name: Run tests
33+
run: bundle exec rspec --profile
34+
35+
- name: On failure, archive screenshots as artifacts
36+
uses: actions/upload-artifact@v2
37+
if: failure()
38+
with:
39+
name: test-failed-screenshots
40+
path: spec/dummy/tmp/screenshots

gemfiles/rails60_activeadmin22_activeresource51.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,4 +337,4 @@ DEPENDENCIES
337337
webmock
338338

339339
BUNDLED WITH
340-
2.2.33
340+
2.3.8

gemfiles/rails60_activeadmin_activeresource.gemfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ GEM
6565
activerecord (6.0.4.6)
6666
activemodel (= 6.0.4.6)
6767
activesupport (= 6.0.4.6)
68-
activeresource (5.1.1)
69-
activemodel (>= 5.0, < 7)
68+
activeresource (6.0.0)
69+
activemodel (>= 6.0)
7070
activemodel-serializers-xml (~> 1.0)
71-
activesupport (>= 5.0, < 7)
71+
activesupport (>= 6.0)
7272
activestorage (6.0.4.6)
7373
actionpack (= 6.0.4.6)
7474
activejob (= 6.0.4.6)
@@ -318,4 +318,4 @@ DEPENDENCIES
318318
webmock
319319

320320
BUNDLED WITH
321-
2.2.33
321+
2.3.8

gemfiles/rails61_activeadmin29_activeresource51.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,4 +321,4 @@ DEPENDENCIES
321321
webmock
322322

323323
BUNDLED WITH
324-
2.2.33
324+
2.3.8

gemfiles/rails61_activeadmin_activeresource.gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ GEM
6767
activerecord (6.1.4.6)
6868
activemodel (= 6.1.4.6)
6969
activesupport (= 6.1.4.6)
70-
activeresource (5.1.1)
71-
activemodel (>= 5.0, < 7)
70+
activeresource (6.0.0)
71+
activemodel (>= 6.0)
7272
activemodel-serializers-xml (~> 1.0)
73-
activesupport (>= 5.0, < 7)
73+
activesupport (>= 6.0)
7474
activestorage (6.1.4.6)
7575
actionpack (= 6.1.4.6)
7676
activejob (= 6.1.4.6)

0 commit comments

Comments
 (0)