textilize 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -23,17 +23,28 @@ it.
23
23
  Usage
24
24
  -----
25
25
 
26
- # textilize("I _love_ ROR(Ruby on Rails)!")
27
- # # => "<p>I <em>love</em> <acronym title="Ruby on Rails">ROR</acronym>!</p>"
26
+ ### The `textilize` & `textilize_without_paragraph` helper methods
28
27
 
29
- # textilize_without_paragraph("I _love_ ROR(Ruby on Rails)!")
30
- # # => "I <em>love</em> <acronym title="Ruby on Rails">ROR</acronym>!"
28
+ textilize("I _love_ ROR(Ruby on Rails)!")
29
+ # => "<p>I <em>love</em> <acronym title="Ruby on Rails">ROR</acronym>!</p>"
30
+
31
+ textilize_without_paragraph("I _love_ ROR(Ruby on Rails)!")
32
+ # => "I <em>love</em> <acronym title="Ruby on Rails">ROR</acronym>!"
31
33
 
32
34
 
33
35
  Test
34
36
  ------------
35
37
 
36
- We will add some tests back later.
38
+ rake test
39
+
40
+
41
+ Credits
42
+ ------------
43
+
44
+ whytheluckystiff: RedCloth library
45
+
46
+ David Heinemeier Hansson: the text helper.
47
+
37
48
 
38
49
  Copyright & Licensing
39
50
  ---------------------
@@ -1,4 +1,5 @@
1
1
  #mainly extract from Rails2.
2
+ #related link: https://github.com/rails/rails/blob/2-1-stable/actionpack/lib/action_view/helpers/text_helper.rb
2
3
  module Textilize
3
4
  module Helper
4
5
  require 'redcloth'
@@ -1,4 +1,4 @@
1
1
  module Textilize
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: textilize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-07-05 00:00:00.000000000 Z
13
+ date: 2012-07-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake