xforge 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +28 -0
- data/Rakefile +15 -14
- data/lib/rake/contrib/xforge/release.rb +1 -1
- data/lib/xforge/version_parser.rb +0 -1
- data/lib/xforge.rb +4 -4
- metadata +1 -1
data/CHANGES
CHANGED
@@ -1,5 +1,33 @@
|
|
1
1
|
= XForge Changelog
|
2
2
|
|
3
|
+
== Version 0.1.4
|
4
|
+
|
5
|
+
This is the first functional release of XForge, a Ruby library and Rake task to automate release of
|
6
|
+
files on RubyForge and other SourceForge clones.
|
7
|
+
|
8
|
+
It's as simple as this:
|
9
|
+
|
10
|
+
require 'xforge'
|
11
|
+
|
12
|
+
desc "Create a new release on RubyForge"
|
13
|
+
task :publish_files => [:gem] do
|
14
|
+
release_files = FileList[
|
15
|
+
"pkg/#{PKG_FILE_NAME}.gem"
|
16
|
+
]
|
17
|
+
|
18
|
+
Rake::XForge::Release.new(PKG_NAME) do |release|
|
19
|
+
# Never hardcode user name and password in the Rakefile!
|
20
|
+
release.user_name = ENV['RUBYFORGE_USER']
|
21
|
+
release.password = ENV['RUBYFORGE_PASSWORD']
|
22
|
+
release.files = release_files.to_a
|
23
|
+
release.release_name = "XForge #{PKG_VERSION}"
|
24
|
+
# The rest of the options are defaults (among others, release_notes and release_changes, parsed from CHANGES)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
* Added logic for parsing of CHANGES files and include it in the release notes when publishing.
|
29
|
+
* Wrote some proper release notes for once.
|
30
|
+
|
3
31
|
== Version 0.1.3
|
4
32
|
|
5
33
|
* Added logic for parsing of CHANGES files and include it in the release notes when publishing.
|
data/Rakefile
CHANGED
@@ -14,7 +14,16 @@ require 'rake/clean'
|
|
14
14
|
require 'rake/testtask'
|
15
15
|
require 'rake/rdoctask'
|
16
16
|
|
17
|
-
|
17
|
+
PKG_NAME = "xforge"
|
18
|
+
PKG_VERSION = "0.1.4"
|
19
|
+
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
|
20
|
+
PKG_FILES = FileList[
|
21
|
+
'[A-Z]*',
|
22
|
+
'lib/**/*.rb',
|
23
|
+
'doc/**/*'
|
24
|
+
]
|
25
|
+
|
26
|
+
task :default => [:gem]
|
18
27
|
|
19
28
|
Rake::TestTask.new do |t|
|
20
29
|
t.libs << "test"
|
@@ -39,15 +48,6 @@ end
|
|
39
48
|
# Create a task that will package the Rake software into distributable
|
40
49
|
# tar, zip and gem files.
|
41
50
|
|
42
|
-
PKG_NAME = "xforge"
|
43
|
-
PKG_VERSION = "0.1.3"
|
44
|
-
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
|
45
|
-
PKG_FILES = FileList[
|
46
|
-
'[A-Z]*',
|
47
|
-
'lib/**/*.rb',
|
48
|
-
'doc/**/*'
|
49
|
-
]
|
50
|
-
|
51
51
|
spec = Gem::Specification.new do |s|
|
52
52
|
|
53
53
|
#### Basic information.
|
@@ -84,6 +84,7 @@ Rake::GemPackageTask.new(spec) do |pkg|
|
|
84
84
|
pkg.need_zip = true
|
85
85
|
pkg.need_tar = true
|
86
86
|
end
|
87
|
+
task :gem => [:test]
|
87
88
|
|
88
89
|
# Support Tasks ------------------------------------------------------
|
89
90
|
|
@@ -106,17 +107,17 @@ task :todo do
|
|
106
107
|
egrep /#.*(FIXME|TODO|TBD)/
|
107
108
|
end
|
108
109
|
|
109
|
-
task :release => [:
|
110
|
+
task :release => [:release_files, :publish_doc]
|
110
111
|
|
111
112
|
task :publish_doc => [:rdoc] do
|
112
113
|
publisher = Rake::RubyForgePublisher.new(PKG_NAME, ENV['RUBYFORGE_USER'])
|
113
114
|
publisher.upload
|
114
115
|
end
|
115
116
|
|
116
|
-
|
117
|
+
desc "Release files on RubyForge"
|
118
|
+
task :release_files => [:gem] do
|
117
119
|
release_files = FileList[
|
118
|
-
"pkg/#{PKG_FILE_NAME}.gem"
|
119
|
-
"CHANGES"
|
120
|
+
"pkg/#{PKG_FILE_NAME}.gem"
|
120
121
|
]
|
121
122
|
|
122
123
|
Rake::XForge::Release.new(PKG_NAME) do |release|
|
@@ -62,7 +62,7 @@ module Rake
|
|
62
62
|
vp = ::XForge::VersionParser.new
|
63
63
|
version = vp.parse("CHANGES", PKG_VERSION)
|
64
64
|
@release_notes = version.release_notes
|
65
|
-
@release_changes = version.release_changes.join("\n")
|
65
|
+
@release_changes = "* " + version.release_changes.join("\n* ")
|
66
66
|
rescue => e
|
67
67
|
STDERR.puts("Couldn't parse release info from CHANGES")
|
68
68
|
STDERR.puts(e.message)
|
data/lib/xforge.rb
CHANGED
@@ -106,13 +106,13 @@ module XForge
|
|
106
106
|
release_id = nil
|
107
107
|
|
108
108
|
puts "About to release '#{release_name}'"
|
109
|
-
puts "
|
109
|
+
puts "Files:"
|
110
110
|
puts " " + filenames.join("\n ")
|
111
|
-
puts "
|
111
|
+
puts "\nRelease Notes:\n"
|
112
112
|
puts release_notes
|
113
|
-
puts "
|
113
|
+
puts "\nRelease Changes:\n"
|
114
114
|
puts release_changes
|
115
|
-
puts "
|
115
|
+
puts "\nRelease Settings:\n"
|
116
116
|
puts "Preformatted: #{preformatted}"
|
117
117
|
puts "Processor: #{processor}"
|
118
118
|
puts "\nStarting release..."
|