From ad3628b3116553cc02c354fb5c552ec103de52dd Mon Sep 17 00:00:00 2001 From: Robin Dupret Date: Tue, 13 May 2014 23:30:33 +0200 Subject: Update Redcarpet to 3.1.2 This version fixes an API breakage between 3.0 and 3.1 ; the header method's arity should not have changed. [ci skip] --- guides/rails_guides.rb | 4 ++-- guides/rails_guides/markdown/renderer.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'guides') diff --git a/guides/rails_guides.rb b/guides/rails_guides.rb index 1bdeef2947..9d1d5567f6 100644 --- a/guides/rails_guides.rb +++ b/guides/rails_guides.rb @@ -24,11 +24,11 @@ begin require 'redcarpet' rescue LoadError # This can happen if doc:guides is executed in an application. - $stderr.puts('Generating guides requires Redcarpet 3.1.0+.') + $stderr.puts('Generating guides requires Redcarpet 3.1.2+.') $stderr.puts(< 3.1.0' + gem 'redcarpet', '~> 3.1.2' to the Gemfile, run diff --git a/guides/rails_guides/markdown/renderer.rb b/guides/rails_guides/markdown/renderer.rb index 3791ed6fd5..2eb7ca17a3 100644 --- a/guides/rails_guides/markdown/renderer.rb +++ b/guides/rails_guides/markdown/renderer.rb @@ -15,7 +15,7 @@ module RailsGuides HTML end - def header(text, header_level, anchor) + def header(text, header_level) # Always increase the heading level by, so we can use h1, h2 heading in the document header_level += 1 -- cgit v1.2.3