rvmbs 0.0.1 → 0.0.2
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.
- data/CHANGELOG.markdown +12 -0
- data/lib/rvmbs.rb +11 -1
- data/lib/rvmbs/version.rb +1 -1
- metadata +2 -1
data/CHANGELOG.markdown
ADDED
data/lib/rvmbs.rb
CHANGED
@@ -78,7 +78,17 @@ module RVMBS
|
|
78
78
|
def self.set_rvmrc_trusted(options, current_dir)
|
79
79
|
current_dir =
|
80
80
|
pid = fork do
|
81
|
-
|
81
|
+
if RUBY_VERSION < "1.9"
|
82
|
+
exit if fork
|
83
|
+
Process.setsid
|
84
|
+
exit if fork
|
85
|
+
Dir.chdir "/"
|
86
|
+
STDIN.reopen "/dev/null"
|
87
|
+
STDOUT.reopen "/dev/null", "a"
|
88
|
+
STDERR.reopen "/dev/null", "a"
|
89
|
+
else
|
90
|
+
Process.daemon
|
91
|
+
end
|
82
92
|
exit system "rvm rvmrc trust #{current_dir}/#{options[:directory]}/"
|
83
93
|
end
|
84
94
|
_, status = Process.waitpid2(pid)
|
data/lib/rvmbs/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rvmbs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -21,6 +21,7 @@ extra_rdoc_files: []
|
|
21
21
|
files:
|
22
22
|
- .gitignore
|
23
23
|
- .rvmrc
|
24
|
+
- CHANGELOG.markdown
|
24
25
|
- Gemfile
|
25
26
|
- Gemfile.lock
|
26
27
|
- LICENSE
|