forem-textile_formatter 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in forem-textile_formatter.gemspec
4
+ gemspec
@@ -0,0 +1,9 @@
1
+ # Forem - Textile Formatter #
2
+
3
+ Plugin gem enabling [Textile](http://redcloth.org/textile) formatting in [Forem](https://github.com/radar/forem) posts, and wherever else forem_format is used.
4
+
5
+ ## Installation ##
6
+
7
+ add to your Bundler Gemfile:
8
+
9
+ gem 'forem-textile_formatter'
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,25 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "forem-textile_formatter/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "forem-textile_formatter"
7
+ s.version = Forem::TextileFormatter::VERSION
8
+ s.authors = ["Nicholas Rutherford"]
9
+ s.email = ["nick.rutherford@gmail.com"]
10
+ s.homepage = "https://github.com/nruth/Forem-Textile-Formatterg"
11
+ s.summary = %q{Textile formatting for forem posts}
12
+ s.description = %q{Replaces the forem Rails engine's default formatting with Textile}
13
+
14
+ s.rubyforge_project = "forem-textile_formatter"
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.require_paths = ["lib"]
20
+
21
+ # specify any dependencies here; for example:
22
+ s.add_development_dependency "rspec"
23
+ s.add_runtime_dependency "RedCloth"
24
+ s.add_runtime_dependency "forem"
25
+ end
@@ -0,0 +1,9 @@
1
+ require "forem-textile_formatter/version"
2
+
3
+ module Forem
4
+ module FormattingHelper
5
+ def as_formatted_html(text)
6
+ RedCloth.new(text).to_html.html_safe
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ module Forem
2
+ module TextileFormatter
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,113 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: forem-textile_formatter
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Nicholas Rutherford
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-10-12 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: rspec
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
32
+ type: :development
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ name: RedCloth
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ none: false
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ hash: 3
43
+ segments:
44
+ - 0
45
+ version: "0"
46
+ type: :runtime
47
+ version_requirements: *id002
48
+ - !ruby/object:Gem::Dependency
49
+ name: forem
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ hash: 3
57
+ segments:
58
+ - 0
59
+ version: "0"
60
+ type: :runtime
61
+ version_requirements: *id003
62
+ description: Replaces the forem Rails engine's default formatting with Textile
63
+ email:
64
+ - nick.rutherford@gmail.com
65
+ executables: []
66
+
67
+ extensions: []
68
+
69
+ extra_rdoc_files: []
70
+
71
+ files:
72
+ - .gitignore
73
+ - Gemfile
74
+ - README.md
75
+ - Rakefile
76
+ - forem-textile_formatter.gemspec
77
+ - lib/forem-textile_formatter.rb
78
+ - lib/forem-textile_formatter/version.rb
79
+ homepage: https://github.com/nruth/Forem-Textile-Formatterg
80
+ licenses: []
81
+
82
+ post_install_message:
83
+ rdoc_options: []
84
+
85
+ require_paths:
86
+ - lib
87
+ required_ruby_version: !ruby/object:Gem::Requirement
88
+ none: false
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ hash: 3
93
+ segments:
94
+ - 0
95
+ version: "0"
96
+ required_rubygems_version: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ hash: 3
102
+ segments:
103
+ - 0
104
+ version: "0"
105
+ requirements: []
106
+
107
+ rubyforge_project: forem-textile_formatter
108
+ rubygems_version: 1.8.10
109
+ signing_key:
110
+ specification_version: 3
111
+ summary: Textile formatting for forem posts
112
+ test_files: []
113
+