reap 9.2.1 → 9.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. data/CHANGES +4 -0
  2. data/COPYING +675 -674
  3. data/MANIFEST +37 -44
  4. data/NOTES +4 -4
  5. data/Rakefile +1486 -0
  6. data/data/reap/base/COPYING +674 -674
  7. data/data/reap/base/README +23 -2
  8. data/data/reap/base/Rakefile +1486 -0
  9. data/data/reap/base/test/template.rb +16 -0
  10. data/data/reap/init/meta/project.yaml +19 -14
  11. data/lib/reap/default.yaml +57 -45
  12. data/lib/reap/extensions/file.rb +8 -0
  13. data/lib/reap/extensions/net/smtp_tls.rb +108 -0
  14. data/lib/reap/extensions.rb +2 -0
  15. data/lib/reap/metadata.rb +3 -2
  16. data/lib/reap/{manager → project}/announce.rb +3 -3
  17. data/lib/reap/{manager → project}/check.rb +1 -1
  18. data/lib/reap/{manager → project}/clean.rb +1 -1
  19. data/lib/reap/{manager → project}/gem.rb +5 -5
  20. data/lib/reap/{manager → project}/html.rb +25 -24
  21. data/lib/reap/{manager → project}/log.rb +19 -9
  22. data/lib/reap/{manager → project}/make.rb +29 -36
  23. data/lib/reap/{manager → project}/package.rb +4 -8
  24. data/lib/reap/{manager → project}/publish.rb +3 -3
  25. data/lib/reap/{manager → project}/rdoc.rb +13 -30
  26. data/lib/reap/{manager → project}/release.rb +5 -5
  27. data/lib/reap/{manager → project}/rubyforge.rb +7 -6
  28. data/lib/reap/{manager → project}/scaffold.rb +7 -2
  29. data/lib/reap/{manager → project}/scm.rb +3 -3
  30. data/lib/reap/{manager → project}/site.rb +1 -1
  31. data/lib/reap/{manager → project}/spec.rb +1 -1
  32. data/lib/reap/{manager → project}/stamp.rb +14 -11
  33. data/lib/reap/{manager → project}/stats.rb +1 -1
  34. data/lib/reap/{manager → project}/svn.rb +1 -1
  35. data/lib/reap/{manager → project}/test.rb +2 -20
  36. data/lib/reap/project.rb +34 -2
  37. data/lib/reap/systems/rubyforge.rb +5 -12
  38. data/lib/reap/systems/subversion.rb +4 -6
  39. data/lib/reap/{utilities/fileutils.rb → utilities.rb} +148 -60
  40. data/log/Changelog.txt +118 -0
  41. data/log/Fixme.txt +26 -0
  42. data/log/Todo.txt +94 -0
  43. data/meta/VERSION +1 -1
  44. data/meta/project.yaml +1 -1
  45. data/meta/unixname +1 -0
  46. data/test/unit/lib/reap/extensions/test_array.rb +12 -0
  47. metadata +44 -46
  48. data/data/reap/build/rake/Rakefile +0 -130
  49. data/data/reap/build/rake/setup.rb +0 -1616
  50. data/data/reap/build/rake-lite/install.rb +0 -79
  51. data/data/reap/build/tasks/task/rdoc +0 -211
  52. data/data/reap/build/tasks/task/setup +0 -1616
  53. data/data/reap/build/tasks/task/test +0 -38
  54. data/lib/reap/manager.rb +0 -75
  55. data/lib/reap/utilities/netutils.rb +0 -221
  56. data/lib/reap/utilities/setuputils.rb +0 -124
  57. data/lib/reap/utilities/shellutils.rb +0 -175
  58. data/log/FIXME.txt +0 -25
  59. data/log/TODO.txt +0 -72
  60. data/task/man +0 -14
  61. data/task/rdoc +0 -20
  62. data/task/setup +0 -1616
@@ -1,40 +1,71 @@
1
- # = TITLE:
2
- #
3
- # File Utitlies
4
- #
5
- # = COPYING:
6
- #
7
- # Copyright (c) 2007,2008 Tiger Ops
8
- #
9
- # This file is part of the Reap program.
10
- #
11
- # Reap is free software: you can redistribute it and/or modify
12
- # it under the terms of the GNU General Public License as published by
13
- # the Free Software Foundation, either version 3 of the License, or
14
- # (at your option) any later version.
15
- #
16
- # Reap is distributed in the hope that it will be useful,
17
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
18
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
- # GNU General Public License for more details.
20
- #
21
- # You should have received a copy of the GNU General Public License
22
- # along with Reap. If not, see <http://www.gnu.org/licenses/>.
23
- #
24
- # TODO:
25
- #
26
- # - Move out_of_data? and safe? to Facets FileTest extensions.
27
-
28
1
  require 'fileutils'
29
- require 'facets/ziputils'
30
-
31
2
  require 'reap/extensions'
3
+ require 'facets/ziputils'
32
4
 
33
- #
34
5
  module Reap
35
- module Utilities
36
6
 
37
- module FileUtils
7
+ module Utilities
8
+
9
+ attr_accessor :dryrun
10
+ attr_accessor :trace
11
+ attr_accessor :force
12
+ attr_accessor :verbose
13
+
14
+ def dryrun? ; @dryrun ; end
15
+ def trace? ; @trace ; end
16
+ def force? ; @force ; end
17
+ def verbose? ; @verbose ; end
18
+
19
+ # Internal status report.
20
+ # Only output if dryrun or trace mode.
21
+
22
+ def status(message)
23
+ if dryrun? or trace?
24
+ puts message
25
+ end
26
+ end
27
+
28
+ # Shell runner.
29
+
30
+ def sh(cmd)
31
+ if dryrun?
32
+ puts cmd
33
+ true
34
+ else
35
+ puts "--> system call: #{cmd}" if trace?
36
+ system(cmd)
37
+ end
38
+ end
39
+
40
+ # Convenient method to get simple console reply.
41
+
42
+ def ask(question, answers=nil)
43
+ print "#{question}"
44
+ print " [#{answers}] " if answers
45
+ until inp = $stdin.gets ; sleep 1 ; end
46
+ inp.strip
47
+ end
48
+
49
+ # Ask for a password. (FIXME: only for unix so far)
50
+
51
+ def password(prompt=nil)
52
+ msg ||= "Enter Password: "
53
+ inp = ''
54
+
55
+ print "#{prompt} "
56
+
57
+ begin
58
+ #system "stty -echo"
59
+ #inp = gets.chomp
60
+ until inp = $stdin.gets
61
+ sleep 1
62
+ end
63
+ ensure
64
+ #system "stty echo"
65
+ end
66
+
67
+ return inp.chomp
68
+ end
38
69
 
39
70
  # Delegate access to FileUtils.
40
71
 
@@ -83,13 +114,13 @@ module Utilities
83
114
 
84
115
  # Read file.
85
116
 
86
- def file_read(path)
117
+ def read(path)
87
118
  File.read(path)
88
119
  end
89
120
 
90
121
  # Write file.
91
122
 
92
- def file_write(path, text)
123
+ def write(path, text)
93
124
  if dryrun?
94
125
  puts "write #{path}"
95
126
  else
@@ -146,20 +177,6 @@ module Utilities
146
177
  end
147
178
  alias_method :directory!, :dir! ; module_function :directory!
148
179
 
149
- # # Okay, I'm being a dork, but 'fold' seems like a better word
150
- # # then 'dir', 'folder', or 'directory'.
151
- #
152
- # def fold?(path)
153
- # paths = Dir.glob(path)
154
- # paths.not_empty? && paths.all?{ |f| FileTest.directory?(f) }
155
- # end
156
- #
157
- # # Assert that a given path is a fold (ie. a folder).
158
- #
159
- # def fold!(*paths)
160
- # abort "fold not found #{path}" unless paths.any?{|path| fold?(path)}
161
- # end
162
-
163
180
  # Return a cached list of the PATH environment variable.
164
181
  # This is a support method used by #bin?
165
182
 
@@ -251,18 +268,18 @@ module Utilities
251
268
  end
252
269
  end
253
270
 
254
- # stage meanifest ?
271
+ # stage manifest ?
255
272
 
256
273
  return stage_directory
257
274
  end
258
275
 
259
276
  # Create manifest for a directory.
260
- #
261
- # TODO: Do this programatically rather then via shell.
262
277
 
263
278
  def stage_manifest(directory)
264
279
  cd(directory) do
265
- sh 'manifest up'
280
+ #sh 'manifest up'
281
+ files = Dir['**/*']
282
+ File.open('MANIFEST', 'w'){|f| f << file.join("\n") }
266
283
  end
267
284
  end
268
285
 
@@ -290,15 +307,86 @@ module Utilities
290
307
  ziputils.tgz(folder, file, options)
291
308
  end
292
309
 
293
- # # Is a file a task?
294
- #
295
- # def task?(path)
296
- # task = File.dirname($0) + "/#{path}"
297
- # task.chomp!('!')
298
- # task if FileTest.file?(task) && FileTest.executable?(task)
299
- # end
310
+
311
+ # Email function to easily send out an email.
312
+ #
313
+ # Settings:
314
+ #
315
+ # subject Subject of email message.
316
+ # from Message FROM address [email].
317
+ # to Email address to send announcemnt.
318
+ # server Email server to route message.
319
+ # port Email server's port.
320
+ # port_secure Email server's port.
321
+ # domain Email server's domain name.
322
+ # account Email account name if needed.
323
+ # password Password for login..
324
+ # login Login type: plain, cram_md5 or login [plain].
325
+ # secure Uses TLS security, true or false? [false]
326
+ # message Mesage to send -or-
327
+ # file File that contains message.
328
+
329
+ def email(message, settings)
330
+ settings ||= {}
331
+ settings.rekey
332
+
333
+ server = settings[:server]
334
+ account = settings[:account] || ENV['EMAIL_ACCOUNT']
335
+ passwd = settings[:password] || ENV['EMAIL_PASSWORD']
336
+ login = settings[:login]
337
+ subject = settings[:subject]
338
+ mail_to = settings[:to] || settings[:mail_to]
339
+ mail_from = settings[:from] || settings[:mail_from]
340
+ secure = settings[:secure]
341
+ domain = settings[:domain] || server
342
+
343
+ port = (settings[:port_secure] || 465) if secure
344
+ port = (settings[:port] || 25) unless secure
345
+
346
+ account ||= mail_from
347
+ login ||= :plain
348
+
349
+ login = login.to_sym
350
+
351
+ #mail_to = nil if mail_to.empty?
352
+
353
+ raise ArgumentError, "missing email field -- server" unless server
354
+ raise ArgumentError, "missing email field -- account" unless account
355
+ raise ArgumentError, "missing email field -- subject" unless subject
356
+ raise ArgumentError, "missing email field -- to" unless mail_to
357
+ raise ArgumentError, "missing email field -- from" unless mail_from
358
+
359
+ passwd ||= password("#{account} password:")
360
+
361
+ mail_to = [mail_to].flatten.compact
362
+
363
+ msg = ""
364
+ msg << "From: #{mail_from}\n"
365
+ msg << "To: #{mail_to.join(';')}\n"
366
+ msg << "Subject: #{subject}\n"
367
+ msg << ""
368
+ msg << message
369
+
370
+ if secure
371
+ Net::SMTP.send(:include, Net::SMTP::TLS)
372
+ Net::SMTP.enable_tls #if secure #if Net::SMTP.respond_to?(:enable_tls) and secure
373
+ end
374
+
375
+ begin
376
+ Net::SMTP.start(server, port, domain, account, passwd, login) do |smtp|
377
+ smtp.send_message(msg, mail_from, mail_to)
378
+ end
379
+ puts "Email sent successfully to #{mail_to.join(';')}."
380
+ return true
381
+ rescue => e
382
+ if trace?
383
+ raise e
384
+ else
385
+ abort "Email delivery failed."
386
+ end
387
+ end
388
+ end
300
389
 
301
390
  end
302
391
 
303
392
  end
304
- end
data/log/Changelog.txt CHANGED
@@ -1,5 +1,123 @@
1
1
  = Subversion Changelog
2
2
 
3
+ == 2008-02-18 transami
4
+
5
+ * Update notes in prep for next release. (194)
6
+ * Fixed Rakefile doc and index tasks. (193)
7
+ * Added Rakefile to base scaffolding. (192)
8
+ * Unified configure into Rakefile. That's FINIS!!! (191)
9
+ * Moved lib/reap/rake to work/lab. (190)
10
+ * Added work/lab. (189)
11
+ * Renamed work/reference to work/ref. (188)
12
+ * Renamed work/outdated to work/old. (187)
13
+ * Renamed work/future to work/new. (186)
14
+ * Updated configure. (185)
15
+ * Remove setup.rb and added configure to scaffold files. (184)
16
+ * Removed setup.rb. Holy Moly. No more setup.rb! (183)
17
+ * Added configure and Rakefile. (182)
18
+ * Last update to setup.rb as it stands. (181)
19
+
20
+ == 2008-02-16 transami
21
+
22
+ * Remove pkg from revision control. (180)
23
+ * Modified svn:ignore to omit doc and pkg directories. (179)
24
+ * added remaining work files. (178)
25
+ * Move old rdoc script to trash. (177)
26
+ * Added a work/trash directory. (176)
27
+ * Work clean-up -- removed some files. (175)
28
+ * Work clean-up -- added old test script that used pipes to reference. (174)
29
+ * Work cleanup -- moved manager to project. (173)
30
+ * Added setup.rb v3.4.1 to work/reference. (172)
31
+ * Replaced project's rakefile.rb with the new setup.rb. (171)
32
+ * Removed Rakefile in favor of new setup.rb.
33
+ * The new version of setup.rb has everything and end-installer needs.
34
+ * It can also double as a Rakefile, either by loading it in, or renaming it to, "Rakefile". (170)
35
+ * Added extra/setup.rb --until it gets it's own project. (169)
36
+ * Added lib/reap/extra to house setup.rb for now. (168)
37
+
38
+ == 2008-02-15 transami
39
+
40
+ * Added rake section for rakefile.rb and setuptask.rb.
41
+ * These are intended for end-users.
42
+ * The two files are merged and added to data/reap/base. (167)
43
+ * Replaced old Rakefile and setup.rb with new Rakefile.
44
+ * The new Rakefile has setup.rb embedded within it.
45
+ * It is designed as standard rake task called SetupTask.
46
+ * The rest of the Rakefile handles testing and documenting. (166)
47
+ * New Rakfile --moved old out of the way. (165)
48
+
49
+ == 2008-02-11 transami
50
+
51
+ * Gem generate now alwasy produces rdocs (not that I want to, but there's seems little choice). (164)
52
+ * Had to remove doc/ directory becuase RDoc won't generate there if it exists. (163)
53
+ * Added rakefile.rb. (162)
54
+ * Added symbolic link from site/rdoc to doc. (161)
55
+ * Added doc directory (for storing rdocs) (160)
56
+ * Added some lingering work files. (159)
57
+ * Will now use site as defualt website directory. (158)
58
+ * Move doc/ to site/. (157)
59
+ * Added a test template. (156)
60
+ * Rigged a workaround to remove Rakefile from rdocs. (155)
61
+ * Problem with Rakefile being rdoc'd. (154)
62
+ * Added extension for File.write. (153)
63
+ * Removed task directory. (152)
64
+ * Improved template Rakefile. (151)
65
+ * Dump task template. (150)
66
+ * REmoved separate rake template directory. (149)
67
+ * Move Rakefile to base. (148)
68
+ * Moved data/reap/task to work.
69
+ * While I prefer using the task directory, the Ruby community is acustom to Rakefile/setup.rb.
70
+ * It would be nice to update setup.rb to have some configurable options and rdoc capability. Then Rakfile would not usually be needed. (147)
71
+ * Added work/outdated/reap. (146)
72
+ * Added work directory (145)
73
+ * Added spec directory to template (just delete it or test if not wanted) (144)
74
+ * Remove man task. (143)
75
+ * Renamed data/reap/tasks to data/reap/task. (142)
76
+ * Cleaned-up dryrun. (141)
77
+ * Removed standalone setup.rb template. (140)
78
+ * Rake template will alos have setup.rb. (139)
79
+ * Removed data/reap/build. (138)
80
+ * Rearrange scaffolding templates. (137)
81
+ * Completed remove of separate utilities files. (136)
82
+ * Removed utilities files and replaced with a single file. (135)
83
+ * Removed Manager class and simplified to just Project class. (134)
84
+ * Moved manager directory to project. (133)
85
+ * In process of getting rid of manager class. (132)
86
+
87
+ == 2008-02-08 transami
88
+
89
+ * Relased version 9.2.1. (131)
90
+ * Actually, remove clobber_package form package method, b/c it should only release the current version. (130)
91
+ * Added clobber_packages to package method. (129)
92
+ * Rollout now handles the entire pre-package to post-release procedure. (128)
93
+ * Reseparated stamp method from release.rb into it's own file stamp.rb. (127)
94
+ * Added reap-rollout binary. (126)
95
+ * Improved website and tutorial (alot). (125)
96
+ * Renamed pack.rb to package.rb. (124)
97
+ * Added rollout tool. This also better defines prepare and release. (123)
98
+ * Update typo in NOTES. (122)
99
+ * Fixed typo in branching. (121)
100
+ * VERSION 9.2.0 (120)
101
+ * Fixed typo of FNM_CASEFOLD. (119)
102
+
103
+ == 2008-02-07 transami
104
+
105
+ * Moved verison file to meta/. (118)
106
+ * Improved reap-init. (117)
107
+ * Filled out the demo more. (116)
108
+ * Settings class now loads defaults. (115)
109
+ * Update tools to get defaults from settings.
110
+ * The default.yaml file provides tool defaults now.
111
+ * Left some hardcoded defaults in the methods as backups.
112
+ * Presently if the user sets an option to nil it will override the default (will fix later). (114)
113
+ * Moved data/reap/buildset to data/reap/build. (113)
114
+ * Added default.yaml file to centerally store defaults. (112)
115
+ * Added project.rb, splitting off manager.rb. (111)
116
+ * Moved config.rb to settings.rb. (110)
117
+ * Rename manger to project and project to metadata. (Last major change!) (109)
118
+ * Finetuning rdoc. Stamp may produce .roll file. (108)
119
+ * Code organization. (107)
120
+
3
121
  == 2008-02-06 transami
4
122
 
5
123
  * Added logs. (106)
data/log/Fixme.txt ADDED
@@ -0,0 +1,26 @@
1
+
2
+ = FIXME
3
+
4
+ file://lib/reap/extra/setup.rb
5
+ * FIXME: should not remove current config files
6
+ (rename previous file to .old/.org) (991)
7
+
8
+ file://lib/reap/project/check.rb
9
+ * FIXME: This isn't routing output to dev/null as expected. (61)
10
+
11
+ file://lib/reap/project/gem.rb
12
+ * FIXME (154)
13
+
14
+ file://lib/reap/project/package.rb
15
+ * FIXME: package_docs is not yet ready for use. (138)
16
+ * FIXME: will type, name and version always be right? (192)
17
+ * FIXME: will type, name and version always be right? (177)
18
+
19
+ file://lib/reap/project/scaffold.rb
20
+ * FIXME: This doesn't yet work b/c reap doesn't work unless
21
+ a project file is already in place. (32)
22
+ * FIXME: RubyGems has a new way to do this. Use that instead and fix Rolls to use it too. (127)
23
+
24
+ file://lib/reap/settings.rb
25
+ * FIXME: when using the settings, I think nil should be considered a none entry and
26
+ so false would be required to actually mean "off". This means assigning each key value par one a time? (33)
data/log/Todo.txt ADDED
@@ -0,0 +1,94 @@
1
+
2
+ = TODO
3
+
4
+ file://lib/reap/extra/setup.rb
5
+ * TODO: Does this handle 'nmake' on windows? (464)
6
+ * TODO: remove rdoc -- if we generated it, how? (1139)
7
+ * TODO: Add spec support. (847)
8
+ * TODO: deprecate?
9
+ alias_method :install_prefix, :prefix (385)
10
+ * TODO: Make cleaning more comprehensive. (16)
11
+ * TODO: Rather see shebangs updated on installed binaries only. (15)
12
+ * TODO: what to do with? (1369)
13
+
14
+ file://lib/reap/iobject.rb
15
+ * TODO Use in method missing instead? (125)
16
+ * TODO Change name of this method to something better? (141)
17
+ * TODO Could add yield(self) via:
18
+ yld.to_h.each do |k,v|
19
+ send( "#{k}=", v ) rescue nil
20
+ end (113)
21
+
22
+ file://lib/reap/metadata.rb
23
+ * TODO: Improve buildno support. (473)
24
+ * TODO Move to Variants? (168)
25
+ * TODO: Think of a more descirptive name than 'default'. (296)
26
+ * TODO: if current? (436)
27
+ * TODO: Fit release name into name or package_name (?)
28
+ def name
29
+ @name ||= release.name
30
+ end (134)
31
+
32
+ file://lib/reap/project/gem.rb
33
+ * TODO: Looks like there is no choice but to auto-rdoc gem install. (136)
34
+ * TODO: Sepcify version? (88)
35
+ * TODO: Endure that we even need a gem package using #out_of_date? (79)
36
+ * TODO: Should this use staging too, like zip/tgz? (19)
37
+
38
+ file://lib/reap/project/log.rb
39
+ * TODO: Add ability to read header notes. (22)
40
+ * TODO: Naming policy needs to be apply to changelog too. (158)
41
+ * TODO: Remove format field, and ultimately use XML as primary format? (34)
42
+
43
+ file://lib/reap/project/make.rb
44
+ * TODO: win32 cross-compile ? (10)
45
+
46
+ file://lib/reap/project/package.rb
47
+ * TODO: When we add support for binary packages distclean
48
+ should not be done for them. (24)
49
+
50
+ file://lib/reap/project/publish.rb
51
+ * TODO: Add FTP/SFTP support. (12)
52
+
53
+ file://lib/reap/project/scaffold.rb
54
+ * TODO: Improve scaffolding. Make more intelligent. (70)
55
+
56
+ file://lib/reap/project/site.rb
57
+ * TODO: Remove special reap options from command line. (7)
58
+ * TODO: Create uninstall task. (18)
59
+
60
+ file://lib/reap/project/stamp.rb
61
+ * TODO: Make sure the new version isn't less then the old verison.
62
+ Will have to use VersionNumnber class for this. (8)
63
+ * TODO: Stamp .roll if roll file exists.
64
+ should we read current .roll file and use as defaults? (50)
65
+ * TODO: Should we also update a lib/version.rb file? (7)
66
+
67
+ file://lib/reap/project/stats.rb
68
+ * TODO: Add C support for ext/. (20)
69
+
70
+ file://lib/reap/project/svn.rb
71
+ * TODO: How should metadata.repository come into play here? (24)
72
+ * TODO: How should metadata.repository come into play here? (12)
73
+
74
+ file://lib/reap/project/test.rb
75
+ * TODO: Generate a test log entry? (38)
76
+
77
+ file://lib/reap/settings.rb
78
+ * TODO: Settings needs improvement -- it's rather sloppy at this point. (7)
79
+
80
+ file://lib/reap/systems/rubyforge.rb
81
+ * TODO Deal with https, and possible other protocols too. (33)
82
+ * TODO IS THIS WORKING? (549)
83
+ * TODO Remove package argument, it is no longer needed. (591)
84
+
85
+ file://lib/reap/systems/subversion.rb
86
+ * TODO: How to apply naming policy from here? (148)
87
+ * TODO: Allow for a way to dump the text-based Changelog to standard out. "$stdout" as the filename? (147)
88
+ * TODO: Perhaps format prefix, like:
89
+ prefix = prefix + '_' if prefix && prefix !~ /[_-]$/ (51)
90
+
91
+ file://lib/reap/utilities.rb
92
+ * TODO: Make more robust. Probably needs to be fixed for Windows. (189)
93
+ * TODO: Make more robust. (202)
94
+ * TODO Dryrun test here or before folder creation? (259)
data/meta/VERSION CHANGED
@@ -1 +1 @@
1
- 9.2.1 alpha (2008-02-08)
1
+ 9.3.0 beta (2008-02-18)
data/meta/project.yaml CHANGED
@@ -11,7 +11,7 @@ homepage : "http://reap.rubyforge.org"
11
11
  repository : "http://reap.rubyforge.org/svn"
12
12
  slogan : Reap Your Rewards
13
13
 
14
- exclude : [ pkg, work, doc, ri ]
14
+ exclude : [ pkg, work, doc, site, ri ]
15
15
 
16
16
  dependency :
17
17
  - [facets, ">= 2.1.0"]
data/meta/unixname ADDED
@@ -0,0 +1 @@
1
+ reap
@@ -0,0 +1,12 @@
1
+ require 'reap/extensions/array'
2
+ require 'test/unit'
3
+
4
+ class TC_Array < Test::Unit::TestCase
5
+
6
+ def test_not_empty?
7
+ assert( [1].not_empty? )
8
+ assert( ![].not_empty? )
9
+ end
10
+
11
+ end
12
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reap
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.2.1
4
+ version: 9.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Sawyer <transfire@gmail.com>
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-02-08 00:00:00 -05:00
12
+ date: 2008-02-18 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -70,20 +70,23 @@ extensions: []
70
70
  extra_rdoc_files: []
71
71
 
72
72
  files:
73
+ - Rakefile
73
74
  - MANIFEST
74
75
  - test
75
76
  - test/fixtures
77
+ - test/unit
78
+ - test/unit/lib
79
+ - test/unit/lib/reap
80
+ - test/unit/lib/reap/extensions
81
+ - test/unit/lib/reap/extensions/test_array.rb
76
82
  - NOTES
77
83
  - CHANGES
78
84
  - README
79
85
  - meta
80
86
  - meta/project.yaml
87
+ - meta/unixname
81
88
  - meta/VERSION
82
89
  - meta/description
83
- - task
84
- - task/rdoc
85
- - task/setup
86
- - task/man
87
90
  - demo
88
91
  - demo/doc
89
92
  - demo/README
@@ -99,7 +102,10 @@ files:
99
102
  - lib/reap
100
103
  - lib/reap/default.yaml
101
104
  - lib/reap/extensions
105
+ - lib/reap/extensions/file.rb
102
106
  - lib/reap/extensions/hash.rb
107
+ - lib/reap/extensions/net
108
+ - lib/reap/extensions/net/smtp_tls.rb
103
109
  - lib/reap/extensions/array.rb
104
110
  - lib/reap/extensions/string.rb
105
111
  - lib/reap/systems
@@ -111,41 +117,39 @@ files:
111
117
  - lib/reap/settings.rb
112
118
  - lib/reap/extensions.rb
113
119
  - lib/reap/metadata.rb
114
- - lib/reap/manager
115
- - lib/reap/manager/release.rb
116
- - lib/reap/manager/rdoc.rb
117
- - lib/reap/manager/make.rb
118
- - lib/reap/manager/log.rb
119
- - lib/reap/manager/test.rb
120
- - lib/reap/manager/site.rb
121
- - lib/reap/manager/rubyforge.rb
122
- - lib/reap/manager/html.rb
123
- - lib/reap/manager/stats.rb
124
- - lib/reap/manager/gem.rb
125
- - lib/reap/manager/scaffold.rb
126
- - lib/reap/manager/clean.rb
127
- - lib/reap/manager/publish.rb
128
- - lib/reap/manager/spec.rb
129
- - lib/reap/manager/stamp.rb
130
- - lib/reap/manager/svn.rb
131
- - lib/reap/manager/scm.rb
132
- - lib/reap/manager/package.rb
133
- - lib/reap/manager/check.rb
134
- - lib/reap/manager/announce.rb
135
- - lib/reap/utilities
136
- - lib/reap/utilities/shellutils.rb
137
- - lib/reap/utilities/fileutils.rb
138
- - lib/reap/utilities/setuputils.rb
139
- - lib/reap/utilities/netutils.rb
140
- - lib/reap/manager.rb
120
+ - lib/reap/project
121
+ - lib/reap/project/release.rb
122
+ - lib/reap/project/rdoc.rb
123
+ - lib/reap/project/make.rb
124
+ - lib/reap/project/log.rb
125
+ - lib/reap/project/test.rb
126
+ - lib/reap/project/site.rb
127
+ - lib/reap/project/rubyforge.rb
128
+ - lib/reap/project/html.rb
129
+ - lib/reap/project/stats.rb
130
+ - lib/reap/project/gem.rb
131
+ - lib/reap/project/scaffold.rb
132
+ - lib/reap/project/clean.rb
133
+ - lib/reap/project/publish.rb
134
+ - lib/reap/project/spec.rb
135
+ - lib/reap/project/stamp.rb
136
+ - lib/reap/project/svn.rb
137
+ - lib/reap/project/scm.rb
138
+ - lib/reap/project/package.rb
139
+ - lib/reap/project/check.rb
140
+ - lib/reap/project/announce.rb
141
+ - lib/reap/utilities.rb
141
142
  - data
142
143
  - data/reap
143
144
  - data/reap/init
144
145
  - data/reap/init/meta
145
146
  - data/reap/init/meta/project.yaml
146
147
  - data/reap/base
148
+ - data/reap/base/Rakefile
149
+ - data/reap/base/spec
147
150
  - data/reap/base/doc
148
151
  - data/reap/base/test
152
+ - data/reap/base/test/template.rb
149
153
  - data/reap/base/NOTES
150
154
  - data/reap/base/CHANGES
151
155
  - data/reap/base/README
@@ -153,21 +157,10 @@ files:
153
157
  - data/reap/base/data
154
158
  - data/reap/base/bin
155
159
  - data/reap/base/COPYING
156
- - data/reap/build
157
- - data/reap/build/tasks
158
- - data/reap/build/tasks/task
159
- - data/reap/build/tasks/task/test
160
- - data/reap/build/tasks/task/rdoc
161
- - data/reap/build/tasks/task/setup
162
- - data/reap/build/rake
163
- - data/reap/build/rake/Rakefile
164
- - data/reap/build/rake/setup.rb
165
- - data/reap/build/rake-lite
166
- - data/reap/build/rake-lite/install.rb
167
160
  - log
168
161
  - log/Changelog.txt
169
- - log/TODO.txt
170
- - log/FIXME.txt
162
+ - log/Fixme.txt
163
+ - log/Todo.txt
171
164
  - bin
172
165
  - bin/reap-package-tgz
173
166
  - bin/reap-package-gem
@@ -239,3 +232,8 @@ specification_version: 2
239
232
  summary: Ruby Project Assistant
240
233
  test_files:
241
234
  - test/fixtures
235
+ - test/unit
236
+ - test/unit/lib
237
+ - test/unit/lib/reap
238
+ - test/unit/lib/reap/extensions
239
+ - test/unit/lib/reap/extensions/test_array.rb