turbo-sprockets-rails3 0.2.4 → 0.2.5
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.
- data/README.md +1 -3
- data/lib/turbo-sprockets/railtie.rb +3 -0
- data/lib/turbo-sprockets/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -43,9 +43,7 @@ Enjoy your lightning fast deploys!
|
|
43
43
|
## Removing Expired Assets
|
44
44
|
|
45
45
|
`turbo-sprockets-rails3` can now remove expired assets after each compile. If the environment variable `CLEAN_EXPIRED_ASSETS` is set to `true`, the `assets:clean_expired` task will be run after `assets:precompile`.
|
46
|
-
An asset will be deleted if it is no longer referenced by `manifest.yml`, and
|
47
|
-
|
48
|
-
Before the `assets:precompile` task runs, it stores the modification time of the current `manifest.yml` in a file called `expire_assets_after.yml`. When the `assets:clean_expired` task runs, it looks up the time in `expire_assets_after.yml`, and won't expire any assets that were created on or after than that time.
|
46
|
+
An asset will be deleted if it is no longer referenced by `manifest.yml`, and hasn't been actively deployed for more than 7 days (default).
|
49
47
|
|
50
48
|
To expire old assets after precompile, you should compile assets by running `CLEAN_EXPIRED_ASSETS=true rake assets:precompile`. Alternatively, you can run `rake assets:precompile assets:clean_expired`.
|
51
49
|
|
@@ -18,6 +18,9 @@ module TurboSprockets
|
|
18
18
|
sources_manifest = File.join(manifest_dir, "sources_manifest.yml")
|
19
19
|
config.assets.digests = (File.exist?(digests_manifest) && YAML.load_file(digests_manifest)) || {}
|
20
20
|
config.assets.source_digests = (File.exist?(sources_manifest) && YAML.load_file(sources_manifest)) || {}
|
21
|
+
|
22
|
+
# Clear digests if loading previous manifest format
|
23
|
+
config.assets.digests = {} if config.assets.digests[:digest_files]
|
21
24
|
end
|
22
25
|
end
|
23
26
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turbo-sprockets-rails3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sprockets
|
@@ -102,7 +102,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
102
102
|
version: '0'
|
103
103
|
segments:
|
104
104
|
- 0
|
105
|
-
hash:
|
105
|
+
hash: -530756851904489456
|
106
106
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
107
|
none: false
|
108
108
|
requirements:
|
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
111
|
version: '0'
|
112
112
|
segments:
|
113
113
|
- 0
|
114
|
-
hash:
|
114
|
+
hash: -530756851904489456
|
115
115
|
requirements: []
|
116
116
|
rubyforge_project:
|
117
117
|
rubygems_version: 1.8.24
|