rsm 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/rsm/actions.rb +10 -3
  3. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.9
1
+ 0.1.10
data/lib/rsm/actions.rb CHANGED
@@ -15,18 +15,25 @@ module Rsm
15
15
  @application_root
16
16
  end
17
17
 
18
- def run_ruby_binary(command, config = {})
18
+ def ruby_binary
19
19
  rvmrc = application_root.join(".rvmrc")
20
20
  with = if rvmrc.exist?
21
21
  File.new(rvmrc).readline.strip + " exec"
22
22
  else
23
23
  "#{Thor::Util.ruby_command} -S"
24
24
  end
25
- run(command, config.merge(:with => with))
25
+ with
26
+ end
27
+
28
+ def run_ruby_binary(command, config = {})
29
+ run(command, config.merge(:with => ruby_binary))
26
30
  end
27
31
 
28
32
  def run_with_bundler(command, config = {})
29
- run_ruby_binary("#{application_root}/bin/#{command}", config)
33
+ ruby_binary_with_bundler = "#{ruby_binary} bundle exec"
34
+ inside application_root do
35
+ run(command, config.merge(:with => ruby_binary_with_bundler))
36
+ end
30
37
  end
31
38
 
32
39
  # relative downloaded filename
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rsm
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.9
5
+ version: 0.1.10
6
6
  platform: ruby
7
7
  authors:
8
8
  - Oleksandr Ulianytskyi