prarupa 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -63,7 +63,7 @@ With options:
63
63
  To be `:safe`
64
64
  ============
65
65
 
66
- Being Rails text helpers, all three methods accept the `:safe` option that tells the helpers that the input text need not be sanitized.
66
+ Being Rails text helpers, all three methods accept the `:safe` option that tells the helpers that the input text need not be escaped.
67
67
 
68
68
  Credits
69
69
  =======
@@ -26,7 +26,7 @@ module Prarupa
26
26
  #
27
27
  def textilize(text, *options)
28
28
  options ||= [:hard_breaks]
29
- text = sanitize(text) unless text.html_safe? || options.delete(:safe)
29
+ text = h(text) unless text.html_safe? || options.delete(:safe)
30
30
 
31
31
  if text.blank?
32
32
  ""
@@ -79,7 +79,7 @@ module Prarupa
79
79
  # markdown('![The ROR logo](http://rubyonrails.com/images/rails.png "Ruby on Rails")')
80
80
  # # => '<p><img src="http://rubyonrails.com/images/rails.png" alt="The ROR logo" title="Ruby on Rails" /></p>'
81
81
  def markdown(text, *options)
82
- text = sanitize(text) unless text.html_safe? || options.delete(:safe)
82
+ text = h(text) unless text.html_safe? || options.delete(:safe)
83
83
 
84
84
  if text.blank?
85
85
  ""
@@ -1,3 +1,3 @@
1
1
  module Prarupa
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Rohit Arondekar
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-11 00:00:00 +05:30
17
+ date: 2010-06-12 00:00:00 +05:30
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency