wikitext 1.1 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -25,4 +25,10 @@ module Wikitext
25
25
  end
26
26
  end
27
27
 
28
- ActionView::Base.register_template_handler :wikitext, Wikitext::TemplateHandler
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
@@ -13,5 +13,5 @@
13
13
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
14
14
 
15
15
  module Wikitext
16
- VERSION = '1.1'
16
+ VERSION = '1.1.1'
17
17
  end # module Wikitext
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: "1.1"
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-04-25 00:00:00 +02:00
12
+ date: 2008-05-28 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies: []
15
15