simple_text 0.0.19 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f1c45774052e0db624ec6541517bcf3670225c7f
4
- data.tar.gz: af29ce833839bb7a27841bb3afec0413832128f1
3
+ metadata.gz: 2f58e8225256e3ba1ff9930d2f2e406b790ee807
4
+ data.tar.gz: e4f125ffcf3e7dd5d7d3d090e3c2bcb7a2750eda
5
5
  SHA512:
6
- metadata.gz: 5493081d6aa1f0377a4adb89449e9b6d193bf9c7beea24881275eb55cacefccef080513a571ea6d3b7a2f8aac9dce107a15949d72227b088ab4c9be2c47788ab
7
- data.tar.gz: 7502926bdfd79a9a68af5beeee5c40de4e59b741f4fc8d3b3fd9b88c0c2d9b19c114076e1237c88249987a196daa1f141836a947aa94ac0a9160760dc5a6000e
6
+ metadata.gz: 9aa1c804670682844aff9bcf4c5b97fdfc159121248dc4593a3ae5740c22410bc03c1ce3b58b38d8d274c126d65e0eb380d0190e29cb1fa8ad3fcd97f91d271c
7
+ data.tar.gz: 55675cc887584f7314716af425a9c2dd9e75de3ef584094963df6f9ce199bd6bb14bab72607fb53fcf1e81d1b97666f71843caf5ebab35688fc7933ff227ec85
data/README.md CHANGED
@@ -32,7 +32,7 @@ link_to 'Disclaimer', disclaimer_path
32
32
 
33
33
  ## Customizing the view
34
34
  If you want different styling for your document, just overwrite the `documents/show` view in your application.
35
- The contents of the document can be rendered by calling `to_s` on the document object.
35
+ The contents of the document can be rendered by calling `to_html` on the document object.
36
36
 
37
37
  ## Overriding the default controller
38
38
  For certain functionality, overriding the `DocumentsController` is required, e.g. to make [Pundit](https://github.com/elabs/pundit) work:
@@ -3,7 +3,7 @@ class Document < ActiveRecord::Base
3
3
  validates_length_of :title, minimum: 4, maximum: 100
4
4
 
5
5
 
6
- def to_s
6
+ def to_html
7
7
  Redcarpet::Markdown.new(Redcarpet::Render::HTML.new, {tables: true, fenced_code_blocks: false, no_styles: true, escape_html: true}).render(contents)
8
8
  end
9
9
  end
@@ -1,3 +1,3 @@
1
1
  module SimpleText
2
- VERSION = "0.0.19"
2
+ VERSION = "0.0.20"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_text
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.19
4
+ version: 0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fletcher91