File tree 4 files changed +9
-14
lines changed
4 files changed +9
-14
lines changed Original file line number Diff line number Diff line change 2
2
3
3
Get upgrade notes from Sprockets 3.x to 4.x at https://github.com/rails/sprockets/blob/master/UPGRADING.md
4
4
5
+ ## Master
6
+
7
+ - Remove remaining support for Ruby < 2.4.[ #672 ] ( https://github.com/rails/sprockets/pull/672 )
8
+
5
9
## 4.0.2
6
10
7
11
- Fix ` etag ` and digest path compilation that were generating string with invalid digest since 4.0.1.
Original file line number Diff line number Diff line change @@ -68,18 +68,8 @@ def detect_digest_class(bytes)
68
68
Encoding => -> ( val , digest ) {
69
69
digest << 'Encoding' . freeze
70
70
digest << val . name
71
- } ,
72
- }
73
- if 0 . class != Integer # Ruby < 2.4
74
- ADD_VALUE_TO_DIGEST [ Fixnum ] = -> ( val , digest ) {
75
- digest << 'Integer' . freeze
76
- digest << val . to_s
77
71
}
78
- ADD_VALUE_TO_DIGEST [ Bignum ] = -> ( val , digest ) {
79
- digest << 'Integer' . freeze
80
- digest << val . to_s
81
- }
82
- end
72
+ }
83
73
84
74
ADD_VALUE_TO_DIGEST . compare_by_identity . rehash
85
75
Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ def resolve_dependencies(uris)
291
291
# Internal: Retrieves an asset based on its digest
292
292
#
293
293
# unloaded - An UnloadedAsset
294
- # limit - A Fixnum which sets the maximum number of versions of "histories"
294
+ # limit - An Integer which sets the maximum number of versions of "histories"
295
295
# stored in the cache
296
296
#
297
297
# This method attempts to retrieve the last `limit` number of histories of an asset
Original file line number Diff line number Diff line change @@ -118,8 +118,9 @@ def processors_cache_keys(processors)
118
118
Symbol ,
119
119
TrueClass ,
120
120
FalseClass ,
121
- NilClass
122
- ] + ( 0 . class == Integer ? [ Integer ] : [ Bignum , Fixnum ] ) ) . freeze
121
+ NilClass ,
122
+ Integer
123
+ ] ) . freeze
123
124
124
125
# Internal: Set of all nested compound metadata types that can nest values.
125
126
VALID_METADATA_COMPOUND_TYPES = Set . new ( [
You can’t perform that action at this time.
0 commit comments