wikitext 1.1 → 1.1.1
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/lib/wikitext/rails.rb +7 -1
- data/lib/wikitext/version.rb +1 -1
- metadata +2 -2
data/lib/wikitext/rails.rb
CHANGED
|
@@ -25,4 +25,10 @@ module Wikitext
|
|
|
25
25
|
end
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
-
ActionView::
|
|
28
|
+
if ActionView::Template.respond_to? :register_template_handler # Rails 2.1.0_RC1 and above
|
|
29
|
+
ActionView::Template.register_template_handler :wikitext, Wikitext::TemplateHandler
|
|
30
|
+
elsif ActionView::Base.respond_to? :register_template_handler # Rails 2.0.2
|
|
31
|
+
ActionView::Base.register_template_handler :wikitext, Wikitext::TemplateHandler
|
|
32
|
+
else
|
|
33
|
+
raise "Incompatible Rails API version (can't find register_template_handler method)"
|
|
34
|
+
end
|
data/lib/wikitext/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wikitext
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Wincent Colaiuta
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2008-
|
|
12
|
+
date: 2008-05-28 00:00:00 +02:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|