Sha256: d95e2715d862b20b7943c048a23f134b1851f65d14c6c58b34a9ec6c4a04274c

Contents?: true

Size: 733 Bytes

Versions: 2

Compression:

Stored size: 733 Bytes

Contents

# Install syck gem only when the RUBY_VERSION >= "2.0"
# http://stackoverflow.com/questions/4596606/rubygems-how-do-i-add-platform-specific-dependency
# http://en.wikibooks.org/wiki/Ruby_Programming/RubyGems#How_to_install_different_versions_of_gems_depending_on_which_version_of_ruby_the_installee_is_using

require 'rubygems'
require 'rubygems/command.rb'
require 'rubygems/dependency_installer.rb'

begin
  Gem::Command.build_args = ARGV
rescue NoMethodError
end

inst = Gem::DependencyInstaller.new
begin
  if RUBY_VERSION >= '2.0'
    inst.install 'syck'
  end
rescue
  exit(1)
end

# create dummy rakefile to indicate success
f = File.open(File.join(File.dirname(__FILE__), 'Rakefile'), 'w')
f.write("task :default\n")
f.close

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
smallcage-0.2.5 ext/mkrf_conf.rb
smallcage-0.2.4 ext/mkrf_conf.rb