drake 0.8.2.1.0.7 → 0.8.2.1.0.9

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.
Files changed (5) hide show
  1. data/CHANGES.drake +4 -0
  2. data/README +5 -3
  3. data/Rakefile.drake +12 -5
  4. data/lib/rake.rb +3 -3
  5. metadata +1 -1
@@ -1,6 +1,10 @@
1
1
 
2
2
  = Drake Changelog
3
3
 
4
+ == Version 0.8.2.1.0.9
5
+
6
+ * --randomize takes a string (seeds with String#hash).
7
+
4
8
  == Version 0.8.2.1.0.7
5
9
 
6
10
  * new --rand option, suggested by Thomas Sawyer.
data/README CHANGED
@@ -92,9 +92,11 @@ closer to saying what you mean.
92
92
  % drake --rand[=SEED]
93
93
 
94
94
  This will randomize the order of sibling prerequisites for each task.
95
- When given the optional SEED integer, it will call
96
- <tt>srand(SEED)</tt> to produce the same permutation each time. The
97
- randomize option also disables +multitask+.
95
+ When given the optional SEED string, it will call
96
+ <tt>srand(SEED.hash)</tt> to produce the same permutation each time
97
+ (String#hash produces the integer which is the seed). The randomize
98
+ option also disables +multitask+, making it a regular unthreaded
99
+ +task+.
98
100
 
99
101
  Though this option may produce an error due to an unspecified
100
102
  dependency, at least it will be an error which is exactly the same on
@@ -46,9 +46,14 @@ task :drake_prerelease => [:clean, :gemspec] do
46
46
  unless `git status` =~ %r!nothing to commit \(working directory clean\)!
47
47
  raise "Directory not clean"
48
48
  end
49
- unless `ping -c2 github.com` =~ %r!0% packet loss!i
50
- raise "No ping for github.com"
49
+ unless `git pull` =~ %r!Already up-to-date!
50
+ raise "New stuff from remote repository"
51
51
  end
52
+ %w[github.com rubyforge.org].each { |server|
53
+ unless `ping -c2 #{server}` =~ %r!0% packet loss!
54
+ raise "No ping for #{server}"
55
+ end
56
+ }
52
57
  end
53
58
 
54
59
  task :drake_publish => :rdoc do
@@ -57,13 +62,14 @@ task :drake_publish => :rdoc do
57
62
  }
58
63
  end
59
64
 
60
- def rubyforge(command, file)
65
+ def rubyforge(command, file, *args)
61
66
  sh("rubyforge",
62
67
  command,
63
68
  SPEC.rubyforge_project,
64
69
  SPEC.rubyforge_project,
65
70
  SPEC.version.to_s,
66
- file)
71
+ file,
72
+ *args)
67
73
  end
68
74
 
69
75
  task :drake_finish_release do
@@ -72,7 +78,8 @@ task :drake_finish_release do
72
78
  gem = "#{SPEC.name}-#{SPEC.version}.gem"
73
79
  md5 = "#{gem}.md5"
74
80
  sh("md5sum #{gem} > #{md5}")
75
- rubyforge("add_release", gem)
81
+ rubyforge(
82
+ *%W(add_release #{gem} --release_changes CHANGES.drake --preformatted))
76
83
  rubyforge("add_file", md5)
77
84
  }
78
85
 
@@ -29,7 +29,7 @@
29
29
  # as a library via a require statement, but it can be distributed
30
30
  # independently as an application.
31
31
 
32
- RAKEVERSION = '0.8.2.1.0.7'
32
+ RAKEVERSION = '0.8.2.1.0.9'
33
33
 
34
34
  require 'rbconfig'
35
35
  require 'getoptlong'
@@ -2282,12 +2282,12 @@ module Rake
2282
2282
  ['--threads', '-j N', "Specifies the number of threads to run simultaneously.",
2283
2283
  lambda { |value| self.num_threads = value.to_i }
2284
2284
  ],
2285
- ['--rand[=SEED]', "Randomize task prerequisite orders",
2285
+ ['--randomize[=SEED]', "Randomize task prerequisite orders",
2286
2286
  lambda { |value|
2287
2287
  MultiTask.class_eval { remove_method(:invoke_prerequisites) }
2288
2288
  options.randomize = true
2289
2289
  if value
2290
- srand(value.to_i)
2290
+ srand(value.hash)
2291
2291
  end
2292
2292
  }
2293
2293
  ],
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2.1.0.7
4
+ version: 0.8.2.1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - James M. Lawrence