pluginfactory 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +286 -70
- data/Rakefile +35 -20
- data/lib/pluginfactory.rb +2 -1
- data/rake/documentation.rb +71 -0
- data/rake/helpers.rb +318 -311
- data/rake/hg.rb +15 -1
- data/rake/manual.rb +5 -5
- data/rake/packaging.rb +14 -35
- data/rake/publishing.rb +18 -62
- metadata +14 -8
- data/rake/rdoc.rb +0 -30
- data/rake/win32.rb +0 -190
data/ChangeLog
CHANGED
@@ -1,102 +1,318 @@
|
|
1
|
-
|
1
|
+
105[tip] 9b6b855f45c2 2010-03-23 13:38 -0700 ged
|
2
|
+
Added tag 1.0.6 for changeset bd09679b910d
|
2
3
|
|
3
|
-
|
4
|
-
|
4
|
+
104[1.0.6] bd09679b910d 2010-03-23 13:38 -0700 ged
|
5
|
+
Added signature for changeset db0ea352c67c
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
2004-03-08 00:07 Michael Granger <ged@FaerieMUD.org>
|
7
|
+
103 db0ea352c67c 2010-03-23 13:38 -0700 ged
|
8
|
+
Removed tag 1.0.6
|
9
9
|
|
10
|
-
|
10
|
+
102 278cfdc9f41b 2010-03-23 13:36 -0700 ged
|
11
|
+
Removing outdated/generated files.
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
2004-03-08 00:06 Michael Granger <ged@FaerieMUD.org>
|
13
|
+
101 b4d64737265f 2010-03-23 13:34 -0700 ged
|
14
|
+
Build system updates.
|
15
15
|
|
16
|
-
|
16
|
+
100 7ebf343e40b8 2009-11-11 21:33 -0800 ged
|
17
|
+
Added tag 1.0.6 for changeset 31d84e2bf3ca
|
17
18
|
|
18
|
-
|
19
|
-
|
20
|
-
2004-03-08 00:05 Michael Granger <ged@FaerieMUD.org>
|
19
|
+
99 31d84e2bf3ca 2009-11-11 21:33 -0800 ged
|
20
|
+
Added signature for changeset 1db3303a18ae
|
21
21
|
|
22
|
-
|
22
|
+
98 1db3303a18ae 2009-11-11 21:33 -0800 ged
|
23
|
+
Bumping version to 1.0.6.
|
23
24
|
|
24
|
-
|
25
|
-
|
26
|
-
- Refactored path-search code
|
27
|
-
|
28
|
-
2004-03-07 21:30 Michael Granger <ged@FaerieMUD.org>
|
25
|
+
97 2bb28ab4efd6 2009-11-11 21:32 -0800 ged
|
26
|
+
Gemspec fixes.
|
29
27
|
|
30
|
-
|
28
|
+
96 8f63b0241b69 2009-11-06 07:53 -0800 ged
|
29
|
+
Added tag 1.0.5 for changeset 791b0d9a35cc
|
31
30
|
|
32
|
-
|
33
|
-
|
34
|
-
2004-03-07 19:13 Martin Chase <stillflame@FaerieMUD.org>
|
31
|
+
95[1.0.5] 791b0d9a35cc 2009-11-06 07:53 -0800 ged
|
32
|
+
Added signature for changeset 3cd9d854ce79
|
35
33
|
|
36
|
-
|
34
|
+
94:93,47 3cd9d854ce79 2009-11-06 07:52 -0800 ged
|
35
|
+
Merged with 93:fe5667cb2942.
|
37
36
|
|
38
|
-
|
39
|
-
|
40
|
-
2004-03-07 19:07 Martin Chase <stillflame@FaerieMUD.org>
|
37
|
+
93 e816e3795c49 2009-11-06 07:49 -0800 ged
|
38
|
+
Updated build system, bumping version, migrating to gemcutter.
|
41
39
|
|
42
|
-
|
40
|
+
92 72b9a4fa46d6 2009-08-08 14:19 -0700 ged
|
41
|
+
Converted to Mercurial, updated build system.
|
43
42
|
|
44
|
-
|
45
|
-
|
46
|
-
2004-03-07 19:06 Martin Chase <stillflame@FaerieMUD.org>
|
43
|
+
91 d83b983df058 2009-02-25 17:50 +0000 deveiant
|
44
|
+
Incrementing library version.
|
47
45
|
|
48
|
-
|
46
|
+
90 d1acaf5b27bf 2009-02-25 16:52 +0000 deveiant
|
47
|
+
* Fixes for Ruby 1.9.1.
|
49
48
|
|
50
|
-
|
51
|
-
|
52
|
-
2004-03-07 19:05 Martin Chase <stillflame@FaerieMUD.org>
|
49
|
+
89 e9da3dd2a722 2009-02-23 06:34 +0000 deveiant
|
50
|
+
Start of fixes for 1.9.1.
|
53
51
|
|
54
|
-
|
55
|
-
|
52
|
+
88 0825975c74ce 2008-08-13 21:58 +0000 deveiant
|
53
|
+
Updating tags on new files.
|
56
54
|
|
57
|
-
|
58
|
-
|
59
|
-
2004-03-07 15:42 Martin Chase <stillflame@FaerieMUD.org>
|
55
|
+
87 f77c17a155f3 2008-08-13 21:57 +0000 deveiant
|
56
|
+
Removing old rake tasklib dir
|
60
57
|
|
61
|
-
|
58
|
+
86 1dc9571d428b 2008-08-13 21:57 +0000 deveiant
|
59
|
+
Converting to the new build system
|
62
60
|
|
63
|
-
|
64
|
-
|
65
|
-
2004-03-07 15:41 Martin Chase <stillflame@FaerieMUD.org>
|
61
|
+
85 f6d36785648b 2008-03-26 16:01 +0000 deveiant
|
62
|
+
* More packaging/publishing fixes.
|
66
63
|
|
67
|
-
|
64
|
+
84 c67a1083d7b8 2008-03-25 21:17 +0000 deveiant
|
65
|
+
* Fixed announcement-sending task to use SMTP+SSL via a monkeypatch to net/smtp. (Maybe package it
|
68
66
|
|
69
|
-
|
70
|
-
|
71
|
-
2004-03-07 14:36 Martin Chase <stillflame@FaerieMUD.org>
|
67
|
+
83 032613fa2adf 2008-03-25 19:36 +0000 deveiant
|
68
|
+
* Packaging and publication tasks updated.
|
72
69
|
|
73
|
-
|
70
|
+
82 04f62e495c55 2007-07-27 06:53 +0000 deveiant
|
71
|
+
Removed test runner script
|
74
72
|
|
75
|
-
|
76
|
-
|
77
|
-
2004-03-07 10:49 Martin Chase <stillflame@FaerieMUD.org>
|
73
|
+
81 c57b56593ad8 2007-07-27 06:50 +0000 deveiant
|
74
|
+
Converted test::unit tests to RSpec
|
78
75
|
|
79
|
-
|
76
|
+
80 a66bb254939c 2007-03-13 18:34 +0000 deveiant
|
77
|
+
Bumping project-version and fixing makedist problems.
|
80
78
|
|
81
|
-
|
82
|
-
|
83
|
-
2004-03-07 09:33 Martin Chase <stillflame@FaerieMUD.org>
|
79
|
+
79 210707e1c1b9 2007-03-13 18:20 +0000 deveiant
|
80
|
+
* Log list of candidate subdirs
|
84
81
|
|
85
|
-
|
82
|
+
78 10df874f3dd2 2007-02-22 23:03 +0000 deveiant
|
83
|
+
* Support #derivative_dirs method as well as the camelCased variant.
|
86
84
|
|
87
|
-
|
88
|
-
|
89
|
-
2004-03-07 09:31 Martin Chase <stillflame@FaerieMUD.org>
|
85
|
+
77 7159eec3d123 2006-07-01 18:50 +0000 ged
|
86
|
+
* Converted camelCased methods to under_barred ones.
|
90
87
|
|
91
|
-
|
92
|
-
|
88
|
+
76 7cbc57e7ccf6 2005-03-05 00:32 +0000 ged
|
89
|
+
Incremented project version attribute
|
93
90
|
|
94
|
-
|
95
|
-
|
96
|
-
2004-03-07 09:31 Martin Chase <stillflame@FaerieMUD.org>
|
91
|
+
75 7ef14552ab3d 2005-03-05 00:25 +0000 ged
|
92
|
+
Merged changes from project-utils version
|
97
93
|
|
98
|
-
|
99
|
-
|
94
|
+
74 e95a4103ceff 2005-03-05 00:21 +0000 ged
|
95
|
+
- Made load failures raise FactoryErrors as intended instead of RuntimeErrors.
|
96
|
+
|
97
|
+
73 bdc2ee405763 2004-11-21 17:14 +0000 ged
|
98
|
+
-- Updated project-utils files
|
99
|
+
|
100
|
+
72 66a4b51fd8bf 2004-11-21 17:02 +0000 ged
|
101
|
+
-- Gemified
|
102
|
+
|
103
|
+
71 bc561eade281 2004-09-08 04:51 +0000 ged
|
104
|
+
- Hmmm... that didn't work. Copying over new versions of the util scripts until
|
105
|
+
|
106
|
+
70 b4e3563186c5 2004-09-08 04:27 +0000 ged
|
107
|
+
- Replacing with versions from project-utils (experimental -- may just have to
|
108
|
+
|
109
|
+
69 e59d46a77b94 2004-08-24 01:38 +0000 ged
|
110
|
+
- Added a very important property
|
111
|
+
|
112
|
+
68 78d73905dcb8 2004-08-24 01:36 +0000 ged
|
113
|
+
- Added keywords property to lib/pluginfactory.rb
|
114
|
+
|
115
|
+
67 efbb3151a6a8 2004-08-24 01:35 +0000 ged
|
116
|
+
- Fixed String =~ String warning
|
117
|
+
|
118
|
+
66 6a91c13a3cf3 2004-08-24 01:34 +0000 ged
|
119
|
+
- Added bangheader
|
120
|
+
|
121
|
+
65 c918e81c262e 2004-08-24 01:33 +0000 ged
|
122
|
+
- Easyified bangheader
|
123
|
+
|
124
|
+
64 0c5c4055cfd0 2004-03-10 06:36 +0000 deveiant
|
125
|
+
Updated for tag release_0_01
|
126
|
+
|
127
|
+
63 bf4ec3577624 2004-03-10 06:34 +0000 deveiant
|
128
|
+
Initial checkin.
|
129
|
+
|
130
|
+
62 6b8f3bc4cf9e 2004-03-08 08:07 +0000 deveiant
|
131
|
+
- Fixed class/file agreement.
|
132
|
+
|
133
|
+
61 435f0c9aa88e 2004-03-08 08:06 +0000 deveiant
|
134
|
+
- Fixed derivativeDirs method.
|
135
|
+
|
136
|
+
60 588e608bdbf2 2004-03-08 08:05 +0000 deveiant
|
137
|
+
- Documentation additions
|
138
|
+
|
139
|
+
59 fa285422054c 2004-03-08 05:30 +0000 deveiant
|
140
|
+
- Added a hook into -d that turns on logging.
|
141
|
+
|
142
|
+
58 bdfc3046476d 2004-03-08 03:13 +0000 stillflame
|
143
|
+
no, this is not using the default install.rb installation process
|
144
|
+
|
145
|
+
57 fff45f7bd617 2004-03-08 03:07 +0000 stillflame
|
146
|
+
FactoryError now inherits from RuntimeError
|
147
|
+
|
148
|
+
56 afcfd0b3773e 2004-03-08 03:06 +0000 stillflame
|
149
|
+
filling in
|
150
|
+
|
151
|
+
55 e3675050434b 2004-03-08 03:05 +0000 stillflame
|
152
|
+
initial import
|
153
|
+
|
154
|
+
54 aff1901c91d7 2004-03-07 23:42 +0000 stillflame
|
155
|
+
reformatted
|
156
|
+
|
157
|
+
53 9c45c10602db 2004-03-07 23:41 +0000 stillflame
|
158
|
+
filled in
|
159
|
+
|
160
|
+
52 00a55d9e3ad3 2004-03-07 22:36 +0000 stillflame
|
161
|
+
filled in
|
162
|
+
|
163
|
+
51 845d40a15b41 2004-03-07 18:49 +0000 stillflame
|
164
|
+
cleaned out ties to other modules
|
165
|
+
|
166
|
+
50:48 00fd93bfbfe5 2004-03-07 17:33 +0000 stillflame
|
167
|
+
renaming
|
168
|
+
|
169
|
+
49 bad1b8bd1ccf 2004-03-07 17:31 +0000 unknown
|
170
|
+
This commit was manufactured by cvs2svn to create branch
|
171
|
+
|
172
|
+
48:0 d3618e7fd9ac 2004-03-07 17:31 +0000 stillflame
|
173
|
+
Initial revision
|
174
|
+
|
175
|
+
47 fe5667cb2942 2009-08-15 07:05 -0700 ged
|
176
|
+
Cleanup after conversion
|
177
|
+
|
178
|
+
46 46777daaabdb 2009-08-15 07:03 -0700 ged
|
179
|
+
Updated build system
|
180
|
+
|
181
|
+
45 e690b17efb4e 2009-08-15 21:56 +0000 convert-repo
|
182
|
+
update tags
|
183
|
+
|
184
|
+
44 9b895e2121be 2009-02-25 17:50 +0000 ged
|
185
|
+
Incrementing library version.
|
186
|
+
|
187
|
+
43 a57e9e1fffc4 2009-02-25 16:52 +0000 ged
|
188
|
+
* Fixes for Ruby 1.9.1.
|
189
|
+
|
190
|
+
42 493ad8b8049e 2009-02-23 06:34 +0000 ged
|
191
|
+
Start of fixes for 1.9.1.
|
192
|
+
|
193
|
+
41 072932f35fa2 2008-08-13 21:58 +0000 ged
|
194
|
+
Updating tags on new files.
|
195
|
+
|
196
|
+
40 4ab11fe73be4 2008-08-13 21:57 +0000 ged
|
197
|
+
Removing old rake tasklib dir
|
198
|
+
|
199
|
+
39 19b42b3c37f3 2008-08-13 21:57 +0000 ged
|
200
|
+
Converting to the new build system
|
201
|
+
|
202
|
+
38[RELEASE_1_0_3] 7125b6003515 2008-03-26 16:01 +0000 ged
|
203
|
+
* More packaging/publishing fixes.
|
204
|
+
|
205
|
+
37 fed1ea53a934 2008-03-25 21:17 +0000 ged
|
206
|
+
* Fixed announcement-sending task to use SMTP+SSL via a monkeypatch to net/smtp. (Maybe package it
|
207
|
+
|
208
|
+
36 ebb431bd3e59 2008-03-25 19:36 +0000 ged
|
209
|
+
* Packaging and publication tasks updated.
|
210
|
+
|
211
|
+
35 4d967ef2f111 2007-07-27 06:53 +0000 ged
|
212
|
+
Removed test runner script
|
213
|
+
|
214
|
+
34 d930322d7257 2007-07-27 06:50 +0000 ged
|
215
|
+
Converted test::unit tests to RSpec
|
216
|
+
|
217
|
+
33[RELEASE_1_0_2] 59907aabffde 2007-03-13 18:34 +0000 ged
|
218
|
+
Bumping project-version and fixing makedist problems.
|
219
|
+
|
220
|
+
32[SNAPSHOT_20070313] 00893950cf25 2007-03-13 18:20 +0000 ged
|
221
|
+
* Log list of candidate subdirs
|
222
|
+
|
223
|
+
31 4c56f048a182 2007-02-22 23:03 +0000 ged
|
224
|
+
* Support #derivative_dirs method as well as the camelCased variant.
|
225
|
+
|
226
|
+
30 6fffbf9b5bd2 2006-07-01 18:50 +0000 ged
|
227
|
+
* Converted camelCased methods to under_barred ones.
|
228
|
+
|
229
|
+
29 e8daaf813d26 2005-03-05 00:32 +0000 ged
|
230
|
+
Incremented project version attribute
|
231
|
+
|
232
|
+
28[RELEASE_1_0_1] b83ace0e5210 2005-03-05 00:25 +0000 ged
|
233
|
+
Merged changes from project-utils version
|
234
|
+
|
235
|
+
27 ee1c6ed5d684 2005-03-05 00:21 +0000 ged
|
236
|
+
- Made load failures raise FactoryErrors as intended instead of RuntimeErrors.
|
237
|
+
|
238
|
+
26 105ee41be6fa 2004-11-21 17:14 +0000 ged
|
239
|
+
-- Updated project-utils files
|
240
|
+
|
241
|
+
25 70a3e789a5f9 2004-11-21 17:02 +0000 ged
|
242
|
+
-- Gemified
|
243
|
+
|
244
|
+
24[RELEASE_1_0_0] ebb9633f9b07 2004-09-08 04:51 +0000 ged
|
245
|
+
- Hmmm... that didn't work. Copying over new versions of the util scripts until
|
246
|
+
|
247
|
+
23 1d04712bdf3d 2004-09-08 04:27 +0000 ged
|
248
|
+
- Replacing with versions from project-utils (experimental -- may just have to
|
249
|
+
|
250
|
+
22 9505e5d0166b 2004-08-24 01:38 +0000 ged
|
251
|
+
- Added a very important property
|
252
|
+
|
253
|
+
21 ecae4f4680ad 2004-08-24 01:36 +0000 ged
|
254
|
+
- Added keywords property to lib/pluginfactory.rb
|
255
|
+
|
256
|
+
20 12cd465fc2b9 2004-08-24 01:35 +0000 ged
|
257
|
+
- Fixed String =~ String warning
|
258
|
+
|
259
|
+
19 5ec386741575 2004-08-24 01:34 +0000 ged
|
260
|
+
- Added bangheader
|
261
|
+
|
262
|
+
18 63e34128e0f0 2004-08-24 01:33 +0000 ged
|
263
|
+
- Easyified bangheader
|
264
|
+
|
265
|
+
17[RELEASE_0_01] fced8642d1b0 2004-03-10 06:36 +0000 ged
|
266
|
+
Updated for tag release_0_01
|
267
|
+
|
268
|
+
16 0658f49ae563 2004-03-10 06:34 +0000 ged
|
269
|
+
Initial checkin.
|
270
|
+
|
271
|
+
15 63964459cf6e 2004-03-08 08:07 +0000 ged
|
272
|
+
- Fixed class/file agreement.
|
273
|
+
|
274
|
+
14 ecb82dc312e7 2004-03-08 08:06 +0000 ged
|
275
|
+
- Fixed derivativeDirs method.
|
276
|
+
|
277
|
+
13 0938213db300 2004-03-08 08:05 +0000 ged
|
278
|
+
- Documentation additions
|
279
|
+
|
280
|
+
12 a5caa49b677b 2004-03-08 05:30 +0000 ged
|
281
|
+
- Added a hook into -d that turns on logging.
|
282
|
+
|
283
|
+
11 48a6ad672ee6 2004-03-08 03:13 +0000 stillflame
|
284
|
+
no, this is not using the default install.rb installation process
|
285
|
+
|
286
|
+
10 3bbead1f4ca4 2004-03-08 03:07 +0000 stillflame
|
287
|
+
FactoryError now inherits from RuntimeError
|
288
|
+
|
289
|
+
9 b71b4d89f826 2004-03-08 03:06 +0000 stillflame
|
290
|
+
filling in
|
291
|
+
|
292
|
+
8 6f21a73f4bfe 2004-03-08 03:05 +0000 stillflame
|
293
|
+
initial import
|
294
|
+
|
295
|
+
7 6770707b0e32 2004-03-07 23:42 +0000 stillflame
|
296
|
+
reformatted
|
297
|
+
|
298
|
+
6 81aca5b501d9 2004-03-07 23:41 +0000 stillflame
|
299
|
+
filled in
|
300
|
+
|
301
|
+
5 f375b7c3e339 2004-03-07 22:36 +0000 stillflame
|
302
|
+
filled in
|
303
|
+
|
304
|
+
4 1d68afc9193f 2004-03-07 18:49 +0000 stillflame
|
305
|
+
cleaned out ties to other modules
|
306
|
+
|
307
|
+
3:1 4d3aae37f6aa 2004-03-07 17:33 +0000 stillflame
|
308
|
+
renaming
|
309
|
+
|
310
|
+
2[release] ba53aba840f3 2004-03-07 17:31 +0000 unknown
|
311
|
+
This commit was manufactured by cvs2svn to create branch
|
312
|
+
|
313
|
+
1 4c07d530c1b5 2004-03-07 17:31 +0000 stillflame
|
314
|
+
Initial revision
|
315
|
+
|
316
|
+
0 d0ff88878464 2004-03-07 17:31 +0000 unknown
|
317
|
+
New repository initialized by cvs2svn.
|
100
318
|
|
101
|
-
initial stripping out of Arrow/MUES
|
102
|
-
|
data/Rakefile
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
#!rake
|
1
|
+
#!rake -*- ruby -*-
|
2
2
|
#
|
3
3
|
# PluginFactory rakefile
|
4
4
|
#
|
5
5
|
# Based on various other Rakefiles, especially one by Ben Bleything
|
6
6
|
#
|
7
|
-
# Copyright (c) 2007-
|
7
|
+
# Copyright (c) 2007-2010 The FaerieMUD Consortium
|
8
8
|
#
|
9
9
|
# Authors:
|
10
10
|
# * Martin Chase <stillflame@FaerieMUD.org>
|
@@ -12,11 +12,12 @@
|
|
12
12
|
#
|
13
13
|
|
14
14
|
BEGIN {
|
15
|
+
require 'rbconfig'
|
15
16
|
require 'pathname'
|
16
17
|
basedir = Pathname.new( __FILE__ ).dirname
|
17
18
|
|
18
19
|
libdir = basedir + "lib"
|
19
|
-
extdir =
|
20
|
+
extdir = libdir + Config::CONFIG['sitearch']
|
20
21
|
|
21
22
|
$LOAD_PATH.unshift( libdir.to_s ) unless $LOAD_PATH.include?( libdir.to_s )
|
22
23
|
$LOAD_PATH.unshift( extdir.to_s ) unless $LOAD_PATH.include?( extdir.to_s )
|
@@ -33,6 +34,14 @@ rescue LoadError
|
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|
37
|
+
begin
|
38
|
+
require 'rubygems'
|
39
|
+
rescue LoadError
|
40
|
+
module Gem
|
41
|
+
class Specification; end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
36
45
|
require 'rbconfig'
|
37
46
|
require 'rake'
|
38
47
|
require 'rake/testtask'
|
@@ -66,10 +75,10 @@ if VERSION_FILE.exist? && buildrev = ENV['CC_BUILD_LABEL']
|
|
66
75
|
PKG_VERSION = VERSION_FILE.read[ /VERSION\s*=\s*['"](\d+\.\d+\.\d+)['"]/, 1 ] + '.' + buildrev
|
67
76
|
elsif VERSION_FILE.exist?
|
68
77
|
PKG_VERSION = VERSION_FILE.read[ /VERSION\s*=\s*['"](\d+\.\d+\.\d+)['"]/, 1 ]
|
69
|
-
else
|
70
|
-
PKG_VERSION = '0.0.0'
|
71
78
|
end
|
72
79
|
|
80
|
+
PKG_VERSION ||= '0.0.0'
|
81
|
+
|
73
82
|
PKG_FILE_NAME = "#{PKG_NAME.downcase}-#{PKG_VERSION}"
|
74
83
|
GEM_FILE_NAME = "#{PKG_FILE_NAME}.gem"
|
75
84
|
|
@@ -120,6 +129,9 @@ RELEASE_FILES = TEXT_FILES +
|
|
120
129
|
|
121
130
|
RELEASE_FILES << LOCAL_RAKEFILE.to_s if LOCAL_RAKEFILE.exist?
|
122
131
|
|
132
|
+
RELEASE_ANNOUNCE_ADDRESSES = [
|
133
|
+
]
|
134
|
+
|
123
135
|
COVERAGE_MINIMUM = ENV['COVERAGE_MINIMUM'] ? Float( ENV['COVERAGE_MINIMUM'] ) : 85.0
|
124
136
|
RCOV_EXCLUDES = 'spec,tests,/Library/Ruby,/var/lib,/usr/local/lib'
|
125
137
|
RCOV_OPTS = [
|
@@ -139,7 +151,7 @@ if !RAKE_TASKDIR.exist?
|
|
139
151
|
|
140
152
|
if ans =~ /^y/i
|
141
153
|
$stderr.puts "Okay, fetching #{RAKE_TASKLIBS_URL} into #{RAKE_TASKDIR}..."
|
142
|
-
system 'hg', 'clone', RAKE_TASKLIBS_URL, RAKE_TASKDIR
|
154
|
+
system 'hg', 'clone', RAKE_TASKLIBS_URL, "./#{RAKE_TASKDIR}"
|
143
155
|
if ! $?.success?
|
144
156
|
fail "Damn. That didn't work. Giving up; maybe try manually fetching?"
|
145
157
|
end
|
@@ -152,19 +164,20 @@ if !RAKE_TASKDIR.exist?
|
|
152
164
|
end
|
153
165
|
|
154
166
|
require RAKE_TASKDIR + 'helpers.rb'
|
167
|
+
include RakefileHelpers
|
155
168
|
|
156
|
-
#
|
169
|
+
# Set the build ID if the mercurial executable is available
|
157
170
|
if hg = which( 'hg' )
|
158
171
|
id = IO.read('|-') or exec hg.to_s, 'id', '-n'
|
159
|
-
PKG_BUILD = id.chomp[ /^[[:xdigit:]]+/ ]
|
172
|
+
PKG_BUILD = 'pre' + (id.chomp[ /^[[:xdigit:]]+/ ] || '1')
|
160
173
|
else
|
161
|
-
PKG_BUILD =
|
174
|
+
PKG_BUILD = 'pre0'
|
162
175
|
end
|
163
176
|
SNAPSHOT_PKG_NAME = "#{PKG_FILE_NAME}.#{PKG_BUILD}"
|
164
177
|
SNAPSHOT_GEM_NAME = "#{SNAPSHOT_PKG_NAME}.gem"
|
165
178
|
|
166
179
|
# Documentation constants
|
167
|
-
|
180
|
+
API_DOCSDIR = DOCSDIR + 'api'
|
168
181
|
RDOC_OPTIONS = [
|
169
182
|
'-w', '4',
|
170
183
|
'-HN',
|
@@ -173,9 +186,16 @@ RDOC_OPTIONS = [
|
|
173
186
|
'-t', PKG_NAME,
|
174
187
|
'-W', 'http://deveiate.org/projects/PluginFactory/browser/'
|
175
188
|
]
|
189
|
+
YARD_OPTIONS = [
|
190
|
+
'--protected',
|
191
|
+
'-r', 'README',
|
192
|
+
'--exclude', 'extconf\\.rb',
|
193
|
+
'--files', 'ChangeLog,LICENSE',
|
194
|
+
'--output-dir', API_DOCSDIR.to_s,
|
195
|
+
]
|
176
196
|
|
177
197
|
# Release constants
|
178
|
-
SMTP_HOST =
|
198
|
+
SMTP_HOST = ""
|
179
199
|
SMTP_PORT = 465 # SMTP + SSL
|
180
200
|
|
181
201
|
# Project constants
|
@@ -185,10 +205,6 @@ PROJECT_DOCDIR = "#{PROJECT_PUBDIR}/#{PKG_NAME}"
|
|
185
205
|
PROJECT_SCPPUBURL = "#{PROJECT_HOST}:#{PROJECT_PUBDIR}"
|
186
206
|
PROJECT_SCPDOCURL = "#{PROJECT_HOST}:#{PROJECT_DOCDIR}"
|
187
207
|
|
188
|
-
# Rubyforge stuff
|
189
|
-
RUBYFORGE_GROUP = 'deveiate'
|
190
|
-
RUBYFORGE_PROJECT = 'pluginfactory'
|
191
|
-
|
192
208
|
# Gem dependencies: gemname => version
|
193
209
|
DEPENDENCIES = {
|
194
210
|
}
|
@@ -201,10 +217,10 @@ DEVELOPMENT_DEPENDENCIES = {
|
|
201
217
|
'rdoc' => '>= 2.4.3',
|
202
218
|
'RedCloth' => '>= 4.0.3',
|
203
219
|
'rspec' => '>= 1.2.6',
|
204
|
-
'rubyforge' => '>= 0',
|
205
220
|
'termios' => '>= 0',
|
206
221
|
'text-format' => '>= 1.0.0',
|
207
222
|
'tmail' => '>= 1.2.3.1',
|
223
|
+
'diff-lcs' => '>= 1.1.2',
|
208
224
|
}
|
209
225
|
|
210
226
|
# Non-gem requirements: packagename => version
|
@@ -228,7 +244,6 @@ GEMSPEC = Gem::Specification.new do |gem|
|
|
228
244
|
gem.authors = "Martin Chase, Michael Granger"
|
229
245
|
gem.email = ["stillflame@FaerieMUD.org", "ged@FaerieMUD.org"]
|
230
246
|
gem.homepage = 'http://deveiate.org/projects/PluginFactory/'
|
231
|
-
gem.rubyforge_project = RUBYFORGE_PROJECT
|
232
247
|
|
233
248
|
gem.has_rdoc = true
|
234
249
|
gem.rdoc_options = RDOC_OPTIONS
|
@@ -286,14 +301,14 @@ import LOCAL_RAKEFILE if LOCAL_RAKEFILE.exist?
|
|
286
301
|
#####################################################################
|
287
302
|
|
288
303
|
### Default task
|
289
|
-
task :default => [:clean, :local, :spec, :
|
304
|
+
task :default => [:clean, :local, :spec, :apidocs, :package]
|
290
305
|
|
291
306
|
### Task the local Rakefile can append to -- no-op by default
|
292
307
|
task :local
|
293
308
|
|
294
309
|
### Task: clean
|
295
|
-
CLEAN.include 'coverage'
|
296
|
-
CLOBBER.include 'artifacts', 'coverage.info', PKGDIR
|
310
|
+
CLEAN.include 'coverage', '**/*.orig', '**/*.rej'
|
311
|
+
CLOBBER.include 'artifacts', 'coverage.info', 'ChangeLog', PKGDIR
|
297
312
|
|
298
313
|
### Task: changelog
|
299
314
|
file 'ChangeLog' do |task|
|