muck-contents 0.2.23 → 0.2.24
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/VERSION +1 -1
- data/lib/action_controller/acts/muck_content_handler.rb +7 -2
- data/muck-contents.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.24
|
@@ -19,11 +19,16 @@ module ActionController
|
|
19
19
|
|
20
20
|
# Renders content, shows 404 or redirects to new content as appropriate
|
21
21
|
def handle_content_request
|
22
|
-
|
23
|
-
|
22
|
+
|
23
|
+
request_type = File.extname(request.url).gsub('.','').downcase
|
24
|
+
# request.format.html? can actually give a false result on ie so try the file extension
|
25
|
+
# Rails html requests won't have a file extension so request_type should be empty
|
26
|
+
if !request.format.html? || !request_type.empty?
|
27
|
+
# If the the request is not html we can bail.
|
24
28
|
render :nothing => true, :status => 404
|
25
29
|
return
|
26
30
|
end
|
31
|
+
|
27
32
|
get_content
|
28
33
|
if @content.blank?
|
29
34
|
redirect_to new_content_path(:path => request.path)
|
data/muck-contents.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{muck-contents}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.24"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Justin Ball", "Joel Duffin"]
|
12
|
-
s.date = %q{2010-05-
|
12
|
+
s.date = %q{2010-05-21}
|
13
13
|
s.email = %q{justin@tatemae.com}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"README.rdoc"
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 24
|
9
|
+
version: 0.2.24
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Justin Ball
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-05-
|
18
|
+
date: 2010-05-21 00:00:00 -06:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|