Skip to content

Commit

Permalink
fix a bug in compilers that inherit from default tapioca compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
stathis-alexander committed Oct 12, 2024
1 parent 4e92728 commit e9631b6
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
boba (0.0.5)
boba (0.0.6)
sorbet-static-and-runtime (~> 0.5)
tapioca (~> 0.16.2)

Expand Down
8 changes: 7 additions & 1 deletion History.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Boba History

## 0.0.6

- Fix a bug inheriting from default Tapioca compilers if corresponding Tapioca default compilers don't exist because
the project does not actually use the corresponding DSL or gem.
- Fixes `StateMachinesExtended`, `ActiveRecordAssocationsPersisted`, `ActiveRecordColumnsPersisted`

## 0.0.5

- Add extended state machines compiler to fix typing on state machines class methods
Expand All @@ -22,4 +28,4 @@

## 0.0.0

Initial Commit
- Initial Commit
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build:

.PHONY: clean
clean:
rm -r boba-*.gem
rm -fr boba-*.gem

.PHONY: docs
docs:
Expand Down
2 changes: 1 addition & 1 deletion lib/boba/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# frozen_string_literal: true

module Boba
VERSION = "0.0.5"
VERSION = "0.0.6"
end
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# typed: ignore
# frozen_string_literal: true

return unless defined?(ActiveRecord::Base)
require "tapioca/dsl/compilers/active_record_associations"

return unless defined?(Tapioca::Dsl::Compilers::ActiveRecordAssociations)

module Tapioca
module Dsl
Expand Down
4 changes: 3 additions & 1 deletion lib/tapioca/dsl/compilers/active_record_columns_persisted.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# typed: ignore
# frozen_string_literal: true

return unless defined?(ActiveRecord::Base)
require "tapioca/dsl/compilers/active_record_columns"

return unless defined?(Tapioca::Dsl::Compilers::ActiveRecordColumns)

require "tapioca/dsl/helpers/active_record_column_type_helper"

Expand Down
4 changes: 2 additions & 2 deletions lib/tapioca/dsl/compilers/state_machines_extended.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# typed: ignore
# frozen_string_literal: true

return unless defined?(Tapioca)

require "tapioca/dsl/compilers/state_machines"

return unless defined?(Tapioca::Dsl::Compilers::StateMachines)

module Tapioca
module Dsl
module Compilers
Expand Down

0 comments on commit e9631b6

Please sign in to comment.