emerald 0.0.1.alpha3 → 0.0.1.alpha4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,37 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ # This mixin module contains the extra options Emerald
4
+ # adds to the default RDoc ones. It is used in the
5
+ # RDoc::Generator::Emerald::setup_options method.
6
+ module RDoc::Generator::Emerald::Options
7
+
8
+ # Tells RDoc’s OptionParser about the new options when
9
+ # the RDoc::Options object is extended with this mixin.
10
+ def self.extended(options)
11
+ op = options.option_parser
12
+
13
+ op.separator ""
14
+ op.separator "Emerald generator options:"
15
+ op.separator ""
16
+
17
+ op.on("--[no-]generate-toc",
18
+ "Enables or disables generation of the",
19
+ "table of contents (ToC) for toplevel files."){|val| options.generate_toc = val}
20
+ end
21
+
22
+ # Whether or not to generate a Table of Contents (ToC) for
23
+ # toplevel files. Defaults to true.
24
+ #
25
+ # Note that the mechanism is implemented in JavaScript,
26
+ # which has therefore to be enabled in your browser.
27
+ def generate_toc
28
+ @generate_toc = true unless defined?(@generate_toc)
29
+ @generate_toc
30
+ end
31
+
32
+ # Setter for #generate_toc.
33
+ def generate_toc=(val)
34
+ @generate_toc = val
35
+ end
36
+
37
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emerald
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.alpha3
4
+ version: 0.0.1.alpha4
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-31 00:00:00.000000000 Z
12
+ date: 2012-10-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdoc
@@ -54,27 +54,38 @@ email: quintus@quintilianus.eu
54
54
  executables: []
55
55
  extensions: []
56
56
  extra_rdoc_files:
57
- - README.rdoc
58
- - CHANGELOG.rdoc
59
- - LEGAL.rdoc
57
+ - pkg/emerald-0.0.1.alpha4/COPYING.rdoc
58
+ - pkg/emerald-0.0.1.alpha4/LEGAL.rdoc
59
+ - pkg/emerald-0.0.1.alpha4/CHANGELOG.rdoc
60
+ - pkg/emerald-0.0.1.alpha4/README.rdoc
60
61
  - COPYING.rdoc
62
+ - LEGAL.rdoc
63
+ - CHANGELOG.rdoc
64
+ - README.rdoc
61
65
  files:
62
- - lib/rdoc/generator/emerald.rb
63
- - lib/rdoc/generator/emerald/options.rb
66
+ - pkg/emerald-0.0.1.alpha4/lib/rdoc/discover.rb
67
+ - pkg/emerald-0.0.1.alpha4/lib/rdoc/generator/emerald/options.rb
68
+ - pkg/emerald-0.0.1.alpha4/lib/rdoc/generator/emerald.rb
64
69
  - lib/rdoc/discover.rb
65
- - README.rdoc
66
- - CHANGELOG.rdoc
67
- - LEGAL.rdoc
70
+ - lib/rdoc/generator/emerald/options.rb
71
+ - lib/rdoc/generator/emerald.rb
72
+ - pkg/emerald-0.0.1.alpha4/COPYING.rdoc
73
+ - pkg/emerald-0.0.1.alpha4/LEGAL.rdoc
74
+ - pkg/emerald-0.0.1.alpha4/CHANGELOG.rdoc
75
+ - pkg/emerald-0.0.1.alpha4/README.rdoc
68
76
  - COPYING.rdoc
77
+ - LEGAL.rdoc
78
+ - CHANGELOG.rdoc
79
+ - README.rdoc
69
80
  - data/stylesheets/rdoc.css
81
+ - data/javascripts/functions.js
70
82
  - data/javascripts/jquery.js
71
- - data/javascripts/toc.js
72
83
  - data/javascripts/emerald.js
73
84
  - data/images/zoom.png
74
85
  - data/images/tag_blue.png
75
- - data/templates/toplevel.html.erb
76
- - data/templates/classmodule.html.erb
77
86
  - data/templates/layout.html.erb
87
+ - data/templates/classmodule.html.erb
88
+ - data/templates/toplevel.html.erb
78
89
  - VERSION
79
90
  homepage: https://github.com/Quintus/emerald
80
91
  licenses: []