Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 15
- Log:
Attempt to update Typo to a Typo SVN HEAD release from around the
time the prototype installation was set up on the RISC OS Open Limited
web site. Timestamps place this at 04-Jul so a revision from 05-Jul or
earlier was pulled and copied over the 2.6.0 tarball stable code.
- Author:
- adh
- Date:
- Sat Jul 22 23:27:35 +0100 2006
- Size:
- 3707 Bytes
1 | $:.unshift('lib') |
2 | require 'rubygems' |
3 | begin |
4 | require 'xforge' |
5 | rescue LoadError |
6 | puts "**** Warning. XForge not installed. Release tasks won't work ****" |
7 | end |
8 | require 'rake/gempackagetask' |
9 | require 'rake/contrib/rubyforgepublisher' |
10 | require 'rake/clean' |
11 | require 'rake/testtask' |
12 | require 'rake/rdoctask' |
13 | |
14 | PKG_NAME = "jabber4r" |
15 | |
16 | PKG_VERSION = "0.8.0" |
17 | PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}" |
18 | PKG_FILES = FileList[ |
19 | '[A-Z]*', |
20 | 'lib/**/*.rb' |
21 | ] |
22 | |
23 | task :default => [:gem] |
24 | |
25 | Rake::TestTask.new do |t| |
26 | t.libs << "test" |
27 | t.test_files = FileList['**/*test*.rb'] |
28 | t.verbose = true |
29 | end |
30 | |
31 | # Create a task to build the RDOC documentation tree. |
32 | rd = Rake::RDocTask.new("rdoc") do |rdoc| |
33 | rdoc.rdoc_dir = 'html' |
34 | rdoc.title = "Jabber4r" |
35 | rdoc.options << '--line-numbers' << '--inline-source' << '--main' << 'README' |
36 | rdoc.rdoc_files.include('README') |
37 | rdoc.rdoc_files.include('lib/**/*.rb') |
38 | end |
39 | |
40 | # ==================================================================== |
41 | # Create a task that will package the Rake software into distributable |
42 | # tar, zip and gem files. |
43 | |
44 | spec = Gem::Specification.new do |s| |
45 | |
46 | #### Basic information. |
47 | |
48 | s.name = PKG_NAME |
49 | s.version = PKG_VERSION |
50 | s.summary = "Jabber4r is a pure-Ruby Jabber client library" |
51 | s.description = <<-EOF |
52 | The purpose of this library is to allow Ruby applications to |
53 | talk to a Jabber IM system. Jabber is an open-source instant |
54 | messaging service, which can be learned about at http://www.jabber.org |
55 | EOF |
56 | |
57 | s.files = PKG_FILES.to_a |
58 | s.require_path = 'lib' |
59 | |
60 | #### Documentation and testing. |
61 | |
62 | s.has_rdoc = true |
63 | s.extra_rdoc_files = rd.rdoc_files.reject { |fn| fn =~ /\.rb$/ }.to_a |
64 | s.rdoc_options << |
65 | '--title' << 'Jabber4r' << |
66 | '--main' << 'README' << |
67 | '--line-numbers' |
68 | |
69 | #### Author and project details. |
70 | |
71 | s.author = "Richard Kilmer" |
72 | s.email = "rich@infoether.com" |
73 | s.rubyforge_project = "jabber4r" |
74 | s.homepage = "http://jabber4r.rubyforge.org" |
75 | end |
76 | |
77 | desc "Build Gem" |
78 | Rake::GemPackageTask.new(spec) do |pkg| |
79 | pkg.need_zip = true |
80 | pkg.need_tar = true |
81 | end |
82 | task :gem => [:test] |
83 | |
84 | # Support Tasks ------------------------------------------------------ |
85 | |
86 | def egrep(pattern) |
87 | Dir['**/*.rb'].each do |fn| |
88 | count = 0 |
89 | open(fn) do |f| |
90 | while line = f.gets |
91 | count += 1 |
92 | if line =~ pattern |
93 | puts "#{fn}:#{count}:#{line}" |
94 | end |
95 | end |
96 | end |
97 | end |
98 | end |
99 | |
100 | desc "Look for TODO and FIXME tags in the code" |
101 | task :todo do |
102 | egrep /#.*(FIXME|TODO|TBD)/ |
103 | end |
104 | |
105 | task :release => [:verify_env_vars, :release_files, :publish_doc, :publish_news] |
106 | |
107 | task :verify_env_vars do |
108 | raise "RUBYFORGE_USER environment variable not set!" unless ENV['RUBYFORGE_USER'] |
109 | raise "RUBYFORGE_PASSWORD environment variable not set!" unless ENV['RUBYFORGE_PASSWORD'] |
110 | end |
111 | |
112 | task :publish_doc => [:rdoc] do |
113 | publisher = Rake::RubyForgePublisher.new(PKG_NAME, ENV['RUBYFORGE_USER']) |
114 | publisher.upload |
115 | end |
116 | |
117 | desc "Release gem to RubyForge. MAKE SURE PKG_VERSION is aligned with the CHANGELOG file" |
118 | task :release_files => [:gem] do |
119 | release_files = FileList[ |
120 | "pkg/#{PKG_FILE_NAME}.gem" |
121 | ] |
122 | |
123 | Rake::XForge::Release.new(PKG_NAME) do |xf| |
124 | # Never hardcode user name and password in the Rakefile! |
125 | xf.user_name = ENV['RUBYFORGE_USER'] |
126 | xf.password = ENV['RUBYFORGE_PASSWORD'] |
127 | xf.files = release_files.to_a |
128 | xf.release_name = "Jabber4r #{PKG_VERSION}" |
129 | end |
130 | end |
131 | |
132 | desc "Publish news on RubyForge" |
133 | task :publish_news => [:gem] do |
134 | release_files = FileList[ |
135 | "pkg/#{PKG_FILE_NAME}.gem" |
136 | ] |
137 | |
138 | Rake::XForge::NewsPublisher.new(PKG_NAME) do |news| |
139 | # Never hardcode user name and password in the Rakefile! |
140 | news.user_name = ENV['RUBYFORGE_USER'] |
141 | news.password = ENV['RUBYFORGE_PASSWORD'] |
142 | end |
143 | end |