echoe 2.7.8 → 2.7.9
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/CHANGELOG +2 -0
- data/lib/echoe.rb +30 -25
- data/lib/echoe/extensions.rb +4 -4
- metadata +2 -2
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG
CHANGED
data/lib/echoe.rb
CHANGED
@@ -617,35 +617,40 @@ class Echoe
|
|
617
617
|
task :build_manifest => :manifest
|
618
618
|
|
619
619
|
### Testing
|
620
|
+
|
621
|
+
if test_pattern.any?
|
620
622
|
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
end
|
626
|
-
|
627
|
-
task :test do
|
628
|
-
if File.exist? 'test/setup.rb'
|
629
|
-
Echoe.silence do
|
630
|
-
puts "Setting up test environment"
|
631
|
-
system("ruby test/setup.rb")
|
632
|
-
end
|
623
|
+
Rake::TestTask.new(:test_inner) do |t|
|
624
|
+
t.libs = ['lib', 'ext', 'bin', 'test']
|
625
|
+
t.test_files = test_pattern
|
626
|
+
t.verbose = true
|
633
627
|
end
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
ensure
|
642
|
-
if File.exist? 'test/teardown.rb'
|
643
|
-
Echoe.silence do
|
644
|
-
puts "Tearing down test environment"
|
645
|
-
system("ruby test/teardown.rb")
|
628
|
+
|
629
|
+
desc "Run the test suite"
|
630
|
+
task :test do
|
631
|
+
if File.exist? 'test/setup.rb'
|
632
|
+
Echoe.silence do
|
633
|
+
puts "Setting up test environment"
|
634
|
+
system("ruby test/setup.rb")
|
646
635
|
end
|
647
636
|
end
|
648
|
-
|
637
|
+
begin
|
638
|
+
test = Rake::Task[:test_inner]
|
639
|
+
if test.respond_to? :already_invoked=
|
640
|
+
# Method provided by MultiRails
|
641
|
+
test.already_invoked = false
|
642
|
+
end
|
643
|
+
test.invoke
|
644
|
+
ensure
|
645
|
+
if File.exist? 'test/teardown.rb'
|
646
|
+
Echoe.silence do
|
647
|
+
puts "Tearing down test environment"
|
648
|
+
system("ruby test/teardown.rb")
|
649
|
+
end
|
650
|
+
end
|
651
|
+
end
|
652
|
+
end
|
653
|
+
|
649
654
|
end
|
650
655
|
|
651
656
|
task :default => :test
|
data/lib/echoe/extensions.rb
CHANGED
@@ -34,14 +34,14 @@ end
|
|
34
34
|
|
35
35
|
module Rake
|
36
36
|
module TaskManager
|
37
|
-
def redefine_task(task_class, args, &block)
|
37
|
+
def redefine_task(task_class, *args, &block)
|
38
38
|
task_name, deps = resolve_args(args)
|
39
39
|
task_name = task_class.scope_name(@scope, task_name)
|
40
40
|
deps = [deps] unless deps.respond_to?(:to_ary)
|
41
41
|
deps = deps.collect {|d| d.to_s }
|
42
42
|
task = @tasks[task_name.to_s] = task_class.new(task_name, self)
|
43
43
|
task.application = self
|
44
|
-
task.add_comment
|
44
|
+
task.send(:add_comment, @last_comment)
|
45
45
|
@last_comment = nil
|
46
46
|
task.enhance(deps, &block)
|
47
47
|
task
|
@@ -49,8 +49,8 @@ module Rake
|
|
49
49
|
end
|
50
50
|
class Task
|
51
51
|
class << self
|
52
|
-
def redefine_task(args, &block)
|
53
|
-
Rake.application.redefine_task(self, args, &block)
|
52
|
+
def redefine_task(*args, &block)
|
53
|
+
Rake.application.redefine_task(self, *args, &block)
|
54
54
|
end
|
55
55
|
end
|
56
56
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: echoe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Weaver
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
yZ0=
|
31
31
|
-----END CERTIFICATE-----
|
32
32
|
|
33
|
-
date: 2008-
|
33
|
+
date: 2008-03-24 00:00:00 -04:00
|
34
34
|
default_executable:
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
metadata.gz.sig
CHANGED
Binary file
|