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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mina-extras/rvm.rb +8 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d25ae529d9db05f253bd86b426f12ce080a7094a
4
- data.tar.gz: d9d47dd78b70b7ff08a12dd11dbe09f0de0376af
3
+ metadata.gz: fe14eb9aaa398b20df834e46861bc22aa9d7d573
4
+ data.tar.gz: 6135f4872223648d66290759e3110486d3e8068d
5
5
  SHA512:
6
- metadata.gz: c441081e9f5d83d3feaa3ce01a676a60cf509f2de05a0730e42a665364a0eae31fbbfcdb637f73aa065214e220a66bf140f60bf15159bd21fc412870d9be3f10
7
- data.tar.gz: c5dde9251553e8de290226001745ce531266cbd8db7d537bd64a0f11fb7be0e09764bcabb8fe42ad64bb40a4f5aa4b907c65fcf6be62316c7712b278ae38a6fa
6
+ metadata.gz: c3a260d4e22c9d7d4baef971b58af94dbdaeacc2f5d0655ec26d14dbc3da7168f1bb91d1de61f56521c5d9482cb7147dc8adeacc2bdab4f809fa75ce6d26a721
7
+ data.tar.gz: d7ebde2a3d17272de78dce4fd84860645bd28df740c3e8c4dcc19d89ab5d2d367bfb0e20d004581b19f306ed9661ca3b5840ba27978b8c9547be07934ef1eb1d
@@ -1,7 +1,13 @@
1
1
  app_root = %x[pwd].strip
2
2
 
3
- set :current_ruby, File.read("#{app_root}/.ruby-version").strip
4
- set :current_gemset, File.read("#{app_root}/.ruby-gemset").strip
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!}]"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina-extras
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Berdajs