Skip to content
This repository was archived by the owner on Sep 5, 2025. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- Implement `IO.copy_stream`
- Add `Fiber#value` as alias to `Fiber#await`
- Implement fiber-aware `Monitor` class (#113)
- Implement Thread#value
- Implement `Thread#value`

## 1.5 2023-07-28

Expand Down
11 changes: 7 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,21 @@

require "bundler/gem_tasks"
require "rake/clean"

require "rake/testtask"
require "rake/extensiontask"

Rake::ExtensionTask.new("polyphony_ext") do |ext|
ext.ext_dir = "ext/polyphony"
end

task :recompile => [:clean, :compile]
task :default => [:compile, :test]

task :test do
exec 'ruby test/run.rb'
end
test_config = -> (t) {
t.libs << "test"
t.test_files = FileList["test/**/test_*.rb"]
}
Rake::TestTask.new(test: :compile, &test_config)

task :stress_test do
exec 'ruby test/stress.rb'
Expand Down
2 changes: 1 addition & 1 deletion examples/pipes/http_server2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def handle_client(conn)
parser << msg
break if done
end

conn << "HTTP/1.1 200 OK\r\nContent-Length: 14\r\n\r\nHello, world!\n"
done = false
headers = nil
Expand Down
2 changes: 1 addition & 1 deletion ext/polyphony/backend_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,4 @@ void backend_setup_stats_symbols();
int backend_getaddrinfo(VALUE host, VALUE port, struct sockaddr **ai_addr);
VALUE name_to_addrinfo(void *name, socklen_t len);

#endif /* BACKEND_COMMON_H */
#endif /* BACKEND_COMMON_H */
Loading