horo 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,6 +11,7 @@ lib/app/views/layouts/application.html.erb
11
11
  lib/app/views/methods/index.html.erb
12
12
  lib/app/views/root/index.html.erb
13
13
  lib/horo.rb
14
+ lib/public/index-style.css
14
15
  lib/public/rdoc-style.css
15
16
  lib/rdoc/discover.rb
16
17
  lib/rdoc/generator/horo.rb
@@ -6,37 +6,7 @@
6
6
  <head>
7
7
  <meta http-equiv="Content-Type" content="text/html; charset=<%= charset %>" />
8
8
  <title>Index</title>
9
- <style type="text/css">
10
- <!--
11
- body {
12
- background-color: #EEE;
13
- font-family: "Bitstream Vera Sans", Verdana, Arial, Helvetica, sans-serif;
14
- color: #000;
15
- margin: 0px;
16
- }
17
- .banner {
18
- background: #005;
19
- color: #FFF;
20
- padding: 0.2em;
21
- font-size: small;
22
- font-weight: bold;
23
- text-align: center;
24
- }
25
- .entries {
26
- margin: 0.25em 1em 0 1em;
27
- font-size: x-small;
28
- }
29
- a {
30
- color: #00F;
31
- text-decoration: none;
32
- white-space: nowrap;
33
- }
34
- a:hover {
35
- color: #77F;
36
- text-decoration: underline;
37
- }
38
- -->
39
- </style>
9
+ <link rel="stylesheet" href="index-style.css" type="text/css" media="screen" />
40
10
  <base target="docwin" />
41
11
  </head>
42
12
  <body>
@@ -1,4 +1,8 @@
1
- <table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
1
+ <table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'>
2
+ <% if ENV['HORO_PROJECT_NAME'] %>
3
+ <tr><td><%= ERB::Util.html_escape(ENV['HORO_PROJECT_NAME']) %> <%= ERB::Util.html_escape(ENV['HORO_PROJECT_VERSION']) %></td></tr>
4
+ <% end %>
5
+ <tr>
2
6
  <td class="file-title"><span class="file-title-prefix"><%= klass.module? ? 'Module' : 'Class' %></span><br /><%= klass.full_name %></td>
3
7
  <td align="right">
4
8
  <table cellspacing="0" cellpadding="2">
@@ -6,37 +6,7 @@
6
6
  <head>
7
7
  <meta http-equiv="Content-Type" content="text/html; charset=<%= charset %>" />
8
8
  <title>Index</title>
9
- <style type="text/css">
10
- <!--
11
- body {
12
- background-color: #EEE;
13
- font-family: "Bitstream Vera Sans", Verdana, Arial, Helvetica, sans-serif;
14
- color: #000;
15
- margin: 0px;
16
- }
17
- .banner {
18
- background: #005;
19
- color: #FFF;
20
- padding: 0.2em;
21
- font-size: small;
22
- font-weight: bold;
23
- text-align: center;
24
- }
25
- .entries {
26
- margin: 0.25em 1em 0 1em;
27
- font-size: x-small;
28
- }
29
- a {
30
- color: #00F;
31
- text-decoration: none;
32
- white-space: nowrap;
33
- }
34
- a:hover {
35
- color: #77F;
36
- text-decoration: underline;
37
- }
38
- -->
39
- </style>
9
+ <link rel="stylesheet" href="index-style.css" type="text/css" media="screen" />
40
10
  <base target="docwin" />
41
11
  </head>
42
12
  <body>
@@ -1,4 +1,7 @@
1
1
  <table border='0' cellpadding='0' cellspacing='0' width="100%" class='banner'>
2
+ <% if ENV['HORO_PROJECT_NAME'] %>
3
+ <tr><td><%= ERB::Util.html_escape(ENV['HORO_PROJECT_NAME']) %> <%= ERB::Util.html_escape(ENV['HORO_PROJECT_VERSION']) %></td></tr>
4
+ <% end %>
2
5
  <tr><td>
3
6
  <table width="100%" border='0' cellpadding='0' cellspacing='0'><tr>
4
7
  <td class="file-title" colspan="2"><span class="file-title-prefix">File</span><br /><%= file.base_name %></td>
@@ -6,37 +6,7 @@
6
6
  <head>
7
7
  <meta http-equiv="Content-Type" content="text/html; charset=<%= charset %>" />
8
8
  <title>Index</title>
9
- <style type="text/css">
10
- <!--
11
- body {
12
- background-color: #EEE;
13
- font-family: "Bitstream Vera Sans", Verdana, Arial, Helvetica, sans-serif;
14
- color: #000;
15
- margin: 0px;
16
- }
17
- .banner {
18
- background: #005;
19
- color: #FFF;
20
- padding: 0.2em;
21
- font-size: small;
22
- font-weight: bold;
23
- text-align: center;
24
- }
25
- .entries {
26
- margin: 0.25em 1em 0 1em;
27
- font-size: x-small;
28
- }
29
- a {
30
- color: #00F;
31
- text-decoration: none;
32
- white-space: nowrap;
33
- }
34
- a:hover {
35
- color: #77F;
36
- text-decoration: underline;
37
- }
38
- -->
39
- </style>
9
+ <link rel="stylesheet" href="index-style.css" type="text/css" media="screen" />
40
10
  <base target="docwin" />
41
11
  </head>
42
12
  <body>
@@ -8,8 +8,7 @@
8
8
  </head>
9
9
 
10
10
  <frameset cols="20%,*">
11
- <frameset rows="15%,55%,30%">
12
- <frame src="fr_file_index.html" title="Files" name="Files" />
11
+ <frameset rows="50%,50%">
13
12
  <frame src="fr_class_index.html" name="Classes" />
14
13
  <frame src="fr_method_index.html" name="Methods" />
15
14
  </frameset>
@@ -1,3 +1,3 @@
1
1
  module Horo
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
@@ -0,0 +1,26 @@
1
+ body {
2
+ background-color: #FFF;
3
+ font-family: Helvetica, Arial, sans-serif;
4
+ color: #333;
5
+ margin: 0px;
6
+ }
7
+
8
+ .banner {
9
+ background: #C52F24;
10
+ color: #FFF;
11
+ padding: 0.2em;
12
+ font-size: small;
13
+ font-weight: bold;
14
+ text-align: center;
15
+ }
16
+
17
+ .entries {
18
+ margin: 0.25em 1em 0 1em;
19
+ font-size: x-small;
20
+ }
21
+
22
+ a:link, a:active, a:visited, a:hover {
23
+ color: #333;
24
+ text-decoration: none;
25
+ white-space: nowrap;
26
+ }
@@ -1,19 +1,14 @@
1
- a {
2
- color: #00F;
1
+ a:link, a:active, a:visited, a:hover {
2
+ color: #980905;
3
3
  text-decoration: none;
4
4
  }
5
5
 
6
- a:hover {
7
- color: #77F;
8
- text-decoration: underline;
9
- }
10
-
11
6
  body, td, p {
12
- font-family: "Bitstream Vera Sans", Verdana, Arial, Helvetica, sans-serif;
7
+ font-family: Helvetica, Arial, sans-serif;
8
+ font-size: 87.5%;
9
+ line-height: 1.5em;
13
10
  background: #FFF;
14
- color: #000;
15
- margin: 0px;
16
- font-size: small;
11
+ color: #333;
17
12
  }
18
13
 
19
14
  p {
@@ -32,12 +27,9 @@ p {
32
27
  }
33
28
 
34
29
  .sectiontitle {
35
- margin-top: 1em;
36
- margin-bottom: 1em;
37
- padding: 0.5em;
38
- padding-left: 2em;
39
- background: #005;
40
- color: #FFF;
30
+ padding: 0.5em 1em 0.5em 1em;
31
+ margin-left: -1.5em;
32
+ font-size: large;
41
33
  font-weight: bold;
42
34
  }
43
35
 
@@ -66,14 +58,14 @@ p {
66
58
  .file-title {
67
59
  font-size: large;
68
60
  font-weight: bold;
69
- background: #005;
61
+ background: #C52F24;
70
62
  color: #FFF;
71
63
  }
72
64
 
73
65
  .banner {
74
- background: #005;
66
+ background: #C52F24;
75
67
  color: #FFF;
76
- border: 1px solid black;
68
+ border: 1px solid #980905;
77
69
  padding: 1em;
78
70
  }
79
71
 
@@ -83,16 +75,16 @@ p {
83
75
  }
84
76
 
85
77
  h1 a, h2 a, .sectiontitle a, .banner a {
86
- color: #FF0;
78
+ color: #fff;
87
79
  }
88
80
 
89
81
  h1 a:hover, h2 a:hover, .sectiontitle a:hover, .banner a:hover {
90
- color: #FF7;
82
+ color: #fff;
91
83
  }
92
84
 
93
85
  .dyn-source {
94
86
  display: none;
95
- background: #fffde8;
87
+ background: #EEE;
96
88
  color: #000;
97
89
  border: #ffe0bb dotted 1px;
98
90
  margin: 0.5em 2em 0.5em 2em;
@@ -117,8 +109,7 @@ h1 a:hover, h2 a:hover, .sectiontitle a:hover, .banner a:hover {
117
109
 
118
110
  .description pre {
119
111
  padding: 0.5em;
120
- border: #ffe0bb dotted 1px;
121
- background: #fffde8;
112
+ background: #EEE;
122
113
  }
123
114
 
124
115
  .method .title {
@@ -150,32 +141,51 @@ h1 a:hover, h2 a:hover, .sectiontitle a:hover, .banner a:hover {
150
141
  }
151
142
 
152
143
  h1 {
153
- padding: 1em;
154
- margin-left: -1.5em;
155
- font-size: x-large;
144
+ font-size: 2.5em;
145
+ line-height: 1em;
146
+ margin: 0.6em 0 .2em;
156
147
  font-weight: bold;
157
- color: #FFF;
158
- background: #007;
159
148
  }
160
149
 
161
150
  h2 {
162
- padding: 0.5em 1em 0.5em 1em;
163
- margin-left: -1.5em;
164
- font-size: large;
151
+ font-size: 2.1428em;
152
+ line-height: 1em;
153
+ margin: 0.7em 0 .2333em;
154
+ font-weight: bold;
155
+ }
156
+
157
+ h3 {
158
+ font-size: 1.7142em;
159
+ line-height: 1.286em;
160
+ margin: 0.875em 0 0.2916em;
161
+ font-weight: bold;
162
+ }
163
+
164
+ h4 {
165
+ font-size: 1.2857em;
166
+ line-height: 1.2em;
167
+ margin: 1.6667em 0 .3887em;
168
+ font-weight: bold;
169
+ }
170
+
171
+ h5 {
172
+ font-size: 1em;
173
+ line-height: 1.5em;
174
+ margin: 1em 0 .5em;
165
175
  font-weight: bold;
166
- color: #FFF;
167
- background: #009;
168
176
  }
169
177
 
170
- h3, h4, h5, h6 {
171
- color: #220088;
172
- border-bottom: #5522bb solid 1px;
178
+ h6 {
179
+ font-size: 1em;
180
+ line-height: 1.5em;
181
+ margin: 1em 0 .5em;
182
+ font-weight: normal;
173
183
  }
174
184
 
175
185
  .sourcecode > pre {
176
186
  padding: 0.5em;
177
187
  border: 1px dotted black;
178
- background: #FFE;
188
+ background: #EEE;
179
189
  }
180
190
 
181
191
  dt {
@@ -39,12 +39,6 @@ class TestHoro < Test::Unit::TestCase
39
39
  assert_equal "files/#{@main.gsub(/\./, '_')}.html", main_frame['src']
40
40
  end
41
41
 
42
- def test_file_index
43
- doc = html_doc 'doc/index.html'
44
- assert doc.at_css('frame[src="fr_file_index.html"]'), "index links to files"
45
- assert_file 'doc/fr_file_index.html'
46
- end
47
-
48
42
  def test_class_index
49
43
  doc = html_doc 'doc/index.html'
50
44
  assert doc.at_css('frame[src="fr_class_index.html"]'), "missing frame"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: horo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Aaron Patterson
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-07 00:00:00 -07:00
18
+ date: 2010-08-20 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -108,6 +108,7 @@ files:
108
108
  - lib/app/views/methods/index.html.erb
109
109
  - lib/app/views/root/index.html.erb
110
110
  - lib/horo.rb
111
+ - lib/public/index-style.css
111
112
  - lib/public/rdoc-style.css
112
113
  - lib/rdoc/discover.rb
113
114
  - lib/rdoc/generator/horo.rb