Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ jobs:
run: bundle exec rage routes
- name: Add a Rake task
working-directory: ./my_app
run: printf "desc \"Prints From Rake\"\nnamespace :hello do\ntask :print do\nend\nend" > lib/tasks/hello.rake
run: printf "desc \"Prints From Rake\"\nnamespace :hello do\ntask :print do\nputs('Hello!')\nend\nend" > lib/tasks/hello.rake
- name: Check available Rake tasks
working-directory: ./my_app
run: bundle exec rake --tasks | grep "rake hello:print"
- name: Run the Rake task
working-directory: ./my_app
run: bundle exec rake hello:print
run: test "$(bundle exec rake hello:print)" = "Hello!"
cli-d:
runs-on: ubuntu-latest
name: CLI DB
Expand Down Expand Up @@ -130,4 +130,12 @@ jobs:
run: bundle exec rage s&
- name: Test the default route
run: curl --fail http://localhost:3000

- name: Add a Rake task
working-directory: ./my_app
run: printf "desc \"Prints From Rake\"\nnamespace :hello do\ntask :print do\nputs('Hello!')\nend\nend" > lib/tasks/hello.rake
- name: Check available Rake tasks
working-directory: ./my_app
run: bundle exec rake --tasks | grep "rake hello:print"
- name: Run the Rake task
working-directory: ./my_app
run: test "$(bundle exec rake hello:print)" = "Hello!"
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## [Unreleased]

## [1.21.2] - 2026-03-11

- Fix duplicate Rake tasks (#238).

## [1.21.1] - 2026-02-27

- Improve styling for the `skills` CLI (#223).
Expand Down
6 changes: 6 additions & 0 deletions lib/rage/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ def configuration_file
end
end)

begin
StandaloneMigrations::MinimalRailtieConfig.paths["lib/tasks"] = []
rescue => e
warn("WARNING: Failed to disable StandaloneMigrations task auto-loading (#{e.class}: #{e.message})")
end

StandaloneMigrations::Tasks.load_tasks
end

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

module Rage
VERSION = "1.21.1"
VERSION = "1.21.2"
end
Loading