maidservice 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0d0bb84642e3c3cfcc81f86391352c0783a5a6af
4
- data.tar.gz: 456d903a1c87157fecdd4bed51da34b225b63cbd
3
+ metadata.gz: 15e82f3b0c8c0003385f9fea80039dfc2e38a5a5
4
+ data.tar.gz: c7be037f5fb96059af8812dacce5ef2c1f7b4d15
5
5
  SHA512:
6
- metadata.gz: 95b89eba31a243141ad2a8d416320303e9d854d45a246b87f822c594af548f3fab264a99a8fb3d033c3cccd47797f7bc0f6b98209d35cf2db3a9d07250663b84
7
- data.tar.gz: 731b5cd2250c7abfddde51a6f4af0f1ee89ce0579a967ebdaf44cab8f3d3f58ec76300a85145490630ed4dc33af1af86e3e72bbeb67f53a71c72a1582df33e05
6
+ metadata.gz: c7fc22c752528b6732d3fd657fb0005e0d2a5504718dfa66d90a3880cdf680fe120e79a1ea8f655c3723b88373054b01a73c99c7c3fed7487864f1e9c40800f7
7
+ data.tar.gz: 26f571bf19e4e7b478a6050f5ea89658c97aba58aa20309712eed9a834459e1b23e2b383b20584d8fae3727ed1eaf4501cf7ffce278f8d7a4711c274710812fe
@@ -37,10 +37,10 @@ module Maidservice
37
37
  # never gets here.
38
38
  end
39
39
 
40
- # TODO: duplicate of rails expire_page
40
+ # TODO: scary powerful. Protect against bad ideas
41
41
  def self.clear_page(full_path)
42
42
  return unless ActionController::Base.perform_caching
43
- File.delete(full_path) if File.exist?(full_path)
43
+ FileUtils.rm_rf(full_path) if File.exist?(full_path)
44
44
  File.delete(full_path + '.gz') if File.exist?(full_path + '.gz')
45
45
  end
46
46
 
@@ -1,3 +1,3 @@
1
1
  module Maidservice
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maidservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Carleton