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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64c1ac060b88edc01f8adc37ab2f49c9c9f1e02d74112da9270de257df718032
4
- data.tar.gz: 594abd92af901e94006089cec0f512f6098d075528ba0a753c976d3acdf75532
3
+ metadata.gz: cbc5f0a881069d09632a087bb32f43c8e5d01a631f2ff6fbc6e776e3695bd51c
4
+ data.tar.gz: 580922aaccc4defd65fdf239b441f7e8e96216d98dae8fdfe0a64afc3b40a4bc
5
5
  SHA512:
6
- metadata.gz: b242856a5477ce327a65ed075071dc31248abcc9fabf4c9efc8a094dc06ff48353659727bf2038903199790fbbb677f06dc2ddc4f5421c073d75e400b14e1d9e
7
- data.tar.gz: 04e32fbe2acfe7462d36371e686677d876c5be5af1cd3013f7ee272df45ed4a0e08709c3f890f71c92dfaf466b14b4915a4d168c46b85954f448e1397038fb67
6
+ metadata.gz: f474ef02d068783020ae4a3833bded8783d1a1bfa1ee5ae106dd7e8dfbcf12723c8582155cb44c0594b0c36bcad476b7139814f2577fa2e25a82ad6675763dc4
7
+ data.tar.gz: 853bbac33f50b2097126190c01bdc182306b7aa7132d50b91248efd1dcc1b7a35863fa1a5e529eacc8d967ee9d2de8083ae68b72e02889e01a821d794d0ad147
@@ -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)
@@ -75,8 +75,8 @@ module Sprockets
75
75
  end
76
76
 
77
77
  # Find asset by logical path or expanded path.
78
- def find_asset(*args)
79
- uri, _ = resolve(*args)
78
+ def find_asset(*args, **options)
79
+ uri, _ = resolve(*args, **options)
80
80
  if uri
81
81
  load(uri)
82
82
  end
@@ -27,8 +27,8 @@ module Sprockets
27
27
  end
28
28
  alias_method :index, :cached
29
29
 
30
- def find_asset(*args)
31
- cached.find_asset(*args)
30
+ def find_asset(*args, **options)
31
+ cached.find_asset(*args, **options)
32
32
  end
33
33
 
34
34
  def find_asset!(*args)
@@ -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
- chars = str.split('')
432
- while chars.any?
433
- vlq = 0
434
- shift = 0
435
- continuation = true
436
- while continuation
437
- char = chars.shift
438
- raise ArgumentError unless char
439
- digit = BASE64_VALUES[char]
440
- continuation = false if (digit & VLQ_CONTINUATION_BIT) == 0
441
- digit &= VLQ_BASE_MASK
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
- result << (vlq & 1 == 1 ? -(vlq >> 1) : vlq >> 1)
447
+ i += 1
446
448
  end
447
449
  result
448
450
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Sprockets
3
- VERSION = "4.0.0.beta10"
3
+ VERSION = "4.0.0"
4
4
  end
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.beta10
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-07-09 00:00:00.000000000 Z
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: 1.3.1
438
+ version: '0'
439
439
  requirements: []
440
440
  rubygems_version: 3.0.3
441
441
  signing_key: