sprockets 4.4.0 → 4.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/sprockets/base.rb +0 -7
- data/lib/sprockets/configuration.rb +13 -0
- data/lib/sprockets/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fa95962ec0936790685d6cbc86c52ee2a18b64dd53c0fc6d4d4b2768f770c0ff
|
|
4
|
+
data.tar.gz: 02f7be276656a15d0307316d330995d66a020f19b432b307a00da6a0ff30e97f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 84150daf942284304aad9eba323c15c453fb5d30a9b91b121721f810a938cda9e6c81592c0693e1af8f6538b8b4a167d7c87710b50405757364ee7e4f229722a
|
|
7
|
+
data.tar.gz: bf5083c1c49dcca322bbc66bde199c4f6a6dbbce955d6a0200438f401739ae995147f1acbe42aebb051dd51a324a9c757005e769d48a197c420ee8ac182f2c7e
|
data/CHANGELOG.md
CHANGED
|
@@ -2,9 +2,13 @@
|
|
|
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
|
+
# 4.4.1
|
|
6
|
+
|
|
7
|
+
- Fix the `ignore_mtime` option to be shared between environments. [#834](https://github.com/rails/sprockets/pull/834)
|
|
8
|
+
|
|
5
9
|
## 4.4.0
|
|
6
10
|
|
|
7
|
-
- Implement `ignore_mtime` option. [#
|
|
11
|
+
- Implement `ignore_mtime` option. [#832](https://github.com/rails/sprockets/pull/832)
|
|
8
12
|
- Allow disabling cache limits. [#831](https://github.com/rails/sprockets/pull/831)
|
|
9
13
|
|
|
10
14
|
## 4.3.0
|
data/lib/sprockets/base.rb
CHANGED
|
@@ -55,13 +55,6 @@ module Sprockets
|
|
|
55
55
|
end
|
|
56
56
|
alias_method :index, :cached
|
|
57
57
|
|
|
58
|
-
# By default sprockets tries to quickly revalidate the cache for a source file
|
|
59
|
-
# by comparing its last modified time.
|
|
60
|
-
# This is efficient in development, but in some CI or producton environments
|
|
61
|
-
# where the source files are restored from version control, the last modified time
|
|
62
|
-
# tend to be somewhat random, and checking it is just needless overhead.
|
|
63
|
-
attr_accessor :ignore_mtime
|
|
64
|
-
|
|
65
58
|
# Internal: Compute digest for path.
|
|
66
59
|
#
|
|
67
60
|
# path - String filename or directory path.
|
|
@@ -67,6 +67,19 @@ module Sprockets
|
|
|
67
67
|
self.config = config.merge(digest_class: klass).freeze
|
|
68
68
|
end
|
|
69
69
|
|
|
70
|
+
def ignore_mtime
|
|
71
|
+
config[:ignore_mtime]
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# By default sprockets tries to quickly revalidate the cache for a source file
|
|
75
|
+
# by comparing its last modified time.
|
|
76
|
+
# This is efficient in development, but in some CI or producton environments
|
|
77
|
+
# where the source files are restored from version control, the last modified time
|
|
78
|
+
# tend to be somewhat random, and checking it is just needless overhead.
|
|
79
|
+
def ignore_mtime=(ignore_mtime)
|
|
80
|
+
self.config = config.merge(ignore_mtime: ignore_mtime).freeze
|
|
81
|
+
end
|
|
82
|
+
|
|
70
83
|
# This class maybe mutated and mixed in with custom helpers.
|
|
71
84
|
#
|
|
72
85
|
# environment.context_class.instance_eval do
|
data/lib/sprockets/version.rb
CHANGED