rdoc 4.1.0.preview.3 → 4.1.0

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
  SHA1:
3
- metadata.gz: 63a8392d312b7021635d3ca1f8b767fdeb703578
4
- data.tar.gz: 9d8b4adcb0c60f3157d6b9fb41cdcfc4c8912ef1
3
+ metadata.gz: 0819c40fa54344a9bfad2ebcad36dbb0f5230345
4
+ data.tar.gz: 20484e07c670f704600a3a2ae4f1708984256f18
5
5
  SHA512:
6
- metadata.gz: fbe17dd9ed231a22d9252f70d7f057cded0a482d7a2ca1fcd1423e22b2aa74613fb95253df0d362f38af8cd1747e477106cddaf0de85a48074c1e472e9a7d605
7
- data.tar.gz: ee95d4887bff5955cc1fb3a976833871045dd0e5ece158124ff8cf8428a2e681f3c2cb58896b5e20461d933c55751f3a5d62d8362fb3aca517818201248c76d0
6
+ metadata.gz: 6f481cd483af36f9c8954874d035e4436dcc7e0ca654be6032b321f15aa560918c699b020eb8512d4acb96d4304c73b7bea68d2d385c03334560772cc95d8f5f
7
+ data.tar.gz: 2037b1742a963cd6d78afbda235235b12db016053e410071c765ca95e1e7d7680f765ac274b19f37135fbbb88bcd8c5f7fa1e936bf200010e5213277036a75f2
@@ -1 +1,3 @@
1
- qwܕt$@�A��SlE$G���u���Yb��o,z��2�|�m�w��,��zo1��橖�#��m��� x�>Ы>�;�>�[>!�� ��؍�jK�� s?eU�����N�&p3翙חށ��ܑ��K���r���'Y��Ҙc<�����qr8oQ6iM�E�iU��̖Q �%'���Ǣ�ܶ��h;��?f��S8�i���tss�ٰ�D0=m�ܱ��c ���AF0�����7@�x�/X
1
+ S!g����w?�^�V ��o��w8S'W��I�g.rrV�ǝ9��2��'9���b��&��E�y`�[j[�؀9|�� ��
2
+ ps��y�s��)�(�WP��Fª��4�l�o���i�<�ϻd�G%�nw��koܞʄ�r�,rX#��Y��X饷
3
+ �{�\�f��L׺�?ՔJӱ�|_'����׸B�i�I�?@�t`F���__$[�ރ4�(�\D5��/�MF��)o�P��6I�
data.tar.gz.sig CHANGED
Binary file
@@ -1,4 +1,14 @@
1
- === 4.1.0.preview.3 / 2012-12-02
1
+ === 4.1.0 / 2013-12-26
2
+
3
+ * Notable changes
4
+ * Improved accessibility of HTML output. Accessibility review was provided
5
+ by:
6
+
7
+ Techvision – http://www.techvision.net.in
8
+
9
+ The accessibility consultants in Pune, India
10
+
11
+ * The look of RDoc has been updated.
2
12
 
3
13
  * Minor enhancements
4
14
  * RDoc can now link to [], []=, << and >> methods. Pull request #202 by
@@ -25,6 +35,7 @@
25
35
  by Vít Ondruch.
26
36
 
27
37
  * Bug fixes
38
+ * Applied typo fixes by @dvsuresh from ruby/ruby@2c5dcdf
28
39
  * Restored behavior of --no-pager alias -T. Pull request #223 by ruafozy.
29
40
  * Fixed extra whitespace output in the rdoc coverage report. Bug #210 by
30
41
  Ryan Davis.
data/TODO.rdoc CHANGED
@@ -45,3 +45,15 @@ API changes to RDoc
45
45
  * Rename TopLevel to File
46
46
  * Rename Context to Container
47
47
  * Rename NormalClass to Class
48
+
49
+ === Accessibility
50
+
51
+ Page title in right hand side
52
+
53
+ Table of contents in left hand side as sub-list under main heading
54
+
55
+ For class list, never method list, method summary at top
56
+
57
+ table-of-contents-navigation div => nav + role="navigation"
58
+
59
+ type "mod", focus is still on "mod"
@@ -64,7 +64,7 @@ module RDoc
64
64
  ##
65
65
  # RDoc version you are using
66
66
 
67
- VERSION = '4.1.0.preview.3'
67
+ VERSION = '4.1.0'
68
68
 
69
69
  ##
70
70
  # Method visibilities
@@ -3,13 +3,12 @@
3
3
  <div id="search-field-wrapper">
4
4
  <input id="search-field" role="combobox" aria-label="Search"
5
5
  aria-autocomplete="list" aria-controls="search-results"
6
- type="text" name="search" placeholder="Search"
6
+ type="text" name="search" placeholder="Search" spellcheck="false"
7
7
  title="Type to search, Up and Down to navigate, Enter to load">
8
8
  </div>
9
9
 
10
10
  <ul id="search-results" aria-label="Search Results"
11
11
  aria-busy="false" aria-expanded="false"
12
- aria-atomic="false" aria-live="polite"
13
- aria-relevant="all" class="initially-hidden"></ul>
12
+ aria-atomic="false" class="initially-hidden"></ul>
14
13
  </form>
15
14
  </div>
@@ -14,7 +14,12 @@ Search.prototype = $.extend({}, Navigation, new function() {
14
14
 
15
15
  this.init = function() {
16
16
  var _this = this;
17
- var observer = function() {
17
+ var observer = function(e) {
18
+ switch(e.originalEvent.keyCode) {
19
+ case 38: // Event.KEY_UP
20
+ case 40: // Event.KEY_DOWN
21
+ return;
22
+ }
18
23
  _this.search(_this.$input[0].value);
19
24
  };
20
25
  this.$input.keyup(observer);
@@ -82,6 +87,8 @@ Search.prototype = $.extend({}, Navigation, new function() {
82
87
  this.$input.attr('aria-activedescendant', $next.attr('id'));
83
88
  this.scrollIntoView($next[0], this.$view[0]);
84
89
  this.$current = $next;
90
+ this.$input.val($next[0].firstChild.firstChild.text);
91
+ this.$input.select();
85
92
  }
86
93
  return true;
87
94
  }
@@ -144,9 +144,9 @@ def next_token # :nodoc:
144
144
  # call filter, part_out is output(Part object)
145
145
  part_out = @tree.filter[@in_part].call(part)
146
146
 
147
- if @tree.filter[@in_part].mode == :rd # if output is RD formated
147
+ if @tree.filter[@in_part].mode == :rd # if output is RD formatted
148
148
  subtree = parse_subtree(part_out.to_a)
149
- else # if output is target formated
149
+ else # if output is target formatted
150
150
  basename = TMPFILE.join('.')
151
151
  TMPFILE[-1] += 1
152
152
  tmpfile = open(@tree.tmp_dir + "/" + basename + ".#{@in_part}", "w")
@@ -357,9 +357,9 @@ def next_token # :nodoc:
357
357
  # call filter, part_out is output(Part object)
358
358
  part_out = @tree.filter[@in_part].call(part)
359
359
 
360
- if @tree.filter[@in_part].mode == :rd # if output is RD formated
360
+ if @tree.filter[@in_part].mode == :rd # if output is RD formatted
361
361
  subtree = parse_subtree(part_out.to_a)
362
- else # if output is target formated
362
+ else # if output is target formatted
363
363
  basename = TMPFILE.join('.')
364
364
  TMPFILE[-1] += 1
365
365
  tmpfile = open(@tree.tmp_dir + "/" + basename + ".#{@in_part}", "w")
@@ -56,6 +56,23 @@ class TestRDocTask < RDoc::TestCase
56
56
  assert_equal :rdoc_dev, rd.name
57
57
  end
58
58
 
59
+ def test_tasks_option_parser
60
+ rdoc_task = RDoc::Task.new do |rd|
61
+ rd.title = "Test Tasks Option Parser"
62
+ rd.main = "README.md"
63
+ rd.rdoc_files.include("README.md")
64
+ rd.options << "--all"
65
+ end
66
+
67
+ assert rdoc_task.title, "Test Tasks Option Parser"
68
+ assert rdoc_task.main, "README.md"
69
+ assert rdoc_task.rdoc_files.include?("README.md")
70
+ assert rdoc_task.options.include?("--all")
71
+
72
+ args = %w[--all -o html --main README.md] << "--title" << "Test Tasks Option Parser" << "README.md"
73
+ assert_equal args, rdoc_task.option_list + rdoc_task.rdoc_files
74
+ end
75
+
59
76
  def test_generator_option
60
77
  rdoc_task = RDoc::Task.new do |rd|
61
78
  rd.generator = "ri"
@@ -64,6 +81,22 @@ class TestRDocTask < RDoc::TestCase
64
81
  assert_equal %w[-o html -f ri], rdoc_task.option_list
65
82
  end
66
83
 
84
+ def test_main_option
85
+ rdoc_task = RDoc::Task.new do |rd|
86
+ rd.main = "README.md"
87
+ end
88
+
89
+ assert_equal %w[-o html --main README.md], rdoc_task.option_list
90
+ end
91
+
92
+ def test_output_dir_option
93
+ rdoc_task = RDoc::Task.new do |rd|
94
+ rd.rdoc_dir = "zomg"
95
+ end
96
+
97
+ assert_equal %w[-o zomg], rdoc_task.option_list
98
+ end
99
+
67
100
  def test_rdoc_task_description
68
101
  assert_equal 'Build RDoc HTML files', @t.rdoc_task_description
69
102
  end
@@ -116,5 +149,21 @@ class TestRDocTask < RDoc::TestCase
116
149
  end
117
150
  end
118
151
 
152
+ def test_template_option
153
+ rdoc_task = RDoc::Task.new do |rd|
154
+ rd.template = "foo"
155
+ end
156
+
157
+ assert_equal %w[-o html -T foo], rdoc_task.option_list
158
+ end
159
+
160
+ def test_title_option
161
+ rdoc_task = RDoc::Task.new do |rd|
162
+ rd.title = "Test Title Option"
163
+ end
164
+
165
+ assert_equal %w[-o html] << "--title" << "Test Title Option", rdoc_task.option_list
166
+ end
167
+
119
168
  end
120
169
 
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: 4.1.0.preview.3
4
+ version: 4.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Hodel
@@ -33,7 +33,7 @@ cert_chain:
33
33
  KDyY1VIazVgoC8XvR4h/95/iScPiuglzA+DBG1hip1xScAtw05BrXyUNrc9CEMYU
34
34
  wgF94UVoHRp6ywo8I7NP3HcwFQDFNEZPNGXsng==
35
35
  -----END CERTIFICATE-----
36
- date: 2013-12-03 00:00:00.000000000 Z
36
+ date: 2013-12-26 00:00:00.000000000 Z
37
37
  dependencies:
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: json
metadata.gz.sig CHANGED
Binary file