-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1049 from ruby/use-serialization
Use serialization for snapshots
- Loading branch information
Showing
905 changed files
with
39 additions
and
49 deletions.
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 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
$:.unshift(File.expand_path("../lib", __dir__)) | ||
require "yarp" | ||
require "pp" | ||
|
||
# We don't have the original source, so this is not going to be entirely | ||
# accurate. But it's still better than nothing. | ||
class Source | ||
def byteslice(*) | ||
"" | ||
end | ||
|
||
def force_encoding(*) | ||
self | ||
end | ||
end | ||
|
||
puts PP.pp(YARP.load(Source.new, File.read(ARGV[0])), +"", 79) |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-152 Bytes
(29%)
test/snapshots/heredocs_with_ignored_newlines_and_non_empty.txt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-228 Bytes
(24%)
test/snapshots/seattlerb/attrasgn_primary_dot_constant.txt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-534 Bytes
(14%)
test/snapshots/seattlerb/begin_rescue_else_ensure_bodies.txt
Binary file not shown.
Binary file modified
BIN
-241 Bytes
(21%)
test/snapshots/seattlerb/begin_rescue_else_ensure_no_bodies.txt
Binary file not shown.
Binary file modified
BIN
-208 Bytes
(21%)
test/snapshots/seattlerb/begin_rescue_ensure_no_bodies.txt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-738 Bytes
(17%)
test/snapshots/seattlerb/block_arg_opt_splat_arg_block_omfg.txt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-1.02 KB
(14%)
test/snapshots/seattlerb/block_call_defn_call_block_call.txt
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-1.42 KB
(14%)
test/snapshots/seattlerb/block_call_dot_op2_cmd_args_do_block.txt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-561 Bytes
(19%)
test/snapshots/seattlerb/block_call_paren_call_block_call.txt
Binary file not shown.
Binary file modified
BIN
-459 Bytes
(18%)
test/snapshots/seattlerb/block_command_operation_colon.txt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-711 Bytes
(17%)
test/snapshots/seattlerb/block_opt_splat_arg_block_omfg.txt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-851 Bytes
(14%)
test/snapshots/seattlerb/bug_args_masgn_outer_parens__19.txt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-383 Bytes
(17%)
test/snapshots/seattlerb/call_args_assoc_trailing_comma.txt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-451 Bytes
(15%)
test/snapshots/seattlerb/call_stabby_do_end_with_block.txt
Binary file not shown.
Binary file modified
BIN
-451 Bytes
(15%)
test/snapshots/seattlerb/call_stabby_with_braces_block.txt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-639 Bytes
(15%)
test/snapshots/seattlerb/case_in_array_pat_paren_assign.txt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-601 Bytes
(14%)
test/snapshots/seattlerb/case_in_hash_pat_paren_assign.txt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-391 Bytes
(18%)
test/snapshots/seattlerb/defn_oneliner_noargs_parentheses.txt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-957 Bytes
(12%)
test/snapshots/seattlerb/defs_as_arg_with_do_block_inside.txt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-455 Bytes
(20%)
test/snapshots/seattlerb/eq_begin_why_wont_people_use_their_spacebar.txt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-314 Bytes
(20%)
test/snapshots/seattlerb/heredoc__backslash_dos_format.txt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-1.16 KB
(12%)
test/snapshots/seattlerb/heredoc_squiggly_blank_line_plus_interpolation.txt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-251 Bytes
(22%)
test/snapshots/seattlerb/heredoc_squiggly_visually_blank_lines.txt
Binary file not shown.
Binary file modified
BIN
-276 Bytes
(20%)
test/snapshots/seattlerb/heredoc_trailing_slash_continued_call.txt
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-154 Bytes
(27%)
test/snapshots/seattlerb/heredoc_with_carriage_return_escapes.txt
Binary file not shown.
Binary file modified
BIN
-156 Bytes
(28%)
test/snapshots/seattlerb/heredoc_with_carriage_return_escapes_windows.txt
Binary file not shown.
Binary file modified
BIN
-147 Bytes
(26%)
test/snapshots/seattlerb/heredoc_with_extra_carriage_horrible_mix.txt
Binary file not shown.
Binary file modified
BIN
-154 Bytes
(27%)
test/snapshots/seattlerb/heredoc_with_extra_carriage_returns.txt
Binary file not shown.
Binary file modified
BIN
-156 Bytes
(28%)
test/snapshots/seattlerb/heredoc_with_extra_carriage_returns_windows.txt
Binary file not shown.
Binary file modified
BIN
-302 Bytes
(18%)
test/snapshots/seattlerb/heredoc_with_interpolation_and_carriage_return_escapes.txt
Binary file not shown.
Binary file modified
BIN
-303 Bytes
(18%)
test/snapshots/seattlerb/heredoc_with_interpolation_and_carriage_return_escapes_windows.txt
Binary file not shown.
Binary file modified
BIN
-150 Bytes
(25%)
test/snapshots/seattlerb/heredoc_with_not_global_interpolation.txt
Binary file not shown.
Oops, something went wrong.