1 # Add a Rubinius platform to the platforms list.
2 cpu = Gem::Platform.local.cpu
3 version = Rubinius::RBX_VERSION.split('.')[0, 2].join '.'
4 Gem.platforms << Gem::Platform.new([cpu, 'rubinius', version])
6 # RBX_PREFIX lets use detect that we're running in dev mode, and use
10 def self.default_bindir
11 File.join ENV['RBX_PREFIX'], "lib", "bin"
15 File.join ENV['RBX_PREFIX'], "tmp", "gems", Gem::ConfigMap[:ruby_version]
18 def self.default_preinstalled_dir
19 version = Rubinius::RBX_VERSION.split('.')[0, 2].join '.'
20 pre_installed = File.join ENV['RBX_PREFIX'], "tmp", "gems",
26 def self.default_bindir
27 File.join Rubinius::CODE_PATH, "bin"
31 File.join File.dirname(Rubinius::CODE_PATH), 'gems', Gem::ConfigMap[:ruby_version]
34 def self.default_preinstalled_dir
35 version = Rubinius::RBX_VERSION.split('.')[0, 2].join '.'
36 pre_installed = File.join File.dirname(Rubinius::CODE_PATH), "gems",
44 [default_dir, default_preinstalled_dir]