toy-sdoc 0.2.14.1 → 0.2.15
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +6 -3
- data/VERSION.yml +1 -1
- data/lib/sdoc/c_parser_fix.rb +2 -2
- data/lib/sdoc/generator/shtml.rb +2 -1
- data/lib/sdoc/generator/template/direct/resources/css/main.css +15 -0
- data/sdoc.gemspec +6 -3
- metadata +2 -2
data/Rakefile
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'pathname'
|
1
2
|
require 'rake/testtask'
|
2
3
|
require 'rake/gempackagetask'
|
3
4
|
|
@@ -35,9 +36,11 @@ begin
|
|
35
36
|
|
36
37
|
desc "Replace system gem with symlink to this folder"
|
37
38
|
task 'ghost' do
|
38
|
-
|
39
|
-
|
40
|
-
|
39
|
+
gem_path = Pathname(Gem.searcher.find(echoe.name).full_gem_path)
|
40
|
+
current_path = Pathname('.').expand_path
|
41
|
+
cmd = gem_path.writable? && gem_path.parent.writable? ? %w() : %w(sudo)
|
42
|
+
system(*cmd + %W[rm -r #{gem_path}])
|
43
|
+
system(*cmd + %W[ln -s #{current_path} #{gem_path}])
|
41
44
|
end
|
42
45
|
rescue LoadError
|
43
46
|
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
data/VERSION.yml
CHANGED
data/lib/sdoc/c_parser_fix.rb
CHANGED
data/lib/sdoc/generator/shtml.rb
CHANGED
@@ -194,9 +194,10 @@ class RDoc::Generator::SHtml
|
|
194
194
|
modulename = klass.module? ? '' : (klass.superclass ? (String === klass.superclass ? klass.superclass : klass.superclass.full_name) : '')
|
195
195
|
index[:searchIndex].push( search_string(klass.name) )
|
196
196
|
index[:longSearchIndex].push( search_string(klass.parent.full_name) )
|
197
|
+
files = klass.in_files.map{ |file| file.absolute_name }
|
197
198
|
index[:info].push([
|
198
199
|
klass.name,
|
199
|
-
klass.parent.full_name,
|
200
|
+
files.include?(klass.parent.full_name) ? files.first : klass.parent.full_name,
|
200
201
|
klass.path,
|
201
202
|
modulename ? " < #{modulename}" : '',
|
202
203
|
snippet(klass.comment),
|
data/sdoc.gemspec
CHANGED
@@ -1,12 +1,15 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
1
4
|
# -*- encoding: utf-8 -*-
|
2
5
|
|
3
6
|
Gem::Specification.new do |s|
|
4
7
|
s.name = %q{sdoc}
|
5
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.15"
|
6
9
|
|
7
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
11
|
s.authors = ["Volodya Kolesnikov"]
|
9
|
-
s.date = %q{2009-
|
12
|
+
s.date = %q{2009-09-27}
|
10
13
|
s.email = %q{voloko@gmail.com}
|
11
14
|
s.executables = ["sdoc", "sdoc-merge"]
|
12
15
|
s.extra_rdoc_files = [
|
@@ -68,7 +71,7 @@ Gem::Specification.new do |s|
|
|
68
71
|
s.homepage = %q{http://github.com/voloko/sdoc}
|
69
72
|
s.rdoc_options = ["--charset=UTF-8"]
|
70
73
|
s.require_paths = ["lib"]
|
71
|
-
s.rubygems_version = %q{1.3.
|
74
|
+
s.rubygems_version = %q{1.3.5}
|
72
75
|
s.summary = %q{rdoc html with javascript search index.}
|
73
76
|
|
74
77
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toy-sdoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Volodya Kolesnikov
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-09-27 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|