File tree 6 files changed +3
-16
lines changed
6 files changed +3
-16
lines changed Original file line number Diff line number Diff line change 14
14
matrix :
15
15
gemfile :
16
16
- Gemfile
17
- - Gemfile.5.2
18
- - Gemfile.6.0
19
17
- Gemfile.6.1
20
18
env :
21
19
BUNDLE_GEMFILE : ${{ matrix.gemfile }}
24
22
- name : Set up Ruby ${{ matrix.ruby-version }}
25
23
uses : ruby/setup-ruby@v1
26
24
with :
27
- ruby-version : 2.7
25
+ ruby-version : 3.0
28
26
- name : Install dependencies
29
27
run : bundle install
30
28
- name : Run tests
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ jobs:
13
13
14
14
steps :
15
15
- uses : actions/checkout@v4
16
- - name : Set up Ruby 2.7
16
+ - name : Set up Ruby 3.0
17
17
uses : ruby/setup-ruby@v1
18
18
with :
19
- ruby-version : 2.7
19
+ ruby-version : 3.0
20
20
21
21
- name : Publish to RubyGems
22
22
env :
Original file line number Diff line number Diff line change 1
1
--color
2
- --warning
3
2
--require spec_helper
Original file line number Diff line number Diff line change 22
22
require 'jit_preloader/preloader'
23
23
24
24
module JitPreloader
25
- Warning [ :deprecated ] = true
26
25
def self . globally_enabled = ( value )
27
26
@enabled = value
28
27
end
Original file line number Diff line number Diff line change @@ -3,10 +3,6 @@ class Preloader < ActiveRecord::Associations::Preloader
3
3
4
4
attr_accessor :records
5
5
6
- def foo ( **kwargs )
7
- kwargs
8
- end
9
-
10
6
if Gem ::Version . new ( ActiveRecord ::VERSION ::STRING ) >= Gem ::Version . new ( "7.0.0" )
11
7
def self . attach ( records )
12
8
new ( records : records . dup , associations : nil ) . tap do |loader |
Original file line number Diff line number Diff line change 49
49
-> ( event , data ) { source_map [ data [ :source ] ] << data [ :association ] }
50
50
end
51
51
52
-
53
- it "should warn about keyword arguments" do
54
- expect ( described_class . new ( records : nil , associations : nil ) . foo ( { a : 1 } ) ) . to eq ( { a : 1 } )
55
- end
56
-
57
52
context "for single table inheritance" do
58
53
context "when preloading an aggregate for a child model" do
59
54
let! ( :contact_book ) { ContactBook . create ( name : "The Yellow Pages" ) }
You can’t perform that action at this time.
0 commit comments