-
Notifications
You must be signed in to change notification settings - Fork 28
Doesn't work with Rails 4.1 #21
Comments
Also, it appears that the problem this gem solves can be fixed on vanilla Rails 4.1 just with |
👍 would love to have this working in 4.1. Here's how # File railties/lib/rails/application.rb, line 304
def reload_dependencies? #:nodoc:
config.reload_classes_only_on_change != true || reloaders.map(&:updated?).any?
end It's now absent in 4.1. However, |
...but then again, will there be any speed savings in 4.1? I kinda doubt it. |
I don't think this project is active anymore. Better to remove it from Gemfile. https://stackoverflow.com/questions/27992494/rails-4-2-after-upgrade-pages-never-load-in-browser-or-take-really-long-des |
Can confirm. Do not use this gem in |
We still find benefits from this gem after fixing The reason we sill get better performance when using this gem is because the check Rails does to find if it needs to reload code is way more expensive than what this gem does. Rails will check the timestamp of all files in the projects for every asset request whereas this gem just check if the request is for an asset. You will notice the difference when your project has a lot of source code files. I'll create a pull request to make this gem work for Rails 4.1 |
Unfortunately, I'm not sure there are any active owners for this repo any more - you may want to fork it & register a new gem Alternatively, it might also be fruitful to hit up [email protected] to see whether they have someone willing to review & publish the patch |
I created a pull request just in case someone still needs this gem: #24 |
I'd agree with @nevir about forking this - it seems the official repo is dead, will never change, and no issues or PRs will go anywhere. If you're able to maintain it and plan to support Rails 5, it would make sense to start a new Github project + gem with a different name, include an attribution to this project. Rails dev remains slower than ideal and there should still be demand for a lib that speeds it up. @nevir Why would Google review this? AFAIK they don't have anything to do with this project and don't use much Ruby. |
@mahemoff Google acquired Wavii a few years back; they're the ones that have ownership of this repo now (and I no longer work there, so I can't merge/publish it :( |
Ok. We decided to remove the gem from our project and inline just what we need. Thanks |
Hi,
This Gem worked very well for me on Rails 4.0. Thanks for making it! Unfortunately it doesn't on 4.1:
This means that
RailsDevTweaks::GranularAutoload::Middleware.reload_dependencies?
always returns true, which makes this gem pretty much unusable with 4.1 because any savings gained from not reloading assets are negated by the overhead of always reloading classes even when nothing has changed.Can I suggest to declare incompatibility with Rails 4.1 in the gemspec?
The text was updated successfully, but these errors were encountered: