sprockets 4.0.0.beta10 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/sprockets/base.rb +2 -2
- data/lib/sprockets/environment.rb +2 -2
- data/lib/sprockets/manifest_utils.rb +1 -0
- data/lib/sprockets/source_map_utils.rb +15 -13
- data/lib/sprockets/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbc5f0a881069d09632a087bb32f43c8e5d01a631f2ff6fbc6e776e3695bd51c
|
4
|
+
data.tar.gz: 580922aaccc4defd65fdf239b441f7e8e96216d98dae8fdfe0a64afc3b40a4bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f474ef02d068783020ae4a3833bded8783d1a1bfa1ee5ae106dd7e8dfbcf12723c8582155cb44c0594b0c36bcad476b7139814f2577fa2e25a82ad6675763dc4
|
7
|
+
data.tar.gz: 853bbac33f50b2097126190c01bdc182306b7aa7132d50b91248efd1dcc1b7a35863fa1a5e529eacc8d967ee9d2de8083ae68b72e02889e01a821d794d0ad147
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,11 @@ Get upgrade notes from Sprockets 3.x to 4.x at https://github.com/rails/sprocket
|
|
4
4
|
|
5
5
|
## Master
|
6
6
|
|
7
|
+
## 4.0.0
|
8
|
+
|
9
|
+
- Fixes for Ruby 2.7 keyword arguments warnings [#625](https://github.com/rails/sprockets/pull/625)
|
10
|
+
- Manifest files are sorted alphabetically [#626](https://github.com/rails/sprockets/pull/626)
|
11
|
+
|
7
12
|
## 4.0.0.beta10
|
8
13
|
|
9
14
|
- Fix YACB (Yet Another Caching Bug) [Fix broken expansion of asset link paths](https://github.com/rails/sprockets/pull/614)
|
data/lib/sprockets/base.rb
CHANGED
@@ -38,6 +38,7 @@ module Sprockets
|
|
38
38
|
entries = File.directory?(dirname) ? Dir.entries(dirname) : []
|
39
39
|
manifest_entries = entries.select { |e| e =~ MANIFEST_RE }
|
40
40
|
if manifest_entries.length > 1
|
41
|
+
manifest_entries.sort!
|
41
42
|
logger.warn("Found multiple manifests: #{manifest_entries}. Choosing the first alphabetically: #{manifest_entries.first}")
|
42
43
|
end
|
43
44
|
entry = manifest_entries.first || generate_manifest_path
|
@@ -428,21 +428,23 @@ module Sprockets
|
|
428
428
|
# Returns an Array of Integers.
|
429
429
|
def vlq_decode(str)
|
430
430
|
result = []
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
vlq += digit << shift
|
431
|
+
shift = 0
|
432
|
+
value = 0
|
433
|
+
i = 0
|
434
|
+
|
435
|
+
while i < str.size do
|
436
|
+
digit = BASE64_VALUES[str[i]]
|
437
|
+
raise ArgumentError unless digit
|
438
|
+
continuation = (digit & VLQ_CONTINUATION_BIT) != 0
|
439
|
+
digit &= VLQ_CONTINUATION_BIT - 1
|
440
|
+
value += digit << shift
|
441
|
+
if continuation
|
443
442
|
shift += VLQ_BASE_SHIFT
|
443
|
+
else
|
444
|
+
result << ((value & 1) == 1 ? -(value >> 1) : value >> 1)
|
445
|
+
value = shift = 0
|
444
446
|
end
|
445
|
-
|
447
|
+
i += 1
|
446
448
|
end
|
447
449
|
result
|
448
450
|
end
|
data/lib/sprockets/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprockets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Stephenson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-10-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|
@@ -433,9 +433,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
433
433
|
version: 2.5.0
|
434
434
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
435
435
|
requirements:
|
436
|
-
- - "
|
436
|
+
- - ">="
|
437
437
|
- !ruby/object:Gem::Version
|
438
|
-
version:
|
438
|
+
version: '0'
|
439
439
|
requirements: []
|
440
440
|
rubygems_version: 3.0.3
|
441
441
|
signing_key:
|