softwear-lib 0.0.2 → 0.0.3

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: 08825d3aaf4776a207a573284c00ed85ff47f605
4
- data.tar.gz: b591715755b94803ade9d4b9e03a91f812dae8d1
3
+ metadata.gz: 479b2fe37f98e4ca3883eca7230cca8c060d6b63
4
+ data.tar.gz: 3905ac9b857f532c2827dc3ca54af090f34ceafa
5
5
  SHA512:
6
- metadata.gz: f0d06e27c3b566ea91c837e7b7301dfe0f54d9f126ad6c0496ca4ae478353e93364b858a70c856539d4e032bf23125249de9f9256996c846c1bcb845811c9cf6
7
- data.tar.gz: cc2184fd435be28710009459f523a018196b1ab674d0019239eeb1c2027a2275e2d3d3f449eee75628a0bddbde52e90f65da2828e5514087ef544617214c68e3
6
+ metadata.gz: f91eeb9abc7816841f5e80f16eda9b1f59054fc58d2e4081c864212103c8054baf467316464ac66a3675c7a6dd67871252cbe3936ebf1569808117d8ba02f34e
7
+ data.tar.gz: 685cfe1623e20e98c5d255e4582c580236dd688d9f568f79f35eca63031268a9aafe43f0612554e15fcde733307d0c423f94ec39edbbc1a31f27eb0975f2a5f8
@@ -1,5 +1,5 @@
1
1
  module Softwear
2
2
  module Lib
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
data/lib/softwear/lib.rb CHANGED
@@ -3,8 +3,6 @@ require "softwear/lib/spec"
3
3
 
4
4
  module Softwear
5
5
  module Lib
6
- # Your code goes here...
7
-
8
6
  def self.common_gems(gemfile)
9
7
  gemfile.instance_eval do
10
8
  gem 'softwear-lib'
@@ -62,6 +60,24 @@ module Softwear
62
60
  end
63
61
  end
64
62
 
63
+ def self.capistrano(context)
64
+ context.instance_eval do
65
+ gems_path = fetch(:gems_path) || "#{fetch(:deploy_to)}/shared/bundle/rbx/2.1/gems"
66
+
67
+ namespace :deploy do
68
+
69
+ 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"
73
+ end
74
+
75
+ before :publishing, :restart
76
+
77
+ end
78
+ end
79
+ end
80
+
65
81
  def self.fix_sort_argument_error_on_rubinius
66
82
  # Rubinius calls Enumerator#sort! within Enumerator#sort_by,
67
83
  # # and Mail::PartsList calls sort_by within sort!... See the
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.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nigel Baillie