turbo-sprockets-rails3 0.2.8 → 0.2.9

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 CHANGED
@@ -15,7 +15,7 @@ However, please do test it out on your local machine before deploying to a produ
15
15
 
16
16
  ### Ruby
17
17
 
18
- All versions of Ruby that are supported by Rails `3.2.x`, including `1.9.3`, `1.9.2`, `1.8.7` and REE.
18
+ All versions of Ruby are supported by Rails `3.2.x`, including `1.9.3`, `1.9.2`, `1.8.7` and REE.
19
19
 
20
20
  ### Rails
21
21
 
@@ -42,10 +42,8 @@ Enjoy your lightning fast deploys!
42
42
 
43
43
  ## Removing Expired Assets
44
44
 
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 hasn't been actively deployed for more than 7 days (default).
47
-
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`.
45
+ `turbo-sprockets-rails3` can now remove expired assets after each compile by running the `assets:clean_expired` task after `assets:precompile`.
46
+ An asset will be deleted if it is no longer referenced by `manifest.yml`, and hasn't been actively deployed for more than a day (default).
49
47
 
50
48
  You can configure the expiry time by setting `config.assets.expire_after` in `config/environments/production.rb`.
51
49
  An expiry time of 2 weeks could be configured with the following code:
@@ -195,8 +195,3 @@ task_enhancements.each do |task_name, actions|
195
195
  Rake::Task[task_name].enhance &proc
196
196
  end
197
197
  end
198
-
199
- # Clean expired assets after asset precompile, if CLEAN_EXPIRED_ASSETS is set
200
- Rake::Task["assets:precompile:all"].enhance do
201
- Rake::Task["assets:clean_expired:all"].invoke if ENV['CLEAN_EXPIRED_ASSETS'].in? %w(true yes 1)
202
- end
@@ -1,3 +1,3 @@
1
1
  module TurboSprockets
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  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.8
4
+ version: 0.2.9
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-28 00:00:00.000000000 Z
12
+ date: 2012-10-29 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: -4077615069865876576
105
+ hash: 3749105111090168861
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: -4077615069865876576
114
+ hash: 3749105111090168861
115
115
  requirements: []
116
116
  rubyforge_project:
117
117
  rubygems_version: 1.8.24