simple_markdown 0.0.4 → 0.1.0
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.
- checksums.yaml +4 -4
- data/lib/simple_markdown/version.rb +1 -1
- data/test/dummy/log/test.log +2670 -0
- data/test/simple_markdown_test.rb +15 -1
- metadata +7 -13
@@ -1,7 +1,8 @@
|
|
1
|
+
# encoding: utf-8
|
1
2
|
require 'test_helper'
|
2
3
|
require 'simple_markdown/action_view/helpers'
|
3
4
|
|
4
|
-
class SimpleMarkdownTest < ActiveSupport::TestCase
|
5
|
+
class SimpleMarkdownTest < ActiveSupport::TestCase # ActionView::TestCase
|
5
6
|
include SimpleMarkdown::ActionView::Helpers
|
6
7
|
|
7
8
|
test "truth" do
|
@@ -42,4 +43,17 @@ class SimpleMarkdownTest < ActiveSupport::TestCase
|
|
42
43
|
assert_equal "<p>\n<strong>Text</strong>\n</p>", simple_markdown("**Text**")
|
43
44
|
end
|
44
45
|
|
46
|
+
test "list" do
|
47
|
+
assert_equal "<p>\n• Text<br>\n</p>", simple_markdown("* Text")
|
48
|
+
end
|
49
|
+
|
50
|
+
test "multiple lists" do
|
51
|
+
assert_equal "<p>\n• Text<br> • Text<br> • Text<br>\n</p>", simple_markdown("* Text\n* Text\n* Text")
|
52
|
+
end
|
53
|
+
|
54
|
+
test "inline code" do
|
55
|
+
skip("Strange result, should be ok but for reason it is not. Needs investigations")
|
56
|
+
assert_equal "<p>\nThis is <code>#{CGI::escapeHTML('<b>code</b>')}</code>\n</p>", simple_markdown("This is `<b>code</b>`")
|
57
|
+
end
|
58
|
+
|
45
59
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_markdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Noémien Kocher
|
@@ -14,36 +14,30 @@ dependencies:
|
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '4.2'
|
20
17
|
- - '>='
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version: 4.2.
|
19
|
+
version: 4.2.0
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '4.2'
|
30
24
|
- - '>='
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version: 4.2.
|
26
|
+
version: 4.2.0
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: sqlite3
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
|
-
- -
|
31
|
+
- - '>='
|
38
32
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
33
|
+
version: 1.3.10
|
40
34
|
type: :development
|
41
35
|
prerelease: false
|
42
36
|
version_requirements: !ruby/object:Gem::Requirement
|
43
37
|
requirements:
|
44
|
-
- -
|
38
|
+
- - '>='
|
45
39
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
40
|
+
version: 1.3.10
|
47
41
|
description: Given a markdown formated text, transforms it to html via a simple method
|
48
42
|
`simple_markdown`
|
49
43
|
email:
|