has_web_fallback 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/tasks/has_web_fallback_tasks.rake +21 -0
  2. metadata +3 -2
@@ -0,0 +1,21 @@
1
+ require 'find'
2
+
3
+ namespace :has_web_fallback do
4
+
5
+ desc "Remove out of date web_fallback caches for a named action mailer CLASS"
6
+ task :clean=>[:environment] do |t|
7
+ klass = ENV['CLASS'].constantize
8
+ klass.clear_web_fallback_caches if klass.respond_to? :clear_web_fallback_caches
9
+ end
10
+
11
+ desc "Remove out of date web_fallback caches for all ActionMailer classes"
12
+ task :clean_all=>[:environment] do |t|
13
+ mailer_files = []
14
+ Dir.glob(File.join(RAILS_ROOT, '**', "*_mailer.rb")) do |file|
15
+ mailer = File.basename(file, '.rb')
16
+ klass = mailer.camelize.constantize
17
+ klass.clear_web_fallback_caches if klass.respond_to? :clear_web_fallback_caches
18
+ end
19
+ end
20
+
21
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_web_fallback
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Montague
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-22 00:00:00 +01:00
12
+ date: 2009-10-27 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -53,6 +53,7 @@ extra_rdoc_files:
53
53
  files:
54
54
  - lib/has_web_fallback.rb
55
55
  - lib/leftbrained/has_web_fallback.rb
56
+ - tasks/has_web_fallback_tasks.rake
56
57
  - README
57
58
  has_rdoc: true
58
59
  homepage: http://github.com/Govan/has_web_fallback