rdoc 6.3.1 → 6.3.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rdoc might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 327e6414793206350f148388b0df495ff2c748c1d4bb129ef320a442e4084619
4
- data.tar.gz: 44c884a1eb18506c90af82fefa6f7686973ab32e1ceb42c6616b0ffbf88ac868
3
+ metadata.gz: fb81cfc0bde849dc07f2552d354bdf08ee7a812cd016bf1967ae0d96b7cdf394
4
+ data.tar.gz: 8d070f371004764d3aef404128f9ea0ed4b4df8a7551469ae0a1f9c2aba38f37
5
5
  SHA512:
6
- metadata.gz: 8691cde93b42f6c4ff77f6212e40c5c15c408b1953e58cf14f17cef142970ff79564bf7fe12b7f072067267fd67ad62920241e54e7a6d592487545bd19a82311
7
- data.tar.gz: 3adbda517d389982d0d67ccd92478d0b0912c156c2988a26089715ff77e998025d6f2d8eafd44cdbd66daa2c647bd2201d1c0f57c5731bac19c45aea3014ae4c
6
+ metadata.gz: 9d00263d1bceecc6130aa4df1a7d9a7df671afd0dc8a286636df0b00872f24417e861ddd3e6506d21f47dade656f596bb749ccf1d8a0539cd5ad54a8a3ef1345
7
+ data.tar.gz: 3c4406205a2cd3906d80fa6120f8982d8d46d4ab984e5e36de0898cacba2939807ba7ab781471eb2970d3b7e7624c00006d427718db640c60b0873d0f6167eac
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+ ##
3
+ # A section of table
4
+
5
+ class RDoc::Markup::Table
6
+ attr_accessor :header, :align, :body
7
+
8
+ def initialize header, align, body
9
+ @header, @align, @body = header, align, body
10
+ end
11
+
12
+ def == other
13
+ self.class == other.class and
14
+ @header == other.header and
15
+ @align == other.align and
16
+ @body == other.body
17
+ end
18
+
19
+ def accept visitor
20
+ visitor.accept_table @header, @body, @align
21
+ end
22
+
23
+ def pretty_print q # :nodoc:
24
+ q.group 2, '[Table: ', ']' do
25
+ q.group 2, '[Head: ', ']' do
26
+ q.seplist @header.zip(@align) do |text, align|
27
+ q.pp text
28
+ if align
29
+ q.text ":"
30
+ q.breakable
31
+ q.text align.to_s
32
+ end
33
+ end
34
+ end
35
+ q.breakable
36
+ q.group 2, '[Body: ', ']' do
37
+ q.seplist @body do |body|
38
+ q.group 2, '[', ']' do
39
+ q.seplist body do |text|
40
+ q.pp text
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.5.1
4
+ # This file is automatically generated by Racc 1.5.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
@@ -1,7 +1,6 @@
1
- # frozen_string_literal: true
2
1
  #
3
2
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.5.1
3
+ # This file is automatically generated by Racc 1.5.2
5
4
  # from Racc grammar file "".
6
5
  #
7
6
 
data/lib/rdoc/version.rb CHANGED
@@ -3,6 +3,6 @@ module RDoc
3
3
  ##
4
4
  # RDoc version you are using
5
5
 
6
- VERSION = '6.3.1'
6
+ VERSION = '6.3.2'
7
7
 
8
8
  end
data/rdoc.gemspec CHANGED
@@ -50,7 +50,6 @@ RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentat
50
50
  "bin/setup",
51
51
  "exe/rdoc",
52
52
  "exe/ri",
53
- "man/ri.1",
54
53
  "lib/rdoc.rb",
55
54
  "lib/rdoc/alias.rb",
56
55
  "lib/rdoc/anon_class.rb",
@@ -167,6 +166,7 @@ RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentat
167
166
  "lib/rdoc/markup/raw.rb",
168
167
  "lib/rdoc/markup/regexp_handling.rb",
169
168
  "lib/rdoc/markup/rule.rb",
169
+ "lib/rdoc/markup/table.rb",
170
170
  "lib/rdoc/markup/to_ansi.rb",
171
171
  "lib/rdoc/markup/to_bs.rb",
172
172
  "lib/rdoc/markup/to_html.rb",
@@ -222,6 +222,7 @@ RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentat
222
222
  "lib/rdoc/tom_doc.rb",
223
223
  "lib/rdoc/top_level.rb",
224
224
  "lib/rdoc/version.rb",
225
+ "man/ri.1",
225
226
  "rdoc.gemspec",
226
227
  ]
227
228
  # files from .gitignore
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.3.1
4
+ version: 6.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Hodel
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: exe
16
16
  cert_chain: []
17
- date: 2021-05-02 00:00:00.000000000 Z
17
+ date: 2021-07-05 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: gettext
@@ -191,6 +191,7 @@ files:
191
191
  - lib/rdoc/markup/raw.rb
192
192
  - lib/rdoc/markup/regexp_handling.rb
193
193
  - lib/rdoc/markup/rule.rb
194
+ - lib/rdoc/markup/table.rb
194
195
  - lib/rdoc/markup/to_ansi.rb
195
196
  - lib/rdoc/markup/to_bs.rb
196
197
  - lib/rdoc/markup/to_html.rb