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 CHANGED
@@ -1,5 +1,13 @@
1
1
  = XForge Changelog
2
2
 
3
- == Version 0.1.0
3
+ == Version 0.1.2
4
+
5
+ * Fixed RDoc for gem
6
+
7
+ == Version 0.1.1
8
+
9
+ * Rakefile: Don't include old gems in release.
10
+
11
+ == Version 0.1
4
12
 
5
13
  * Added support for file releases
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
- PKG_VERSION = "0.1.1"
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 => [:gem] do
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
- 'pkg/*.gem',
103
- 'CHANGES'
113
+ "pkg/#{PKG_FILE_NAME}.gem",
114
+ "CHANGES"
104
115
  ]
105
116
 
106
- Rake::XForge::Release.new('xforge') do |xf|
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']
@@ -0,0 +1,2 @@
1
+ * user_name
2
+ * password
@@ -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
  #
@@ -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.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"