minglemingle 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGES ADDED
@@ -0,0 +1,4 @@
1
+ = MingleMingle Changelog
2
+ * release 0.0.1: fit with Mingle 2.0 REST API
3
+
4
+
@@ -0,0 +1,203 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
203
+
data/README ADDED
@@ -0,0 +1,79 @@
1
+ = MingleMingle
2
+
3
+ Supporting MingleMingle version: 0.0.x
4
+
5
+ This package contains MingleMingle, a Mingle command line tool based on the Mingle REST api.
6
+
7
+ MingleMingle has the following features integrating with Mingle:
8
+
9
+ * run transition
10
+ * show card
11
+ * show card list view
12
+ * show team member info
13
+ * commit code with running transition
14
+
15
+ == Download
16
+
17
+ The latest version of MingleMingle can be found at
18
+
19
+ * http://rubyforge.org/projects/minglemingle/
20
+
21
+ == Installation
22
+
23
+ === Normal Installation
24
+
25
+ You can install MingleMingle with the following command.
26
+
27
+ % ruby install.rb
28
+
29
+ from its distribution directory.
30
+
31
+ === GEM Installation
32
+
33
+ Download and install MingleMingle with the following.
34
+
35
+ gem install --remote minglemingle
36
+
37
+ == Online Resources
38
+
39
+ == MingleMingle References
40
+
41
+ * MingleMingle Project Page: http://rubyforge.org/projects/minglemingle
42
+ * MingleMingle API Documents: http://minglemingle.rubyforge.org
43
+
44
+ Type "mm" for an up-to-date help doc.
45
+
46
+ == License
47
+
48
+ MingleMingle is available under an Apache License Version 2.0.
49
+
50
+ == Support
51
+
52
+ The MingleMingle homepage is http://minglemingle.rubyforge.org. You can find the MingleMingle
53
+ RubyForge page at http://rubyforge.org/projects/minglemingle.
54
+
55
+ Feel free to submit commits or feature requests. If you send a patch,
56
+ remember to update the corresponding unit tests. If fact, I prefer
57
+ new feature to be submitted in the form of new unit tests.
58
+
59
+ For other information, feel free to ask on the ruby-talk mailing list or contact
60
+ mailto:swing1979@gmail.com.
61
+
62
+ == Usage
63
+
64
+ Type "mm" for an up-to-date help doc.
65
+
66
+ = Other stuff
67
+
68
+ Author:: Li Xiao <swing1979@gmail.com>
69
+ Requires:: Ruby 1.8.6 or later
70
+ License:: Copyright 2008 by Li Xiao.
71
+ Released under an Apache License Version 2.0. See the LICENSE file
72
+ included in the distribution.
73
+
74
+ == Warranty
75
+
76
+ This software is provided "as is" and without any express or
77
+ implied warranties, including, without limitation, the implied
78
+ warranties of merchantibility and fitness for a particular
79
+ purpose.
@@ -0,0 +1,349 @@
1
+ # Rakefile for MingleMingle -*- ruby -*-
2
+
3
+ # Copyright 2007 by Li Xiao (swing1979@gmail.com)
4
+ # All rights reserved.
5
+
6
+ $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/lib')
7
+ require 'mm'
8
+
9
+ require 'rake/clean'
10
+ require 'rake/testtask'
11
+ require 'rake/rdoctask'
12
+
13
+ begin
14
+ require 'rubygems'
15
+ require 'rake/gempackagetask'
16
+ rescue Exception
17
+ nil
18
+ end
19
+ CLEAN.include('**/*.o', '*.dot')
20
+ CLOBBER.include('TAGS')
21
+ CLOBBER.include('coverage', 'rcov_aggregate')
22
+
23
+ def announce(msg='')
24
+ STDERR.puts msg
25
+ end
26
+
27
+ if `ruby -Ilib ./bin/mm` =~ /mingle mingle, version ([0-9.]+)$/
28
+ CURRENT_VERSION = $1
29
+ else
30
+ CURRENT_VERSION = "0.0.0"
31
+ end
32
+
33
+ $package_version = CURRENT_VERSION
34
+
35
+ SRC_RB = FileList['lib/**/*.rb', 'lib/**/*.rake']
36
+
37
+ # The default task is run if rake is given no explicit arguments.
38
+
39
+ desc "Default Task"
40
+ task :default => :test_all
41
+
42
+ # Test Tasks ---------------------------------------------------------
43
+ task :dbg do |t|
44
+ puts "Arguments are: #{t.args.join(', ')}"
45
+ end
46
+
47
+ # Common Abbreviations ...
48
+
49
+ task :test_all => [:test_units, :tf]
50
+ task :tu => :test_units
51
+ task :tf => :test_functionals
52
+ task :test => :test_units
53
+
54
+ Rake::TestTask.new(:test_units) do |t|
55
+ t.test_files = FileList['test/*test.rb']
56
+ t.warning = true
57
+ t.verbose = false
58
+ end
59
+
60
+ Rake::TestTask.new(:test_functionals) do |t|
61
+ t.test_files = FileList['test/scenario*.rb']
62
+ t.warning = true
63
+ t.verbose = false
64
+ end
65
+
66
+ begin
67
+ require 'rcov/rcovtask'
68
+
69
+ Rcov::RcovTask.new do |t|
70
+ t.libs << "test"
71
+ t.rcov_opts = [
72
+ '-xRakefile', '-xrakefile', '-xpublish.rf', '--text-report',
73
+ ]
74
+ t.test_files = FileList[
75
+ 'test/*test.rb'
76
+ ]
77
+ t.output_dir = 'coverage'
78
+ t.verbose = true
79
+ end
80
+ rescue LoadError
81
+ # No rcov available
82
+ end
83
+
84
+ # Install MingleMingle using the standard install.rb script.
85
+
86
+ desc "Install the application"
87
+ task :install do
88
+ ruby "install.rb"
89
+ end
90
+
91
+ # Create a task to build the RDOC documentation tree.
92
+
93
+ rd = Rake::RDocTask.new("rdoc") { |rdoc|
94
+ rdoc.rdoc_dir = 'html'
95
+ # rdoc.template = 'kilmer'
96
+ # rdoc.template = 'css2'
97
+ rdoc.template = 'doc/jamis.rb'
98
+ rdoc.title = "Mingle Mingle"
99
+ rdoc.options << '--line-numbers' << '--inline-source' <<
100
+ '--main' << 'README' <<
101
+ '--title' << '"Mingle Mingle'
102
+ rdoc.rdoc_files.include('README', 'LICENSE.txt', 'TODO', 'CHANGES')
103
+ rdoc.rdoc_files.include('lib/**/*.rb', 'doc/**/*.rdoc')
104
+ }
105
+
106
+ # ====================================================================
107
+ # Create a task that will package the Mingle Mingle software into distributable
108
+ # tar, zip and gem files.
109
+
110
+ PKG_FILES = FileList[
111
+ 'install.rb',
112
+ '[A-Z]*',
113
+ 'bin/**/*',
114
+ 'lib/**/*.rb',
115
+ 'lib/**/*.rake',
116
+ 'test/**/*.rb',
117
+ 'doc/**/*'
118
+ ]
119
+ PKG_FILES.exclude('doc/example/*.o')
120
+ PKG_FILES.exclude(%r{doc/example/main$})
121
+
122
+ if ! defined?(Gem)
123
+ puts "Package Target requires RubyGEMs"
124
+ else
125
+ spec = Gem::Specification.new do |s|
126
+
127
+ #### Basic information.
128
+
129
+ s.name = 'minglemingle'
130
+ s.version = $package_version
131
+ s.summary = "MingleMingle is a Mingle command line tool based on the Mingle REST api."
132
+
133
+ #### Dependencies and requirements.
134
+
135
+ s.add_dependency('activeresource', '> 2.0.1')
136
+ #s.requirements << ""
137
+
138
+ #### Which files are to be included in this gem? Everything! (Except SVN directories.)
139
+
140
+ s.files = PKG_FILES.to_a.delete_if {|item| item.include?(".svn")}
141
+
142
+ #### Load-time details: library and application (you will need one or both).
143
+
144
+ s.require_path = 'lib' # Use these for libraries.
145
+
146
+ s.bindir = "bin" # Use these for applications.
147
+ s.executables = ["mm"]
148
+ s.default_executable = "mm"
149
+
150
+ #### Documentation and testing.
151
+
152
+ s.has_rdoc = true
153
+ #s.extra_rdoc_files = rd.rdoc_files.reject { |fn| fn =~ /\.rb$/ }.to_a
154
+ #s.rdoc_options = rd.options
155
+
156
+ #### Author and project details.
157
+
158
+ s.author = "Li Xiao"
159
+ s.email = "swing1979@gmail.com"
160
+ s.homepage = "http://minglemingle.rubyforge.org"
161
+ s.rubyforge_project = "minglemingle"
162
+ # if ENV['CERT_DIR']
163
+ # s.signing_key = File.join(ENV['CERT_DIR'], 'gem-private_key.pem')
164
+ # s.cert_chain = [File.join(ENV['CERT_DIR'], 'gem-public_cert.pem')]
165
+ # end
166
+ end
167
+
168
+ package_task = Rake::GemPackageTask.new(spec) do |pkg|
169
+ #pkg.need_zip = true
170
+ #pkg.need_tar = true
171
+ end
172
+ end
173
+
174
+ # Misc tasks =========================================================
175
+
176
+ def count_lines(filename)
177
+ lines = 0
178
+ codelines = 0
179
+ open(filename) { |f|
180
+ f.each do |line|
181
+ lines += 1
182
+ next if line =~ /^\s*$/
183
+ next if line =~ /^\s*#/
184
+ codelines += 1
185
+ end
186
+ }
187
+ [lines, codelines]
188
+ end
189
+
190
+ def show_line(msg, lines, loc)
191
+ printf "%6s %6s %s\n", lines.to_s, loc.to_s, msg
192
+ end
193
+
194
+ desc "Count lines in the main MingleMingle file"
195
+ task :lines do
196
+ total_lines = 0
197
+ total_code = 0
198
+ show_line("File Name", "LINES", "LOC")
199
+ SRC_RB.each do |fn|
200
+ lines, codelines = count_lines(fn)
201
+ show_line(fn, lines, codelines)
202
+ total_lines += lines
203
+ total_code += codelines
204
+ end
205
+ show_line("TOTAL", total_lines, total_code)
206
+ end
207
+
208
+ # Define an optional publish target in an external file. If the
209
+ # publish.rf file is not found, the publish targets won't be defined.
210
+
211
+ load "publish.rf" if File.exist? "publish.rf"
212
+
213
+ # Support Tasks ------------------------------------------------------
214
+
215
+ RUBY_FILES = FileList['**/*.rb'].exclude('pkg')
216
+
217
+ desc "Look for TODO and FIXME tags in the code"
218
+ task :todo do
219
+ RUBY_FILES.egrep(/#.*(FIXME|TODO|TBD)/)
220
+ end
221
+
222
+ desc "Look for Debugging print lines"
223
+ task :dbg do
224
+ RUBY_FILES.egrep(/\bDBG|\bbreakpoint\b/)
225
+ end
226
+
227
+ desc "List all ruby files"
228
+ task :rubyfiles do
229
+ puts RUBY_FILES
230
+ puts FileList['bin/*'].exclude('bin/*.rb')
231
+ end
232
+ task :rf => :rubyfiles
233
+
234
+ desc "Create a TAGS file"
235
+ task :tags => "TAGS"
236
+
237
+ TAGS = 'xctags -e'
238
+
239
+ file "TAGS" => RUBY_FILES do
240
+ puts "Makings TAGS"
241
+ sh "#{TAGS} #{RUBY_FILES}", :verbose => false
242
+ end
243
+
244
+ # --------------------------------------------------------------------
245
+ # Creating a release
246
+
247
+ task :update_site do
248
+ puts %x[scp -r html/* lixiao@rubyforge.org:/var/www/gforge-projects/minglemingle/]
249
+ end
250
+
251
+ task :noop
252
+
253
+ desc "[rel, reuse, reltest] Make a new release"
254
+ task :release => [
255
+ :prerelease,
256
+ :clobber,
257
+ :test_all,
258
+ :update_version,
259
+ :package,
260
+ :tag] do
261
+
262
+ announce
263
+ announce "**************************************************************"
264
+ announce "* Release #{$package_version} Complete."
265
+ announce "* Packages ready to upload."
266
+ announce "**************************************************************"
267
+ announce
268
+ end
269
+
270
+ # Validate that everything is ready to go for a release.
271
+ desc "[rel, reuse, reltest]"
272
+ task :prerelease do |t, rel, reuse, reltest|
273
+ $package_version = rel
274
+ announce
275
+ announce "**************************************************************"
276
+ announce "* Making RubyGem Release #{$package_version}"
277
+ announce "* (current version #{CURRENT_VERSION})"
278
+ announce "**************************************************************"
279
+ announce
280
+
281
+ # Is a release number supplied?
282
+ unless rel
283
+ fail "Usage: rake release[X.Y.Z] [REUSE=tag_suffix]"
284
+ end
285
+
286
+ # Is the release different than the current release.
287
+ # (or is REUSE set?)
288
+ if $package_version == CURRENT_VERSION && ! reuse
289
+ fail "Current version is #{$package_version}, must specify REUSE=tag_suffix to reuse version"
290
+ end
291
+
292
+ # Are all source files checked in?
293
+ if reltest
294
+ announce "Release Task Testing, skipping checked-in file test"
295
+ else
296
+ announce "Checking for unchecked-in files..."
297
+ data = `svn st`
298
+ unless data =~ /^$/
299
+ abort "svn status is not clean ... do you have unchecked-in files?"
300
+ end
301
+ announce "No outstanding checkins found ... OK"
302
+ end
303
+ end
304
+
305
+ desc "[rel, reuse, reltest]"
306
+ task :update_version => [:prerelease] do |t, rel, reuse, reltest|
307
+ if rel == CURRENT_VERSION
308
+ announce "No version change ... skipping version update"
309
+ else
310
+ announce "Updating MingleMingle version to #{rel}"
311
+ open("lib/mm.rb") do |mmin|
312
+ open("lib/mm.rb.new", "w") do |mmout|
313
+ mmin.each do |line|
314
+ if line =~ /^VERSION\s*=\s*/
315
+ mmout.puts " VERSION = '#{rel}'"
316
+ else
317
+ mmout.puts line
318
+ end
319
+ end
320
+ end
321
+ end
322
+ mv "lib/mm.rb.new", "lib/mm.rb"
323
+ if reltest
324
+ announce "Release Task Testing, skipping commiting of new version"
325
+ else
326
+ sh %{svn commit -m "Updated to version #{rel}" lib/mm.rb} # "
327
+ end
328
+ end
329
+ end
330
+
331
+ desc "[rel, reuse, reltest] Tag all the CVS files with the latest release number (REL=x.y.z)"
332
+ task :tag => [:prerelease] do |t, rel, reuse, reltest|
333
+ reltag = "REL_#{rel.gsub(/\./, '_')}"
334
+ reltag << reuse.gsub(/\./, '_') if reuse
335
+ announce "Tagging Repository with [#{reltag}]"
336
+ if reltest
337
+ announce "Release Task Testing, skipping CVS tagging"
338
+ else
339
+ sh %{svn copy svn+ssh://rubyforge.org/var/svn/minglemingle/trunk svn+ssh://rubyforge.org/var/svn/minglemingle/tags/#{reltag} -m 'Commiting release #{reltag}'}
340
+ end
341
+ end
342
+
343
+ desc "Install the jamis RDoc template"
344
+ task :install_jamis_template do
345
+ require 'rbconfig'
346
+ dest_dir = File.join(Config::CONFIG['rubylibdir'], "rdoc/generators/template/html")
347
+ fail "Unabled to write to #{dest_dir}" unless File.writable?(dest_dir)
348
+ install "doc/jamis.rb", dest_dir, :verbose => true
349
+ end