This file contains hidden or 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
#!/usr/bin/env -S ruby -w | |
$: << File.expand_path("~/Links/RI/lib") | |
$: << File.expand_path("~/Links/ZT/lib") | |
require "rubygems" | |
require "inline" | |
class X | |
inline :C do |builder| |
This file contains hidden or 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
10000 $ ./diffdump 'def a(...); b(...); end' 'def a(x, ...); b(...); end' | |
--- /dev/fd/63 2025-05-10 14:00:39 | |
+++ /dev/fd/62 2025-05-10 14:00:39 | |
@@ -1,12 +1,17 @@ | |
-== disasm: #<ISeq:<compiled>@<compiled>:1 (1,0)-(1,23)> | |
+== disasm: #<ISeq:<compiled>@<compiled>:1 (1,0)-(1,26)> | |
0000 definemethod :a, a ( 1)[Li] | |
0003 putobject :a | |
0005 leave | |
This file contains hidden or 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
--- /dev/fd/63 2025-05-08 15:52:58 | |
+++ /dev/fd/62 2025-05-08 15:52:58 | |
@@ -1,14 +1,19 @@ | |
-== disasm: #<ISeq:<compiled>@<compiled>:1 (1,0)-(1,33)> | |
+== disasm: #<ISeq:<compiled>@<compiled>:1 (1,0)-(1,36)> | |
0000 definemethod :x, x ( 1)[Li] | |
0003 putself | |
0004 putobject 4 | |
0006 opt_send_without_block <calldata!mid:x, argc:1, FCALL|ARGS_SIMPLE> | |
0008 leave |
This file contains hidden or 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
### Renames:: | |
* Minitest.__run becomes Minitest.run_all_suites | |
* Runnable.run becomes Runnable.run_suite | |
* Minitest.run_one_method becomes Runnable.run (essentially, see below) | |
### Additions:: | |
* Added Runnable#filter_runnable_methods # extraction from Runnable.run_suite | |
* ? maybe add --plugins option? |
This file contains hidden or 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
const std = @import("std"); | |
pub fn build(b: *std.Build) void { | |
const target = b.standardTargetOptions(.{}); | |
const optimize = b.standardOptimizeOption(.{}); | |
// TODO: import cppunit as direct build | |
const flags = .{ | |
// TODO: "-std=c++17", |
This file contains hidden or 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
# alt 3 | |
sclas = | |
stack.last || | |
(is_spec_class && self) || | |
Minitest::Spec.spec_type(desc, *additional_desc) | |
# alt 4 | |
sclas = | |
stack.last \ | |
|| (is_spec_class && self) \ |
This file contains hidden or 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
#!/bin/bash | |
set -e | |
# set -xv | |
DIR=/usr/local/opt/zig | |
if [ "$1" == "clean" ]; then | |
shift | |
echo "...from clean" |
This file contains hidden or 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
diff -r old/lib/minitest/assertions.rb new/lib/minitest/assertions.rb | |
--- old/lib/minitest/assertions.rb | |
+++ new/lib/minitest/assertions.rb | |
@@ -212,8 +212,12 @@ | |
# See also: Minitest::Assertions.diff | |
def assert_equal exp, act, msg = nil | |
- msg = message(msg, E) { diff exp, act } | |
- result = assert exp == act, msg | |
+ begin |
This file contains hidden or 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
diff -r old/lib/minitest.rb new/lib/minitest.rb | |
--- old/lib/minitest.rb | |
+++ new/lib/minitest.rb | |
@@ -647,7 +647,7 @@ | |
## | |
# The location of the test method. | |
- attr_accessor :source_location | |
+ attr_writer :source_location | |
This file contains hidden or 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
class ZenwebBuilder < WEBrick::HTTPServlet::FileHandler | |
@@semaphore = Mutex.new | |
def service req, res | |
@@site ||= @@semaphore.synchronize { website } | |
url = req.path | |
target_path = File.join(".site", url) | |
target_path = File.join target_path, "index.html" if |
NewerOlder