radiant-markdown_filter-extension 1.0.1 → 1.0.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.
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-markdown_filter-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 2
|
10
|
+
version: 1.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Radiant CMS Dev Team
|
@@ -15,7 +15,8 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-10-22 00:00:00 -05:00
|
19
|
+
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: bluecloth
|
@@ -50,15 +51,13 @@ files:
|
|
50
51
|
- lib/tasks/markdown_filter_extension_tasks.rake
|
51
52
|
- markdown.html
|
52
53
|
- markdown_filter_extension.rb
|
53
|
-
- radiant-markdown_filter-extension-1.0.0.gem
|
54
54
|
- radiant-markdown_filter-extension.gemspec
|
55
55
|
- Rakefile
|
56
56
|
- README
|
57
57
|
- spec/models/markdown_filter_spec.rb
|
58
58
|
- spec/spec.opts
|
59
59
|
- spec/spec_helper.rb
|
60
|
-
|
61
|
-
- test/unit/markdown_filter_test.rb
|
60
|
+
has_rdoc: true
|
62
61
|
homepage: http://radiantcms.org/
|
63
62
|
licenses: []
|
64
63
|
|
@@ -88,13 +87,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
87
|
requirements: []
|
89
88
|
|
90
89
|
rubyforge_project:
|
91
|
-
rubygems_version: 1.
|
90
|
+
rubygems_version: 1.3.9.3
|
92
91
|
signing_key:
|
93
92
|
specification_version: 3
|
94
93
|
summary: Markdown Filter for Radiant CMS
|
95
94
|
test_files:
|
96
|
-
- test/test_helper.rb
|
97
|
-
- test/unit/markdown_filter_test.rb
|
98
95
|
- spec/models/markdown_filter_spec.rb
|
99
96
|
- spec/spec.opts
|
100
97
|
- spec/spec_helper.rb
|
Binary file
|
data/test/test_helper.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
require 'test/unit'
|
2
|
-
# Load the environment
|
3
|
-
unless defined? RADIANT_ROOT
|
4
|
-
ENV["RAILS_ENV"] = "test"
|
5
|
-
case
|
6
|
-
when ENV["RADIANT_ENV_FILE"]
|
7
|
-
require ENV["RADIANT_ENV_FILE"]
|
8
|
-
when File.dirname(__FILE__) =~ %r{vendor/radiant/vendor/extensions}
|
9
|
-
require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../../../")}/config/environment"
|
10
|
-
else
|
11
|
-
require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/environment"
|
12
|
-
end
|
13
|
-
end
|
14
|
-
require "#{RADIANT_ROOT}/test/test_helper"
|
15
|
-
|
16
|
-
class Test::Unit::TestCase
|
17
|
-
self.use_transactional_fixtures = true
|
18
|
-
self.use_instantiated_fixtures = false
|
19
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/../test_helper'
|
2
|
-
|
3
|
-
class MarkdownFilterTest < Test::Unit::TestCase
|
4
|
-
|
5
|
-
def test_filter_name
|
6
|
-
assert_equal 'Markdown', MarkdownFilter.filter_name
|
7
|
-
end
|
8
|
-
|
9
|
-
def test_filter
|
10
|
-
assert_equal '<p><strong>strong</strong></p>', MarkdownFilter.filter('**strong**')
|
11
|
-
end
|
12
|
-
|
13
|
-
def test_filter_with_quotes
|
14
|
-
assert_equal "<h1>Radiant’s “filters” rock!</h1>",
|
15
|
-
MarkdownFilter.filter("# Radiant's \"filters\" rock!")
|
16
|
-
end
|
17
|
-
|
18
|
-
end
|