texthelpers 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Texthelpers
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -1,5 +1,9 @@
1
1
  module Texthelpers
2
2
  module ViewHelpers
3
+ def markdown(text)
4
+ raw BlueCloth.new(raw text).to_html
5
+ end
6
+
3
7
  def title_for(page, options = {})
4
8
  options[:field] ||= "title"
5
9
  begin
@@ -4,7 +4,7 @@ require File.expand_path('../lib/texthelpers/version', __FILE__)
4
4
  Gem::Specification.new do |gem|
5
5
  gem.authors = ["Christian Meichtry"]
6
6
  gem.email = ["chris@atelier-agile.ch"]
7
- gem.description = %q{Helpers for I18n'zed Rails sites}
7
+ gem.description = %q{Helpers for I18n'zed Rails apps}
8
8
  gem.summary = %q{Simple helper methods to display text and titles with **_locale** database field names.}
9
9
  gem.homepage = ""
10
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: texthelpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-06 00:00:00.000000000 Z
12
+ date: 2012-12-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bluecloth
@@ -27,7 +27,7 @@ dependencies:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: 2.0.0
30
- description: Helpers for I18n'zed Rails sites
30
+ description: Helpers for I18n'zed Rails apps
31
31
  email:
32
32
  - chris@atelier-agile.ch
33
33
  executables: []