openpx-sdk 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.
data/lib/openpx_sdk.rb ADDED
@@ -0,0 +1,16 @@
1
+ # OpenPX SDK, early release: ships the published OpenPX schema.
2
+ require "json"
3
+
4
+ module OpenPXSdk
5
+ VERSION = "0.0.1"
6
+ SCHEMA_VERSION = "0.7.0"
7
+ SCHEMA_URL = "https://schema.openpx.org/v#{SCHEMA_VERSION}/openpx-schema.json"
8
+
9
+ def self.schema_path
10
+ File.join(__dir__, "openpx_sdk", "openpx-schema.json")
11
+ end
12
+
13
+ def self.load_schema
14
+ JSON.parse(File.read(schema_path, encoding: "UTF-8"))
15
+ end
16
+ end
metadata ADDED
@@ -0,0 +1,50 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: openpx-sdk
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - OpenPX
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2026-10-17 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Early release of the OpenPX SDK. Ships the OpenPX schema for describing
14
+ products once and publishing them to every channel.
15
+ email: packages@openpx.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - LICENSE
21
+ - README.md
22
+ - TRADEMARKS
23
+ - lib/openpx_sdk.rb
24
+ - lib/openpx_sdk/openpx-schema.json
25
+ homepage: https://openpx.org
26
+ licenses:
27
+ - MIT
28
+ metadata:
29
+ homepage_uri: https://openpx.org
30
+ documentation_uri: https://schema.openpx.org
31
+ post_install_message:
32
+ rdoc_options: []
33
+ require_paths:
34
+ - lib
35
+ required_ruby_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '2.6'
40
+ required_rubygems_version: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ requirements: []
46
+ rubygems_version: 3.0.3.1
47
+ signing_key:
48
+ specification_version: 4
49
+ summary: 'OpenPX SDK (early release): the OpenPX schema.'
50
+ test_files: []