Sha256: 2e8e74fdfd93297ffed1cfc45d2f670a9e1dec3c648960213b312c45d17feba5
Contents?: true
Size: 1 KB
Versions: 2
Compression:
Stored size: 1 KB
Contents
module Gap module Ruby25 URL = "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.5.3-1/rubyinstaller-2.5.3-1-x86.7z" def self.provide(path = "samdev/ruby25") @ruby = Samsara.new "ruby.sam" ruby_exe = "#{path}/rubyinstaller-2.5.3-1-x86/bin/ruby.exe" unless FileTest.exists?(ruby_exe) unless @ruby.has_file_in? "rubyinstaller-2.5.3-1-x86.7z" Gap::Maker.new do FROM "ruby.sam" aria = File.expand_path Gap::Aria2C.genfile "aria2c.exe" system "cd #{@temp} && #{aria} #{URL}" end @ruby = Samsara.new "ruby.sam" end file = @ruby.genfile("rubyinstaller-2.5.3-1-x86.7z") sza = Gap::SevenZA.genfile "7za.exe" system "#{sza} x -aou -o#{path} #{file}" end ruby_exe end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gap50-0.1.1 | lib/gap50/ext/ruby25.rb |
gap50-0.1.0 | lib/gap50/ext/ruby25.rb |