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 +4 -4
- data/lib/softwear/lib/version.rb +1 -1
- data/lib/softwear/lib.rb +18 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 479b2fe37f98e4ca3883eca7230cca8c060d6b63
|
4
|
+
data.tar.gz: 3905ac9b857f532c2827dc3ca54af090f34ceafa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f91eeb9abc7816841f5e80f16eda9b1f59054fc58d2e4081c864212103c8054baf467316464ac66a3675c7a6dd67871252cbe3936ebf1569808117d8ba02f34e
|
7
|
+
data.tar.gz: 685cfe1623e20e98c5d255e4582c580236dd688d9f568f79f35eca63031268a9aafe43f0612554e15fcde733307d0c423f94ec39edbbc1a31f27eb0975f2a5f8
|
data/lib/softwear/lib/version.rb
CHANGED
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
|