aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/file_update_checker.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable `Layout/EmptyLinesAroundAccessModifier` copRyuta Kamizono2019-06-131-1/+0
| | | | | | | | | | | We sometimes say "✂️ newline after `private`" in a code review (e.g. https://github.com/rails/rails/pull/18546#discussion_r23188776, https://github.com/rails/rails/pull/34832#discussion_r244847195). Now `Layout/EmptyLinesAroundAccessModifier` cop have new enforced style `EnforcedStyle: only_before` (https://github.com/rubocop-hq/rubocop/pull/7059). That cop and enforced style will reduce the our code review cost.
* [Active Support] require_relative => requireAkira Matsuda2017-10-211-1/+1
| | | | This basically reverts 8da30ad6be34339124ba4cb4e36aea260dda12bc
* [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-111-0/+1
|
* Use frozen-string-literal in ActiveSupportKir Shatrov2017-07-091-0/+1
|
* [Active Support] require => require_relativeAkira Matsuda2017-07-011-1/+1
|
* Raise in the initialize not in the executeRafael Mendonça França2017-01-311-5/+5
|
* Raise an error if FileUpdateChecker#execute is called with no blockkenta-s2017-01-281-1/+5
|
* Add more rubocop rules about whitespacesRafael Mendonça França2016-10-291-1/+1
|
* Fix broken comments indentation caused by rubocop auto-correct [ci skip]Ryuta Kamizono2016-09-141-7/+7
| | | | | | All indentation was normalized by rubocop auto-correct at 80e66cc4d90bf8c15d1a5f6e3152e90147f00772. But comments was still kept absolute position. This commit aligns comments with method definitions for consistency.
* normalizes indentation and whitespace across the projectXavier Noria2016-08-061-43/+43
|
* applies new string literal convention in activesupport/libXavier Noria2016-08-061-2/+2
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Remove time calculatiosn extensionRafael Mendonça França2016-04-131-0/+2
| | | | We are using compare_without_coercion.
* copy edits some comments [ci skip]Xavier Noria2016-04-121-8/+5
| | | | | | | Note that the fact that mtimes in the future are ignore was documented just a few lines above. Since we know this has to be done, and the code is quite clear due to variable naming, I think we can get rid of the comment in the middle of the loop and shorten it even further.
* No more need for an early returnBlake Mesdag2016-04-121-2/+0
|
* More readable versionBlake Mesdag2016-04-121-13/+10
|
* Handle max_time edge cases for epoch times and add testBlake Mesdag2016-04-121-3/+12
|
* Use Time#compare_without_coercion for super speedBlake Mesdag2016-04-121-1/+6
|
* Use a single memoized loop to find max mtime in ↵Blake Mesdag2016-04-121-1/+12
| | | | ActiveSupport::FileUpdateChecker#max_mtime
* use `ActiveSupport::Reloader.to_prepare` instead of deprecated ↵yuuji.yaginuma2016-03-111-1/+1
| | | | `ActionDispatch::Reloader.to_prepare` [ci skip]
* Publish AS::Executor and AS::Reloader APIsMatthew Draper2016-03-021-0/+1
| | | | | | These should allow external code to run blocks of user code to do "work", at a similar unit size to a web request, without needing to get intimate with ActionDipatch.
* applies code style guidelinesXavier Noria2015-11-111-1/+1
|
* clean up some warnings on trunk rubyAaron Patterson2013-10-311-1/+1
|
* Fix some typosVipul A M2013-06-071-1/+1
|
* Replace comments' non-breaking spaces with spacesclaudiob2012-12-041-1/+1
| | | | | | | | | | Sometimes, on Mac OS X, programmers accidentally press Option+Space rather than just Space and don’t see the difference. The problem is that Option+Space writes a non-breaking space (0XA0) rather than a normal space (0x20). This commit removes all the non-breaking spaces inadvertently introduced in the comments of the code.
* update AS docs [ci skip]Francesco Rodriguez2012-09-171-10/+8
|
* explains why the file update checker ignores mtimes in the future, plus a ↵Xavier Noria2012-07-021-2/+12
| | | | little refactor for the same price
* fix FileUpdateChecker when file has wrong mtime (from future)abonec2012-06-291-1/+3
|
* Stop relying on mutable structures in the FileUpdateCheckerJosé Valim2012-06-121-15/+4
|
* Initialize variables in file update checker to avoid warningsCarlos Antonio da Silva2012-04-051-0/+3
|
* the file update checker now also detects removed filesXavier Noria2012-04-031-24/+38
|
* Remove deprecation from AS::Deprecation behavior, some minor cleanupsCarlos Antonio da Silva2012-03-161-8/+5
| | | | | | | | | * Refactor log subscriber, use select! to avoid a new object * Remove deprecation messages related to AS::Deprecation behavior This was added about 2 years ago for Rails 3: https://github.com/rails/rails/commit/d4c7d3fd94e5a885a6366eaeb3b908bb58ffd4db * Remove some not used requires * Refactor delegate to avoid string conversions and if statements inside each block
* escape commas in paths before globbing to avoid infinite hang in Dir[]Jon Rowe2012-03-151-1/+5
|
* Remove Array.wrap calls in ActiveSupportRafael Mendonça França2012-01-061-2/+1
|
* FileUpdateChecker should be able to handle deleted files.José Valim2011-12-131-28/+45
|
* Clean up FileUpdateChecker API.José Valim2011-12-131-12/+13
|
* Speed up development by only reloading classes if dependencies files changed.José Valim2011-12-121-10/+33
| | | | | | | | This can be turned off by setting `config.reload_classes_only_on_change` to false. Extensions like Active Record should add their respective files like db/schema.rb and db/structure.sql to `config.watchable_files` if they want their changes to affect classes reloading. Thanks to https://github.com/paneq/active_reload and Pastorino for the inspiration. <3
* Provide a dir => extension API to file update checker.José Valim2011-12-121-2/+41
|
* Update checker returns a boolean if callback was executed or not.José Valim2011-12-121-0/+3
|
* Allow FileUpdateChecker to work with globs.José Valim2011-12-121-1/+3
|
* Use shorter class-level File methods instead of going through File.stat.thedarkone2011-07-251-1/+1
|
* Replace AD::Callbacks.to_prepare with AD::Reloader.to_prepareJohn Firebaugh2010-12-201-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Avoid calls to Rails::Application since this is not the official API.José Valim2010-07-011-6/+5
| | | | Your application should *always* reference your application const (as Blog::Application) and Rails.application should be used just internally.
* Initialize @last_update_at in file_update_checker to hide warnings in AS ↵rohit2010-06-211-2/+2
| | | | | | test suite. Signed-off-by: José Valim <jose.valim@gmail.com>
* Add ActiveSupport::FileUpdateChecker.José Valim2010-06-201-0/+37