makeup 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +2 -2
- data/lib/makeup.rb +1 -1
- data/lib/makeup/code_block_parser.rb +1 -1
- data/test/makeup/markup_test.rb +28 -0
- metadata +97 -110
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
makeup (0.
|
4
|
+
makeup (0.3.0)
|
5
5
|
github-markup (~> 0.7)
|
6
6
|
htmlentities (~> 4.3)
|
7
7
|
pygments.rb (~> 0.2)
|
@@ -13,7 +13,7 @@ GEM
|
|
13
13
|
htmlentities (4.3.1)
|
14
14
|
minitest (2.12.1)
|
15
15
|
posix-spawn (0.3.6)
|
16
|
-
pygments.rb (0.3.
|
16
|
+
pygments.rb (0.3.2)
|
17
17
|
posix-spawn (~> 0.3.6)
|
18
18
|
yajl-ruby (~> 1.1.0)
|
19
19
|
rake (0.9.2.2)
|
data/lib/makeup.rb
CHANGED
data/test/makeup/markup_test.rb
CHANGED
@@ -63,6 +63,34 @@ describe Makeup::Markup do
|
|
63
63
|
assert_equal 2, html.scan(/common-lisp/).length
|
64
64
|
end
|
65
65
|
end
|
66
|
+
|
67
|
+
describe "#render" do
|
68
|
+
it "should detect end of code blocks properly" do
|
69
|
+
html = @renderer.render("file.md", <<-MD)
|
70
|
+
# This stuff
|
71
|
+
|
72
|
+
```ruby
|
73
|
+
class Hello
|
74
|
+
def say
|
75
|
+
puts "hallo"
|
76
|
+
end
|
77
|
+
end
|
78
|
+
```hidden-charaters
|
79
|
+
|
80
|
+
# And this stuff
|
81
|
+
|
82
|
+
```ruby
|
83
|
+
class Bonjour
|
84
|
+
def say
|
85
|
+
puts "bonjour"
|
86
|
+
end
|
87
|
+
end
|
88
|
+
```
|
89
|
+
MD
|
90
|
+
|
91
|
+
assert_equal 2, html.scan(/rb/).length
|
92
|
+
end
|
93
|
+
end
|
66
94
|
|
67
95
|
describe "#highlight_code_blocks" do
|
68
96
|
it "does not touch non-markdown files" do
|
metadata
CHANGED
@@ -1,128 +1,126 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: makeup
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.0
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
- 0
|
10
|
-
version: 0.2.0
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Christian Johansen
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-11-08 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: pygments.rb
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
25
17
|
none: false
|
26
|
-
requirements:
|
18
|
+
requirements:
|
27
19
|
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
- 2
|
33
|
-
version: "0.2"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0.2'
|
34
22
|
type: :runtime
|
35
|
-
version_requirements: *id001
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: github-markup
|
38
23
|
prerelease: false
|
39
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
25
|
none: false
|
41
|
-
requirements:
|
26
|
+
requirements:
|
42
27
|
- - ~>
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.2'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: github-markup
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0.7'
|
49
38
|
type: :runtime
|
50
|
-
version_requirements: *id002
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
|
-
name: htmlentities
|
53
39
|
prerelease: false
|
54
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
55
41
|
none: false
|
56
|
-
requirements:
|
42
|
+
requirements:
|
57
43
|
- - ~>
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0.7'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: htmlentities
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '4.3'
|
64
54
|
type: :runtime
|
65
|
-
version_requirements: *id003
|
66
|
-
- !ruby/object:Gem::Dependency
|
67
|
-
name: minitest
|
68
55
|
prerelease: false
|
69
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '4.3'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: minitest
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
70
65
|
none: false
|
71
|
-
requirements:
|
66
|
+
requirements:
|
72
67
|
- - ~>
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
|
75
|
-
segments:
|
76
|
-
- 2
|
77
|
-
- 0
|
78
|
-
version: "2.0"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '2.0'
|
79
70
|
type: :development
|
80
|
-
version_requirements: *id004
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
|
-
name: rake
|
83
71
|
prerelease: false
|
84
|
-
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '2.0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: rake
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
85
81
|
none: false
|
86
|
-
requirements:
|
82
|
+
requirements:
|
87
83
|
- - ~>
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
|
90
|
-
segments:
|
91
|
-
- 0
|
92
|
-
- 9
|
93
|
-
version: "0.9"
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0.9'
|
94
86
|
type: :development
|
95
|
-
version_requirements: *id005
|
96
|
-
- !ruby/object:Gem::Dependency
|
97
|
-
name: redcarpet
|
98
87
|
prerelease: false
|
99
|
-
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0.9'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: redcarpet
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
100
97
|
none: false
|
101
|
-
requirements:
|
102
|
-
- -
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
hash: 7
|
105
|
-
segments:
|
106
|
-
- 2
|
107
|
-
- 2
|
108
|
-
- 0
|
98
|
+
requirements:
|
99
|
+
- - '='
|
100
|
+
- !ruby/object:Gem::Version
|
109
101
|
version: 2.2.0
|
110
102
|
type: :development
|
111
|
-
|
112
|
-
|
113
|
-
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - '='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 2.2.0
|
110
|
+
description: ! 'Makeup provides markup rendering and code highlighting. It renders
|
111
|
+
all kinds of
|
112
|
+
|
114
113
|
markup formats using GitHub::Markup, and implements "fenced code blocks" for
|
114
|
+
|
115
115
|
markdown files.
|
116
116
|
|
117
|
-
|
117
|
+
'
|
118
|
+
email:
|
118
119
|
- christian@gitorious.org
|
119
120
|
executables: []
|
120
|
-
|
121
121
|
extensions: []
|
122
|
-
|
123
122
|
extra_rdoc_files: []
|
124
|
-
|
125
|
-
files:
|
123
|
+
files:
|
126
124
|
- Gemfile
|
127
125
|
- Gemfile.lock
|
128
126
|
- Rakefile
|
@@ -135,39 +133,28 @@ files:
|
|
135
133
|
- test/makeup/markup_test.rb
|
136
134
|
- test/makeup/syntax_highlighter_test.rb
|
137
135
|
- test/test_helper.rb
|
138
|
-
has_rdoc: true
|
139
136
|
homepage: http://gitorious.org/gitorious/makeup
|
140
137
|
licenses: []
|
141
|
-
|
142
138
|
post_install_message:
|
143
139
|
rdoc_options: []
|
144
|
-
|
145
|
-
require_paths:
|
140
|
+
require_paths:
|
146
141
|
- lib
|
147
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
142
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
148
143
|
none: false
|
149
|
-
requirements:
|
150
|
-
- -
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
|
153
|
-
|
154
|
-
- 0
|
155
|
-
version: "0"
|
156
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - ! '>='
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: '0'
|
148
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
157
149
|
none: false
|
158
|
-
requirements:
|
159
|
-
- -
|
160
|
-
- !ruby/object:Gem::Version
|
161
|
-
|
162
|
-
segments:
|
163
|
-
- 0
|
164
|
-
version: "0"
|
150
|
+
requirements:
|
151
|
+
- - ! '>='
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0'
|
165
154
|
requirements: []
|
166
|
-
|
167
155
|
rubyforge_project: makeup
|
168
|
-
rubygems_version: 1.
|
156
|
+
rubygems_version: 1.8.23
|
169
157
|
signing_key:
|
170
158
|
specification_version: 3
|
171
159
|
summary: Pretty markup
|
172
160
|
test_files: []
|
173
|
-
|