Skip to content

Conversation

@floehopper
Copy link
Contributor

Previously it wasn't even possible to list the rake tasks, because this rails/tasks/statistics.rake file does not exist.

It was added in a very large initial commit which doesn't mention it in the commit note, so I have no idea what its origins are.

Previously it wasn't even possible to list the rake tasks, because this
`rails/tasks/statistics.rake` file does not exist.

It was added in a very large initial commit [1] which doesn't mention it
in the commit note, so I have no idea what its origins are.

[1]: 79600c9
@github-actions
Copy link

Test coverage: 100.0%

Copy link
Member

@grega grega left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks James!

@floehopper floehopper merged commit 4980bf5 into main Apr 14, 2025
10 checks passed
@floehopper floehopper deleted the fix-rakefile branch April 14, 2025 10:57
@floehopper
Copy link
Contributor Author

@grega I've belated realised this probably related to a rake file provided by rails, i.e. railties/lib/rails/tasks/statistics.rake. However, it doesn't change the fact that I couldn't run rake at all without removing it.

Also it doesn't make much sense to me that this gem should be using this rails-related rake file. I suspect it was copied from a newly generated rails app.

So I'm still pretty happy that the change in this PR is OK, but let me know if you want me to do any more digging.

@grega
Copy link
Member

grega commented Apr 15, 2025

I suspect it was a file generated when bootstrapping the gem originally (and as you've suggested, that was probably the result of extracting the gem from a Rails proof-of-concept app).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants