rdoc-babel 1.0.4 → 1.0.5
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/HISTORY.rdoc +22 -8
- data/README.rdoc +1 -1
- data/Rakefile +7 -29
- data/lib/rdoc/generator/babel.rb +1 -1
- data/lib/rdoc/generator/ruby-lang/rdoc.css +22 -4
- data/lib/rdoc_babel.rb +1 -1
- data/test/test_rdoc_generator_babel.rb +0 -1
- metadata +15 -34
- data/.autotest +0 -12
- data/Manifest.txt +0 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f3a9a864631f9ecf3f446e3297fe4a9c17d171e921f127bdd9a410c650daad5
|
4
|
+
data.tar.gz: 2f6046c1008775bf41816b7ddba1af7b5213431a2934e41d750345c30c0b25e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ac3b681e7d3b44bb9cbc078002c33c657a50617dfa7aeee6e027d6d610137987559c8b9047496df6d1233f2fae8ec2d88832b8ff8fea0ee171e704bd59294e7
|
7
|
+
data.tar.gz: 9f96ce72a6ec9b4660c077b4bf199b0210ef11d4acf7c88be26280b1315abca64576da24a88ce25b6eebdb5928b6e7e6817658c13037e37cb459a7e5ba9943f0
|
data/HISTORY.rdoc
CHANGED
@@ -1,21 +1,35 @@
|
|
1
1
|
|
2
|
-
=== 0.
|
2
|
+
=== 1.0.5 / 2020-06-01
|
3
3
|
|
4
|
-
|
4
|
+
* Fix warning with Ruby 2.7
|
5
|
+
* Tune CSS for definition lists
|
5
6
|
|
6
|
-
=== 0.
|
7
|
+
=== 1.0.4 / 2019-08-02
|
7
8
|
|
8
|
-
|
9
|
+
Fix for latest ERB syntax.
|
9
10
|
|
10
|
-
=== 1.0.
|
11
|
+
=== 1.0.3 / 2019-07-29
|
11
12
|
|
12
|
-
|
13
|
+
Compatibility with RDoc 6.
|
14
|
+
|
15
|
+
=== 1.0.2 / 2017-02-25
|
16
|
+
|
17
|
+
Fix for compatibility with RDoc 5 dupping the options.
|
13
18
|
|
14
19
|
=== 1.0.1 / 2015-06-29
|
15
20
|
|
16
21
|
* Fix rendering of Markdown files
|
17
22
|
* Fix CSS file (code instead of tt)
|
18
23
|
|
19
|
-
=== 1.0.
|
24
|
+
=== 1.0.0 / 2014-07-20
|
25
|
+
|
26
|
+
Make it compatible with RDoc 4.1 and its bugs.
|
27
|
+
|
28
|
+
=== 0.9.1 / 2011-07-16
|
29
|
+
|
30
|
+
First public release.
|
31
|
+
|
32
|
+
=== 0.9.0 / 2010-10-02
|
33
|
+
|
34
|
+
Initial version, developed along with {RDoc}[http://github.com/rdoc/rdoc] 3.0.
|
20
35
|
|
21
|
-
* Fix for compatibility with RDoc 5 dupping the options.
|
data/README.rdoc
CHANGED
@@ -81,7 +81,7 @@ Babel supports specific options in addition to the standard RDoc options:
|
|
81
81
|
|
82
82
|
(The MIT License)
|
83
83
|
|
84
|
-
Copyright (c) 2010-
|
84
|
+
Copyright (c) 2010-2020 Thierry Lambert
|
85
85
|
|
86
86
|
Permission is hereby granted, free of charge, to any person obtaining
|
87
87
|
a copy of this software and associated documentation files (the
|
data/Rakefile
CHANGED
@@ -1,33 +1,11 @@
|
|
1
|
-
require
|
2
|
-
|
3
|
-
Hoe.spec 'rdoc-babel' do
|
4
|
-
|
5
|
-
developer 'Thierry Lambert', 'thyresias@gmail.com'
|
6
|
-
license 'MIT'
|
7
|
-
|
8
|
-
self.summary = "An RDoc formatter producing HTML documentation."
|
9
|
-
self.description = paragraphs_of('README.rdoc', 3, 6).join("\n\n")
|
10
|
-
|
11
|
-
self.readme_file = 'README.rdoc'
|
12
|
-
self.history_file = 'HISTORY.rdoc'
|
13
|
-
self.extra_rdoc_files = ['README.rdoc', 'HISTORY.rdoc']
|
14
|
-
|
15
|
-
self.remote_rdoc_dir = ''
|
16
|
-
self.testlib = :minitest
|
17
|
-
# self.test_prelude = %(gem "minitest")
|
18
|
-
|
19
|
-
self.extra_deps << ['rdoc', '~> 6.1']
|
20
|
-
|
21
|
-
self.extra_dev_deps << ['minitest', '~> 5.11']
|
22
|
-
self.extra_dev_deps << ['nokogiri', '~> 1.10']
|
23
|
-
|
24
|
-
spec_extras[:homepage] = 'http://github.com/thyresias/rdoc-babel'
|
25
|
-
spec_extras[:rdoc_options] = %w(--main README.rdoc)
|
1
|
+
require "rake/testtask"
|
26
2
|
|
3
|
+
Rake::TestTask.new do |t|
|
4
|
+
t.test_files = FileList['test/test*.rb']
|
27
5
|
end
|
28
6
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
7
|
+
desc 'build & install gem'
|
8
|
+
task 'gem' do
|
9
|
+
system 'gem build rdoc-babel.gemspec'
|
10
|
+
system 'gem install rdoc-babel --local'
|
33
11
|
end
|
data/lib/rdoc/generator/babel.rb
CHANGED
@@ -212,7 +212,7 @@ class RDoc::Generator::Babel
|
|
212
212
|
if source_path.directory?
|
213
213
|
out_path.mkpath unless @options.dry_run
|
214
214
|
else
|
215
|
-
FileUtils.cp source_path.to_s, out_path.dirname.to_s, options
|
215
|
+
FileUtils.cp source_path.to_s, out_path.dirname.to_s, **options
|
216
216
|
end
|
217
217
|
end
|
218
218
|
end
|
@@ -24,16 +24,30 @@ td {
|
|
24
24
|
}
|
25
25
|
|
26
26
|
ul { margin-left: 1.5em; }
|
27
|
-
ol { margin-left: 2em; }
|
28
27
|
li { margin-top: 0.5ex; }
|
28
|
+
|
29
|
+
ol { margin-left: 2em; }
|
29
30
|
ol li { margin-top: 1em; }
|
30
31
|
|
31
|
-
|
32
|
+
/* label lists: classic DT/DD */
|
33
|
+
|
34
|
+
.label-list dt {
|
32
35
|
margin-top: 1ex;
|
33
36
|
font-weight: bold;
|
34
37
|
}
|
35
|
-
dt code { font-size: 100%; }
|
36
|
-
dd { margin-left: 2em; }
|
38
|
+
.label-list dt code { font-size: 100%; }
|
39
|
+
.label-list dd { margin-left: 2em; }
|
40
|
+
|
41
|
+
/* note lists: DT and DD on same row, no space between rows */
|
42
|
+
|
43
|
+
dl.note-list {
|
44
|
+
display: grid;
|
45
|
+
grid-template-columns: max-content auto;
|
46
|
+
margin-left: 1ex;
|
47
|
+
}
|
48
|
+
dl.note-list dt { grid-column-start: 1; }
|
49
|
+
dl.note-list dd { grid-column-start: 2; }
|
50
|
+
dl.note-list dd p { margin-top: 0; margin-left: 1ex; }
|
37
51
|
|
38
52
|
table {
|
39
53
|
border-collapse: collapse;
|
@@ -196,6 +210,10 @@ h4, h5, h6 {
|
|
196
210
|
border: none;
|
197
211
|
}
|
198
212
|
|
213
|
+
h4 {
|
214
|
+
font-weight: bold;
|
215
|
+
}
|
216
|
+
|
199
217
|
code {
|
200
218
|
font-family: Monaco, Consolas, "Lucida Console", monospace;
|
201
219
|
font-size: 100%;
|
data/lib/rdoc_babel.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdoc-babel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thierry Lambert
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdoc
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '6.
|
19
|
+
version: '6.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '6.
|
26
|
+
version: '6.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: minitest
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '5.
|
33
|
+
version: '5.14'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '5.
|
40
|
+
version: '5.14'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: nokogiri
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,44 +52,23 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.10'
|
55
|
-
|
56
|
-
name: hoe
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '3.18'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '3.18'
|
69
|
-
description: |-
|
55
|
+
description: |
|
70
56
|
Babel is an RDoc formatter producing HTML documentation.
|
71
|
-
The default template is +ruby-lang
|
72
|
-
|
73
|
-
- Look and feel inspired from ruby-lang.org[http://www.ruby-lang.org/].
|
57
|
+
The default template is +ruby-lang+:
|
58
|
+
- Look and feel inspired from https://www.ruby-lang.org/.
|
74
59
|
- Dual-frame output, with indexes on the left.
|
75
60
|
- Search boxes for classes and methods.
|
76
61
|
- Links to undocumented classes/methods are grayed.
|
77
62
|
- Highlights target methods, attributes and constants.
|
78
63
|
- Adds links to ancestor methods/attributes.
|
79
|
-
|
80
|
-
- Tested on Firefox 3.5 & 5, Chrome 9 & 12, Safari 4 & 5.
|
81
|
-
email:
|
82
|
-
- thyresias@gmail.com
|
64
|
+
email: thyresias@gmail.com
|
83
65
|
executables: []
|
84
66
|
extensions: []
|
85
67
|
extra_rdoc_files:
|
86
|
-
- HISTORY.rdoc
|
87
|
-
- Manifest.txt
|
88
68
|
- README.rdoc
|
69
|
+
- HISTORY.rdoc
|
89
70
|
files:
|
90
|
-
- ".autotest"
|
91
71
|
- HISTORY.rdoc
|
92
|
-
- Manifest.txt
|
93
72
|
- README.rdoc
|
94
73
|
- Rakefile
|
95
74
|
- lib/rdoc/discover.rb
|
@@ -115,12 +94,14 @@ files:
|
|
115
94
|
- test/data/no_content.rb
|
116
95
|
- test/data/not_commented.rb
|
117
96
|
- test/test_rdoc_generator_babel.rb
|
118
|
-
homepage:
|
97
|
+
homepage: https://github.com/thyresias/rdoc-babel
|
119
98
|
licenses:
|
120
99
|
- MIT
|
121
100
|
metadata: {}
|
122
101
|
post_install_message:
|
123
102
|
rdoc_options:
|
103
|
+
- "--title"
|
104
|
+
- RDoc Babel
|
124
105
|
- "--main"
|
125
106
|
- README.rdoc
|
126
107
|
require_paths:
|
@@ -136,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
117
|
- !ruby/object:Gem::Version
|
137
118
|
version: '0'
|
138
119
|
requirements: []
|
139
|
-
rubygems_version: 3.
|
120
|
+
rubygems_version: 3.1.2
|
140
121
|
signing_key:
|
141
122
|
specification_version: 4
|
142
123
|
summary: An RDoc formatter producing HTML documentation.
|
data/.autotest
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
require 'autotest/restart'
|
2
|
-
|
3
|
-
Autotest.add_hook :initialize do |at|
|
4
|
-
at.testlib = 'minitest/unit'
|
5
|
-
class << at
|
6
|
-
alias zen_path_to_classname path_to_classname
|
7
|
-
def path_to_classname(s)
|
8
|
-
zen_path_to_classname(s).sub('Rdoc', 'RDoc')
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
data/Manifest.txt
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
.autotest
|
2
|
-
HISTORY.rdoc
|
3
|
-
Manifest.txt
|
4
|
-
Rakefile
|
5
|
-
README.rdoc
|
6
|
-
lib/rdoc/discover.rb
|
7
|
-
lib/rdoc/generator/babel.rb
|
8
|
-
lib/rdoc/generator/ruby-lang/class-page.html.erb
|
9
|
-
lib/rdoc/generator/ruby-lang/file-page.html.erb
|
10
|
-
lib/rdoc/generator/ruby-lang/images/zoom.png
|
11
|
-
lib/rdoc/generator/ruby-lang/index.html.erb
|
12
|
-
lib/rdoc/generator/ruby-lang/indexes.html.erb
|
13
|
-
lib/rdoc/generator/ruby-lang/rdoc.css
|
14
|
-
lib/rdoc/generator/ruby-lang/scripts/indexFrame.js
|
15
|
-
lib/rdoc/generator/ruby-lang/scripts/jquery.js
|
16
|
-
lib/rdoc/generator/ruby-lang/scripts/jquery.quicksearch.js
|
17
|
-
lib/rdoc/generator/ruby-lang/scripts/mainFrame.js
|
18
|
-
lib/rdoc_babel.rb
|
19
|
-
test/data/ancestors.rb
|
20
|
-
test/data/commented.rb
|
21
|
-
test/data/context_alias.rb
|
22
|
-
test/data/HISTORY.rdoc
|
23
|
-
test/data/main_file.rb
|
24
|
-
test/data/not_commented.rb
|
25
|
-
test/data/no_class_nor_module.rb
|
26
|
-
test/data/no_content.rb
|
27
|
-
test/data/README.rdoc
|
28
|
-
test/test_rdoc_generator_babel.rb
|