Sha256: 215aa87f38974f47ec631fc89de43d8377db7aafd880903efb0dd8bf74a8a4ab
Contents?: true
Size: 549 Bytes
Versions: 3
Compression:
Stored size: 549 Bytes
Contents
require 'rubygems/dependency_installer' # This is how we can depend on a different version of the same gem for # different Ruby versions. # See https://en.wikibooks.org/wiki/Ruby_Programming/RubyGems installer = Gem::DependencyInstaller.new begin if RUBY_VERSION >= '2.0' installer.install 'json', '~> 2.0' else installer.install 'json', '~> 1.8' end rescue exit(1) end # Write fake Rakefile for rake since Makefile isn't used File.open(File.join(File.dirname(__FILE__), 'Rakefile'), 'w') do |f| f.write("task :default\n") end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
approvals-0.0.25 | ext/mkrf_conf.rb |
approvals-0.0.24 | ext/mkrf_conf.rb |
br-approvals-0.0.22 | ext/mkrf_conf.rb |