public
Fork of Caged/gitnub
Description: A Gitk-like application written in RubyCocoa that looks like it belongs on a Mac. See the wiki for downloads and screenshots.
Homepage: http://alternateidea.com
Clone URL: git://github.com/eventualbuddha/gitnub.git
Search Repo:
Add grit as a submodule and cleanup the directory structure a bit
Caged (author)
Wed Apr 23 00:22:42 -0700 2008
commit  f9b9f1ab72d5f5532afac452aca6acf1752da76e
tree    8aed2b133a1eee292af579e7121bd7ea7b96622d
parent  f7b3f6bb486c211ed4419560d52125b14b979087
...
 
 
 
...
1
2
3
0
@@ -1 +1,4 @@
0
+[submodule "lib/grit"]
0
+ path = lib/grit
0
+ url = git://github.com/mojombo/grit.git
...
9
10
11
12
 
13
14
 
15
16
17
...
9
10
11
 
12
13
 
14
15
16
17
0
@@ -9,9 +9,9 @@
0
 require 'rubygems'
0
 require 'pathname'
0
 require 'osx/cocoa'
0
-require 'mime-types/lib/mime/types'
0
+require 'lib/mime-types/lib/mime/types'
0
 require 'open4'
0
-require 'grit/lib/grit'
0
+require 'lib/grit/lib/grit'
0
 require 'lib/time_extensions'
0
 require 'InfoWindowController'
0
 
...
10
11
12
13
14
15
16
...
25
26
27
28
29
30
31
...
261
262
263
264
265
266
267
268
...
10
11
12
 
13
14
15
...
24
25
26
 
27
28
29
...
259
260
261
 
 
262
263
264
0
@@ -10,7 +10,6 @@
0
     0A4023590D949E0E00659E01 /* ImageLoadOperation.rb in Resources */ = {isa = PBXBuildFile; fileRef = 0A4023580D949E0E00659E01 /* ImageLoadOperation.rb */; };
0
     0ABA3B1B0D89E53E004B6667 /* nub in Resources */ = {isa = PBXBuildFile; fileRef = 0ABA3B1A0D89E53E004B6667 /* nub */; };
0
     283254680D8B792500D99366 /* lib in Resources */ = {isa = PBXBuildFile; fileRef = 283254650D8B792500D99366 /* lib */; };
0
- 285BB47C0D8306C60027980C /* mime-types in Resources */ = {isa = PBXBuildFile; fileRef = 285BB4690D8306C60027980C /* mime-types */; };
0
     285BB5320D849C890027980C /* TexturedWindow.rb in Resources */ = {isa = PBXBuildFile; fileRef = 285BB52F0D849C890027980C /* TexturedWindow.rb */; };
0
     285BB53D0D849DD20027980C /* added.png in Resources */ = {isa = PBXBuildFile; fileRef = 285BB5380D849DD20027980C /* added.png */; };
0
     285BB53E0D849DD20027980C /* committer.png in Resources */ = {isa = PBXBuildFile; fileRef = 285BB5390D849DD20027980C /* committer.png */; };
0
@@ -25,7 +24,6 @@
0
     2888530D0D7CEA5200862D67 /* gitnub-icon.icns in Resources */ = {isa = PBXBuildFile; fileRef = 2888530C0D7CEA5200862D67 /* gitnub-icon.icns */; };
0
     288853C90D7E06A600862D67 /* commit.html in Resources */ = {isa = PBXBuildFile; fileRef = 288853C80D7E06A600862D67 /* commit.html */; };
0
     288853CD0D7E074B00862D67 /* style.css in Resources */ = {isa = PBXBuildFile; fileRef = 288853CC0D7E074B00862D67 /* style.css */; };
0
- 288854910D7E352C00862D67 /* grit in Resources */ = {isa = PBXBuildFile; fileRef = 288854540D7E352C00862D67 /* grit */; };
0
     288CB41A0D8789DD0092B5CC /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 288CB4180D8789DD0092B5CC /* MainMenu.xib */; };
0
     288CB41D0D878A1C0092B5CC /* Info.xib in Resources */ = {isa = PBXBuildFile; fileRef = 288CB41C0D878A1C0092B5CC /* Info.xib */; };
0
     4D922CA80D8889DB002A5539 /* CommitSummaryCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 4D922CA60D8889DB002A5539 /* CommitSummaryCell.h */; };
0
@@ -261,8 +259,6 @@
0
         2888530D0D7CEA5200862D67 /* gitnub-icon.icns in Resources */,
0
         288853C90D7E06A600862D67 /* commit.html in Resources */,
0
         288853CD0D7E074B00862D67 /* style.css in Resources */,
0
- 288854910D7E352C00862D67 /* grit in Resources */,
0
- 285BB47C0D8306C60027980C /* mime-types in Resources */,
0
         285BB5320D849C890027980C /* TexturedWindow.rb in Resources */,
0
         285BB53D0D849DD20027980C /* added.png in Resources */,
0
         285BB53E0D849DD20027980C /* committer.png in Resources */,
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
0
@@ -1 +1,102 @@
0
+= MIME::Types Change Log
0
+
0
+Unless explicitly stated differently are all changes produced by Austin
0
+Ziegler <mime-types@halostatue.ca>.
0
+
0
+== MIME::Types 1.15
0
+* Removed lib/mime/type.rb to form a single MIME::Types database source. It
0
+ is unlikely that one will ever need MIME::Type without MIME::Types.
0
+* Re-synchronized the MIME type list with the sources, focusing primarily on
0
+ the IANA list.
0
+* Added more detailed source information for MIME::Type objects.
0
+* Changed MIME::Types from a module to a class with a default instance. There
0
+ should be no difference in usage.
0
+* Removed MIME::Types::DATA_VERSION; it is now an attribute on the
0
+ MIME::Types instance.
0
+* NOTE: Synchronization with the Perl version of MIME::Types is no longer a
0
+ priority as of this release. The data format and information has changed.
0
+* Removed MIME::Types.by_suffix and MIME::Types.by_mediatype.
0
+
0
+== MIME::Types 1.13.1
0
+* Fixed a problem with the installer running tests. This now works.
0
+* Improved the implementation of MIME::Type.signature?
0
+* Moved code around to use the class << self idiom instead of always
0
+ prepending the module/class name.
0
+* Added two new best-guess implementations of functions found in Perl's
0
+ MIME::Types implementation (1.13). Do not rely on these until the purpose
0
+ and implementation is stabilised.
0
+* Updated the MIME list to reflect changes noted by
0
+ Ville Skyttäville.skytta@iki.fi>.
0
+* Added a new constant to MIME::Types, DATA_VERSION. This will allow the Ruby
0
+ version number to be updated separately from the Perl version while keeping
0
+ the MIME Type list version in sync.
0
+
0
+== MIME::Types 1.13
0
+ ! WARNING: This version changes the API of MIME::Types !
0
+ ! WARNING: This version is compatible with Ruby 1.8 and higher ONLY !
0
+* Removed dependency on InstallPackage; offering 1.13 as either .tar.gz or
0
+ .gem.
0
+* Split into two files, mime/type.rb and mime/types.rb. This will make
0
+ maintaining the list of changes easier.
0
+* Changed the MIME::Type construction API. Accepts only a single String
0
+ argument (but does no named type-checking) and yields self.
0
+* Removed private methods #init_extensions, #init_encoding, and #init_system
0
+ and replaced with #extensions=, #encoding=, and #system=.
0
+* Added #default_encoding to return 'quoted-printable' or 'base64' depending
0
+ on the media type of the MIME type.
0
+* Added #raw_media_type and #raw_sub_type to provide the non-simplified
0
+ versions of the media type and subtype.
0
+* Alternative constructors MIME::Type.from_array, MIME::Type.from_hash, and
0
+ MIME::Type.from_mime_type added to compensate for the removal of named type
0
+ checking in the original constructor.
0
+* Added #to_str, #to_a, and #to_hash methods. The latter two will provide
0
+ output suitable for use in #from_array and #from_hash.
0
+* Removed "binary" encoding and enforced the use of a valid encoding string.
0
+* Added #system? returning true if the MIME::Type is an OS-specific
0
+ MIME::Type.
0
+* Added #platform? returning true if the MIME::Type is an OS-specific
0
+ MIME::Type for the current RUBY_PLATFORM.
0
+* Added #like? returning true if the simplified type matches the other value
0
+ provided. #<'application/x-excel'>.like?('application/excel') is true.
0
+* Added #complete? returning true if the MIME::Type specifies an extension
0
+ list.
0
+* Updated the MIME type list to reflect additions by Mark Overmeer for Perl's
0
+ MIME::Types 1.12 and the official IANA list as of 2004.04.06. A number of
0
+ formerly "registered" MIME types are now no longer registered (e.g.,
0
+ application/excel is now application/x-excel). This ensures that the
0
+ simplified type still works with applications, but does not report an
0
+ unregistered type as registered.
0
+* Restored MIME type list to Mark Overmeer's format to facilitate easy
0
+ exchange between the two projects.
0
+* Added additional unit tests from Mark Overmeer's 1.12 version.
0
+
0
+== MIME::Types 1.07
0
+* Changed version numbering to match Perl MIME::Types 1.07.
0
+* Re-synchronized with Mark Overmeer's list in Perl PMIME::Types 1.07.
0
+ - [NN Poster] updated the attributes for the PGP types.
0
+
0
+== MIME::Types 1.005
0
+* Changed to Phil Thomson's InstallPackage.
0
+* Added several types from Perl MIME::Types 1.005.
0
+* Cleaned up data format; some data formats will show up with proper data now.
0
+
0
+== MIME::Types 1.004
0
+* Updated to match Perl MIME::Types 1.004, links credited to Dan Puro. Adds
0
+ new reference list to http://www.indiana.edu/cgi-bin-local/mimetypes
0
+* Removed InvalidType and replaced with TypeError.
0
+* Changed instances of #type to #class.
0
+* Cleaned up how simplified versions are created.
0
+
0
+== MIME::Types 1.003
0
+* Initial release based on Perl MIME::Types 1.003.
0
+
0
+#--
0
+# MIME::Types for Ruby
0
+# http://rubyforge.org/projects/mime-types/
0
+# Copyright 2003 - 2006 Austin Ziegler.
0
+# Licensed under a MIT-style licence.
0
+#
0
+# $Id: ChangeLog,v 1.3 2006/02/12 21:27:21 austin Exp $
0
+#++
0
+# vim: sts=2 sw=2 ts=4 et ai tw=77
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
0
@@ -1 +1,17 @@
0
+Installing this package is as simple as:
0
+
0
+ % ruby setup.rb
0
+
0
+Alternatively, you can use the RubyGem version of MIME::Types available as
0
+mime-types-1.15.gem from the usual sources.
0
+
0
+#--
0
+# MIME::Types for Ruby
0
+# http://rubyforge.org/projects/mime-types/
0
+# Copyright 2003 - 2006 Austin Ziegler.
0
+# Licensed under a MIT-style licence.
0
+#
0
+# $Id: Install,v 1.3 2006/02/12 21:27:21 austin Exp $
0
+#++
0
+# vim: sts=2 sw=2 ts=4 et ai tw=77
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
0
@@ -1 +1,19 @@
0
+= MIME::Types for Ruby
0
+Homepage:: http://rubyforge.org/projects/mime-types/
0
+Copyright:: Copyright (c) 2003 - 2006 Austin Ziegler.
0
+Summary:: Ruby's licence, Perl Aristic Licence,
0
+ GNU GPL version 2 (or later)
0
+
0
+The text of the Ruby licence can be found at:
0
+http://www.ruby-lang.org/en/LICENSE.txt
0
+
0
+The text of the Perl Artistic Licence can be found at:
0
+http://www.perl.com/pub/a/language/misc/Artistic.html
0
+
0
+The text of the GNU GPL can be found at: http://www.gnu.org/copyleft/gpl.html
0
+
0
+If you do not accept one of these licences, you may not use this software.
0
+
0
+$Id: LICENCE,v 1.1 2006/02/12 21:27:21 austin Exp $
0
+# vim: sts=2 sw=2 ts=4 et ai tw=77
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
0
@@ -1 +1,31 @@
0
+= README: Mime::Types for Ruby
0
+This library allows for the identification of a file's likely MIME content
0
+type. This is release 1.15. The identification of MIME content type is based
0
+on a file's filename extensions.
0
+
0
+MIME::Types for Ruby originally based on and synchronized with MIME::Types
0
+for Perl by Mark Overmeer, copyright 2001 - 2005. As of version 1.15, the
0
+data format for the MIME::Type list has changed and the synchronization will
0
+no longer happen.
0
+
0
+Homepage:: http://mime-types.rubyforge.org/
0
+Copyright:: 2002 - 2006, Austin Ziegler
0
+ Based on prior work copyright Mark Overmeer
0
+
0
+== Licensing
0
+MIME::Types is available under three disjunctive licences, as detailed in the
0
+LICENCE file.
0
+
0
+== Requirements
0
+MIME::Types requires Ruby 1.8.2 or better.
0
+
0
+#--
0
+# MIME::Types for Ruby
0
+# http://rubyforge.org/projects/mime-types/
0
+# Copyright 2003 - 2005 Austin Ziegler.
0
+# Licensed under a MIT-style licence.
0
+#
0
+# $Id: Readme,v 1.3 2006/02/12 21:27:21 austin Exp $
0
+#++
0
+# vim: sts=2 sw=2 ts=4 et ai tw=77
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
0
@@ -1 +1,209 @@
0
+#! /usr/bin/env rake
0
+#--
0
+# MIME::Types for Ruby
0
+# http://rubyforge.org/projects/mime-types/
0
+# Copyright 2003 - 2005 Austin Ziegler.
0
+# Licensed under a MIT-style licence.
0
+#
0
+# $Id: Rakefile,v 1.8 2006/02/12 22:05:20 austin Exp $
0
+#++
0
+require 'meta_project'
0
+require 'rake/gempackagetask'
0
+require 'rake/contrib/xforge'
0
+require 'rake/clean'
0
+
0
+require 'gmailer'
0
+
0
+require 'archive/tar/minitar'
0
+require 'zlib'
0
+
0
+$LOAD_PATH.unshift('lib')
0
+
0
+require 'mime/types'
0
+
0
+$version = MIME::Types::VERSION
0
+$name = MIME::Types.to_s
0
+$project = MetaProject::Project::XForge::RubyForge.new('mime-types')
0
+$distdir = "mime-types-#$version"
0
+$tardist = "../#$distdir.tar.gz"
0
+
0
+$release_date = nil
0
+$release_date = Time.parse(ENV['RELEASE_DATE']) if ENV['RELEASE_DATE']
0
+
0
+desc "Run the tests for #$name."
0
+task :test do |t|
0
+ require 'test/unit/testsuite'
0
+ require 'test/unit/ui/console/testrunner'
0
+
0
+ runner = Test::Unit::UI::Console::TestRunner
0
+
0
+ $LOAD_PATH.unshift('tests')
0
+ $stderr.puts "Checking for test cases:" if t.verbose
0
+ Dir['tests/tc_*.rb'].each do |testcase|
0
+ $stderr.puts "\t#{testcase}" if t.verbose
0
+ load testcase
0
+ end
0
+
0
+ suite = Test::Unit::TestSuite.new($name)
0
+
0
+ ObjectSpace.each_object(Class) do |testcase|
0
+ suite << testcase.suite if testcase < Test::Unit::TestCase
0
+ end
0
+
0
+ runner.run(suite)
0
+end
0
+
0
+desc "Look for TODO and FIXME tags in the code"
0
+task :todo do
0
+ rx = %r{#.*(FIXME|TODO|TBD|DEPRECATED)}
0
+ Pathname.new(File.dirname(__FILE__)).egrep(rx) do |match|
0
+ puts match
0
+ end
0
+end
0
+
0
+spec = eval(File.read("mime-types.gemspec"))
0
+spec.version = $version
0
+desc "Build the RubyGem for #$name."
0
+task :gem => [ :test ]
0
+Rake::GemPackageTask.new(spec) do |g|
0
+ g.need_tar = false
0
+ g.need_zip = false
0
+ g.package_dir = ".."
0
+end
0
+
0
+desc "Build a #$name .tar.gz distribution."
0
+task :tar => [ $tardist ]
0
+file $tardist => [ :test ] do |t|
0
+ current = File.basename(Dir.pwd)
0
+ Dir.chdir("..") do
0
+ begin
0
+ files = %W(bin/**/* lib/**/* tests/**/* ChangeLog README LICENCE
0
+ Rakefile mime-types.gemspec setup.rb pre-setup.rb)
0
+ files = FileList[files.map { |file| File.join(current, file) }].to_a
0
+ files.map! do |dd|
0
+ ddnew = dd.gsub(/^#{current}/, $distdir)
0
+ mtime = $release_date || File.stat(dd).mtime
0
+ if File.directory?(dd)
0
+ { :name => ddnew, :mode => 0755, :dir => true, :mtime => mtime }
0
+ else
0
+ if dd =~ %r{bin/}
0
+ mode = 0755
0
+ else
0
+ mode = 0644
0
+ end
0
+ data = File.open(dd, "rb") { |ff| ff.read }
0
+ { :name => ddnew, :mode => mode, :data => data, :size =>
0
+ data.size, :mtime => mtime }
0
+ end
0
+ end
0
+
0
+ ff = File.open(t.name.gsub(%r{^\.\./}o, ''), "wb")
0
+ gz = Zlib::GzipWriter.new(ff)
0
+ tw = Archive::Tar::Minitar::Writer.new(gz)
0
+
0
+ files.each do |entry|
0
+ if entry[:dir]
0
+ tw.mkdir(entry[:name], entry)
0
+ else
0
+ tw.add_file_simple(entry[:name], entry) { |os| os.write(entry[:data]) }
0
+ end
0
+ end
0
+ ensure
0
+ tw.close if tw
0
+ gz.finish if gz
0
+ ff.close
0
+ end
0
+ end
0
+end
0
+task $tardist => [ :test ]
0
+
0
+desc "Build the RDoc documentation for #$name."
0
+task :docs do
0
+ require 'rdoc/rdoc'
0
+ rdoc_options = %W(--title #$name --main README --line-numbers)
0
+ files = FileList[*%w(README LICENCE ChangeLog bin/**/*.rb lib/**/*.rb)]
0
+ rdoc_options += files.to_a
0
+ RDoc::RDoc.new.document(rdoc_options)
0
+end
0
+
0
+task :verify_rubyforge do
0
+ raise "RUBYFORGE_USER environment variable not set!" unless ENV['RUBYFORGE_USER']
0
+ raise "RUBYFORGE_PASSWORD environment variable not set!" unless ENV['RUBYFORGE_PASSWORD']
0
+end
0
+
0
+task :verify_gmail do
0
+ raise "GMAIL_USER environment variable not set!" unless ENV['GMAIL_USER']
0
+ raise "GMAIL_PASSWORD environment variable not set!" unless ENV['GMAIL_PASSWORD']
0
+end
0
+
0
+desc "Release files on RubyForge."
0
+task :release_files => [ :verify_rubyforge, :tar, :gem ] do
0
+ release_files = FileList[$tardist, "../#$distdir.gem"]
0
+ Rake::XForge::Release.new($project) do |release|
0
+ release.user_name = ENV['RUBYFORGE_USER']
0
+ release.password = ENV['RUBYFORGE_PASSWORD']
0
+ release.files = release_files.to_a
0
+ release.release_name = "#$name #$version"
0
+ release.package_name = "mime-types"
0
+
0
+ notes = []
0
+ File.open("README") do |file|
0
+ file.each do |line|
0
+ line.chomp!
0
+ line.gsub!(/^#.*$/, '') and next
0
+ notes << line
0
+ end
0
+ end
0
+ release.release_notes = notes.join("\n")
0
+
0
+ changes = []
0
+ File.open("ChangeLog") do |file|
0
+ current = true
0
+
0
+ file.each do |line|
0
+ line.chomp!
0
+ current = false if current and line =~ /^==/
0
+ break if line.empty? and not current
0
+ changes << line
0
+ end
0
+ end
0
+ release.release_changes = changes.join("\n")
0
+ end
0
+end
0
+
0
+desc "Publish news on RubyForge"
0
+task :publish_news => [ :verify_rubyforge, :tar, :gem ] do
0
+ Rake::XForge::NewsPublisher.new($project) do |news|
0
+ news.user_name = ENV['RUBYFORGE_USER']
0
+ news.password = ENV['RUBYFORGE_PASSWORD']
0
+ news.subject = "#$name #$version Released"
0
+ news.changes_file = nil
0
+
0
+ details = []
0
+ File.open("Release-Announcement") do |file|
0
+ file.each do |line|
0
+ line.chomp!
0
+ break if line =~ /^=/
0
+ details << line
0
+ end
0
+ end
0
+ news.details = details.join("\n")
0
+ end
0
+end
0
+
0
+desc "Post a release announcement via GMail."
0
+task :email_announcement => [ :verify_gmail ] do
0
+ GMailer.connect(ENV["GMAIL_USER"], ENV["GMAIL_PASSWORD"]) do |gmail|
0
+ gmail.send :to => "ruby-talk@ruby-lang.org",
0
+ :subject => "[ANN] #$name #$version",
0
+ :body => File.read("Release-Announcement")
0
+ end
0
+end
0
+
0
+desc "Release the latest version."
0
+task :release => [ :verify_rubyforge, :verify_gmail, :release_files,
0
+ :publish_news, :email_announcement, :docs ]
0
+
0
+desc "Build everything."
0
+task :default => [ :tar, :gem ]
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506