softwear-lib 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 479b2fe37f98e4ca3883eca7230cca8c060d6b63
4
- data.tar.gz: 3905ac9b857f532c2827dc3ca54af090f34ceafa
3
+ metadata.gz: 048de840e37796a7bb9313ef628282339f92f67c
4
+ data.tar.gz: 32d5f3b975a4dd08fce61eea27f44dfe552d311f
5
5
  SHA512:
6
- metadata.gz: f91eeb9abc7816841f5e80f16eda9b1f59054fc58d2e4081c864212103c8054baf467316464ac66a3675c7a6dd67871252cbe3936ebf1569808117d8ba02f34e
7
- data.tar.gz: 685cfe1623e20e98c5d255e4582c580236dd688d9f568f79f35eca63031268a9aafe43f0612554e15fcde733307d0c423f94ec39edbbc1a31f27eb0975f2a5f8
6
+ metadata.gz: 776e996a4b5045f04ee69aec5d92cb79555074c4210f1fa9224628c580df89393fd83266cc9274ad9f19e247bdf27c00239c1b2678affdc3eb50d6ed9a7a4b8c
7
+ data.tar.gz: f86cff6a3918405d25fc1bae71c21388f99c8134e17efa833f010f682751ad4d84e8f44b874c1fd2f51a152afe629b5ef0f449761a747a9a95eeaea0646948c7
@@ -1,5 +1,5 @@
1
1
  module Softwear
2
2
  module Lib
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
data/lib/softwear/lib.rb CHANGED
@@ -5,8 +5,6 @@ module Softwear
5
5
  module Lib
6
6
  def self.common_gems(gemfile)
7
7
  gemfile.instance_eval do
8
- gem 'softwear-lib'
9
-
10
8
  gem 'rails', '4.2.1'
11
9
 
12
10
  gem 'mysql2'
@@ -62,17 +60,20 @@ module Softwear
62
60
 
63
61
  def self.capistrano(context)
64
62
  context.instance_eval do
65
- gems_path = fetch(:gems_path) || "#{fetch(:deploy_to)}/shared/bundle/rbx/2.1/gems"
63
+ gem_home = fetch(:gems_path) || "#{fetch(:deploy_to)}/shared/bundle/rbx/2.1/gems"
66
64
 
67
65
  namespace :deploy do
68
66
 
69
67
  desc 'Assure softwear-lib is up to date before deploying'
70
- task :softwear_lib do
71
- execute "GEM_HOME=#{gems_path} gem install softwear-lib"
72
- execute "GEM_HOME=#{gems_path} gem update softwear-lib"
68
+ task :update_softwear_lib do
69
+ on roles(:app), in: :sequence do
70
+ execute "GEM_PATH=#{gem_home} GEM_HOME=#{gem_home} gem install softwear-lib"
71
+ execute "GEM_PATH=#{gem_home} GEM_HOME=#{gem_home} gem update softwear-lib"
72
+ # execute "export GEM_HOME=#{gem_home} && echo gem home IS: $GEM_HOME"
73
+ end
73
74
  end
74
75
 
75
- before :publishing, :restart
76
+ before :updating, :update_softwear_lib
76
77
 
77
78
  end
78
79
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: softwear-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nigel Baillie