rdoc 2.4.1 → 2.4.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.

@@ -0,0 +1,64 @@
1
+ require 'rubygems'
2
+ require 'minitest/autorun'
3
+ require 'rdoc/task'
4
+
5
+ class TestRDocTask < MiniTest::Unit::TestCase
6
+
7
+ def setup
8
+ Rake::Task.clear
9
+ end
10
+
11
+ def test_tasks_creation
12
+ RDoc::Task.new
13
+ assert Rake::Task[:rdoc]
14
+ assert Rake::Task[:clobber_rdoc]
15
+ assert Rake::Task[:rerdoc]
16
+ end
17
+
18
+ def test_tasks_creation_with_custom_name_symbol
19
+ rd = RDoc::Task.new(:rdoc_dev)
20
+ assert Rake::Task[:rdoc_dev]
21
+ assert Rake::Task[:clobber_rdoc_dev]
22
+ assert Rake::Task[:rerdoc_dev]
23
+ assert_equal :rdoc_dev, rd.name
24
+ end
25
+
26
+ def test_tasks_creation_with_custom_name_string
27
+ rd = RDoc::Task.new("rdoc_dev")
28
+ assert Rake::Task[:rdoc_dev]
29
+ assert Rake::Task[:clobber_rdoc_dev]
30
+ assert Rake::Task[:rerdoc_dev]
31
+ assert_equal "rdoc_dev", rd.name
32
+ end
33
+
34
+ def test_tasks_creation_with_custom_name_hash
35
+ options = { :rdoc => "rdoc", :clobber_rdoc => "rdoc:clean", :rerdoc => "rdoc:force" }
36
+ rd = RDoc::Task.new(options)
37
+ assert Rake::Task[:"rdoc"]
38
+ assert Rake::Task[:"rdoc:clean"]
39
+ assert Rake::Task[:"rdoc:force"]
40
+ assert_raises(RuntimeError) { Rake::Task[:clobber_rdoc] }
41
+ assert_equal options, rd.name
42
+ end
43
+
44
+ def test_tasks_creation_with_custom_name_hash_will_use_default_if_an_option_isnt_given
45
+ rd = RDoc::Task.new(:clobber_rdoc => "rdoc:clean")
46
+ assert Rake::Task[:rdoc]
47
+ assert Rake::Task[:"rdoc:clean"]
48
+ assert Rake::Task[:rerdoc]
49
+ end
50
+
51
+ def test_tasks_creation_with_custom_name_hash_raises_exception_if_invalid_option_given
52
+ assert_raises(ArgumentError) do
53
+ RDoc::Task.new(:foo => "bar")
54
+ end
55
+
56
+ begin
57
+ RDoc::Task.new(:foo => "bar")
58
+ rescue ArgumentError => e
59
+ assert_match(/foo/, e.message)
60
+ end
61
+ end
62
+
63
+ end
64
+
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: 2.4.1
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Hodel
@@ -33,7 +33,7 @@ cert_chain:
33
33
  x52qPcexcYZR7w==
34
34
  -----END CERTIFICATE-----
35
35
 
36
- date: 2009-02-26 00:00:00 -08:00
36
+ date: 2009-03-25 00:00:00 -07:00
37
37
  default_executable:
38
38
  dependencies:
39
39
  - !ruby/object:Gem::Dependency
@@ -54,9 +54,18 @@ dependencies:
54
54
  requirements:
55
55
  - - ">="
56
56
  - !ruby/object:Gem::Version
57
- version: 1.9.0
57
+ version: 1.11.0
58
58
  version:
59
- description: RDoc is an application that produces documentation for one or more Ruby source files. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying online documentation. At this point in time, RDoc 2.x is a work in progress and may incur further API changes beyond what has been made to RDoc 1.0.1. Command-line tools are largely unaffected, but internal APIs may shift rapidly. See RDoc for a description of RDoc's markup and basic use.
59
+ description: |-
60
+ RDoc is an application that produces documentation for one or more Ruby source
61
+ files. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying
62
+ online documentation.
63
+
64
+ At this point in time, RDoc 2.x is a work in progress and may incur further
65
+ API changes beyond what has been made to RDoc 1.0.1. Command-line tools are
66
+ largely unaffected, but internal APIs may shift rapidly.
67
+
68
+ See RDoc for a description of RDoc's markup and basic use.
60
69
  email:
61
70
  - drbrain@segment7.net
62
71
  - ""
@@ -167,6 +176,7 @@ files:
167
176
  - lib/rdoc/ri/writer.rb
168
177
  - lib/rdoc/single_class.rb
169
178
  - lib/rdoc/stats.rb
179
+ - lib/rdoc/task.rb
170
180
  - lib/rdoc/tokenstream.rb
171
181
  - lib/rdoc/top_level.rb
172
182
  - test/binary.dat
@@ -194,11 +204,14 @@ files:
194
204
  - test/test_rdoc_ri_formatter.rb
195
205
  - test/test_rdoc_ri_html_formatter.rb
196
206
  - test/test_rdoc_ri_overstrike_formatter.rb
207
+ - test/test_rdoc_task.rb
197
208
  - test/test_rdoc_top_level.rb
198
209
  - test/xref_data.rb
199
210
  - test/xref_test_case.rb
200
211
  has_rdoc: true
201
- homepage: "{RDoc Project Page}[http://rubyforge.org/projects/rdoc/]"
212
+ homepage: http://rdoc.rubyforge.org
213
+ licenses: []
214
+
202
215
  post_install_message:
203
216
  rdoc_options:
204
217
  - --main
@@ -220,9 +233,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
233
  requirements: []
221
234
 
222
235
  rubyforge_project: rdoc
223
- rubygems_version: 1.3.1
236
+ rubygems_version: 1.3.1.2089
224
237
  signing_key:
225
- specification_version: 2
238
+ specification_version: 3
226
239
  summary: RDoc is an application that produces documentation for one or more Ruby source files
227
240
  test_files:
228
241
  - test/test_attribute_manager.rb
@@ -247,4 +260,5 @@ test_files:
247
260
  - test/test_rdoc_ri_formatter.rb
248
261
  - test/test_rdoc_ri_html_formatter.rb
249
262
  - test/test_rdoc_ri_overstrike_formatter.rb
263
+ - test/test_rdoc_task.rb
250
264
  - test/test_rdoc_top_level.rb
metadata.gz.sig CHANGED
Binary file