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.
@@ -0,0 +1,12 @@
1
+ ## 0.0.2 (April 24, 2012)
2
+
3
+ Features:
4
+
5
+ - Modifies daemon command for compatibility RUBY_VERSION < 1.9
6
+
7
+
8
+ ## 0.0.1 (February, 23, 2012)
9
+
10
+ Features:
11
+
12
+ - First commit
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
- Process.daemon
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
@@ -1,3 +1,3 @@
1
1
  module RVMBS
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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