Skip to content

Simplify running outside of an app #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andyw8
Copy link

@andyw8 andyw8 commented Apr 3, 2025

  • Add an entry to CHANGELOG.md that links to this PR under the "main (unreleased)" heading.

This change allows rails_stats to be run from anywhere, without needing a Rakefile.

@@ -3,8 +3,6 @@
module RailsStats
class ConsoleFormatter < StatsFormatter
def to_s
Bundler::Stats::CLI.start
Copy link
Author

Choose a reason for hiding this comment

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

@etagwerker I saw that you added this in #21

It was causing me trouble because Bundler was trying to interpret the first command line argument as a Bundler command.

The gem reporting seems to still work without it, so perhaps it was only needed for an older version of Bundler?

Copy link
Author

Choose a reason for hiding this comment

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

Actually, I think it's not correctly counting the gems, I'll need to dig into this a bit more.

@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
spec.license = "MIT"

spec.files = `git ls-files -z`.split("\x0")
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
Copy link
Author

Choose a reason for hiding this comment

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

Changed to match the newer Bundler convention.

@andyw8 andyw8 force-pushed the andyw8/simplify-running-outside-of-app branch from 9395229 to 2f55046 Compare April 3, 2025 22:31
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.

1 participant