public
Rubygem
Description: Apache Buildr
Homepage: http://incubator.apache.org/buildr
Clone URL: git://github.com/vic/buildr.git
Search Repo:
Force Buildr to ignore RJB 1.1.3 (no Windows support).


git-svn-id: https://svn.apache.org/repos/asf/incubator/buildr/trunk@655759 
13f79535-47bb-0310-9956-ffa450edef68
Assaf (author)
Tue May 13 00:26:44 -0700 2008
commit  6c4a6f8912069e1aae5a9d16f11d8921daf5dc00
tree    385b709a1f01a90e687c48bb78d6f81dec7feb9a
parent  9daf7c8446b8bd7732331c3b09847d030c373d2b
...
27
28
29
30
 
 
31
32
33
...
27
28
29
 
30
31
32
33
34
0
@@ -27,7 +27,8 @@
0
       spec.add_dependency 'jruby-openssl', '~> 0.2'
0
       spec.add_dependency 'ci_reporter', '~> 1.5'
0
     else
0
- spec.add_dependency 'rjb', '~>1.1'
0
+ # Place first on the dependency list, otherwise AntWrap picks the latest RJB.
0
+ spec.dependencies.unshift Gem::Dependency.new('rjb', ['~>1.1', '!= 1.1.3'])
0
     end
0
     spec
0
   end
...
40
41
42
43
 
44
45
46
...
40
41
42
 
43
44
45
46
0
@@ -40,7 +40,7 @@
0
   dep = Gem::Dependency.new(name, ver_requirement)
0
   rb_bin = File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name'])
0
   if Gem::SourceIndex.from_installed_gems.search(dep).empty?
0
- spec = Gem::SourceInfoCache.search(dep).last
0
+ spec = Gem::SourceInfoCache.search(dep, true, true).last
0
     fail "#{dep} not found in local or remote repository!" unless spec
0
     puts "Installing #{spec} ..."
0
     args = [rb_bin, '-S', 'gem', 'install', spec.name, '-v', spec.version.to_s]

Comments

    No one has commented yet.