-
Notifications
You must be signed in to change notification settings - Fork 19
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
Make it work for any Bundler-based projects? #18
Comments
how can it work inside a gem ? ... require the first file it finds in lib/
and then measure load times ?
... could run it with an extra argument to give it an entrypoint to load ...
…On Sat, Jul 29, 2017 at 1:47 PM, Janko Marohnić ***@***.***> wrote:
The description of the gem says that it works for any "Bundler-based"
projects, but when I tried to run it inside the root directory of one of my
gems, I get an error:
LoadError: cannot load such file -- ./config/environment
/Users/janko/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/bumbler-0.3.2/lib/bumbler/hooks.rb:35:in `require'
/Users/janko/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/bumbler-0.3.2/lib/bumbler/hooks.rb:35:in `call'
/Users/janko/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/bumbler-0.3.2/lib/bumbler/hooks.rb:35:in `block (3 levels) in hook_require!'
/Users/janko/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/bumbler-0.3.2/lib/bumbler/hooks.rb:68:in `handle_require'
/Users/janko/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/bumbler-0.3.2/lib/bumbler/hooks.rb:34:in `block (2 levels) in hook_require!'
/Users/janko/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/bumbler-0.3.2/bin/bumbler:37:in `<top (required)>'
/Users/janko/.rbenv/versions/2.4.1/bin/bumbler:22:in `load'
/Users/janko/.rbenv/versions/2.4.1/bin/bumbler:22:in `<top (required)>'
Would it be possible to make it work for any Bundler-based project, not
just Rails? Btw, I'm really impressed with the gem, my friend executed it
on one of his Rails projects and the information was super useful (I care
about load time).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#18>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAsZy8sxsoRXKTigl81mxEfZrNomXAsks5sS5p8gaJpZM4OndW0>
.
|
Hmm, I wasn't aware that an entrypoint file is needed, I thought it uses Bundler to retrieve a list of gems specified in the |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The description of the gem says that it works for any "Bundler-based" projects, but when I tried to run it inside the root directory of one of my gems, I get an error:
Would it be possible to make it work for any Bundler-based project, not just Rails? Btw, I'm really impressed with the gem, my friend executed it on one of his Rails projects and the information was super useful (I care about load time).
The text was updated successfully, but these errors were encountered: