```ruby
require 'rubygems'
project = 'rack'
gemspec = File.expand_path("#{project}.gemspec", Dir.pwd)
Gem::Specification.load(gemspec).dependencies.each do |dep|
  gem dep.name, *dep.requirement.as_list
end```

Make fulltest work on jruby
user
```ruby
require 'rubygems'
project = 'rack'
gemspec = File.expand_path("#{project}.gemspec", Dir.pwd)
Gem::Specification.load(gemspec).dependencies.each do |dep|
  unless dep.name == 'fcgi' && RUBY_PLATFORM =~ /java/
    gem dep.name, *dep.requirement.as_list
  end
end
```
assistant