lib/softwear/lib.rb in softwear-lib-0.0.4 vs lib/softwear/lib.rb in softwear-lib-0.0.5
- old
+ new
@@ -14,12 +14,12 @@
gem 'bootstrap-sass', '~> 3.2.0'
gem 'activeresource'
gem 'jquery-rails'
gem 'jquery-ui-rails'
gem 'hirb'
- gem 'momentjs-rails', '>= 2.8.3'
- gem 'bootstrap3-datetimepicker-rails', '~> 3.1.3'
+ gem 'momentjs-rails', '~> 2.9.0'
+ gem 'bootstrap3-datetimepicker-rails', '4.7.14'
gem 'js-routes'
gem 'inherited_resources'
gem 'devise'
gem 'figaro'
gem 'paranoia', '~> 2.0'
@@ -58,19 +58,17 @@
end
end
def self.capistrano(context)
context.instance_eval do
- gem_home = fetch(:gems_path) || "#{fetch(:deploy_to)}/shared/bundle/rbx/2.1/gems"
+ gem_home = fetch(:gems_path) || "~/.rvm/rubies/#{fetch(:rvm_ruby_string)}/gems/gems"
namespace :deploy do
desc 'Assure softwear-lib is up to date before deploying'
task :update_softwear_lib do
on roles(:app), in: :sequence do
- execute "GEM_PATH=#{gem_home} GEM_HOME=#{gem_home} gem install softwear-lib"
- execute "GEM_PATH=#{gem_home} GEM_HOME=#{gem_home} gem update softwear-lib"
- # execute "export GEM_HOME=#{gem_home} && echo gem home IS: $GEM_HOME"
+ execute "gem install -i #{gem_home} softwear-lib"
end
end
before :updating, :update_softwear_lib