openpx-cli 0.0.1

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.
Files changed (7) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +27 -0
  3. data/README.md +31 -0
  4. data/TRADEMARKS +35 -0
  5. data/exe/openpx +3 -0
  6. data/lib/openpx_cli.rb +34 -0
  7. metadata +63 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 7b4f54c58fbde36391fd9738fba9fff5fec669a720c89ac81da2914a12854f38
4
+ data.tar.gz: 18fe5617748d605499205eb409dbaa1508dab09a50d44acfe337b4cc640ca24d
5
+ SHA512:
6
+ metadata.gz: a06afe80b57435ea044952762cf17e28130c2854d44a7db7a8c13d7ed59e67fa520dd90ca0afd1921d48676e1150a7973ef11d2b9da0c6b82550d45ff4c9ca9f
7
+ data.tar.gz: 500155cb08d88905fb00cb028f024159401c71ffd1192b33b220c944dd5890fdf37d508efd9a26eda34a288cc7bfdc68f82fdbceb97f5ad62aee1b7f99d7b648
data/LICENSE ADDED
@@ -0,0 +1,27 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 OpenPX Inc.
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.
22
+
23
+ ---
24
+
25
+ NOTE: This MIT License covers this package's code and the bundled OpenPX schema
26
+ only. It does NOT grant any rights to the "OpenPX" name or the OpenPX logo,
27
+ which are trademarks. See the accompanying TRADEMARKS file.
data/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # openpx-cli
2
+
3
+ **Your products. Publish once. Verify everywhere.**
4
+
5
+ **Early release.** More at [openpx.org](https://openpx.org).
6
+
7
+ OpenPX is the open standard for sharing product information: describe each product once, prove it's yours, and publish it to every channel.
8
+
9
+ This package is the OpenPX command line. Today it does two things: `openpx --version`, and `openpx schema`, which prints the address of the OpenPX schema. More commands will follow.
10
+
11
+ ## Install
12
+
13
+ ```
14
+ gem install openpx-cli
15
+ ```
16
+
17
+ ## Use
18
+
19
+ ```
20
+ openpx --version
21
+ openpx schema
22
+ ```
23
+
24
+ ## Learn more
25
+
26
+ - OpenPX: https://openpx.org
27
+ - OpenPX schema: https://schema.openpx.org
28
+
29
+ ## License
30
+
31
+ The code and the bundled OpenPX schema are MIT licensed (see `LICENSE`). The OpenPX name and logo are trademarks of OpenPX Inc. and are not covered by that license (see `TRADEMARKS`).
data/TRADEMARKS ADDED
@@ -0,0 +1,35 @@
1
+ OpenPX Trademark & Brand Notice
2
+ ================================
3
+
4
+ The OpenPX schema published at https://schema.openpx.org is released under the
5
+ MIT License (see LICENSE). Open licensing of the schema is intentional — we want
6
+ OpenPX to be freely implemented.
7
+
8
+ The MIT License covers the schema and code ONLY. It does NOT grant any right to
9
+ use the OpenPX name or logo.
10
+
11
+ OpenPX(TM), the OpenPX name, and the OpenPX logo (together, the "OpenPX Marks")
12
+ are trademarks of OpenPX Inc. We maintain these marks so that "OpenPX" continues to
13
+ identify the authentic standard and its governance — an open standard people can
14
+ trust needs a controlled name.
15
+
16
+ You MAY, without asking us first:
17
+ - Truthfully state that your product, library, or service supports, implements,
18
+ is built on, or is compatible with OpenPX (nominative/descriptive use).
19
+ - Link to https://schema.openpx.org and reference OpenPX versions by name.
20
+
21
+ You MAY NOT, without our prior written permission:
22
+ - Use the OpenPX Marks in any way that suggests endorsement, sponsorship,
23
+ certification, or affiliation that does not exist.
24
+ - Use "OpenPX" (or a confusingly similar name or logo) as the name of your own
25
+ product, service, company, organization, domain, or social account.
26
+ - Alter, recolor, distort, or re-draw the OpenPX logo, or use it as your own
27
+ brand or app icon.
28
+ - Register the OpenPX Marks, or confusingly similar marks, as your own.
29
+
30
+ Compatibility/badge use (e.g. "Works with OpenPX") is permitted only in a way
31
+ that is clearly descriptive and does not imply official certification.
32
+
33
+ Questions or permission requests: https://www.openpx.org/
34
+
35
+ (c) 2026 OpenPX Inc. All rights reserved with respect to the OpenPX Marks.
data/exe/openpx ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require "openpx_cli"
3
+ exit OpenPXCli.main(ARGV)
data/lib/openpx_cli.rb ADDED
@@ -0,0 +1,34 @@
1
+ # OpenPX command line, early release.
2
+ require "openpx_sdk"
3
+
4
+ module OpenPXCli
5
+ VERSION = "0.0.1"
6
+ HELP = <<~TEXT.chomp
7
+ openpx: the OpenPX command line (early release)
8
+
9
+ Usage:
10
+ openpx --version Show the version
11
+ openpx schema Print the address of the OpenPX schema
12
+ openpx --help Show this help
13
+
14
+ More: https://openpx.org
15
+ TEXT
16
+
17
+ def self.main(args)
18
+ cmd = args.first
19
+ case cmd
20
+ when "--version", "-V"
21
+ puts "openpx #{VERSION} (schema #{OpenPXSdk::SCHEMA_VERSION})"
22
+ 0
23
+ when "schema"
24
+ puts OpenPXSdk::SCHEMA_URL
25
+ 0
26
+ when nil, "--help", "-h"
27
+ puts HELP
28
+ 0
29
+ else
30
+ warn "openpx: unknown command '#{cmd}'\n\n#{HELP}"
31
+ 2
32
+ end
33
+ end
34
+ end
metadata ADDED
@@ -0,0 +1,63 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: openpx-cli
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - OpenPX
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2026-10-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: openpx-sdk
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 0.0.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 0.0.1
27
+ description: 'Early release of the openpx command: openpx --version and openpx schema.'
28
+ email: packages@openpx.com
29
+ executables:
30
+ - openpx
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - LICENSE
35
+ - README.md
36
+ - TRADEMARKS
37
+ - exe/openpx
38
+ - lib/openpx_cli.rb
39
+ homepage: https://openpx.org
40
+ licenses:
41
+ - MIT
42
+ metadata:
43
+ homepage_uri: https://openpx.org
44
+ post_install_message:
45
+ rdoc_options: []
46
+ require_paths:
47
+ - lib
48
+ required_ruby_version: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: '2.6'
53
+ required_rubygems_version: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
58
+ requirements: []
59
+ rubygems_version: 3.0.3.1
60
+ signing_key:
61
+ specification_version: 4
62
+ summary: OpenPX command line (early release).
63
+ test_files: []