xforge 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +9 -1
- data/Rakefile +16 -5
- data/doc/base_attrs.rdoc +2 -0
- data/lib/rake/contrib/xforge/release.rb +1 -1
- data/lib/xforge.rb +3 -2
- metadata +2 -1
data/CHANGES
CHANGED
data/Rakefile
CHANGED
@@ -9,6 +9,7 @@
|
|
9
9
|
$:.unshift('lib')
|
10
10
|
require 'xforge'
|
11
11
|
require 'rake/gempackagetask'
|
12
|
+
require 'rake/contrib/rubyforgepublisher'
|
12
13
|
require 'rake/clean'
|
13
14
|
require 'rake/testtask'
|
14
15
|
require 'rake/rdoctask'
|
@@ -23,13 +24,16 @@ rd = Rake::RDocTask.new("rdoc") { |rdoc|
|
|
23
24
|
rdoc.options << '--line-numbers' << '--inline-source' << '--main' << 'README'
|
24
25
|
rdoc.rdoc_files.include('README', 'MIT-LICENSE', 'TODO', 'CHANGES')
|
25
26
|
rdoc.rdoc_files.include('lib/**/*.rb', 'doc/**/*.rdoc')
|
27
|
+
rdoc.rdoc_files.exclude('doc/**/*_attrs.rdoc')
|
26
28
|
}
|
27
29
|
|
28
30
|
# ====================================================================
|
29
31
|
# Create a task that will package the Rake software into distributable
|
30
32
|
# tar, zip and gem files.
|
31
33
|
|
32
|
-
|
34
|
+
PKG_NAME = "xforge"
|
35
|
+
PKG_VERSION = "0.1.2"
|
36
|
+
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
|
33
37
|
PKG_FILES = FileList[
|
34
38
|
'[A-Z]*',
|
35
39
|
'lib/**/*.rb',
|
@@ -97,13 +101,20 @@ task :todo do
|
|
97
101
|
egrep /#.*(FIXME|TODO|TBD)/
|
98
102
|
end
|
99
103
|
|
100
|
-
task :release => [:
|
104
|
+
task :release => [:publish_doc, :publish_files]
|
105
|
+
|
106
|
+
task :publish_doc => [:rdoc] do
|
107
|
+
publisher = Rake::RubyForgePublisher.new(PKG_NAME, ENV['RUBYFORGE_USER'])
|
108
|
+
publisher.upload
|
109
|
+
end
|
110
|
+
|
111
|
+
task :publish_files => [:gem] do
|
101
112
|
release_files = FileList[
|
102
|
-
|
103
|
-
|
113
|
+
"pkg/#{PKG_FILE_NAME}.gem",
|
114
|
+
"CHANGES"
|
104
115
|
]
|
105
116
|
|
106
|
-
Rake::XForge::Release.new(
|
117
|
+
Rake::XForge::Release.new(PKG_NAME) do |xf|
|
107
118
|
# Never hardcode user name and password in the Rakefile!
|
108
119
|
xf.user_name = ENV['RUBYFORGE_USER']
|
109
120
|
xf.password = ENV['RUBYFORGE_PASSWORD']
|
data/doc/base_attrs.rdoc
ADDED
@@ -15,7 +15,7 @@ module Rake
|
|
15
15
|
#
|
16
16
|
# While defaults are nice, you may want a little more control. You can specify additional attributes:
|
17
17
|
#
|
18
|
-
# :include: base_attrs.rdoc
|
18
|
+
# :include: /doc/base_attrs.rdoc
|
19
19
|
# * files - an array of files that should go into the release
|
20
20
|
# * release_name - name of the release
|
21
21
|
#
|
data/lib/xforge.rb
CHANGED
@@ -180,6 +180,7 @@ module XForge
|
|
180
180
|
end
|
181
181
|
|
182
182
|
class XFile # :nodoc:
|
183
|
+
|
183
184
|
# extension => [mime_type, rubyforge_bin_type_id, rubyforge_src_type_id]
|
184
185
|
FILE_TYPES = {
|
185
186
|
".deb" => ["application/octet-stream", 1000],
|
@@ -191,8 +192,8 @@ module XForge
|
|
191
192
|
".gz" => ["application/octet-stream", 3110, 5020],
|
192
193
|
".jpg" => ["application/octet-stream", 8000],
|
193
194
|
".jpeg" => ["application/octet-stream", 8000],
|
194
|
-
".txt" => ["text/plain", 8100],
|
195
|
-
".html" => ["text/html", 8200],
|
195
|
+
".txt" => ["text/plain", 8100, 8100],
|
196
|
+
".html" => ["text/html", 8200, 8200],
|
196
197
|
".pdf" => ["application/octet-stream", 8300],
|
197
198
|
".ebuild" => ["application/octet-stream", 1300],
|
198
199
|
".exe" => ["application/octet-stream", 1100],
|
metadata
CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.8.8
|
|
3
3
|
specification_version: 1
|
4
4
|
name: xforge
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.1.
|
6
|
+
version: 0.1.2
|
7
7
|
date: 2005-07-18
|
8
8
|
summary: Ruby based make-like utility.
|
9
9
|
require_paths:
|
@@ -37,6 +37,7 @@ files:
|
|
37
37
|
- lib/rake/contrib/xforge.rb
|
38
38
|
- lib/rake/contrib/xforge/base.rb
|
39
39
|
- lib/rake/contrib/xforge/release.rb
|
40
|
+
- doc/base_attrs.rdoc
|
40
41
|
test_files: []
|
41
42
|
rdoc_options:
|
42
43
|
- "--title"
|