diff options
Diffstat (limited to 'dev-ruby/best_in_place/files/best_in_place-1.1.0-kramdown.patch')
-rw-r--r-- | dev-ruby/best_in_place/files/best_in_place-1.1.0-kramdown.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-ruby/best_in_place/files/best_in_place-1.1.0-kramdown.patch b/dev-ruby/best_in_place/files/best_in_place-1.1.0-kramdown.patch new file mode 100644 index 00000000000..33ae5e0b9a6 --- /dev/null +++ b/dev-ruby/best_in_place/files/best_in_place-1.1.0-kramdown.patch @@ -0,0 +1,35 @@ +diff --git a/Gemfile b/Gemfile +index 7ae9d6a..5858f12 100644 +--- a/Gemfile ++++ b/Gemfile +@@ -5,4 +5,4 @@ gemspec + + gem 'sqlite3' + gem 'jquery-rails' +-gem 'rdiscount' ++gem 'kramdown' +diff --git a/test_app/Gemfile b/test_app/Gemfile +index 6d53037..32676b2 100644 +--- a/test_app/Gemfile ++++ b/test_app/Gemfile +@@ -7,7 +7,7 @@ gem 'best_in_place', :path => ".." + + gem 'jquery-rails' + +-gem 'rdiscount' ++gem 'kramdown' + + group :assets do + gem 'sass-rails', '~> 3.2.3' +diff --git a/test_app/app/models/user.rb b/test_app/app/models/user.rb +index 604f5ba..7cc9248 100644 +--- a/test_app/app/models/user.rb ++++ b/test_app/app/models/user.rb +@@ -19,6 +19,6 @@ class User < ActiveRecord::Base + end + + def markdown_desc +- RDiscount.new(description).to_html.html_safe ++ Kramdown::Document.new(description).to_html.html_safe + end + end |