#!/bin/bash

# Copyright (C) 2007, 2008, 2009, 2010 The Collaborative Software Foundation
#
# This file is part of TriSano.
#
# TriSano is free software: you can redistribute it and/or modify it under the 
# terms of the GNU Affero General Public License as published by the 
# Free Software Foundation, either version 3 of the License, 
# or (at your option) any later version.
#
# TriSano is distributed in the hope that it will be useful, but 
# WITHOUT ANY WARRANTY; without even the implied warranty of 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License 
# along with TriSano. If not, see http://www.gnu.org/licenses/agpl-3.0.txt.

# install the .gem files that are required to run the system

. setenv.sh

GEM_DIR=../lib/gems/
WEBAPP_DIR=../webapp

echo "installing gems"
jruby -S gem update --system
jruby -S gem install --no-ri --no-rdoc $GEM_DIR/bundler-1.0.7.gem

cd $WEBAPP_DIR
bundle install --local --binstubs

#!/bin/bash

# Copyright (C) 2007, 2008, 2009, 2010 The Collaborative Software Foundation
#
# This file is part of TriSano.
#
# TriSano is free software: you can redistribute it and/or modify it under the 
# terms of the GNU Affero General Public License as published by the 
# Free Software Foundation, either version 3 of the License, 
# or (at your option) any later version.
#
# TriSano is distributed in the hope that it will be useful, but 
# WITHOUT ANY WARRANTY; without even the implied warranty of 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License 
# along with TriSano. If not, see http://www.gnu.org/licenses/agpl-3.0.txt.

# install the .gem files that are required to run the system

. setenv.sh

GEM_DIR=../lib/gems/
WEBAPP_DIR=../webapp

echo "installing gems"
jruby -S gem update --system
jruby -S gem install --no-ri --no-rdoc $GEM_DIR/bundler-1.0.0.gem

cd $WEBAPP_DIR
bundle install --local --binstubs

--- 
+++ 
@@ -26,7 +26,7 @@
 
 echo "installing gems"
 jruby -S gem update --system
-jruby -S gem install --no-ri --no-rdoc $GEM_DIR/bundler-1.0.0.gem
+jruby -S gem install --no-ri --no-rdoc $GEM_DIR/bundler-1.0.7.gem
 
 cd $WEBAPP_DIR
 bundle install --local --binstubs
Upgrade the bundler version installed by the shell script. Hopefully,
this will resolve the installer issues on the build machine.
