raven 1.1 → 1.1.1

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.
@@ -62,20 +62,22 @@ module Raven
62
62
  super
63
63
  ambiguous, notfound = [], []
64
64
  # Installing missing Gems (if there are)
65
- @gem_deps = @deps.flatten.collect do |dep|
66
- # Wrapping in an array, we might not have an array with version
67
- # as dependency.
68
- deparr = dep.respond_to?(:to_a) ? dep.to_a.flatten : [dep]
69
- begin
70
- Raven::GemInstaller.install_or_not(*deparr)
71
- rescue GemNotFoundException => gnfe
72
- notfound << gnfe.message
73
- rescue AmbiguousGemException => age
74
- ambiguous << age
65
+ if @deps
66
+ @gem_deps = @deps.flatten.collect do |dep|
67
+ # Wrapping in an array, we might not have an array with version
68
+ # as dependency.
69
+ deparr = dep.respond_to?(:to_a) ? dep.to_a.flatten : [dep]
70
+ begin
71
+ Raven::GemInstaller.install_or_not(*deparr)
72
+ rescue GemNotFoundException => gnfe
73
+ notfound << gnfe.message
74
+ rescue AmbiguousGemException => age
75
+ ambiguous << age
76
+ end
77
+ end
78
+ unless notfound.empty? && ambiguous.empty?
79
+ raise(RuntimeError, notfound.join($/) + $/ + ambiguous.join($/))
75
80
  end
76
- end
77
- unless notfound.empty? && ambiguous.empty?
78
- raise(RuntimeError, notfound.join($/) + $/ + ambiguous.join($/))
79
81
  end
80
82
  end
81
83
 
@@ -58,7 +58,7 @@ module Raven
58
58
  source_files = @build_path.collect do |d|
59
59
  Dir.glob("#{d}/**/*.java").select do |java|
60
60
  classfile = 'target/classes/' + java[d.length, (java.length - 5 - d.length)] + '.class'
61
- File.exist?(classfile) ? File.stat(java).ctime > File.stat(classfile).ctime : true
61
+ File.exist?(classfile) ? File.stat(java).mtime > File.stat(classfile).mtime : true
62
62
  end
63
63
  end.flatten
64
64
 
@@ -67,8 +67,8 @@ module Raven
67
67
  source_pkg = Set.new
68
68
  source_files.each { |src| source_pkg << File.join(File.dirname(src), '*.java') }
69
69
  # Executing javac
70
- puts "javac -cp #{classpath.join(CP_SEP)} -sourcepath #{@build_path.join(CP_SEP)} -d target/classes #{source_pkg.to_a.join(' ')}" if RakeFileUtils.verbose_flag
71
- `javac -cp #{classpath.join(CP_SEP)} -sourcepath #{@build_path.join(CP_SEP)} -d target/classes #{source_pkg.to_a.join(' ')}`
70
+ puts "javac -classpath "#{classpath.join(CP_SEP)}" -sourcepath "#{@build_path.join(CP_SEP)}" -d target/classes #{source_pkg.to_a.join(' ')}" if RakeFileUtils.verbose_flag
71
+ `javac -classpath "#{classpath.join(CP_SEP)}" -sourcepath "#{@build_path.join(CP_SEP)}" -d target/classes #{source_pkg.to_a.join(' ')}`
72
72
  unless $? == 0
73
73
  puts "Build failed, see above errors."
74
74
  exit
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: raven
5
5
  version: !ruby/object:Gem::Version
6
- version: "1.1"
7
- date: 2006-11-02 00:00:00 -08:00
6
+ version: 1.1.1
7
+ date: 2006-11-11 00:00:00 -08:00
8
8
  summary: Java build system based on Rake and Gem.
9
9
  require_paths:
10
10
  - lib