forked from jakolehm/ruby-packer
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add vanilla 2.6 * Add enclose/squash/vendor files * Move 2.6 over old ruby * Update version numbers in ruby.patch * Apply patch * Change rubyc version to 0.6.0 * Add ncurses 6.1 * Overwrite ncurses with ncurses 6.1 * Add texinfo? * Replace deploy stage with travis github releases deploy? * Trying to see some errors * Update zlib to 1.2.11 * Trying to see more output on phase1 configure * More patch * Raise on error when capturing * Umm still 2.5.1 in .travis.yml * Actually dont raise there * Fix zlib * Actually it should raise there to not eat exceptions * Gitignore eats configure * Add ruby/configure * Why enc ignored? * Strange ignores * Readd * enc * enc2 * Try to fix did-you-know gem * And still fixing did_you_mean * Did_you_mean gemspec is horrible * What the * What is wrong with this gem!?? * Switch version number assertion in spec * Fix packaging
- Loading branch information
Showing
7,886 changed files
with
321,973 additions
and
373,568 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# Copyright (c) 2017 Minqi Pan <[email protected]> | ||
# | ||
# | ||
# This file is part of Ruby Compiler, distributed under the MIT License | ||
# For full terms see the included LICENSE file | ||
|
||
class Compiler | ||
VERSION = '0.5.0' | ||
VERSION = '0.6.0' | ||
PRJ_ROOT = File.expand_path('../../..', __FILE__) | ||
VENDOR_DIR = File.expand_path('vendor', PRJ_ROOT) | ||
MEMFS = '/__enclose_io_memfs__' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Copyright (c) 2017 Minqi Pan <[email protected]> | ||
# | ||
# | ||
# This file is part of Ruby Compiler, distributed under the MIT License | ||
# For full terms see the included LICENSE file | ||
|
||
|
@@ -17,7 +17,7 @@ def initialize(options = {}) | |
@capture_io = nil | ||
end | ||
|
||
def capture_run_io(log_name) | ||
def capture_run_io(log_name, output_on_success = false) | ||
log_file = File.join @options[:tmpdir], "#{log_name}.log" | ||
|
||
STDERR.puts "=> Saving output to #{log_file}" | ||
|
@@ -27,8 +27,13 @@ def capture_run_io(log_name) | |
|
||
yield | ||
end | ||
if output_on_success | ||
puts "(output_on_success: true) - #{log_file}:" | ||
IO.copy_stream log_file, $stdout | ||
end | ||
rescue Error | ||
IO.copy_stream log_file, $stdout | ||
raise | ||
ensure | ||
@capture_io = nil | ||
end | ||
|
@@ -86,12 +91,12 @@ def chdir(path) | |
Dir.chdir(path) { yield } | ||
STDERR.puts "-> cd #{Dir.pwd}" unless @options[:quiet] | ||
end | ||
|
||
def cp(x, y) | ||
STDERR.puts "-> cp #{x.inspect} #{y.inspect}" unless @options[:quiet] | ||
FileUtils.cp(x, y) | ||
end | ||
|
||
def cp_r(x, y, options = {}) | ||
STDERR.puts "-> cp -r #{x.inspect} #{y.inspect}" unless @options[:quiet] | ||
FileUtils.cp_r(x, y, options) | ||
|
@@ -116,12 +121,12 @@ def mkdir(x) | |
STDERR.puts "-> mkdir #{x}" unless @options[:quiet] | ||
FileUtils.mkdir(x) | ||
end | ||
|
||
def mkdir_p(x) | ||
STDERR.puts "-> mkdir -p #{x}" unless @options[:quiet] | ||
FileUtils.mkdir_p(x) | ||
end | ||
|
||
def remove_dynamic_libs(path) | ||
['dll', 'dylib', 'so'].each do |extname| | ||
Dir["#{path}/**/*.#{extname}"].each do |x| | ||
|
Oops, something went wrong.