drake 0.8.2.0.0.2 → 0.8.2.1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile.drake CHANGED
@@ -86,13 +86,24 @@ task :drake_publish => :rdoc do
86
86
  }
87
87
  end
88
88
 
89
- task :drake_finish_release do
89
+ def rubyforge(command, file)
90
90
  sh("rubyforge",
91
91
  "add_release",
92
92
  SPEC.rubyforge_project,
93
93
  SPEC.rubyforge_project,
94
94
  SPEC.version.to_s,
95
- "pkg/#{SPEC.name}-#{SPEC.version}.gem")
95
+ file)
96
+ end
97
+
98
+ task :drake_finish_release do
99
+ Dir.chdir("pkg") {
100
+ gem = "#{SPEC.name}-#{SPEC.version}.gem"
101
+ md5 = "#{gem}.md5"
102
+ sh("md5sum #{gem} > #{md5}")
103
+ rubyforge("add_release", gem)
104
+ rubyforge("add_file", md5)
105
+ }
106
+
96
107
  git("tag", "drake-" + SPEC.version.to_s)
97
108
  git("push", "--tags")
98
109
  end
data/lib/rake.rb CHANGED
@@ -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.0.0.2'
32
+ RAKEVERSION = '0.8.2.1.0.3'
33
33
 
34
34
  require 'rbconfig'
35
35
  require 'getoptlong'
@@ -1614,7 +1614,7 @@ module Rake
1614
1614
  class << self
1615
1615
 
1616
1616
  # Yield each file or directory component.
1617
- def each_dir_parent(dir)
1617
+ def each_dir_parent(dir) # :nodoc:
1618
1618
  old_length = nil
1619
1619
  while dir != '.' && dir.length != old_length
1620
1620
  yield(dir)
data/lib/rake/parallel.rb CHANGED
@@ -28,7 +28,11 @@ module Rake
28
28
  parallel_tasks.each_pair { |task_name, task_args|
29
29
  task = self[task_name]
30
30
  children_names = task.prerequisites.map { |child|
31
- child.to_sym
31
+ if child_task = (lookup(child) or lookup(child, task.scope))
32
+ child_task.name.to_sym
33
+ else
34
+ raise "couldn't resolve #{task_name} prereq: #{child_name}"
35
+ end
32
36
  }
33
37
  driver.define(task_name.to_sym, *children_names) {
34
38
  task.execute(task_args)
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.0.0.2
4
+ version: 0.8.2.1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James M. Lawrence
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-09-10 00:00:00 -04:00
12
+ date: 2008-09-11 00:00:00 -04:00
13
13
  default_executable: drake
14
14
  dependencies: []
15
15