lib/sprockets/context.rb in sprockets-4.0.0.beta2 vs lib/sprockets/context.rb in sprockets-4.0.0.beta3
- old
+ new
@@ -1,5 +1,6 @@
+# frozen_string_literal: true
require 'rack/utils'
require 'set'
require 'sprockets/errors'
module Sprockets
@@ -97,11 +98,11 @@
# `depend_on` allows you to state a dependency on a file without
# including it.
#
# This is used for caching purposes. Any changes made to
- # the dependency file with invalidate the cache of the
+ # the dependency file will invalidate the cache of the
# source file.
def depend_on(path)
if environment.absolute_path?(path) && environment.stat(path)
@dependencies << environment.build_file_digest_uri(path)
else
@@ -113,10 +114,10 @@
# `depend_on_asset` allows you to state an asset dependency
# without including it.
#
# This is used for caching purposes. Any changes that would
# invalidate the dependency asset will invalidate the source
- # file. Unlike `depend_on`, this will include recursively include
+ # file. Unlike `depend_on`, this will recursively include
# the target asset's dependencies.
def depend_on_asset(path)
load(resolve(path))
end