resh 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README CHANGED
@@ -29,8 +29,26 @@ RubyGems install this to GEMHOME, so raw rdoc command is not able to find
29
29
  Any other gem loaded context, above option is not required.
30
30
 
31
31
  * Rake::RDocTask
32
+
33
+ Rake::RDocTask.new do |rdoc|
34
+ rdoc.rdoc_dir = 'html'
35
+ rdoc.options += RDOC_OPTS
36
+ rdoc.template = "resh"
37
+ if ENV['DOC_FILES']
38
+ rdoc.rdoc_files.include(ENV['DOC_FILES'].split(/,¥s*/))
39
+ else
40
+ rdoc.rdoc_files.include('README', 'Changelog')
41
+ rdoc.rdoc_files.include('examples/simple.rb')
42
+ rdoc.rdoc_files.include('lib/**/*.rb')
43
+ rdoc.rdoc_files.include('ext/**/*.c')
44
+ end
45
+ end
46
+
47
+
32
48
  * ~/.gemrc
33
49
 
50
+ rdoc: --template resh
51
+
34
52
  == Copyright
35
53
 
36
54
  Author:: cho45 <cho45@lowreal.net>
data/Rakefile CHANGED
@@ -5,6 +5,7 @@ require 'rake/testtask'
5
5
  require 'rake/packagetask'
6
6
  require 'rake/gempackagetask'
7
7
  require 'rake/rdoctask'
8
+ require 'rake/contrib/sshpublisher'
8
9
  require 'rake/contrib/rubyforgepublisher'
9
10
  require 'rubyforge'
10
11
  require 'fileutils'
@@ -17,7 +18,7 @@ DESCRIPTION = "A RDoc template."
17
18
  RUBYFORGE_PROJECT = "lowreal"
18
19
  HOMEPATH = "http://coderepos.org/share/wiki/Resh"
19
20
  BIN_FILES = %w( )
20
- VERS = "0.0.1"
21
+ VERS = "0.0.2"
21
22
 
22
23
  REV = File.read(".svn/entries")[/committed-rev="(d+)"/, 1] rescue nil
23
24
  CLEAN.include ['**/.*.sw?', '*.gem', '.config']
@@ -106,11 +107,10 @@ end
106
107
 
107
108
  desc "Publish to RubyForge"
108
109
  task :rubyforge => [:rdoc, :package] do
109
- SshDirPublisher.new(
110
- "cho45@rubyforge.org",
111
- "/var/www/gforge-projects/#{RUBYFORGE_PROJECT}/#{NAME}",
112
- "html"
113
- ).upload
110
+ @local_dir = "html"
111
+ @host = "cho45@rubyforge.org"
112
+ @remote_dir = "/var/www/gforge-projects/#{RUBYFORGE_PROJECT}/#{NAME}"
113
+ sh %{scp -rq #{@local_dir} #{@host}:#{@remote_dir}}
114
114
  end
115
115
 
116
116
  desc 'Package and upload the release to rubyforge.'
@@ -83,7 +83,9 @@ class ::Generators::HTMLGenerator
83
83
  }
84
84
  end
85
85
 
86
+ # Not used
86
87
  def gen_an_index(collection, title, template, filename)
88
+ return
87
89
  res = []
88
90
  collection.sort.each do |f|
89
91
  if f.document_self
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: resh
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.1
6
+ version: 0.0.2
7
7
  date: 2007-10-09 00:00:00 +09:00
8
8
  summary: A RDoc template.
9
9
  require_paths: