mina-extras 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mina-extras/rvm.rb +8 -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: fe14eb9aaa398b20df834e46861bc22aa9d7d573
|
4
|
+
data.tar.gz: 6135f4872223648d66290759e3110486d3e8068d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3a260d4e22c9d7d4baef971b58af94dbdaeacc2f5d0655ec26d14dbc3da7168f1bb91d1de61f56521c5d9482cb7147dc8adeacc2bdab4f809fa75ce6d26a721
|
7
|
+
data.tar.gz: d7ebde2a3d17272de78dce4fd84860645bd28df740c3e8c4dcc19d89ab5d2d367bfb0e20d004581b19f306ed9661ca3b5840ba27978b8c9547be07934ef1eb1d
|
data/lib/mina-extras/rvm.rb
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
app_root = %x[pwd].strip
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
version = File.read("#{app_root}/.ruby-version").strip
|
4
|
+
if File.exist?("#{app_root}/.ruby-gemset")
|
5
|
+
gemset = File.read("#{app_root}/.ruby-gemset").strip
|
6
|
+
else
|
7
|
+
version, gemset = version.split("@")
|
8
|
+
end
|
9
|
+
set :current_ruby, version
|
10
|
+
set :current_gemset, gemset
|
5
11
|
|
6
12
|
task :'rvm:use:current' do
|
7
13
|
invoke :"rvm:use[#{current_ruby!}@#{current_gemset!}]"
|