hanna-nouveau 0.2.7 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b6c8a2e662bfa7585fb1fd1f3837824c02c11d9e
4
+ data.tar.gz: be3233cfa1bbd708256b2f5c6b425db3d7721b5b
5
+ SHA512:
6
+ metadata.gz: 3203e0cd922812a11db23f2c55c656c29ef0424b59d6a1838d8effca6b8986355ba85eaedecb664b90df2a13fb5f4b6f1889f79ce66b777901eae25f7f677ad1
7
+ data.tar.gz: 90ba1c6e40cbf9fdf31aef304e8b7eb4f30c4ddaa0812c4fddf0afada907a36f4848d434e27a1e1def9a72c218246f4598fa51f0df29bbe11a39ed2ea08077fe
data/Gemfile CHANGED
@@ -1,13 +1,3 @@
1
1
  source "http://rubygems.org"
2
- # Add dependencies required to use your gem here.
3
- # Example:
4
- # gem "activesupport", ">= 2.3.5"
5
-
6
- # Add dependencies to develop your gem here.
7
- # Include everything needed to run rake, tests, features, etc.
8
- group :development do
9
- gem "bundler", "~> 1.0.0"
10
- gem "jeweler", "~> 1.5.1"
11
- gem "rcov", ">= 0"
12
- gem 'rdoc', "~> 3.1"
13
- end
2
+ gem 'rdoc', "~> 4.0"
3
+ gem 'haml', "= 3.0.25"
@@ -1,4 +1,4 @@
1
- = Hanna Nouveau — a better RDoc template, now for RDoc 2.5 and 3.0.
1
+ = Hanna Nouveau — a better RDoc template, now for RDoc 4.
2
2
 
3
3
  Based on the original Hanna by Mislav.
4
4
 
data/Rakefile CHANGED
@@ -1,55 +1,12 @@
1
- require 'rubygems'
2
- require 'bundler'
3
- begin
4
- Bundler.setup(:default, :development)
5
- rescue Bundler::BundlerError => e
6
- $stderr.puts e.message
7
- $stderr.puts "Run `bundle install` to install missing gems"
8
- exit e.status_code
9
- end
10
- require 'rake'
11
-
12
- require 'jeweler'
13
- Jeweler::Tasks.new do |gem|
14
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
15
- gem.name = "hanna-nouveau"
16
- gem.homepage = "https://github.com/rdoc/hanna-nouveau"
17
- gem.license = "MIT"
18
- gem.summary = %Q{A rework of the Hanna generator for RDoc 2.5 and 3.x}
19
- gem.description = %Q{}
20
- gem.email = "erik@hollensbe.org"
21
- gem.authors = ["Erik Hollensbe", "James Tucker", "Mislav Marohnic"]
22
- # Include your dependencies below. Runtime dependencies are required when using your gem,
23
- # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
24
- gem.add_runtime_dependency 'haml', "= 3.0.25"
25
- gem.add_runtime_dependency 'rdoc', "~> 3.1"
26
- gem.add_development_dependency 'jeweler'
27
- gem.add_development_dependency 'rake'
28
- end
29
- Jeweler::RubygemsDotOrgTasks.new
30
-
31
- require 'rake/testtask'
32
- Rake::TestTask.new(:test) do |test|
33
- test.libs << 'lib' << 'test'
34
- test.pattern = 'test/**/test_*.rb'
35
- test.verbose = true
36
- end
37
-
38
- require 'rcov/rcovtask'
39
- Rcov::RcovTask.new do |test|
40
- test.libs << 'test'
41
- test.pattern = 'test/**/test_*.rb'
42
- test.verbose = true
43
- end
44
-
45
- task :default => :test
1
+ require "rake/clean"
2
+ CLEAN.include ["rdoc", "*.gem"]
46
3
 
47
- require 'rake/rdoctask'
48
- Rake::RDocTask.new do |rdoc|
4
+ require "rdoc/task"
5
+ RDoc::Task.new do |rdoc|
49
6
  version = File.exist?('VERSION') ? File.read('VERSION') : ""
50
7
 
51
8
  rdoc.rdoc_dir = 'rdoc'
52
9
  rdoc.title = "hanna-nouveau #{version}"
53
- rdoc.rdoc_files.include('README*')
54
- rdoc.rdoc_files.include('lib/**/*.rb')
10
+ rdoc.options = ['-f', 'hanna']
11
+ rdoc.rdoc_files.add %w"README.rdoc LICENSE lib/hanna-nouveau.rb"
55
12
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.7
1
+ 0.3.0
@@ -7,7 +7,7 @@
7
7
  # James Tucker (aka raggi)
8
8
  #
9
9
  # Original Authors:
10
- # Mislav Marohnić <mislav.marohnic@gmail.com>
10
+ # Mislav Marohnic <mislav.marohnic@gmail.com>
11
11
  # Tony Strauss (http://github.com/DesigningPatterns)
12
12
  # Michael Granger <ged@FaerieMUD.org>, who had maintained the original RDoc template
13
13
 
@@ -49,8 +49,9 @@ class RDoc::Generator::Hanna
49
49
  new( options )
50
50
  end
51
51
 
52
- def initialize( options )
52
+ def initialize( store, options )
53
53
  @options = options
54
+ @store = store
54
55
 
55
56
  @templatedir = Pathname.new File.expand_path('../hanna-nouveau/template_files', __FILE__)
56
57
 
@@ -62,12 +63,12 @@ class RDoc::Generator::Hanna
62
63
  @basedir = Pathname.pwd.expand_path
63
64
  end
64
65
 
65
- def generate( top_levels )
66
+ def generate
66
67
  @outputdir = Pathname.new( @options.op_dir ).expand_path( @basedir )
67
68
 
68
- @files = top_levels.sort
69
- @classes = RDoc::TopLevel.all_classes_and_modules.sort
70
- @methods = @classes.map(&:method_list).flatten.sort
69
+ @files = @store.all_files.sort
70
+ @classes = @store.all_classes_and_modules.sort
71
+ @methods = @classes.map {|m| m.method_list }.flatten.sort
71
72
  @attributes = @classes.map(&:attributes).flatten.sort
72
73
 
73
74
  # Now actually write the output
@@ -26,11 +26,14 @@
26
26
  %li
27
27
  %a.show{ :href => '#', :onclick => 'this.parentNode.parentNode.className += " expanded"; this.parentNode.removeChild(this); return false' } show all
28
28
 
29
- - if values[:entry].parent
29
+ - if !file_page && values[:entry].type == "class"
30
30
  .parent
31
- Parent:
32
- -# FIXME helper method
33
- %strong= link_to values[:entry].parent.name, Pathname.new(class_dir) + Pathname.new(values[:entry].parent.path).relative_path_from(Pathname.new values[:entry].path)
31
+ Superclass:
32
+ - if values[:entry].superclass.kind_of?(String)
33
+ %strong= values[:entry].superclass
34
+ - else
35
+ %strong= link_to values[:entry].superclass.name, Pathname.new(class_dir) + Pathname.new(values[:entry].superclass.path).relative_path_from(Pathname.new values[:entry].path)
36
+
34
37
 
35
38
  - if values[:entry].respond_to?(:last_modified) and values[:entry].last_modified
36
39
  .last-update
metadata CHANGED
@@ -1,86 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanna-nouveau
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
5
- prerelease:
4
+ version: 0.3.0
6
5
  platform: ruby
7
6
  authors:
7
+ - Jeremy Evans
8
8
  - Erik Hollensbe
9
9
  - James Tucker
10
10
  - Mislav Marohnic
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-03-23 00:00:00.000000000 Z
14
+ date: 2014-06-18 00:00:00.000000000 Z
15
15
  dependencies:
16
- - !ruby/object:Gem::Dependency
17
- name: bundler
18
- requirement: !ruby/object:Gem::Requirement
19
- none: false
20
- requirements:
21
- - - ~>
22
- - !ruby/object:Gem::Version
23
- version: 1.0.0
24
- type: :development
25
- prerelease: false
26
- version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
- requirements:
29
- - - ~>
30
- - !ruby/object:Gem::Version
31
- version: 1.0.0
32
- - !ruby/object:Gem::Dependency
33
- name: jeweler
34
- requirement: !ruby/object:Gem::Requirement
35
- none: false
36
- requirements:
37
- - - ~>
38
- - !ruby/object:Gem::Version
39
- version: 1.5.1
40
- type: :development
41
- prerelease: false
42
- version_requirements: !ruby/object:Gem::Requirement
43
- none: false
44
- requirements:
45
- - - ~>
46
- - !ruby/object:Gem::Version
47
- version: 1.5.1
48
- - !ruby/object:Gem::Dependency
49
- name: rcov
50
- requirement: !ruby/object:Gem::Requirement
51
- none: false
52
- requirements:
53
- - - ! '>='
54
- - !ruby/object:Gem::Version
55
- version: '0'
56
- type: :development
57
- prerelease: false
58
- version_requirements: !ruby/object:Gem::Requirement
59
- none: false
60
- requirements:
61
- - - ! '>='
62
- - !ruby/object:Gem::Version
63
- version: '0'
64
- - !ruby/object:Gem::Dependency
65
- name: rdoc
66
- requirement: !ruby/object:Gem::Requirement
67
- none: false
68
- requirements:
69
- - - ~>
70
- - !ruby/object:Gem::Version
71
- version: '3.1'
72
- type: :development
73
- prerelease: false
74
- version_requirements: !ruby/object:Gem::Requirement
75
- none: false
76
- requirements:
77
- - - ~>
78
- - !ruby/object:Gem::Version
79
- version: '3.1'
80
16
  - !ruby/object:Gem::Dependency
81
17
  name: haml
82
18
  requirement: !ruby/object:Gem::Requirement
83
- none: false
84
19
  requirements:
85
20
  - - '='
86
21
  - !ruby/object:Gem::Version
@@ -88,7 +23,6 @@ dependencies:
88
23
  type: :runtime
89
24
  prerelease: false
90
25
  version_requirements: !ruby/object:Gem::Requirement
91
- none: false
92
26
  requirements:
93
27
  - - '='
94
28
  - !ruby/object:Gem::Version
@@ -96,53 +30,19 @@ dependencies:
96
30
  - !ruby/object:Gem::Dependency
97
31
  name: rdoc
98
32
  requirement: !ruby/object:Gem::Requirement
99
- none: false
100
33
  requirements:
101
- - - ~>
34
+ - - "~>"
102
35
  - !ruby/object:Gem::Version
103
- version: '3.1'
36
+ version: '4.0'
104
37
  type: :runtime
105
38
  prerelease: false
106
39
  version_requirements: !ruby/object:Gem::Requirement
107
- none: false
108
- requirements:
109
- - - ~>
110
- - !ruby/object:Gem::Version
111
- version: '3.1'
112
- - !ruby/object:Gem::Dependency
113
- name: jeweler
114
- requirement: !ruby/object:Gem::Requirement
115
- none: false
116
- requirements:
117
- - - ! '>='
118
- - !ruby/object:Gem::Version
119
- version: '0'
120
- type: :development
121
- prerelease: false
122
- version_requirements: !ruby/object:Gem::Requirement
123
- none: false
124
- requirements:
125
- - - ! '>='
126
- - !ruby/object:Gem::Version
127
- version: '0'
128
- - !ruby/object:Gem::Dependency
129
- name: rake
130
- requirement: !ruby/object:Gem::Requirement
131
- none: false
132
- requirements:
133
- - - ! '>='
134
- - !ruby/object:Gem::Version
135
- version: '0'
136
- type: :development
137
- prerelease: false
138
- version_requirements: !ruby/object:Gem::Requirement
139
- none: false
140
40
  requirements:
141
- - - ! '>='
41
+ - - "~>"
142
42
  - !ruby/object:Gem::Version
143
- version: '0'
43
+ version: '4.0'
144
44
  description: ''
145
- email: erik@hollensbe.org
45
+ email: code@jeremyevans.net
146
46
  executables: []
147
47
  extensions: []
148
48
  extra_rdoc_files:
@@ -150,12 +50,10 @@ extra_rdoc_files:
150
50
  - README.rdoc
151
51
  files:
152
52
  - Gemfile
153
- - Gemfile.lock
154
53
  - LICENSE
155
54
  - README.rdoc
156
55
  - Rakefile
157
56
  - VERSION
158
- - hanna-nouveau.gemspec
159
57
  - lib/hanna-nouveau.rb
160
58
  - lib/hanna-nouveau/template_files/class_index.haml
161
59
  - lib/hanna-nouveau/template_files/file_index.haml
@@ -172,29 +70,25 @@ files:
172
70
  homepage: https://github.com/rdoc/hanna-nouveau
173
71
  licenses:
174
72
  - MIT
73
+ metadata: {}
175
74
  post_install_message:
176
75
  rdoc_options: []
177
76
  require_paths:
178
77
  - lib
179
78
  required_ruby_version: !ruby/object:Gem::Requirement
180
- none: false
181
79
  requirements:
182
- - - ! '>='
80
+ - - ">="
183
81
  - !ruby/object:Gem::Version
184
82
  version: '0'
185
- segments:
186
- - 0
187
- hash: 3968994271461105751
188
83
  required_rubygems_version: !ruby/object:Gem::Requirement
189
- none: false
190
84
  requirements:
191
- - - ! '>='
85
+ - - ">="
192
86
  - !ruby/object:Gem::Version
193
87
  version: '0'
194
88
  requirements: []
195
89
  rubyforge_project:
196
- rubygems_version: 1.8.25
90
+ rubygems_version: 2.2.2
197
91
  signing_key:
198
- specification_version: 3
199
- summary: A rework of the Hanna generator for RDoc 2.5 and 3.x
92
+ specification_version: 4
93
+ summary: A rework of the Hanna generator for RDoc 4
200
94
  test_files: []
@@ -1,20 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- git (1.2.5)
5
- jeweler (1.5.2)
6
- bundler (~> 1.0.0)
7
- git (>= 1.2.5)
8
- rake
9
- rake (0.8.7)
10
- rcov (0.9.9)
11
- rdoc (3.1)
12
-
13
- PLATFORMS
14
- ruby
15
-
16
- DEPENDENCIES
17
- bundler (~> 1.0.0)
18
- jeweler (~> 1.5.1)
19
- rcov
20
- rdoc (~> 3.1)
@@ -1,80 +0,0 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = "hanna-nouveau"
8
- s.version = "0.2.7"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Erik Hollensbe", "James Tucker", "Mislav Marohnic"]
12
- s.date = "2013-03-23"
13
- s.description = ""
14
- s.email = "erik@hollensbe.org"
15
- s.extra_rdoc_files = [
16
- "LICENSE",
17
- "README.rdoc"
18
- ]
19
- s.files = [
20
- "Gemfile",
21
- "Gemfile.lock",
22
- "LICENSE",
23
- "README.rdoc",
24
- "Rakefile",
25
- "VERSION",
26
- "hanna-nouveau.gemspec",
27
- "lib/hanna-nouveau.rb",
28
- "lib/hanna-nouveau/template_files/class_index.haml",
29
- "lib/hanna-nouveau/template_files/file_index.haml",
30
- "lib/hanna-nouveau/template_files/index.haml",
31
- "lib/hanna-nouveau/template_files/layout.haml",
32
- "lib/hanna-nouveau/template_files/method_index.haml",
33
- "lib/hanna-nouveau/template_files/method_list.haml",
34
- "lib/hanna-nouveau/template_files/method_search.js",
35
- "lib/hanna-nouveau/template_files/page.haml",
36
- "lib/hanna-nouveau/template_files/prototype-1.6.0.3.js",
37
- "lib/hanna-nouveau/template_files/sections.haml",
38
- "lib/hanna-nouveau/template_files/styles.sass",
39
- "lib/rdoc/discover.rb"
40
- ]
41
- s.homepage = "https://github.com/rdoc/hanna-nouveau"
42
- s.licenses = ["MIT"]
43
- s.require_paths = ["lib"]
44
- s.rubygems_version = "1.8.25"
45
- s.summary = "A rework of the Hanna generator for RDoc 2.5 and 3.x"
46
-
47
- if s.respond_to? :specification_version then
48
- s.specification_version = 3
49
-
50
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
51
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
52
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
53
- s.add_development_dependency(%q<rcov>, [">= 0"])
54
- s.add_development_dependency(%q<rdoc>, ["~> 3.1"])
55
- s.add_runtime_dependency(%q<haml>, ["= 3.0.25"])
56
- s.add_runtime_dependency(%q<rdoc>, ["~> 3.1"])
57
- s.add_development_dependency(%q<jeweler>, [">= 0"])
58
- s.add_development_dependency(%q<rake>, [">= 0"])
59
- else
60
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
61
- s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
62
- s.add_dependency(%q<rcov>, [">= 0"])
63
- s.add_dependency(%q<rdoc>, ["~> 3.1"])
64
- s.add_dependency(%q<haml>, ["= 3.0.25"])
65
- s.add_dependency(%q<rdoc>, ["~> 3.1"])
66
- s.add_dependency(%q<jeweler>, [">= 0"])
67
- s.add_dependency(%q<rake>, [">= 0"])
68
- end
69
- else
70
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
71
- s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
72
- s.add_dependency(%q<rcov>, [">= 0"])
73
- s.add_dependency(%q<rdoc>, ["~> 3.1"])
74
- s.add_dependency(%q<haml>, ["= 3.0.25"])
75
- s.add_dependency(%q<rdoc>, ["~> 3.1"])
76
- s.add_dependency(%q<jeweler>, [">= 0"])
77
- s.add_dependency(%q<rake>, [">= 0"])
78
- end
79
- end
80
-