panos 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c1a7d8a2853451710b3b9bbc1d9658e988cb6c1c2bc1c0b75c371f4e7b9f13e8
4
+ data.tar.gz: 10c24fa8b2225a170b3c72b2ec43bb8ee411a26b3093937ca0b5e637e5f5eedf
5
+ SHA512:
6
+ metadata.gz: '029da9de36a973fb35244d0ff82561f4ae7e447e34756883fe44ae1a7ff337b56d0cca0aed8054e8ce4e2f6febc032ac3f32d6f9fdf8b30d89653b2cfaf871fa'
7
+ data.tar.gz: 2bdcf4a4b594e7a9e94bfa65ad0ac311d09a99b1cadc819bef256bf7cb0a5c77fa2741964b4475b4591bf5173e5b3aa432c888bd99e425c06eb701c8d6ceaaf6
data/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0 - 2026-10-16
4
+
5
+ - 初始化 gem 命名空间、版本常量和基础异常。
6
+ - 集成 Ruby 3.3、3.4、4.0 CI、gem 隔离安装验证和 GitHub Release 自动发布。
7
+ - 当前版本为项目骨架,尚未实现设备连接或命令操作。
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 gatework
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,61 @@
1
+ # panos
2
+
3
+ [![CI](https://github.com/gatework/panos/actions/workflows/ci.yml/badge.svg)](https://github.com/gatework/panos/actions/workflows/ci.yml)
4
+ [![Gem Version](https://badge.fury.io/rb/panos.svg)](https://rubygems.org/gems/panos)
5
+
6
+ 面向 Panos 设备自动化的 Ruby gem。目前为初始骨架,提供命名空间、版本常量与基础异常;设备连接、配置解析和命令操作尚未实现。
7
+
8
+ ## 安装
9
+
10
+ 要求 Ruby 3.3 或更高版本。
11
+
12
+ ```sh
13
+ gem install panos
14
+ ```
15
+
16
+ 或在 Gemfile 中添加:
17
+
18
+ ```ruby
19
+ gem "panos", "~> 0.1.0"
20
+ ```
21
+
22
+ ## 使用
23
+
24
+ ```ruby
25
+ require "panos"
26
+
27
+ Panos::VERSION # => "0.1.0"
28
+ Panos::Error # StandardError 的子类
29
+ ```
30
+
31
+ ## 开发
32
+
33
+ ```sh
34
+ bundle install
35
+ bundle exec rake
36
+ bundle exec rake package
37
+ ```
38
+
39
+ CI 覆盖 Ruby 3.3、3.4、4.0。打包步骤在临时 GEM_HOME 中安装并加载 gem,检查版本与加载路径。
40
+
41
+ ## 发布
42
+
43
+ 1. 更新 `lib/panos/version.rb` 与 `CHANGELOG.md`,提交并推送到 `main`。
44
+ 2. 等待该提交的 CI 通过,创建并推送同版本标签,例如 `v0.1.1`。
45
+ 3. 在 GitHub 发布该标签的 Release;`release.yml` 会重新运行完整 CI,下载通过验证的 gem,发布到 RubyGems,再将相同的 gem 与 `SHA256SUMS` 附加到 Release。
46
+
47
+ ```sh
48
+ git tag -a v0.1.1 -m "Release 0.1.1"
49
+ git push origin v0.1.1
50
+ gh release create v0.1.1 --verify-tag --title v0.1.1 --notes-file CHANGELOG.md
51
+ ```
52
+
53
+ 本仓库已配置 [RubyGems Trusted Publishing](https://guides.rubygems.org/trusted-publishing/),通过 GitHub OIDC 获取短期发布凭据,无需长期 API key 或手动 OTP。RubyGems 上的 gem `panos` 信任 owner `gatework`、repository `panos`、workflow `release.yml`、environment `release`;发布环境仅允许 `v*` 标签。
54
+
55
+ 只有主动切换为 API key 认证时,才需要设置 `release` environment 的 `RUBYGEMS_API_KEY` secret。
56
+
57
+ 发布后最多等待 10 分钟,核对 RubyGems 版本与下载字节。失败时优先重新运行失败的 job,以复用原 CI 产物。`workflow_dispatch` 仅接受版本标签,并要求 GitHub Release 已存在。已发布的相同版本只有校验和一致才可继续;不同内容必须提升版本号。
58
+
59
+ ## 许可
60
+
61
+ MIT,见 [LICENSE](LICENSE)。本项目由 gatework 维护,与设备厂商无隶属关系。
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Panos
4
+ VERSION = "0.1.0"
5
+ end
data/lib/panos.rb ADDED
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "panos/version"
4
+
5
+ module Panos
6
+ class Error < StandardError; end
7
+ end
metadata ADDED
@@ -0,0 +1,50 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: panos
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - gatework
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 2026-10-16 00:00:00.000000000 Z
11
+ dependencies: []
12
+ description: Initial Panos gem scaffold with a versioned namespace and error class.
13
+ Device connections and operations are not implemented yet.
14
+ executables: []
15
+ extensions: []
16
+ extra_rdoc_files: []
17
+ files:
18
+ - CHANGELOG.md
19
+ - LICENSE
20
+ - README.md
21
+ - lib/panos.rb
22
+ - lib/panos/version.rb
23
+ homepage: https://github.com/gatework/panos
24
+ licenses:
25
+ - MIT
26
+ metadata:
27
+ source_code_uri: https://github.com/gatework/panos
28
+ bug_tracker_uri: https://github.com/gatework/panos/issues
29
+ changelog_uri: https://github.com/gatework/panos/blob/main/CHANGELOG.md
30
+ documentation_uri: https://github.com/gatework/panos/blob/main/README.md
31
+ allowed_push_host: https://rubygems.org
32
+ rubygems_mfa_required: 'true'
33
+ rdoc_options: []
34
+ require_paths:
35
+ - lib
36
+ required_ruby_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '3.3'
41
+ required_rubygems_version: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ requirements: []
47
+ rubygems_version: 4.0.20
48
+ specification_version: 4
49
+ summary: Ruby library foundation for Panos device automation
50
+ test_files: []