Add all necessary paths for bower components, so that the asset pipeline find...
The initialization code that adds the paths for each frontend package (bower modules) is now much more complex. Unfortunately every module has the necessary assets (js, css, scss etc files) in a...
View ArticleRemoved precompilation of individual js files.
Those files are included in the asset manifesto and will be included in the compiled asset bundle anyway. They will not be included from the html individually and it is not necessary to individually...
View ArticleRemoved fastclick initialization from javascript.
Fastclick was removed in commit 862e7ee8 but the app still tried to initialize it on each page load. This speeds up page load (probably imperceptibly, but still) and removes a js console error.
View ArticleUse rails helpers for the font paths in fontawesome SCSS, instead of hardcode...
The paths used by default by fontawesome do not exist in a rails app, the asset pipeline creates different paths. Using rails helpers is a must to find out the actual asset path for each font. There...
View ArticleReplace calls to ActiveSupport's "try" with the safe navigation operator "&."
The safe navigation operator is new in ruby 2.3.0 For more details see for example: http://mitrev.net/ruby/2015/11/13/the-operator-in-ruby/
View ArticleAdded Zlib::DataError to the errors that can be expected to be raised when fe...
If this (rare) error happens, this means that something is wrong with the zipping of the HTTP response. The error is not raised, to avoid sidekiq adding the worker to its list of retries; rather, the...
View ArticleUse a fork of rack-cache.
This fork allows setting the entity store to nil. When configured this way, it returns empty bodies for cached responses, instead of returning the original body. It doesn't persist entities, which...
View ArticleWhen fetching feeds using rack-cache for client-side caching, set entitystore...
This keeps rack-cache from persisting response bodies in disk. We are not interested in those bodies, if a response indicates that the cache for that feed is still valid, all feed processing can be...
View ArticleSet Rack-cache verbosity to false.
This removes some messages from the logs. Also will probably remove IO errors that happen occasionally when trying to write logs from rack-cache.
View ArticleRun FixSchedulesWorker daily at 6AM instead of 5AM.
This way this scheduling does not clash with the automated sidekiq restart that happens at 5AM. This fixes a bug: FixSchedulesWorker was often not running at the scheduled time.
View ArticleMerge pull request #13 from yogodoshi/update-gems-with-vulnerabilities
Update nokogiri and devise gems because of vulnerabilities
View ArticleUpdated devise gem 3.5.4 -> 3.5.5
The "remember me" feature works again, it seems it got broken in 3.5.4
View ArticleUpdated ox gem 2.2.2 -> 2.2.3
Supposedly it fixes some errors in ruby 2.3.0. I'm running ruby 2.3.0 with ox 2.2.2 and I haven't seen any such failures, but better be safe than sorry I suppose.
View ArticleFixed declarations of private class methods.
In ruby, defining class methods after a "private" line does not work, it only works for instance methods. Marking class methods as private is a bit more complex and there are several possible...
View ArticleAdd back "self" in FileClient.
It is not strictly necessary but it makes the intent of the code more clear.
View ArticleWhen calling a private class method from the same class, do it without an exp...
Private functions, either class or instance level, cannot be called with an explicit receiver, not even "self". They must be called without an explicit receiver, which uses the implicit "self"...
View Article
More Pages to Explore .....