karmi-markout 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml
CHANGED
@@ -56,7 +56,7 @@ body {
|
|
56
56
|
h1, h2, h3, h4, h5, h6 {
|
57
57
|
color: #222;
|
58
58
|
}
|
59
|
-
h1, h2 {
|
59
|
+
h1, h2, h3, h4 {
|
60
60
|
color: #172533;
|
61
61
|
font-weight: normal;
|
62
62
|
}
|
@@ -78,8 +78,7 @@ h2 {
|
|
78
78
|
|
79
79
|
h3 {
|
80
80
|
color: #172533;
|
81
|
-
font-size: 1.
|
82
|
-
font-weight:bold;
|
81
|
+
font-size: 1.3em;
|
83
82
|
letter-spacing:-1px;
|
84
83
|
padding: 1em 0 0 0;
|
85
84
|
margin: 1.8em 0 0.25em 0;
|
@@ -90,6 +89,14 @@ h3 a {
|
|
90
89
|
text-decoration:underline;
|
91
90
|
}
|
92
91
|
|
92
|
+
h4 {
|
93
|
+
font-size: 1.15em;
|
94
|
+
letter-spacing:-1px;
|
95
|
+
padding: 0.5em 0 0 0;
|
96
|
+
margin: 1em 0 0.25em 0;
|
97
|
+
border-top: 1px solid #e0e6ee;
|
98
|
+
}
|
99
|
+
|
93
100
|
p {
|
94
101
|
margin: 0 0 0.8em 0;
|
95
102
|
}
|
@@ -156,10 +163,12 @@ ul li { margin-left: 0em; }
|
|
156
163
|
}
|
157
164
|
|
158
165
|
#history .revision h4 {
|
166
|
+
font-size: 95%;
|
159
167
|
margin: 0;
|
160
168
|
padding: 0 0 0 0.7em;
|
161
169
|
}
|
162
170
|
#history .revision.expanded h4 {
|
171
|
+
font-size: 100%;
|
163
172
|
}
|
164
173
|
|
165
174
|
#history .revision .detail {
|
data/test/markout_output_test.rb
CHANGED
@@ -1,9 +1,14 @@
|
|
1
1
|
require File.join(File.dirname(__FILE__), 'test_helper')
|
2
2
|
require 'markout/output'
|
3
|
+
require 'tempfile'
|
3
4
|
|
4
5
|
module Markout
|
5
6
|
class OutputTest < Test::Unit::TestCase
|
6
7
|
|
8
|
+
def setup
|
9
|
+
default_output
|
10
|
+
end
|
11
|
+
|
7
12
|
def test_default_initialization
|
8
13
|
assert_nothing_raised { default_output }
|
9
14
|
assert_not_nil @output.document
|
@@ -13,13 +18,15 @@ module Markout
|
|
13
18
|
end
|
14
19
|
|
15
20
|
def test_export
|
16
|
-
|
17
|
-
|
21
|
+
tmpfile = Tempfile.new('markout_test.html')
|
22
|
+
tmpfile.puts @output.export
|
23
|
+
tmpfile.close
|
24
|
+
# Hats down to @kubicek for the "let's diff huge chunks of text in tests!" idea!!!
|
25
|
+
diff = `diff -u #{File.expand_path(File.dirname(__FILE__))}/fixtures/markdown.html #{tmpfile.path}`
|
26
|
+
assert diff.chomp == '', "Fixture HTML does not match Markout output, see diff below:\n" + diff
|
18
27
|
end
|
19
28
|
|
20
|
-
|
21
|
-
# TODO
|
22
|
-
end
|
29
|
+
private
|
23
30
|
|
24
31
|
def default_output
|
25
32
|
@output = Output.new( fixture_file('markdown.txt'), :history => false )
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: karmi-markout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karel Minarik
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-07-03 00:00:00 -07:00
|
13
13
|
default_executable: markout
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -71,7 +71,7 @@ files:
|
|
71
71
|
- lib/markout/output.rb
|
72
72
|
- lib/markout/revision.rb
|
73
73
|
- LICENSE
|
74
|
-
has_rdoc:
|
74
|
+
has_rdoc: false
|
75
75
|
homepage: http://github.com/karmi/markout
|
76
76
|
post_install_message:
|
77
77
|
rdoc_options:
|
@@ -95,7 +95,7 @@ requirements: []
|
|
95
95
|
rubyforge_project:
|
96
96
|
rubygems_version: 1.2.0
|
97
97
|
signing_key:
|
98
|
-
specification_version:
|
98
|
+
specification_version: 3
|
99
99
|
summary: Sexy Markdown output
|
100
100
|
test_files:
|
101
101
|
- test/markout_document_test.rb
|