cartoonist 0.0.17 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/app/models/page_cache.rb +17 -0
- data/cartoonist.gemspec +8 -7
- data/lib/cartoonist/engine.rb +1 -5
- data/lib/cartoonist/version.rb +1 -1
- metadata +23 -38
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: cb529e2b4ff66b21d80a22172a26f3898d27d460
|
4
|
+
data.tar.gz: 04b4b4f22d5f9885b933542cbdfa1c21fb548902
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0da7d89aeb9db0d9fe7b17c27832591cbd48b7f2be0adb05c4deee29a1cb42d91d0136c56dce89c51a5371be56113351b372a6b6661c0eb42dfb9b8457725a08
|
7
|
+
data.tar.gz: 4e9b1285503bb4624b82e9f38451de02bfa71d80333cf4115ae125cec4161cfb1af9f4bd0a954f865923085ba6c50547b9c4adaf7bd3340bb5b876ed57ee6a92
|
data/app/models/page_cache.rb
CHANGED
@@ -48,6 +48,23 @@ class PageCache
|
|
48
48
|
end
|
49
49
|
|
50
50
|
class << self
|
51
|
+
def cleanup_tmp!
|
52
|
+
globs = []
|
53
|
+
|
54
|
+
EXTENSIONS.each do |extension|
|
55
|
+
globs << File.join(CACHE_PATH, "**/*.tmp.#{extension}")
|
56
|
+
globs << File.join(CACHE_PATH, "**/*.tmp.#{extension}.gz")
|
57
|
+
end
|
58
|
+
|
59
|
+
globs.each do |glob|
|
60
|
+
Dir.glob(glob, File::FNM_DOTMATCH).each do |file|
|
61
|
+
if 2.hours.ago > File.mtime(file)
|
62
|
+
File.delete file
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
51
68
|
def find(name)
|
52
69
|
name = "" if name == "INDEX"
|
53
70
|
actual = cache_names.select { |x| x == name }.first
|
data/cartoonist.gemspec
CHANGED
@@ -5,16 +5,17 @@ Gem::Specification.new do |s|
|
|
5
5
|
s.date = Time.now.strftime "%Y-%m-%d"
|
6
6
|
s.summary = "Cartoonist Core"
|
7
7
|
s.description = "This provides the main functionality and plugin api for Cartoonist."
|
8
|
+
s.license = "MIT"
|
8
9
|
s.authors = ["Mike Virata-Stone"]
|
9
10
|
s.email = "reasonnumber@gmail.com"
|
10
11
|
s.files = `git ls-files`.split("\n")
|
11
12
|
s.require_paths = ["lib"]
|
12
13
|
s.homepage = "http://reasonnumber.com/cartoonist"
|
13
|
-
s.add_dependency "devise", "~> 2.
|
14
|
-
s.add_dependency "jquery-rails", "~>
|
15
|
-
s.add_dependency "omniauth-openid", "~> 1.0
|
16
|
-
s.add_dependency "railties", "~> 3.2
|
17
|
-
s.add_dependency "redcarpet", "~> 2.
|
18
|
-
s.add_dependency "rubyzip", "~> 0.9
|
19
|
-
s.add_dependency "minitar", "~> 0.5
|
14
|
+
s.add_dependency "devise", "~> 2.2"
|
15
|
+
s.add_dependency "jquery-rails", "~> 3.0"
|
16
|
+
s.add_dependency "omniauth-openid", "~> 1.0"
|
17
|
+
s.add_dependency "railties", "~> 3.2"
|
18
|
+
s.add_dependency "redcarpet", "~> 2.3"
|
19
|
+
s.add_dependency "rubyzip", "~> 0.9"
|
20
|
+
s.add_dependency "minitar", "~> 0.5"
|
20
21
|
end
|
data/lib/cartoonist/engine.rb
CHANGED
@@ -309,11 +309,7 @@ module Cartoonist
|
|
309
309
|
end
|
310
310
|
|
311
311
|
Cartoonist::Cron.add do
|
312
|
-
|
313
|
-
if 2.hours.ago > File.mtime(file)
|
314
|
-
File.delete file
|
315
|
-
end
|
316
|
-
end
|
312
|
+
PageCache.cleanup_tmp!
|
317
313
|
end
|
318
314
|
|
319
315
|
Cartoonist::Routes.add_begin do
|
data/lib/cartoonist/version.rb
CHANGED
metadata
CHANGED
@@ -1,128 +1,113 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cartoonist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.18
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Mike Virata-Stone
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-06-03 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: devise
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: 2.
|
19
|
+
version: '2.2'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: 2.
|
26
|
+
version: '2.2'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: jquery-rails
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
33
|
+
version: '3.0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
40
|
+
version: '3.0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: omniauth-openid
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.0
|
47
|
+
version: '1.0'
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.0
|
54
|
+
version: '1.0'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: railties
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
59
|
- - ~>
|
68
60
|
- !ruby/object:Gem::Version
|
69
|
-
version: 3.2
|
61
|
+
version: '3.2'
|
70
62
|
type: :runtime
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
66
|
- - ~>
|
76
67
|
- !ruby/object:Gem::Version
|
77
|
-
version: 3.2
|
68
|
+
version: '3.2'
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: redcarpet
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
73
|
- - ~>
|
84
74
|
- !ruby/object:Gem::Version
|
85
|
-
version: 2.
|
75
|
+
version: '2.3'
|
86
76
|
type: :runtime
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
80
|
- - ~>
|
92
81
|
- !ruby/object:Gem::Version
|
93
|
-
version: 2.
|
82
|
+
version: '2.3'
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: rubyzip
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
87
|
- - ~>
|
100
88
|
- !ruby/object:Gem::Version
|
101
|
-
version: 0.9
|
89
|
+
version: '0.9'
|
102
90
|
type: :runtime
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
94
|
- - ~>
|
108
95
|
- !ruby/object:Gem::Version
|
109
|
-
version: 0.9
|
96
|
+
version: '0.9'
|
110
97
|
- !ruby/object:Gem::Dependency
|
111
98
|
name: minitar
|
112
99
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
100
|
requirements:
|
115
101
|
- - ~>
|
116
102
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.5
|
103
|
+
version: '0.5'
|
118
104
|
type: :runtime
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
107
|
requirements:
|
123
108
|
- - ~>
|
124
109
|
- !ruby/object:Gem::Version
|
125
|
-
version: 0.5
|
110
|
+
version: '0.5'
|
126
111
|
description: This provides the main functionality and plugin api for Cartoonist.
|
127
112
|
email: reasonnumber@gmail.com
|
128
113
|
executables: []
|
@@ -199,27 +184,27 @@ files:
|
|
199
184
|
- public/errors/422.html
|
200
185
|
- public/errors/500.html
|
201
186
|
homepage: http://reasonnumber.com/cartoonist
|
202
|
-
licenses:
|
187
|
+
licenses:
|
188
|
+
- MIT
|
189
|
+
metadata: {}
|
203
190
|
post_install_message:
|
204
191
|
rdoc_options: []
|
205
192
|
require_paths:
|
206
193
|
- lib
|
207
194
|
required_ruby_version: !ruby/object:Gem::Requirement
|
208
|
-
none: false
|
209
195
|
requirements:
|
210
|
-
- -
|
196
|
+
- - '>='
|
211
197
|
- !ruby/object:Gem::Version
|
212
198
|
version: '0'
|
213
199
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
214
|
-
none: false
|
215
200
|
requirements:
|
216
|
-
- -
|
201
|
+
- - '>='
|
217
202
|
- !ruby/object:Gem::Version
|
218
203
|
version: '0'
|
219
204
|
requirements: []
|
220
205
|
rubyforge_project:
|
221
|
-
rubygems_version:
|
206
|
+
rubygems_version: 2.0.3
|
222
207
|
signing_key:
|
223
|
-
specification_version:
|
208
|
+
specification_version: 4
|
224
209
|
summary: Cartoonist Core
|
225
210
|
test_files: []
|