reap 9.3.3 → 9.3.4

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.
@@ -1,6 +1,6 @@
1
1
 
2
2
  announce:
3
- template: '{ANNOUNCE,README}{,.txt}' # Announcement template file glob.
3
+ template: '{ANNOUNCE}{,.txt}' # Announcement template file glob.
4
4
  mail_to: rubytalk@ruby-lange.org # Email address(es) to send announcemnt.
5
5
  mail_from: #{metadata.email} # Message FROM address.
6
6
  subject: "%s v%s released" # Subject of email message. Sprintf'd against name and version.
@@ -80,7 +80,7 @@
80
80
  exclude: ['ext'] # File to specifically exclude from stats.
81
81
 
82
82
  test:
83
- tests: test/**/{test,tc}_*.rb # Pattern for unit test files.
83
+ tests: 'test/**/{test,tc}_*.rb' # Pattern for unit test files. (Looks for test/suite.rb first.)
84
84
  loadpath: ~ # Defaults to metadata.loadpath.
85
85
  require: [] # Any files to pre-require.
86
86
  exclude: ext # ?
@@ -105,7 +105,7 @@ module Reap
105
105
  options = config.merge(options).to_ostruct
106
106
 
107
107
  cutoff = options.cutoff || 30
108
- template = options.template || "{ANNOUNCE,README}{,.txt}"
108
+ template = options.template || "{ANNOUNCE}{,.txt}"
109
109
 
110
110
  #config['mail_to'] = nil if keys['mail_to'].empty?
111
111
 
@@ -113,11 +113,19 @@ module Reap
113
113
 
114
114
  # template
115
115
  template = Dir.glob(options.template.to_s, File::FNM_CASEFOLD).first
116
- abort "No announcememnt template." unless template
117
116
 
118
- #
119
- readme = File.read(template)
120
- readme = unfold_paragraphs(readme)
117
+ if template
118
+ readme = File.read(template)
119
+ readme = unfold_paragraphs(readme)
120
+ else
121
+ readme = ''
122
+ readme << "= #{metadata.title} v#{metadata.version}\n\n"
123
+ readme << " #{metadata.homepage}\n\n"
124
+ readme << "#{metadata.description}\n\n"
125
+ readme << "Please see the NOTES file.\n\n"
126
+ readme << "== CHANGES\n\n"
127
+ readme << "Please see the CHANGES file.\n"
128
+ end
121
129
 
122
130
  # changelog
123
131
  file = Dir.glob('change{s,log}{,.txt}', File::FNM_CASEFOLD)[0]
@@ -47,11 +47,11 @@ module Reap
47
47
  # runs #clean as well.
48
48
 
49
49
  def clobber(options=nil)
50
+ clean
50
51
  clobber_methods = methods.select{ |m| m.to_s =~ /^clobber_/ }
51
52
  clobber_methods.each do |m|
52
53
  send(m)
53
54
  end
54
- clean
55
55
  end
56
56
 
57
57
  end
@@ -51,22 +51,32 @@ module Reap
51
51
  # what about arguments for selecting specific tests?
52
52
  tests = options['arguments'] if options['arguments']
53
53
 
54
- unless live
55
- loadpath.each do |lp|
56
- $LOAD_PATH.unshift(File.expand_path(lp))
57
- end
58
- end
54
+ #unless live
55
+ # loadpath.each do |lp|
56
+ # $LOAD_PATH.unshift(File.expand_path(lp))
57
+ # end
58
+ #end
59
59
 
60
- files = multiglob_r(*tests)
60
+ if File.exist?('test/suite.rb')
61
+ files = 'test/suite.rb'
62
+ else
63
+ files = multiglob_r(*tests)
64
+ end
61
65
 
62
66
  if files.empty?
63
- puts "No tests."
67
+ $stderr.puts "No tests."
64
68
  return
65
69
  end
66
70
 
67
71
  filelist = files.select{|file| !File.directory?(file) }.join(' ')
68
- command = %[testrb -I#{loadpath} #{filelist} 2>&1]
69
- system command
72
+
73
+ if live
74
+ command = %[testrb #{filelist} 2>&1]
75
+ else
76
+ command = %[testrb -I#{loadpath.join(':')} #{filelist} 2>&1]
77
+ end
78
+
79
+ sh command
70
80
 
71
81
  #if log && !dryrun?
72
82
  # command = %[testrb -I#{loadpath} #{filelist} > #{logfile} 2>&1] # /dev/null 2>&1
@@ -1,7 +1,45 @@
1
1
  = Subversion Changelog
2
2
 
3
+ == 2008-02-20 transami
4
+
5
+ * Fixed extconfopt option in setup.rb. (220)
6
+ * More improvements to the website. (219)
7
+ * Improved announcement. It no longer uses the README by default. (218)
8
+
9
+ == 2008-02-19 transami
10
+
11
+ * Updated website. (217)
12
+ * Clean before clobber ;) (216)
13
+ * Fixed bug where version was beeing bumped for each package made. (215)
14
+ * Default rdoc is not to doc/{project}/rdoc/. Which is really where it ought to be. (214)
15
+ * Update CHANGES. (213)
16
+ * Fixed setup.rb uninstaller. (212)
17
+ * Added the new setup.rb (3.5.0) and companion Rakefile. (211)
18
+ * Rename binary reap-stamp to reap-version. (210)
19
+ * Renamed reap-stamp to reap-version.
20
+ * Internal method is still called #stamp for now.
21
+ * Don't want to rename it #version to aviod confusion with version number.
22
+ * Maybe rename it #version_stamp in future. (209)
23
+ * Added bumpers to stamp task. (208)
24
+ * Added support for ERB to scaffolding. (207)
25
+ * Added meta/unixname.erb to base scaffolding. (206)
26
+ * Fixed Rakefile test task. (205)
27
+ * Added makeclean to general clean task. (204)
28
+
3
29
  == 2008-02-18 transami
4
30
 
31
+ * Metadata#filelist now removes symlinks. (203)
32
+ * VERSION 9.3.0 (202)
33
+ * Fixed bug in gem.rb detemining if rdoc are to be generated.
34
+ * Eric Hodel seems to be headed toward requiring this to always be true.
35
+ * However Rdoc isn't flexible enoughfor multi-library projects (like Ruby's own std lib).
36
+ * So I would prefer otherwise. I'd rather there just be a dynamic web-based ri browser. (201)
37
+ * Update site/rdoc link. (200)
38
+ * Added unit test (just to get the ball rolling). (199)
39
+ * Change changelog xml output to site/log. (198)
40
+ * Moved setup.rb redo to work/old. (197)
41
+ * Added new fixme and todo lists. (196)
42
+ * Removed old fixme and todo lists to be replaced by new. (195)
5
43
  * Update notes in prep for next release. (194)
6
44
  * Fixed Rakefile doc and index tasks. (193)
7
45
  * Added Rakefile to base scaffolding. (192)
@@ -1,10 +1,6 @@
1
1
 
2
2
  = FIXME
3
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
4
  file://lib/reap/project/check.rb
9
5
  * FIXME: This isn't routing output to dev/null as expected. (61)
10
6
 
@@ -12,14 +8,14 @@ file://lib/reap/project/gem.rb
12
8
  * FIXME (154)
13
9
 
14
10
  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)
11
+ * FIXME: will type, name and version always be right? (197)
12
+ * FIXME: will type, name and version always be right? (182)
13
+ * FIXME: package_docs is not yet ready for use. (143)
18
14
 
19
15
  file://lib/reap/project/scaffold.rb
16
+ * FIXME: RubyGems has a new way to do this. Use that instead and fix Rolls to use it too. (136)
20
17
  * 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)
18
+ a project file is already in place. (34)
23
19
 
24
20
  file://lib/reap/settings.rb
25
21
  * FIXME: when using the settings, I think nil should be considered a none entry and
@@ -1,33 +1,23 @@
1
1
 
2
2
  = TODO
3
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
4
  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
5
  * TODO Could add yield(self) via:
18
6
  yld.to_h.each do |k,v|
19
7
  send( "#{k}=", v ) rescue nil
20
8
  end (113)
9
+ * TODO Use in method missing instead? (125)
10
+ * TODO Change name of this method to something better? (141)
21
11
 
22
12
  file://lib/reap/metadata.rb
23
13
  * 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
14
  * TODO: Fit release name into name or package_name (?)
28
15
  def name
29
16
  @name ||= release.name
30
17
  end (134)
18
+ * TODO Move to Variants? (168)
19
+ * TODO: Think of a more descirptive name than 'default'. (296)
20
+ * TODO: if current? (436)
31
21
 
32
22
  file://lib/reap/project/gem.rb
33
23
  * TODO: Looks like there is no choice but to auto-rdoc gem install. (136)
@@ -36,9 +26,9 @@ file://lib/reap/project/gem.rb
36
26
  * TODO: Should this use staging too, like zip/tgz? (19)
37
27
 
38
28
  file://lib/reap/project/log.rb
39
- * TODO: Add ability to read header notes. (22)
40
29
  * TODO: Naming policy needs to be apply to changelog too. (158)
41
30
  * TODO: Remove format field, and ultimately use XML as primary format? (34)
31
+ * TODO: Add ability to read header notes. (22)
42
32
 
43
33
  file://lib/reap/project/make.rb
44
34
  * TODO: win32 cross-compile ? (10)
@@ -51,18 +41,11 @@ file://lib/reap/project/publish.rb
51
41
  * TODO: Add FTP/SFTP support. (12)
52
42
 
53
43
  file://lib/reap/project/scaffold.rb
54
- * TODO: Improve scaffolding. Make more intelligent. (70)
44
+ * TODO: Improve scaffolding. Make more intelligent. (72)
55
45
 
56
46
  file://lib/reap/project/site.rb
57
- * TODO: Remove special reap options from command line. (7)
58
47
  * 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)
48
+ * TODO: Remove special reap options from command line. (7)
66
49
 
67
50
  file://lib/reap/project/stats.rb
68
51
  * TODO: Add C support for ext/. (20)
@@ -74,21 +57,28 @@ file://lib/reap/project/svn.rb
74
57
  file://lib/reap/project/test.rb
75
58
  * TODO: Generate a test log entry? (38)
76
59
 
60
+ file://lib/reap/project/version.rb
61
+ * TODO: Should we also update a lib/version.rb file? (33)
62
+ * TODO: Stamp .roll if roll file exists.
63
+ should we read current .roll file and use as defaults? (88)
64
+ * TODO: Considerding createing a standard status marker (a=alpha, b=beta, r=release candidate)
65
+ So a version would read, eg. 1.2.4a, or with status number, eg. 1.2.4r1). (34)
66
+
77
67
  file://lib/reap/settings.rb
78
68
  * TODO: Settings needs improvement -- it's rather sloppy at this point. (7)
79
69
 
80
70
  file://lib/reap/systems/rubyforge.rb
71
+ * TODO Remove package argument, it is no longer needed. (591)
81
72
  * TODO Deal with https, and possible other protocols too. (33)
82
73
  * TODO IS THIS WORKING? (549)
83
- * TODO Remove package argument, it is no longer needed. (591)
84
74
 
85
75
  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
76
  * TODO: Perhaps format prefix, like:
89
77
  prefix = prefix + '_' if prefix && prefix !~ /[_-]$/ (51)
78
+ * TODO: Allow for a way to dump the text-based Changelog to standard out. "$stdout" as the filename? (147)
79
+ * TODO: How to apply naming policy from here? (148)
90
80
 
91
81
  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
82
  * TODO Dryrun test here or before folder creation? (259)
83
+ * TODO: Make more robust. (202)
84
+ * TODO: Make more robust. Probably needs to be fixed for Windows. (189)
@@ -1 +1 @@
1
- 9.3.3 beta (2008-02-19)
1
+ 9.3.4 beta (2008-02-20)
data/setup.rb CHANGED
@@ -65,6 +65,7 @@ module Setup
65
65
  [:rubypath , :prog, 'path to set to #! line'],
66
66
  [:rubyprog , :prog, 'ruby program using for installation'],
67
67
  [:makeprog , :prog, 'make program to compile ruby extentions'],
68
+ [:extconfopt , :name, 'options to pass-thru to extconf.rb'],
68
69
  [:without_ext , :bool, 'do not compile/install ruby extentions'],
69
70
  [:without_doc , :bool, 'do not generate html documentation'],
70
71
  [:shebang , :pick, 'shebang line (#!) editing mode (all,ruby,never)'],
@@ -273,6 +274,7 @@ module Setup
273
274
  self.rubypath = rubypath
274
275
  self.rubyprog = rubypath
275
276
  self.makeprog = makeprog
277
+ self.extconfopt = ''
276
278
  self.shebang = 'ruby'
277
279
  self.without_ext = 'no'
278
280
  self.without_doc = 'yes'
@@ -318,10 +320,10 @@ module Setup
318
320
  fmt = "%-20s %s\n"
319
321
  OPTIONS.each do |name|
320
322
  value = self[name]
321
- printf fmt, name, __send__(name) if value
323
+ reslv = __send__(name)
324
+ reslv = "(none)" if String===reslv && reslv.empty?
325
+ printf fmt, name, reslv if value
322
326
  end
323
- #printf fmt, 'verbose', verbose? ? 'yes' : 'no'
324
- #printf fmt, 'no-write', no_harm? ? 'yes' : 'no'
325
327
  end
326
328
 
327
329
  #
@@ -516,9 +518,9 @@ module Setup
516
518
  def exec_config
517
519
  config.env_config
518
520
  config.save_config
519
- exec_task_traverse 'config'
520
521
  config.show unless quiet?
521
522
  puts("Configuration saved.") unless quiet?
523
+ exec_task_traverse 'config'
522
524
  end
523
525
 
524
526
  alias config_dir_bin noop
@@ -534,7 +536,7 @@ module Setup
534
536
  alias config_dir_doc noop
535
537
 
536
538
  def extconf
537
- ruby "#{curr_srcdir()}/extconf.rb", config_opt
539
+ ruby "#{curr_srcdir()}/extconf.rb", config.extconfopt
538
540
  end
539
541
 
540
542
  #
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.3.3
4
+ version: 9.3.4
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-19 00:00:00 -05:00
12
+ date: 2008-02-20 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency