forked from ontoportal/ontoportal_web_ui
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to bundler for including gems
- Loading branch information
1 parent
17cb194
commit cf5da46
Showing
7 changed files
with
166 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
load 'deploy' if respond_to?(:namespace) # cap2 differentiator | ||
load 'config/deploy' | ||
load 'deploy' | ||
# Uncomment if you are using Rails' asset pipeline | ||
# load 'deploy/assets' | ||
Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) } | ||
load 'config/deploy' # remove this line to skip loading any of the default tasks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Required gems | ||
source :gemcutter | ||
gem "rails", "2.3.14" | ||
|
||
gem "hpricot", "~> 0.8.6" | ||
gem "libxml-ruby", "~> 2.2.0" | ||
gem "recaptcha", "~> 0.3.1" | ||
gem "rest-client", "~> 1.6.1" | ||
gem "mysql", "~> 2.8.1" | ||
gem "ncbo_annotator", ">= 1.0.13" | ||
gem "memcache-client", "~> 1.8.5" | ||
gem "i18n", "~> 0.5.0" | ||
gem "airbrake" | ||
|
||
group :development do | ||
gem "ruby-debug" | ||
gem "mongrel" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
GEM | ||
remote: http://rubygems.org/ | ||
specs: | ||
actionmailer (2.3.14) | ||
actionpack (= 2.3.14) | ||
actionpack (2.3.14) | ||
activesupport (= 2.3.14) | ||
rack (~> 1.1.0) | ||
activerecord (2.3.14) | ||
activesupport (= 2.3.14) | ||
activeresource (2.3.14) | ||
activesupport (= 2.3.14) | ||
activesupport (2.3.14) | ||
airbrake (3.0.9) | ||
activesupport | ||
builder | ||
builder (3.0.0) | ||
cgi_multipart_eof_fix (2.5.0) | ||
columnize (0.3.6) | ||
daemons (1.1.8) | ||
fastthread (1.0.7) | ||
gem_plugin (0.2.3) | ||
hpricot (0.8.6) | ||
i18n (0.5.0) | ||
libxml-ruby (2.2.2) | ||
linecache (0.46) | ||
rbx-require-relative (> 0.0.4) | ||
memcache-client (1.8.5) | ||
mime-types (1.18) | ||
mongrel (1.1.5) | ||
cgi_multipart_eof_fix (>= 2.4) | ||
daemons (>= 1.0.3) | ||
fastthread (>= 1.0.1) | ||
gem_plugin (>= 0.2.3) | ||
mysql (2.8.1) | ||
ncbo_annotator (1.0.13) | ||
libxml-ruby (~> 2.2.0) | ||
rack (1.1.3) | ||
rails (2.3.14) | ||
actionmailer (= 2.3.14) | ||
actionpack (= 2.3.14) | ||
activerecord (= 2.3.14) | ||
activeresource (= 2.3.14) | ||
activesupport (= 2.3.14) | ||
rake (>= 0.8.3) | ||
rake (0.9.2.2) | ||
rbx-require-relative (0.0.9) | ||
recaptcha (0.3.4) | ||
rest-client (1.6.7) | ||
mime-types (>= 1.16) | ||
ruby-debug (0.10.4) | ||
columnize (>= 0.1) | ||
ruby-debug-base (~> 0.10.4.0) | ||
ruby-debug-base (0.10.4) | ||
linecache (>= 0.3) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
airbrake | ||
hpricot (~> 0.8.6) | ||
i18n (~> 0.5.0) | ||
libxml-ruby (~> 2.2.0) | ||
memcache-client (~> 1.8.5) | ||
mongrel | ||
mysql (~> 2.8.1) | ||
ncbo_annotator (>= 1.0.13) | ||
rails (= 2.3.14) | ||
recaptcha (~> 0.3.1) | ||
rest-client (~> 1.6.1) | ||
ruby-debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Bundler init | ||
begin | ||
require "rubygems" | ||
require "bundler" | ||
rescue LoadError | ||
raise "Could not load the bundler gem. Install it with `gem install bundler`." | ||
end | ||
|
||
if Gem::Version.new(Bundler::VERSION) <= Gem::Version.new("0.9.24") | ||
raise RuntimeError, "Your bundler version is too old for Rails 2.3." + | ||
"Run `gem install bundler` to upgrade." | ||
end | ||
|
||
begin | ||
# Set up load paths for all bundled gems | ||
ENV["BUNDLE_GEMFILE"] = File.expand_path("../../Gemfile", __FILE__) | ||
Bundler.setup | ||
rescue Bundler::GemNotFound | ||
raise RuntimeError, "Bundler couldn't find some gems." + | ||
"Did you run `bundle install`?" | ||
end |