Skip to content

Commit 53e8e3d

Browse files
authored
Merge pull request #805 from kianmeng/fix-typos
Fix typos
2 parents 06cd6d7 + 5e34a67 commit 53e8e3d

File tree

14 files changed

+23
-23
lines changed

14 files changed

+23
-23
lines changed

guides/how_sprockets_works.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ class NpmDirectiveProcessor < Sprockets::DirectiveProcessor
377377
pipeline: :self,
378378
load_paths: dirs
379379
)
380-
@dependecies.merge(deps)
380+
@dependencies.merge(deps)
381381
@required << uri
382382
end
383383
end

guides/source_maps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ digit.to_s(2)
302302
# or "000000"
303303
```
304304

305-
Whe then generate a `vl` by shifting the digit with the default value of `shift` which is 0
305+
When then generate a `vl` by shifting the digit with the default value of `shift` which is 0
306306

307307
```
308308
vlq += digit << shift

lib/sprockets/asset.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def source
9797
if @source
9898
@source
9999
else
100-
# File is read everytime to avoid memory bloat of large binary files
100+
# File is read every time to avoid memory bloat of large binary files
101101
File.binread(filename)
102102
end
103103
end

lib/sprockets/compressing.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def skip_gzip?
106106
#
107107
# environment.gzip = false
108108
#
109-
# To enable set to a truthy value. By default zlib wil
109+
# To enable set to a truthy value. By default zlib will
110110
# be used to gzip assets. If you have the Zopfli gem
111111
# installed you can specify the zopfli algorithm to be used
112112
# instead:

lib/sprockets/loader.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def load_from_unloaded(unloaded)
179179
processors_dep_uri = build_processors_uri(type, file_type, pipeline)
180180
dependencies = config[:dependencies] + [processors_dep_uri]
181181

182-
# Read into memory and process if theres a processor pipeline
182+
# Read into memory and process if there's a processor pipeline
183183
if processors.any?
184184
result = call_processors(processors, {
185185
environment: self,

lib/sprockets/path_dependency_utils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module Sprockets
1818
# The returned dependency set can be passed to resolve_dependencies(deps)
1919
# to check if the returned result is still fresh. In this case, entry always
2020
# returns a single path, but multiple calls should accumulate dependencies
21-
# into a single set thats saved off and checked later.
21+
# into a single set that's saved off and checked later.
2222
#
2323
# resolve_dependencies(deps)
2424
# # => "\x01\x02\x03"

lib/sprockets/utils/gzip.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def initialize(asset, archiver: ZlibArchiver)
4949

5050
# What non-text mime types should we compress? This list comes from:
5151
# https://www.fastly.com/blog/new-gzip-settings-and-deciding-what-compress
52-
COMPRESSABLE_MIME_TYPES = {
52+
COMPRESSIBLE_MIME_TYPES = {
5353
"application/vnd.ms-fontobject" => true,
5454
"application/x-font-opentype" => true,
5555
"application/x-font-ttf" => true,
@@ -71,7 +71,7 @@ def can_compress?
7171
# can be compressed.
7272
#
7373
# We also check against our list of non-text compressible mime types
74-
@charset || COMPRESSABLE_MIME_TYPES.include?(@content_type)
74+
@charset || COMPRESSIBLE_MIME_TYPES.include?(@content_type)
7575
end
7676

7777
# Private: Opposite of `can_compress?`.

test/test_asset.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ def setup
11231123
asset("project.js").digest_path
11241124
end
11251125

1126-
test "multiple charset defintions are stripped from css bundle" do
1126+
test "multiple charset definitions are stripped from css bundle" do
11271127
assert_equal "\n.foo {}\n\n.bar {}\n\n\n", asset("charset.css").to_s
11281128
end
11291129

test/test_caching.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ def has_relative_value?(elem)
468468
end
469469

470470

471-
test "no absolute paths are retuned from cache" do
471+
test "no absolute paths are returned from cache" do
472472
env1 = Sprockets::Environment.new(fixture_path('default')) do |env|
473473
env.append_path(".")
474474
env.cache = @cache

test/test_dependency.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ def teardown
1414

1515
def test_env_dependency
1616
assert_equal @env.resolve_dependency('env:DEPENDENCY_TEST_VALUE'), 'Hello'
17-
assert_nil @env.resolve_dependency('env:NONEXISTANT_DEPENDENCY_TEST_VALUE')
17+
assert_nil @env.resolve_dependency('env:NONEXISTENT_DEPENDENCY_TEST_VALUE')
1818
end
1919
end

0 commit comments

Comments
 (0)