cake 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/cake +12 -5
- data/lib/bake.jar +0 -0
- data/lib/cake.jar +0 -0
- metadata +4 -4
data/bin/cake
CHANGED
@@ -7,6 +7,7 @@ require 'rexml/document'
|
|
7
7
|
require 'socket'
|
8
8
|
require 'timeout'
|
9
9
|
require 'fileutils'
|
10
|
+
require 'pp'
|
10
11
|
|
11
12
|
begin
|
12
13
|
require 'readline'
|
@@ -513,7 +514,7 @@ end
|
|
513
514
|
|
514
515
|
# Bootstrap cake dependencies.
|
515
516
|
lib = "#{$cakedir}/lib"
|
516
|
-
if File.exists?("#{$cakedir}/.gitignore")
|
517
|
+
if File.exists?("#{$cakedir}/.gitignore") and File.exists?("#{$cakedir}/project.clj")
|
517
518
|
if Dir["#{lib}/*.jar"].empty? or Dir["#{lib}/dev/*.jar"].empty?
|
518
519
|
# In a new git checkout, need to fetch dependencies.
|
519
520
|
version = IO.read("#{$cakedir}/project.clj").split("\n").first.match(/defproject cake \"(.*)\"/)[1]
|
@@ -597,12 +598,18 @@ elsif [:start, :reload, :restart].include?($command)
|
|
597
598
|
end
|
598
599
|
else
|
599
600
|
cake.bakeport = bake.port
|
600
|
-
if $command == :
|
601
|
-
interval = $opts[:
|
602
|
-
interval = (config['
|
601
|
+
if $command == :autotest
|
602
|
+
interval = $opts[:autotest].last.to_i if $opts[:autotest]
|
603
|
+
interval = interval || (config['autotest.interval'].to_i if config['autotest.interval']) || 1
|
603
604
|
run_tests = true
|
605
|
+
ran = false
|
604
606
|
while true
|
605
|
-
|
607
|
+
args = ["--auto"]
|
608
|
+
if ran == false
|
609
|
+
args << "--report"
|
610
|
+
ran = true
|
611
|
+
end
|
612
|
+
cake.send_command('test', args) if run_tests
|
606
613
|
run_tests = bake.reload
|
607
614
|
cake.reload
|
608
615
|
sleep(interval)
|
data/lib/bake.jar
CHANGED
Binary file
|
data/lib/cake.jar
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 3
|
10
|
+
version: 0.3.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Justin Balthrop
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-07-
|
19
|
+
date: 2010-07-28 00:00:00 -07:00
|
20
20
|
default_executable: cake
|
21
21
|
dependencies: []
|
22
22
|
|