model_formatting 0.2.3.13 → 0.2.3.14

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/Gemfile CHANGED
@@ -6,7 +6,7 @@ gem 'actionpack', '~> 2.3.15'
6
6
  gem 'activerecord', '~> 2.3.15'
7
7
  gem 'activesupport', '~> 2.3.15'
8
8
  gem 'redcarpet', '~> 2.2'
9
- gem 'tidy_ffi', '~> 0.1.2'
9
+ gem 'tidy_ffi', '~> 0.1'
10
10
 
11
11
  group :development, :test do
12
12
  gem 'context', '0.5.5'
data/Gemfile.lock CHANGED
@@ -9,13 +9,13 @@ GEM
9
9
  activesupport (= 2.3.15)
10
10
  activesupport (2.3.15)
11
11
  context (0.5.5)
12
- ffi (1.0.10)
12
+ ffi (1.2.1)
13
13
  matchy (0.4.0)
14
14
  rack (1.1.2)
15
15
  rake (0.9.2)
16
16
  redcarpet (2.2.2)
17
- tidy_ffi (0.1.3)
18
- ffi (>= 0.3.5)
17
+ tidy_ffi (0.1.5)
18
+ ffi (~> 1.2.0)
19
19
 
20
20
  PLATFORMS
21
21
  ruby
@@ -28,4 +28,4 @@ DEPENDENCIES
28
28
  matchy (~> 0.4.0)
29
29
  rake
30
30
  redcarpet (~> 2.2)
31
- tidy_ffi (~> 0.1.2)
31
+ tidy_ffi (~> 0.1)
data/README CHANGED
@@ -1,3 +1,9 @@
1
- This is a plugin for Rails 2.2.x that performs automatic text-to-html formatting.
1
+ This is a plugin for Rails that performs automatic text-to-html formatting.
2
+
3
+ For rails 2.3, please use the 'rails23' branch (you can specify ~> 0.2 in your gemfile)
4
+
5
+ It uses the 'redcarpet' markdown library with a few other pre-processing steps.
6
+ Note: tests do not run on 1.9.x series due to a bug in the test frameworks we use,
7
+ but the code works fine.
2
8
 
3
9
  It is extracted from and used by [Tender](http://tenderapp.com/) and [Lighthouse](http://lighthouseapp.com/).
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rake/testtask'
3
3
 
4
4
  spec = Gem::Specification.new do |s|
5
5
  s.name = "model_formatting"
6
- s.version = "0.2.3.13"
6
+ s.version = "0.2.3.14"
7
7
  s.author = "ENTP"
8
8
  s.email = "company@entp.com"
9
9
  s.homepage = "http://github.com/entp"
@@ -208,10 +208,10 @@ module ModelFormatting
208
208
  require 'tidy_ffi'
209
209
  def self.process_tidy(text)
210
210
  tidy = TidyFFI::Tidy.new(text)
211
- tidy.options.input_encoding = 'utf8'
212
- tidy.options.show_body_only = true
211
+ tidy.options.input_encoding = 'utf8'
212
+ tidy.options.show_body_only = "yes"
213
213
  tidy.options.new_inline_tags = "video source"
214
- tidy.options.force_output = true
214
+ tidy.options.force_output = true
215
215
  tidy.clean.strip
216
216
  end
217
217
  rescue LoadError
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: model_formatting
3
3
  version: !ruby/object:Gem::Version
4
- hash: 73
4
+ hash: 79
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
9
  - 3
10
- - 13
11
- version: 0.2.3.13
10
+ - 14
11
+ version: 0.2.3.14
12
12
  platform: ruby
13
13
  authors:
14
14
  - ENTP
@@ -16,7 +16,8 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2013-01-23 00:00:00 Z
19
+ date: 2013-01-22 00:00:00 -08:00
20
+ default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
22
23
  name: redcarpet
@@ -152,6 +153,7 @@ files:
152
153
  - test/formatting_test.rb
153
154
  - test/model_formatting_test.rb
154
155
  - test/test_helper.rb
156
+ has_rdoc: true
155
157
  homepage: http://github.com/entp
156
158
  licenses: []
157
159
 
@@ -181,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
183
  requirements: []
182
184
 
183
185
  rubyforge_project:
184
- rubygems_version: 1.8.24
186
+ rubygems_version: 1.6.2
185
187
  signing_key:
186
188
  specification_version: 3
187
189
  summary: Automatically format model attributes using redcarpet (markdown) and Tender/Lighthouse extensions.