diff options
author | Xavier Noria <fxn@hashref.com> | 2015-12-09 03:07:49 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2015-12-09 03:07:49 +0100 |
commit | 92a9744f8132f46b0e5f49fa5b4d8c66b4e861cb (patch) | |
tree | 312dce7c4e613094ced1ae963bbff4b2f4962593 | |
parent | a61e4ae58d65d43a97e90bdb02b6c407791e3c53 (diff) | |
download | rails-92a9744f8132f46b0e5f49fa5b4d8c66b4e861cb.tar.gz rails-92a9744f8132f46b0e5f49fa5b4d8c66b4e861cb.tar.bz2 rails-92a9744f8132f46b0e5f49fa5b4d8c66b4e861cb.zip |
renames AS::FileEventedUpdateChecker to AS::EventedFileUpdateChecker
Better English.
-rw-r--r-- | activesupport/lib/active_support.rb | 2 | ||||
-rw-r--r-- | activesupport/lib/active_support/evented_file_update_checker.rb (renamed from activesupport/lib/active_support/file_evented_update_checker.rb) | 2 | ||||
-rw-r--r-- | activesupport/test/evented_file_update_checker_test.rb (renamed from activesupport/test/file_evented_update_checker_test.rb) | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/activesupport/lib/active_support.rb b/activesupport/lib/active_support.rb index 3a2a7d28cb..2019afeb00 100644 --- a/activesupport/lib/active_support.rb +++ b/activesupport/lib/active_support.rb @@ -34,7 +34,7 @@ module ActiveSupport autoload :Dependencies autoload :DescendantsTracker autoload :FileUpdateChecker - autoload :FileEventedUpdateChecker + autoload :EventedFileUpdateChecker autoload :LogSubscriber autoload :Notifications diff --git a/activesupport/lib/active_support/file_evented_update_checker.rb b/activesupport/lib/active_support/evented_file_update_checker.rb index bb0f26f874..c1c30b1a86 100644 --- a/activesupport/lib/active_support/file_evented_update_checker.rb +++ b/activesupport/lib/active_support/evented_file_update_checker.rb @@ -4,7 +4,7 @@ require 'pathname' require 'concurrent/atomic/atomic_boolean' module ActiveSupport - class FileEventedUpdateChecker #:nodoc: all + class EventedFileUpdateChecker #:nodoc: all def initialize(files, dirs = {}, &block) @ph = PathHelper.new @files = files.map { |f| @ph.xpath(f) }.to_set diff --git a/activesupport/test/file_evented_update_checker_test.rb b/activesupport/test/evented_file_update_checker_test.rb index ec3a7e28f3..bc3f77bd54 100644 --- a/activesupport/test/file_evented_update_checker_test.rb +++ b/activesupport/test/evented_file_update_checker_test.rb @@ -2,7 +2,7 @@ require 'abstract_unit' require 'pathname' require 'file_update_checker_shared_tests' -class FileEventedUpdateCheckerTest < ActiveSupport::TestCase +class EventedFileUpdateCheckerTest < ActiveSupport::TestCase include FileUpdateCheckerSharedTests def setup @@ -11,7 +11,7 @@ class FileEventedUpdateCheckerTest < ActiveSupport::TestCase end def new_checker(files = [], dirs = {}, &block) - ActiveSupport::FileEventedUpdateChecker.new(files, dirs, &block).tap do + ActiveSupport::EventedFileUpdateChecker.new(files, dirs, &block).tap do wait end end @@ -36,13 +36,13 @@ class FileEventedUpdateCheckerTest < ActiveSupport::TestCase end end -class FileEventedUpdateCheckerPathHelperTest < ActiveSupport::TestCase +class EventedFileUpdateCheckerPathHelperTest < ActiveSupport::TestCase def pn(path) Pathname.new(path) end setup do - @ph = ActiveSupport::FileEventedUpdateChecker::PathHelper.new + @ph = ActiveSupport::EventedFileUpdateChecker::PathHelper.new end test '#xpath returns the expanded path as a Pathname object' do |