publishing_platform_schemas 0.1.0 → 0.1.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.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +12 -0
- data/.github/workflows/ci.yml +46 -0
- data/.ruby-version +1 -0
- data/Rakefile +3 -3
- data/lib/publishing_platform_schemas/version.rb +1 -1
- data/publishing_platform_schemas.gemspec +3 -1
- metadata +35 -5
- data/.github/workflows/main.yml +0 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8316073ac789d764c1f29489aea360d74f3b657f58eb501e57994306b38c5fe9
|
4
|
+
data.tar.gz: 0b7aaccb03710ac2d67ab4dbb5960835f614d5aebc2312eac28faa800512c12b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8518793ce8cb1b579474a408cc1c8308f18fc18021769c2eb6364330cc2892a4275b96eb3ff1cdc3c6991fdc8d8a1e0ad1e0f3ead74f3f777e14e270f36f0a1
|
7
|
+
data.tar.gz: 549f68aa69f26c2a66e3b036b15597510ee24804ce021452aa7a96b011e7e5a467e689521d9505005be8fddaf6e0ae6e8f906a8183cafa639fe520ee188f9ecd
|
@@ -0,0 +1,46 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
# This matrix job runs the test suite against multiple Ruby versions
|
7
|
+
test_matrix:
|
8
|
+
strategy:
|
9
|
+
fail-fast: false
|
10
|
+
matrix:
|
11
|
+
ruby: [3.2, 3.3]
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@v4
|
15
|
+
- name: Clone content-schemas
|
16
|
+
uses: actions/checkout@v4
|
17
|
+
with:
|
18
|
+
repository: publishing-platform/publishing-api
|
19
|
+
ref: main
|
20
|
+
path: tmp/publishing-api
|
21
|
+
token: ${{ secrets.PUBLISHING_PLATFORM_CI_GITHUB_API_TOKEN }}
|
22
|
+
- uses: ruby/setup-ruby@v1
|
23
|
+
with:
|
24
|
+
ruby-version: ${{ matrix.ruby }}
|
25
|
+
bundler-cache: true
|
26
|
+
- run: bundle exec rake
|
27
|
+
env:
|
28
|
+
PUBLISHING_PLATFORM_CONTENT_SCHEMAS_PATH: tmp/publishing-api/content_schemas
|
29
|
+
|
30
|
+
# Branch protection rules cannot directly depend on status checks from matrix jobs.
|
31
|
+
# So instead we define `test` as a dummy job which only runs after the preceding `test_matrix` checks have passed.
|
32
|
+
# Solution inspired by: https://github.community/t/status-check-for-a-matrix-jobs/127354/3
|
33
|
+
test:
|
34
|
+
needs: test_matrix
|
35
|
+
runs-on: ubuntu-latest
|
36
|
+
steps:
|
37
|
+
- run: echo "All matrix tests have passed 🚀"
|
38
|
+
|
39
|
+
publish:
|
40
|
+
needs: test
|
41
|
+
if: ${{ github.ref == 'refs/heads/main' }}
|
42
|
+
permissions:
|
43
|
+
contents: write
|
44
|
+
uses: publishing-platform/publishing-platform-infrastructure/.github/workflows/publish-rubygem.yml@main
|
45
|
+
secrets:
|
46
|
+
GEM_HOST_API_KEY: ${{ secrets.PUBLISHING_PLATFORM_RUBYGEMS_API_KEY }}
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.2.4
|
data/Rakefile
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.summary = "Gem to work with the Publishing Platform content schemas"
|
11
11
|
spec.description = "Gem to work with the Publishing Platform content schemas"
|
12
12
|
spec.license = "MIT"
|
13
|
-
spec.required_ruby_version = ">= 3.
|
13
|
+
spec.required_ruby_version = ">= 3.1"
|
14
14
|
|
15
15
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
16
16
|
spec.bindir = "exe"
|
@@ -20,5 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
# This should be kept in sync with the json-schema version of publishing-api.
|
21
21
|
spec.add_dependency "json-schema", ">= 2.8", "< 4.4"
|
22
22
|
|
23
|
+
spec.add_development_dependency "climate_control"
|
23
24
|
spec.add_development_dependency "publishing_platform_rubocop"
|
25
|
+
spec.add_development_dependency "simplecov"
|
24
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: publishing_platform_schemas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Publishing Platform
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json-schema
|
@@ -30,6 +30,20 @@ dependencies:
|
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '4.4'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: climate_control
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
type: :development
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
33
47
|
- !ruby/object:Gem::Dependency
|
34
48
|
name: publishing_platform_rubocop
|
35
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,16 +58,32 @@ dependencies:
|
|
44
58
|
- - ">="
|
45
59
|
- !ruby/object:Gem::Version
|
46
60
|
version: '0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: simplecov
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
47
75
|
description: Gem to work with the Publishing Platform content schemas
|
48
76
|
email:
|
49
77
|
executables: []
|
50
78
|
extensions: []
|
51
79
|
extra_rdoc_files: []
|
52
80
|
files:
|
53
|
-
- ".github/
|
81
|
+
- ".github/dependabot.yml"
|
82
|
+
- ".github/workflows/ci.yml"
|
54
83
|
- ".gitignore"
|
55
84
|
- ".rspec"
|
56
85
|
- ".rubocop.yml"
|
86
|
+
- ".ruby-version"
|
57
87
|
- Gemfile
|
58
88
|
- LICENSE
|
59
89
|
- README.md
|
@@ -76,14 +106,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
76
106
|
requirements:
|
77
107
|
- - ">="
|
78
108
|
- !ruby/object:Gem::Version
|
79
|
-
version: '3.
|
109
|
+
version: '3.1'
|
80
110
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
111
|
requirements:
|
82
112
|
- - ">="
|
83
113
|
- !ruby/object:Gem::Version
|
84
114
|
version: '0'
|
85
115
|
requirements: []
|
86
|
-
rubygems_version: 3.
|
116
|
+
rubygems_version: 3.5.23
|
87
117
|
signing_key:
|
88
118
|
specification_version: 4
|
89
119
|
summary: Gem to work with the Publishing Platform content schemas
|
data/.github/workflows/main.yml
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
name: Ruby
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
branches:
|
6
|
-
- master
|
7
|
-
|
8
|
-
pull_request:
|
9
|
-
|
10
|
-
jobs:
|
11
|
-
build:
|
12
|
-
runs-on: ubuntu-latest
|
13
|
-
name: Ruby ${{ matrix.ruby }}
|
14
|
-
strategy:
|
15
|
-
matrix:
|
16
|
-
ruby:
|
17
|
-
- '3.1.2'
|
18
|
-
|
19
|
-
steps:
|
20
|
-
- uses: actions/checkout@v3
|
21
|
-
- name: Set up Ruby
|
22
|
-
uses: ruby/setup-ruby@v1
|
23
|
-
with:
|
24
|
-
ruby-version: ${{ matrix.ruby }}
|
25
|
-
bundler-cache: true
|
26
|
-
- name: Run the default task
|
27
|
-
run: bundle exec rake
|