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 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
- path = Gem.searcher.find(jewler.gemspec.name).full_gem_path
39
- system 'sudo', 'rm', '-r', path
40
- symlink File.expand_path('.'), path
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"
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 2
4
- :patch: 14
4
+ :patch: 15
@@ -1,7 +1,7 @@
1
1
  require "rdoc/parser/c"
2
2
 
3
- # New RDoc somehow misses class comemnts.
4
- # copyied this function from "2.2.2"
3
+ # New RDoc somehow misses class comments.
4
+ # copied this function from "2.2.2"
5
5
  if ['2.4.2', '2.4.3'].include? RDoc::VERSION
6
6
 
7
7
  class RDoc::Parser::C
@@ -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),
@@ -47,6 +47,21 @@ h4 {
47
47
  font-size: 1em;
48
48
  }
49
49
 
50
+ table
51
+ {
52
+ margin-bottom: 1em;
53
+ }
54
+
55
+ td, th
56
+ {
57
+ padding: 0 0.7em 0.3em 0;
58
+ }
59
+
60
+ th
61
+ {
62
+ font-weight: bold;
63
+ }
64
+
50
65
  .clear
51
66
  {
52
67
  clear: both;
@@ -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.14.1"
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-08-14}
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.4}
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.14.1
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-08-14 00:00:00 -07:00
12
+ date: 2009-09-27 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency