1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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]
This commit is contained in:
Robin Dupret 2014-05-13 23:30:33 +02:00
parent 567aa5440e
commit ad3628b311
3 changed files with 4 additions and 4 deletions

View file

@ -25,7 +25,7 @@ gem 'uglifier', '>= 1.3.0', require: false
group :doc do
gem 'sdoc', '~> 0.4.0'
gem 'redcarpet', '~> 3.1.0', platforms: :ruby
gem 'redcarpet', '~> 3.1.2', platforms: :ruby
gem 'w3c_validators'
gem 'kindlerb'
end

View file

@ -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(<<ERROR) if bundler?
Please add
gem 'redcarpet', '~> 3.1.0'
gem 'redcarpet', '~> 3.1.2'
to the Gemfile, run

View file

@ -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