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 +18 -0
- data/Rakefile +6 -6
- data/lib/rdoc/generators/template/html/resh/resh.rb +2 -0
- metadata +1 -1
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.
|
|
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
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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.'
|