Skip to content

Commit f28aca8

Browse files
committed
Extende test matrix
1 parent 4644a52 commit f28aca8

File tree

3 files changed

+22
-8
lines changed

3 files changed

+22
-8
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,21 @@ jobs:
1111
strategy:
1212
matrix:
1313
include:
14-
- ruby: 2.6
15-
rails: '6.0.2'
16-
activeadmin: '2.6.0'
17-
- ruby: 2.7
18-
rails: '7.0.8'
19-
activeadmin: '2.13.0'
20-
- ruby: 3.2
14+
- ruby: '3.0.0'
15+
rails: '6.1.0'
16+
activeadmin: '2.14.0'
17+
- ruby: '3.0.0'
18+
rails: '6.1.0'
19+
activeadmin: '3.0.0'
20+
- ruby: '3.0.0'
21+
rails: '7.0.0'
22+
activeadmin: '3.0.0'
23+
- ruby: '3.1.0'
2124
rails: '7.1.0'
2225
activeadmin: '3.1.0'
26+
- ruby: '3.2.0'
27+
rails: '7.1.0'
28+
activeadmin: '3.2.0'
2329
env:
2430
RAILS: ${{ matrix.rails }}
2531
AA: ${{ matrix.activeadmin }}

active_admin_datetimepicker.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ Gem::Specification.new do |spec|
1919
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
2020
spec.require_paths = ["lib"]
2121

22-
spec.add_dependency "activeadmin", ">= 2.0", "<= 3.1"
22+
spec.add_dependency "activeadmin", ">= 2.14.0", "< 4.0"
2323
end

spec/support/rails_template.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ def self.ransackable_associations(auth_object=nil)
3131
validates_presence_of :name
3232
validates_uniqueness_of :last_name
3333
34+
def self.ransackable_attributes(auth_object=nil)
35+
if respond_to?(:authorizable_ransackable_attributes
36+
authorizable_ransackable_attributes
37+
else
38+
%w(birthday created_at last_seen_at updated_at)
39+
end
40+
end
41+
3442
attr_accessor :last_seen_at
3543
3644
ransacker :last_seen_at do

0 commit comments

Comments
 (0)