Need help with integrating `rails stats` rake task for packs in Rails app

This message was imported from the Ruby/Rails Modularity Slack server. Find more info in the import thread.

Has anyone done any work on making the standard rails stats rake task work with packs? Right now it completely ignores files outside the main app.

Looks like https://github.com/fastruby/rails_stats can be used to get per-pack stats like this:

for pack in my_rails_app/packs/*; do rake stats[$pack]; done

And running it for the app’s root seems to include totals for main app and all packs :muscle:

Good job, <@U71SC9J1VG6>!

Message originally sent by slack user U71SC9J1VG6

thanks! IIRC it should also give you info about the packs deps (which is different from rails’ stats task)

Message originally sent by slack user U71SC9J1VG6

oh no, I think I still need to cut a new release for that to happen… :man-facepalming:

:pray:

:sweat_smile:

Bug reported: https://github.com/fastruby/rails_stats/issues/23