cake 0.3.2 → 0.3.3

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 (4) hide show
  1. data/bin/cake +12 -5
  2. data/lib/bake.jar +0 -0
  3. data/lib/cake.jar +0 -0
  4. 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 == :test and $opts[:auto]
601
- interval = $opts[:auto].last.to_i
602
- interval = (config['test.auto.interval'].to_i if config['test.auto.interval']) || (1 if interval == 0)
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
- cake.send_command($command, ARGV) if run_tests
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)
Binary file
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: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 2
10
- version: 0.3.2
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-26 00:00:00 -07:00
19
+ date: 2010-07-28 00:00:00 -07:00
20
20
  default_executable: cake
21
21
  dependencies: []
22
22