publishing_platform_app_config 0.2.0 → 0.2.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 +37 -0
- data/.ruby-version +1 -0
- data/Rakefile +3 -1
- data/lib/publishing_platform_app_config/publishing_platform_error.rb +1 -1
- data/lib/publishing_platform_app_config/version.rb +1 -1
- data/publishing_platform_app_config.gemspec +4 -1
- metadata +49 -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: 04e10cd7c700f6da63d98e50953dfb6ecf0f415843b71d5e24e3e4fd31da5822
|
4
|
+
data.tar.gz: 834b44b6fef8bbabb9cd88ad458c18ce16e6754e84142412aec24c29e5a625f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7af5f1a9f1e63f859ecf485f431743a0ace14271aa4228ee293f9dbf2fec15f6a05f6a2f0622085a98165ea11dd032b3602337dbe2d38f10f4f2f8ce9936fbca
|
7
|
+
data.tar.gz: 905020ad544d85f30faee40522f37bc42bb4ceed5a6efdade3865e585d4da954d50657983712136ee97d2bded93b5a323bd1e08cc519d5eeff3e81fc65105e7e
|
@@ -0,0 +1,37 @@
|
|
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
|
+
- uses: ruby/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
ruby-version: ${{ matrix.ruby }}
|
18
|
+
bundler-cache: true
|
19
|
+
- run: bundle exec rake
|
20
|
+
|
21
|
+
# Branch protection rules cannot directly depend on status checks from matrix jobs.
|
22
|
+
# So instead we define `test` as a dummy job which only runs after the preceding `test_matrix` checks have passed.
|
23
|
+
# Solution inspired by: https://github.community/t/status-check-for-a-matrix-jobs/127354/3
|
24
|
+
test:
|
25
|
+
needs: test_matrix
|
26
|
+
runs-on: ubuntu-latest
|
27
|
+
steps:
|
28
|
+
- run: echo "All matrix tests have passed 🚀"
|
29
|
+
|
30
|
+
publish:
|
31
|
+
needs: test
|
32
|
+
if: ${{ github.ref == 'refs/heads/main' }}
|
33
|
+
permissions:
|
34
|
+
contents: write
|
35
|
+
uses: publishing-platform/publishing-platform-infrastructure/.github/workflows/publish-rubygem.yml@main
|
36
|
+
secrets:
|
37
|
+
GEM_HOST_API_KEY: ${{ secrets.PUBLISHING_PLATFORM_RUBYGEMS_API_KEY }}
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.2.4
|
data/Rakefile
CHANGED
@@ -34,7 +34,7 @@ module PublishingPlatformError
|
|
34
34
|
raise PublishingPlatformError::AlreadyInitialised if is_configured?
|
35
35
|
|
36
36
|
if defined?(Sidekiq) && !defined?(Sentry::Sidekiq)
|
37
|
-
warn "Warning:
|
37
|
+
warn "Warning: PublishingPlatformError is not configured to track Sidekiq errors, install the sentry-sidekiq gem to track them."
|
38
38
|
end
|
39
39
|
|
40
40
|
Sentry.init do |sentry_config|
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.summary = "Base configuration for Publishing Platform applications"
|
11
11
|
spec.description = "Base configuration for Publishing Platform applications"
|
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,8 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.add_dependency "sentry-rails", "~> 5.3"
|
21
21
|
spec.add_dependency "sentry-ruby", "~> 5.3"
|
22
22
|
|
23
|
+
spec.add_development_dependency "climate_control"
|
23
24
|
spec.add_development_dependency "publishing_platform_rubocop"
|
25
|
+
spec.add_development_dependency "rails", "~> 7"
|
26
|
+
spec.add_development_dependency "simplecov"
|
24
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: publishing_platform_app_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.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: sentry-rails
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '5.3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: climate_control
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: publishing_platform_rubocop
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,16 +66,46 @@ dependencies:
|
|
52
66
|
- - ">="
|
53
67
|
- !ruby/object:Gem::Version
|
54
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rails
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '7'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '7'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: simplecov
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
55
97
|
description: Base configuration for Publishing Platform applications
|
56
98
|
email:
|
57
99
|
executables: []
|
58
100
|
extensions: []
|
59
101
|
extra_rdoc_files: []
|
60
102
|
files:
|
61
|
-
- ".github/
|
103
|
+
- ".github/dependabot.yml"
|
104
|
+
- ".github/workflows/ci.yml"
|
62
105
|
- ".gitignore"
|
63
106
|
- ".rspec"
|
64
107
|
- ".rubocop.yml"
|
108
|
+
- ".ruby-version"
|
65
109
|
- Gemfile
|
66
110
|
- LICENSE
|
67
111
|
- README.md
|
@@ -87,14 +131,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
87
131
|
requirements:
|
88
132
|
- - ">="
|
89
133
|
- !ruby/object:Gem::Version
|
90
|
-
version: '3.
|
134
|
+
version: '3.1'
|
91
135
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
136
|
requirements:
|
93
137
|
- - ">="
|
94
138
|
- !ruby/object:Gem::Version
|
95
139
|
version: '0'
|
96
140
|
requirements: []
|
97
|
-
rubygems_version: 3.
|
141
|
+
rubygems_version: 3.5.23
|
98
142
|
signing_key:
|
99
143
|
specification_version: 4
|
100
144
|
summary: Base configuration for Publishing Platform applications
|
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
|