chore: rename quicproquo → quicprochat in docs, Docker, CI, and packaging
Rename all project references from quicproquo/qpq to quicprochat/qpc across documentation, Docker configuration, CI workflows, packaging scripts, operational configs, and build tooling. - Docker: crate paths, binary names, user/group, data dirs, env vars - CI: workflow crate references, binary names, artifact names - Docs: all markdown files under docs/, SDK READMEs, book.toml - Packaging: OpenWrt Makefile, init script, UCI config (file renames) - Scripts: justfile, dev-shell, screenshot, cross-compile, ai_team - Operations: Prometheus config, alert rules, Grafana dashboard - Config: .env.example (QPQ_* → QPC_*), CODEOWNERS paths - Top-level: README, CONTRIBUTING, ROADMAP, CLAUDE.md
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
|
||||
require "json"
|
||||
|
||||
module QuicProQuo
|
||||
# High-level quicproquo client for Ruby.
|
||||
module QuicProChat
|
||||
# High-level quicprochat client for Ruby.
|
||||
#
|
||||
# Wraps +libquicproquo_ffi+ via the +ffi+ gem.
|
||||
# Wraps +libquicprochat_ffi+ via the +ffi+ gem.
|
||||
#
|
||||
# client = QuicProQuo::Client.new("127.0.0.1:5001", ca_cert: "ca.pem")
|
||||
# client = QuicProChat::Client.new("127.0.0.1:5001", ca_cert: "ca.pem")
|
||||
# client.login("alice", "secret")
|
||||
# client.send("bob", "hello")
|
||||
# messages = client.receive(timeout_ms: 5000)
|
||||
@@ -15,12 +15,12 @@ module QuicProQuo
|
||||
#
|
||||
# Or use the block form for automatic cleanup:
|
||||
#
|
||||
# QuicProQuo::Client.open("127.0.0.1:5001", ca_cert: "ca.pem") do |c|
|
||||
# QuicProChat::Client.open("127.0.0.1:5001", ca_cert: "ca.pem") do |c|
|
||||
# c.login("alice", "secret")
|
||||
# c.send("bob", "hello")
|
||||
# end
|
||||
class Client
|
||||
# Connect to a quicproquo server.
|
||||
# Connect to a quicprochat server.
|
||||
#
|
||||
# @param server [String] Server address as +host:port+.
|
||||
# @param ca_cert [String] Path to PEM-encoded CA certificate.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module QuicProQuo
|
||||
# Base error for quicproquo SDK.
|
||||
module QuicProChat
|
||||
# Base error for quicprochat SDK.
|
||||
class Error < StandardError; end
|
||||
|
||||
# OPAQUE authentication failed (bad credentials).
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
require "ffi"
|
||||
|
||||
module QuicProQuo
|
||||
# Low-level FFI bindings to libquicproquo_ffi.
|
||||
module QuicProChat
|
||||
# Low-level FFI bindings to libquicprochat_ffi.
|
||||
#
|
||||
# The library is located via:
|
||||
# 1. QPQ_LIB_PATH environment variable
|
||||
@@ -12,7 +12,7 @@ module QuicProQuo
|
||||
module FFIBindings
|
||||
extend FFI::Library
|
||||
|
||||
# Status codes (mirrors crates/quicproquo-ffi/src/lib.rs).
|
||||
# Status codes (mirrors crates/quicprochat-ffi/src/lib.rs).
|
||||
QPQ_OK = 0
|
||||
QPQ_ERROR = 1
|
||||
QPQ_AUTH_FAILED = 2
|
||||
@@ -22,14 +22,14 @@ module QuicProQuo
|
||||
# Locate and load the shared library.
|
||||
LIB_SEARCH_PATHS = [
|
||||
ENV.fetch("QPQ_LIB_PATH", nil),
|
||||
File.expand_path("../../../../target/release/libquicproquo_ffi.so", __dir__),
|
||||
File.expand_path("../../../../target/debug/libquicproquo_ffi.so", __dir__),
|
||||
File.expand_path("../../../../target/release/libquicproquo_ffi.dylib", __dir__),
|
||||
File.expand_path("../../../../target/debug/libquicproquo_ffi.dylib", __dir__),
|
||||
"quicproquo_ffi",
|
||||
File.expand_path("../../../../target/release/libquicprochat_ffi.so", __dir__),
|
||||
File.expand_path("../../../../target/debug/libquicprochat_ffi.so", __dir__),
|
||||
File.expand_path("../../../../target/release/libquicprochat_ffi.dylib", __dir__),
|
||||
File.expand_path("../../../../target/debug/libquicprochat_ffi.dylib", __dir__),
|
||||
"quicprochat_ffi",
|
||||
].compact.freeze
|
||||
|
||||
lib_path = LIB_SEARCH_PATHS.find { |p| File.exist?(p) } || "quicproquo_ffi"
|
||||
lib_path = LIB_SEARCH_PATHS.find { |p| File.exist?(p) } || "quicprochat_ffi"
|
||||
ffi_lib lib_path
|
||||
|
||||
# QpqHandle* qpq_connect(const char*, const char*, const char*)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module QuicProQuo
|
||||
module QuicProChat
|
||||
VERSION = "0.1.0"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user