Skip to content

Commit

Permalink
created an install-gems script to install gems for one of the integs …
Browse files Browse the repository at this point in the history
…without using Bundler
  • Loading branch information
jkutner committed Oct 30, 2013
1 parent d8d363b commit 43809a3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
12 changes: 2 additions & 10 deletions integration/simple_rack_test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,11 @@
<artifactId>jruby-maven-plugin</artifactId>
<executions>
<execution>
<id>install-gems-bouncy-castle</id>
<id>install-gems</id>
<phase>initialize</phase>
<goals><goal>jruby</goal></goals>
<configuration>
<args>-S gem install bouncy-castle-java -v 1.5.0147</args>
</configuration>
</execution>
<execution>
<id>install-gems-rake</id>
<phase>initialize</phase>
<goals><goal>jruby</goal></goals>
<configuration>
<args>-S gem install rake -v 10.1.0</args>
<args>-S ${basedir}/src/main/ruby/bin/install-gems.rb</args>
</configuration>
</execution>
<execution>
Expand Down
10 changes: 10 additions & 0 deletions integration/simple_rack_test/src/main/ruby/bin/install-gems.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env ruby

require 'rubygems'
require 'rubygems/dependency_installer'

installer = Gem::DependencyInstaller.new(:force => true)

installer.install( 'bouncy-castle-java', '1.5.0147' )
installer.install( 'rake', '10.1.0' )
installer.install( 'diff-lcs', '1.2.4' )

0 comments on commit 43809a3

Please sign in to comment.