cake 0.4.8 → 0.4.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/bin/cake +5 -4
  2. data/lib/bake.jar +0 -0
  3. data/lib/cake.jar +0 -0
  4. metadata +3 -3
data/bin/cake CHANGED
@@ -731,19 +731,20 @@ if debug?
731
731
  end
732
732
 
733
733
  # Bootstrap cake dependencies.
734
- lib = "#{$cakedir}/lib"
735
- if File.exists?("#{$cakedir}/.gitignore") and File.exists?("#{$cakedir}/project.clj")
734
+ lib = "#{$cakedir}/lib"
735
+ project = "#{$cakedir}/project.clj"
736
+
737
+ if File.exists?("#{$cakedir}/.gitignore") and File.exists?(project)
736
738
  log(:cake, "running from git checkout") if verbose?
737
739
  if $command == :upgrade
738
740
  log(:upgrade, "pulling latest code from git")
739
741
  system('git pull')
740
742
  end
741
743
 
742
- project = "#{$cakedir}/project.clj"
743
744
  $version = IO.read(project).split("\n").first.match(/defproject cake \"(.*)\"/)[1]
744
745
  log(:deps, "project.clj version is #{$version}") if debug?
745
746
 
746
- FileUtils.remove_dir("lib", true) if newer?(project, lib)
747
+ FileUtils.remove_dir(lib, true) if newer?(project, lib)
747
748
  if Dir["#{lib}/*.jar"].empty? or Dir["#{lib}/dev/*.jar"].empty?
748
749
  # In a new git checkout, need to fetch dependencies.
749
750
  begin
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: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 8
10
- version: 0.4.8
9
+ - 9
10
+ version: 0.4.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Balthrop