Network Infrastructure Utility

重新编排 Network(gem: network-utility)。

项目结构

本 gem 按应用层次拆分,各层目录即其子模块的 require 根,不再统一 lib/

目录 层次定位
document/ 文档/配置生成层
service/ 业务服务层
support/ 辅助/支撑层
tool/ 工具/原子能力层

测试体系:

  • spec/ —— 原子能力验证(单元规格)
  • example/ —— 常用场景的功能用例

安装

bin/setup        # 安装开发依赖
bin/console      # 进入带 gem 环境的 IRB

使用

require "network"   # 统一入口,按 support → tool → service → document 顺序加载所有子模块

开发

bundle exec rake spec      # 跑原子能力
bundle exec rake example   # 跑功能用例
bundle exec rake           # 两者都跑(默认)

License

采用 GNU Affero General Public License v3.0 或更高版本(AGPL-3.0-or-later),详见 LICENSE.txt