Skip to content

Commit 14a84e5

Browse files
authored
Merge pull request #336 from tk0miya/ci/fix
CI: Fix broken testcases
2 parents 165d304 + 1b99dcc commit 14a84e5

File tree

2 files changed

+66
-0
lines changed

2 files changed

+66
-0
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,10 @@ jobs:
2424
ruby-version: ${{ matrix.ruby }}
2525
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
2626
- run: bin/setup
27+
# Skip to test with Ruby HEAD because rbs-3.9.4 crashes with Ruby 3.5.0
28+
# ref: https://github.com/ruby/rbs/pull/2537/commits/c9389681acf10c9fdd34601e74153011919b8544
29+
if: matrix.ruby != 'head'
2730
- run: bundle exec rake
31+
# Skip to test with Ruby HEAD because rbs-3.9.4 crashes with Ruby 3.5.0
32+
# ref: https://github.com/ruby/rbs/pull/2537/commits/c9389681acf10c9fdd34601e74153011919b8544
33+
if: matrix.ruby != 'head'

test/expectations/audited_audit.rbs

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ module ::Audited
4141

4242
def clear_id_change: () -> void
4343

44+
def id_before_type_cast: () -> ::Integer
45+
46+
def id_for_database: () -> ::Integer
47+
4448
def auditable_id: () -> ::Integer?
4549

4650
def auditable_id=: (::Integer?) -> ::Integer?
@@ -77,6 +81,10 @@ module ::Audited
7781

7882
def clear_auditable_id_change: () -> void
7983

84+
def auditable_id_before_type_cast: () -> ::Integer?
85+
86+
def auditable_id_for_database: () -> ::Integer?
87+
8088
def auditable_type: () -> ::String?
8189

8290
def auditable_type=: (::String?) -> ::String?
@@ -113,6 +121,10 @@ module ::Audited
113121

114122
def clear_auditable_type_change: () -> void
115123

124+
def auditable_type_before_type_cast: () -> ::String?
125+
126+
def auditable_type_for_database: () -> ::String?
127+
116128
def associated_id: () -> ::Integer?
117129

118130
def associated_id=: (::Integer?) -> ::Integer?
@@ -149,6 +161,10 @@ module ::Audited
149161

150162
def clear_associated_id_change: () -> void
151163

164+
def associated_id_before_type_cast: () -> ::Integer?
165+
166+
def associated_id_for_database: () -> ::Integer?
167+
152168
def associated_type: () -> ::String?
153169

154170
def associated_type=: (::String?) -> ::String?
@@ -185,6 +201,10 @@ module ::Audited
185201

186202
def clear_associated_type_change: () -> void
187203

204+
def associated_type_before_type_cast: () -> ::String?
205+
206+
def associated_type_for_database: () -> ::String?
207+
188208
def user_id: () -> ::Integer?
189209

190210
def user_id=: (::Integer?) -> ::Integer?
@@ -221,6 +241,10 @@ module ::Audited
221241

222242
def clear_user_id_change: () -> void
223243

244+
def user_id_before_type_cast: () -> ::Integer?
245+
246+
def user_id_for_database: () -> ::Integer?
247+
224248
def user_type: () -> ::String?
225249

226250
def user_type=: (::String?) -> ::String?
@@ -257,6 +281,10 @@ module ::Audited
257281

258282
def clear_user_type_change: () -> void
259283

284+
def user_type_before_type_cast: () -> ::String?
285+
286+
def user_type_for_database: () -> ::String?
287+
260288
def username: () -> ::String?
261289

262290
def username=: (::String?) -> ::String?
@@ -293,6 +321,10 @@ module ::Audited
293321

294322
def clear_username_change: () -> void
295323

324+
def username_before_type_cast: () -> ::String?
325+
326+
def username_for_database: () -> ::String?
327+
296328
def action: () -> ::String?
297329

298330
def action=: (::String?) -> ::String?
@@ -329,6 +361,10 @@ module ::Audited
329361

330362
def clear_action_change: () -> void
331363

364+
def action_before_type_cast: () -> ::String?
365+
366+
def action_for_database: () -> ::String?
367+
332368
def audited_changes: () -> ::String?
333369

334370
def audited_changes=: (::String?) -> ::String?
@@ -365,6 +401,10 @@ module ::Audited
365401

366402
def clear_audited_changes_change: () -> void
367403

404+
def audited_changes_before_type_cast: () -> ::String?
405+
406+
def audited_changes_for_database: () -> ::String?
407+
368408
def version: () -> ::Integer?
369409

370410
def version=: (::Integer?) -> ::Integer?
@@ -401,6 +441,10 @@ module ::Audited
401441

402442
def clear_version_change: () -> void
403443

444+
def version_before_type_cast: () -> ::Integer?
445+
446+
def version_for_database: () -> ::Integer?
447+
404448
def comment: () -> ::String?
405449

406450
def comment=: (::String?) -> ::String?
@@ -437,6 +481,10 @@ module ::Audited
437481

438482
def clear_comment_change: () -> void
439483

484+
def comment_before_type_cast: () -> ::String?
485+
486+
def comment_for_database: () -> ::String?
487+
440488
def remote_address: () -> ::String?
441489

442490
def remote_address=: (::String?) -> ::String?
@@ -473,6 +521,10 @@ module ::Audited
473521

474522
def clear_remote_address_change: () -> void
475523

524+
def remote_address_before_type_cast: () -> ::String?
525+
526+
def remote_address_for_database: () -> ::String?
527+
476528
def request_uuid: () -> ::String?
477529

478530
def request_uuid=: (::String?) -> ::String?
@@ -509,6 +561,10 @@ module ::Audited
509561

510562
def clear_request_uuid_change: () -> void
511563

564+
def request_uuid_before_type_cast: () -> ::String?
565+
566+
def request_uuid_for_database: () -> ::String?
567+
512568
def created_at: () -> ::ActiveSupport::TimeWithZone?
513569

514570
def created_at=: (::ActiveSupport::TimeWithZone?) -> ::ActiveSupport::TimeWithZone?
@@ -544,6 +600,10 @@ module ::Audited
544600
def restore_created_at!: () -> void
545601

546602
def clear_created_at_change: () -> void
603+
604+
def created_at_before_type_cast: () -> ::Time?
605+
606+
def created_at_for_database: () -> ::Time?
547607
end
548608
include ::Audited::Audit::GeneratedAttributeMethods
549609
module ::Audited::Audit::GeneratedAliasAttributeMethods

0 commit comments

Comments
 (0)