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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e90597d41c004cb5a71036473da429c30f7fea114de88b48f8c5b0bbd1e82531
4
- data.tar.gz: 496cf47db6004a4335fe2afa6e5c0c70f8322be6a57dbed5c7a4f1976717df93
3
+ metadata.gz: fa95962ec0936790685d6cbc86c52ee2a18b64dd53c0fc6d4d4b2768f770c0ff
4
+ data.tar.gz: 02f7be276656a15d0307316d330995d66a020f19b432b307a00da6a0ff30e97f
5
5
  SHA512:
6
- metadata.gz: d5665dc8d05a3aafbff29fe6287c9732f1b51a3dd5164a38d5ba0a289cd660a18ef061fdc3560f3f2b481da450beb5e0864279394e1f8164b859b0e15dafb531
7
- data.tar.gz: 80a297f58bf9d94f4d78f21898477ffa2a7a9bf8f00d0cdb7d4a6351d0c28646cbcba97cdd491472fd329c170ca013bb9defe14fd5e43003eb1022377e396573
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. [#831](https://github.com/rails/sprockets/pull/832)
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
@@ -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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Sprockets
3
- VERSION = "4.4.0"
3
+ VERSION = "4.4.1"
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.4.0
4
+ version: 4.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Stephenson