I am trying to vendor my ruby application, so I don’t need to manually install any gems on the server, and I can deploy my application as rpm in our puppet installation.
This almost works, except in spite of the fact that I am adding a “picker” to the Gemfile, there is no trace of the package that falls into the supplier's directory. So my application failed with
no such file to load
Exactly at the point where our dependencies load.
require 'bundler'
Bundler.setup
Is there something obvious that I don’t see here, or the supplier may not actually sell itself?
For what it's worth, I'm using jruby 1.7.8, and the corresponding application has the following Gemfile:
source 'https://rubygems.org'
gem 'bundler'
gem 'sinatra'
gem 'sinatra-flash'
gem 'sinatra-contrib'
gem 'rack-parser', :require => 'rack/parser'
gem 'dynamic_attributes', :github => 'joona/dynamic_attributes', :require => false
gem 'httparty'
gem 'haml'
gem 'json'
gem 'airbrake'
gem 'bcrypt-ruby', :require => 'bcrypt'
gem 'oauth'
gem 'oauth2'
gem 'omniauth'
gem 'omniauth-dropbox'
gem 'omniauth-facebook'
gem 'omniauth-google-oauth2'
gem 'omniauth-linkedin'
gem 'omniauth-twitter'
gem 'omniauth-windowslive', :git => 'git://github.com/joona/omniauth-windowslive.git'
gem 'lumber'
gem "log4r-gelf"
gem "resque", :github => "resque/resque", :branch => '1-x-stable'
gem "resque-pool"
gem 'tux', :require => false
gem 'actionmailer'
gem 'actionpack', '4.0.1'
gem 'activesupport', '4.0.1', :require => false
gem 'activerecord', '4.0.1'
platforms :jruby do
gem 'activerecord-jdbc-adapter'
gem 'jdbc-mysql'
gem 'activerecord-jdbcmysql-adapter'
end
platforms :ruby do
gem 'mysql2'
end
group :testing do
gem 'shoulda-matchers', :require => false
gem 'webmock', '1.8.0', :require => false
gem 'database_cleaner', '1.0.1'
gem "sequel", "~> 4.3.0", :require => false
gem 'rspec'
gem 'capybara'
gem 'simplecov', :require => false
gem 'launchy'
gem 'rack-test', :require => false
gem 'faker'
gem 'fabrication'
gem 'sinatra-sessionography', :require => false
platforms :ruby do
gem 'sqlite3'
end
platforms :jruby do
gem 'jdbc-sqlite3'
end
end
group :development do
gem 'guard', "1.8.3", :require => false
gem 'guard-sass', '1.3.2', :require => false
gem 'guard-less', '0.1.2', :require => false
gem 'guard-process', '1.0.6', :require => false
gem 'guard-rspec', '3.1.0', :require => false
gem 'juicer'
gem 'foreman', :require => false
gem 'guard-shotgun', :git => 'https://github.com/rchampourlier/guard-shotgun.git'
gem 'capistrano', '~> 2'
gem 'rvm-capistrano'
end
group :production do
platforms :ruby do
gem 'passenger'
end
platforms :jruby do
gem 'fishwife'
end
end