rapporteur 3.8.0 → 3.9.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 +4 -4
- data/.github/dependabot.yml +4 -1
- data/.github/workflows/release-please.yml +50 -0
- data/.github/workflows/tests.yml +15 -24
- data/.release-please-manifest.json +3 -0
- data/.tool-versions +1 -0
- data/Appraisals +14 -11
- data/CHANGELOG.md +10 -3
- data/Gemfile +1 -0
- data/README.md +9 -9
- data/gemfiles/{rails6.0.gemfile → rails7.1.gemfile} +1 -1
- data/gemfiles/{rails6.1.gemfile → rails7.gemfile} +1 -1
- data/gemfiles/{rails7.0.gemfile → rails8.0.gemfile} +1 -1
- data/gemfiles/rails_latest.gemfile +1 -1
- data/gemfiles/sinatra2.x.gemfile +1 -0
- data/gemfiles/{rails5.2.gemfile → sinatra3.x.gemfile} +3 -2
- data/gemfiles/sinatra4.x.gemfile +10 -0
- data/lib/rapporteur/version.rb +1 -1
- data/rapporteur.gemspec +3 -4
- data/release-please-config.json +18 -0
- metadata +16 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c65ff4a79fed3206ece219a4fe88c3fb95b45debba73ac9b9738af460d3feb50
|
4
|
+
data.tar.gz: 15a6cb1de102ad7d4506a41eddd99b52585d3bc914d50e918318ffa0792b01de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50f8432189ddf9dc03c3d2351bdeeeedbc86949d49cea282c174e243bd360751ad21385e5d2fe9980074aa6304f15e840357853f1fa6aa825c63bbbd0db31a3f
|
7
|
+
data.tar.gz: 1b1b8d7c2e14ea1ebad8325a7e0c577aa4c53ac2835acf9f1e0715617ba884b7026aa0f9216470b385a7533ecf1593b30c129b0f4dddc98eb10a67d7b945c0da
|
data/.github/dependabot.yml
CHANGED
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
|
3
|
+
jobs:
|
4
|
+
release-please:
|
5
|
+
outputs:
|
6
|
+
release_created: "${{ steps.release.outputs.release_created }}"
|
7
|
+
tag_name: "${{ steps.release.outputs.tag_name }}"
|
8
|
+
version_number: "${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}"
|
9
|
+
runs-on: "ubuntu-latest"
|
10
|
+
steps:
|
11
|
+
- id: "release"
|
12
|
+
uses: "googleapis/release-please-action@v4"
|
13
|
+
|
14
|
+
releases:
|
15
|
+
if: "${{ needs.release-please.outputs.release_created }}"
|
16
|
+
needs:
|
17
|
+
- "release-please"
|
18
|
+
runs-on: "ubuntu-latest"
|
19
|
+
steps:
|
20
|
+
- uses: "actions/checkout@v4"
|
21
|
+
- uses: "ruby/setup-ruby@v1"
|
22
|
+
with:
|
23
|
+
bundler-cache: true
|
24
|
+
- env:
|
25
|
+
RUBYGEMS_API_KEY: "${{ secrets.RUBYGEMS_API_KEY }}"
|
26
|
+
name: "Setup Access to rubygems.org Registry"
|
27
|
+
- name: "Build Rubygem"
|
28
|
+
run: "gem build rapporteur.gemspec"
|
29
|
+
- env:
|
30
|
+
BINARY_NAME: "rapporteur-${{ needs.release-please.outputs.version_number }}.gem"
|
31
|
+
RUBYGEMS_API_KEY: "${{ secrets.RUBYGEMS_API_KEY }}"
|
32
|
+
name: "Push Rubygem"
|
33
|
+
run: 'GEM_HOST_API_KEY="$RUBYGEMS_API_KEY" gem push "$BINARY_NAME"'
|
34
|
+
- env:
|
35
|
+
BINARY_NAME: "rapporteur-${{ needs.release-please.outputs.version_number }}.gem"
|
36
|
+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
37
|
+
name: "Upload Release Artifact"
|
38
|
+
run: 'gh release upload ${{ needs.release-please.outputs.tag_name }} "$BINARY_NAME"'
|
39
|
+
|
40
|
+
name: "Release Please"
|
41
|
+
|
42
|
+
"on":
|
43
|
+
push:
|
44
|
+
branches:
|
45
|
+
- "main"
|
46
|
+
|
47
|
+
permissions:
|
48
|
+
contents: "write"
|
49
|
+
issues: "write"
|
50
|
+
pull-requests: "write"
|
data/.github/workflows/tests.yml
CHANGED
@@ -1,31 +1,15 @@
|
|
1
1
|
---
|
2
2
|
jobs:
|
3
|
-
release_github:
|
4
|
-
if: "github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')"
|
5
|
-
name: "Deploy to GitHub Packages"
|
6
|
-
needs: "tests"
|
7
|
-
runs-on: "ubuntu-latest"
|
8
|
-
steps:
|
9
|
-
- uses: "actions/checkout@v2"
|
10
|
-
- uses: "ruby/setup-ruby@v1"
|
11
|
-
with:
|
12
|
-
bundler-cache: true
|
13
|
-
ruby-version: "2.7"
|
14
|
-
- name: "Publish to GitHub"
|
15
|
-
uses: "jstastny/publish-gem-to-github@v1.3"
|
16
|
-
with:
|
17
|
-
owner: "envylabs"
|
18
|
-
token: "${{ secrets.GITHUB_TOKEN }}"
|
19
3
|
tests:
|
20
4
|
env:
|
21
5
|
BUNDLE_GEMFILE: "${{matrix.gemfile}}"
|
6
|
+
name: "Tests"
|
22
7
|
runs-on: "ubuntu-latest"
|
23
8
|
steps:
|
24
|
-
- uses: "actions/checkout@
|
9
|
+
- uses: "actions/checkout@v4"
|
25
10
|
- uses: "ruby/setup-ruby@v1"
|
26
11
|
with:
|
27
12
|
bundler-cache: true
|
28
|
-
ruby-version: "2.7"
|
29
13
|
- name: "Run Tests"
|
30
14
|
run: "bundle exec rake spec"
|
31
15
|
- name: "Check Ruby Style"
|
@@ -35,11 +19,18 @@ jobs:
|
|
35
19
|
matrix:
|
36
20
|
gemfile:
|
37
21
|
- "Gemfile"
|
38
|
-
- "gemfiles/rails5.2.gemfile"
|
39
|
-
- "gemfiles/rails6.0.gemfile"
|
40
|
-
- "gemfiles/rails6.1.gemfile"
|
41
|
-
- "gemfiles/rails7.0.gemfile"
|
42
22
|
- "gemfiles/rails_latest.gemfile"
|
23
|
+
- "gemfiles/rails7.1.gemfile"
|
24
|
+
- "gemfiles/rails7.gemfile"
|
25
|
+
- "gemfiles/rails8.0.gemfile"
|
43
26
|
- "gemfiles/sinatra2.x.gemfile"
|
44
|
-
|
45
|
-
|
27
|
+
- "gemfiles/sinatra3.x.gemfile"
|
28
|
+
- "gemfiles/sinatra4.x.gemfile"
|
29
|
+
name: "Tests"
|
30
|
+
"on":
|
31
|
+
pull_request:
|
32
|
+
branches:
|
33
|
+
- "main"
|
34
|
+
push:
|
35
|
+
branches:
|
36
|
+
- "main"
|
data/.tool-versions
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby 3.4.2
|
data/Appraisals
CHANGED
@@ -1,20 +1,15 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
appraise '
|
4
|
-
gem 'rails', '~>
|
5
|
-
gem 'sqlite3', '< 1.4', platforms: :ruby
|
3
|
+
appraise 'rails7.1' do
|
4
|
+
gem 'rails', '~> 7.1.0'
|
6
5
|
end
|
7
6
|
|
8
|
-
appraise '
|
9
|
-
gem 'rails', '~>
|
7
|
+
appraise 'rails7' do
|
8
|
+
gem 'rails', '~> 7.1'
|
10
9
|
end
|
11
10
|
|
12
|
-
appraise '
|
13
|
-
gem 'rails', '~>
|
14
|
-
end
|
15
|
-
|
16
|
-
appraise 'rails7.0' do
|
17
|
-
gem 'rails', '~> 7.0.0'
|
11
|
+
appraise 'rails8.0' do
|
12
|
+
gem 'rails', '~> 8.0.0'
|
18
13
|
end
|
19
14
|
|
20
15
|
appraise 'rails-latest' do
|
@@ -24,3 +19,11 @@ end
|
|
24
19
|
appraise 'sinatra2.x' do
|
25
20
|
gem 'sinatra', '~> 2.0'
|
26
21
|
end
|
22
|
+
|
23
|
+
appraise 'sinatra3.x' do
|
24
|
+
gem 'sinatra', '~> 3.0'
|
25
|
+
end
|
26
|
+
|
27
|
+
appraise 'sinatra4.x' do
|
28
|
+
gem 'sinatra', '~> 4.0'
|
29
|
+
end
|
data/CHANGELOG.md
CHANGED
@@ -3,11 +3,18 @@
|
|
3
3
|
[](http://rubygems.org/gems/rapporteur)
|
4
4
|
[](https://github.com/envylabs/rapporteur/actions/workflows/tests.yml)
|
5
5
|
[](https://codeclimate.com/github/envylabs/rapporteur/maintainability)
|
6
|
-
[](http://inch-ci.org/github/envylabs/rapporteur)
|
7
|
+
|
8
|
+
## [3.9.0](https://github.com/envylabs/rapporteur/compare/v3.8.0...v3.9.0) (2025-04-19)
|
9
|
+
|
10
|
+
|
11
|
+
### Features
|
12
|
+
|
13
|
+
* set minimum Ruby version to 3.2 ([58ce959](https://github.com/envylabs/rapporteur/commit/58ce959804714e0a2e51e5610e4816c7b7d7eb9f))
|
7
14
|
|
8
15
|
## [HEAD][] / unreleased
|
9
16
|
|
10
|
-
*
|
17
|
+
* Remove testing of Rails 5.2 as it is no longer officially maintained.
|
11
18
|
|
12
19
|
## [3.8.0][] / 2022-01-23
|
13
20
|
|
@@ -208,4 +215,4 @@
|
|
208
215
|
[3.7.1]: https://github.com/envylabs/rapporteur/compare/v3.7.0...v3.7.1
|
209
216
|
[3.7.2]: https://github.com/envylabs/rapporteur/compare/v3.7.1...v3.7.2
|
210
217
|
[3.8.0]: https://github.com/envylabs/rapporteur/compare/v3.7.2...v3.8.0
|
211
|
-
[HEAD]: https://github.com/envylabs/rapporteur/compare/v3.8.0...
|
218
|
+
[HEAD]: https://github.com/envylabs/rapporteur/compare/v3.8.0...main
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
[](http://rubygems.org/gems/rapporteur)
|
4
4
|
[](https://github.com/envylabs/rapporteur/actions/workflows/tests.yml)
|
5
5
|
[](https://codeclimate.com/github/envylabs/rapporteur/maintainability)
|
6
|
-
[](http://inch-ci.org/github/envylabs/rapporteur)
|
7
7
|
|
8
8
|
|
9
9
|
This gem provides a singular, status-checking endpoint to your application. The
|
@@ -101,11 +101,11 @@ endpoints.
|
|
101
101
|
So, here is an example usage in Sinatra:
|
102
102
|
|
103
103
|
```ruby
|
104
|
-
require
|
105
|
-
require
|
104
|
+
require 'rapporteur'
|
105
|
+
require 'sinatra/base'
|
106
106
|
|
107
107
|
class MyApp < Sinatra::Base
|
108
|
-
get
|
108
|
+
get '/status.json' do
|
109
109
|
content_type :json
|
110
110
|
status(result.errors.empty? ? 200 : 500)
|
111
111
|
body Rapporteur.run.as_json.to_json
|
@@ -160,7 +160,7 @@ happy with it, add an error to the given `checker` instance:
|
|
160
160
|
|
161
161
|
# Define a simple check as a block:
|
162
162
|
Rapporteur.add_check do |checker|
|
163
|
-
checker.add_message(:paid,
|
163
|
+
checker.add_message(:paid, 'too much')
|
164
164
|
end
|
165
165
|
|
166
166
|
# Make and use a reusable Proc or lambda:
|
@@ -199,14 +199,14 @@ Rails application:
|
|
199
199
|
|
200
200
|
```ruby
|
201
201
|
# config/initializers/rapporteur.rb
|
202
|
-
Rapporteur::Revision.current =
|
202
|
+
Rapporteur::Revision.current = 'revision123'
|
203
203
|
```
|
204
204
|
|
205
205
|
```ruby
|
206
206
|
# config/environments/production.rb
|
207
207
|
MyApplication.configure do
|
208
208
|
config.to_prepare do
|
209
|
-
Rapporteur::Revision.current =
|
209
|
+
Rapporteur::Revision.current = 'revision123'
|
210
210
|
end
|
211
211
|
end
|
212
212
|
```
|
@@ -216,13 +216,13 @@ executed and memoized. Useful examples of this are:
|
|
216
216
|
|
217
217
|
```ruby
|
218
218
|
# Read a Capistrano REVISION file
|
219
|
-
Rapporteur::Revision.current = Rails.root.join(
|
219
|
+
Rapporteur::Revision.current = Rails.root.join('REVISION').read.strip
|
220
220
|
|
221
221
|
# Force a particular directory and use Git
|
222
222
|
Rapporteur::Revision.current = `cd "#{Rails.root}" && git rev-parse HEAD`.strip
|
223
223
|
|
224
224
|
# Use an ENV variable (Heroku Bamboo Stack)
|
225
|
-
Rapporteur::Revision.current = ENV[
|
225
|
+
Rapporteur::Revision.current = ENV['REVISION']
|
226
226
|
|
227
227
|
# Do some crazy calculation
|
228
228
|
Rapporteur::Revision.current = lambda { MyRevisionCalculator.execute! }
|
data/gemfiles/sinatra2.x.gemfile
CHANGED
@@ -3,7 +3,8 @@
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
5
|
gem "activerecord-jdbcsqlite3-adapter", platforms: :jruby
|
6
|
-
gem "
|
7
|
-
gem "
|
6
|
+
gem "rails", ">= 7.1", "< 8.1"
|
7
|
+
gem "sqlite3", platforms: :ruby
|
8
|
+
gem "sinatra", "~> 3.0"
|
8
9
|
|
9
10
|
gemspec path: "../"
|
data/lib/rapporteur/version.rb
CHANGED
data/rapporteur.gemspec
CHANGED
@@ -11,10 +11,10 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.summary = 'An engine that provides common status polling endpoint.'
|
12
12
|
spec.homepage = 'https://github.com/envylabs/rapporteur'
|
13
13
|
spec.license = 'MIT'
|
14
|
-
spec.required_ruby_version = '>= 2
|
14
|
+
spec.required_ruby_version = '>= 3.2'
|
15
15
|
|
16
16
|
spec.metadata['source_code_uri'] = 'https://github.com/envylabs/rapporteur'
|
17
|
-
spec.metadata['changelog_uri'] = 'https://github.com/envylabs/rapporteur/blob/
|
17
|
+
spec.metadata['changelog_uri'] = 'https://github.com/envylabs/rapporteur/blob/main/CHANGELOG.md'
|
18
18
|
|
19
19
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
20
20
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
@@ -27,10 +27,9 @@ Gem::Specification.new do |spec|
|
|
27
27
|
|
28
28
|
spec.add_development_dependency 'appraisal', '~> 2.1'
|
29
29
|
spec.add_development_dependency 'combustion', '~> 1.0'
|
30
|
-
spec.add_development_dependency 'rails', '>= 3.1', '< 7.1'
|
31
30
|
spec.add_development_dependency 'rake', '~> 13.0'
|
32
31
|
spec.add_development_dependency 'rspec-collection_matchers', '~> 1.0'
|
33
|
-
spec.add_development_dependency 'rspec-rails', '~>
|
32
|
+
spec.add_development_dependency 'rspec-rails', '~> 7.0'
|
34
33
|
spec.add_development_dependency 'rubocop', '~> 1.0'
|
35
34
|
spec.add_development_dependency 'rubocop-rails_config', '~> 1.0'
|
36
35
|
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
{
|
2
|
+
"packages": {
|
3
|
+
".": {
|
4
|
+
"bump-minor-pre-major": true,
|
5
|
+
"bump-patch-for-minor-pre-major": false,
|
6
|
+
"changelog-path": "CHANGELOG.md",
|
7
|
+
"component": "",
|
8
|
+
"include-component-in-tag": false,
|
9
|
+
"draft": false,
|
10
|
+
"monorepo-tags": false,
|
11
|
+
"package-name": "rapporteur",
|
12
|
+
"prerelease": false,
|
13
|
+
"release-type": "ruby",
|
14
|
+
"version-file": "lib/rapporteur/version.rb"
|
15
|
+
}
|
16
|
+
},
|
17
|
+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
|
18
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rapporteur
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Envy Labs
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-04-19 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: i18n
|
@@ -58,26 +57,6 @@ dependencies:
|
|
58
57
|
- - "~>"
|
59
58
|
- !ruby/object:Gem::Version
|
60
59
|
version: '1.0'
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: rails
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - ">="
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '3.1'
|
68
|
-
- - "<"
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: '7.1'
|
71
|
-
type: :development
|
72
|
-
prerelease: false
|
73
|
-
version_requirements: !ruby/object:Gem::Requirement
|
74
|
-
requirements:
|
75
|
-
- - ">="
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '3.1'
|
78
|
-
- - "<"
|
79
|
-
- !ruby/object:Gem::Version
|
80
|
-
version: '7.1'
|
81
60
|
- !ruby/object:Gem::Dependency
|
82
61
|
name: rake
|
83
62
|
requirement: !ruby/object:Gem::Requirement
|
@@ -112,14 +91,14 @@ dependencies:
|
|
112
91
|
requirements:
|
113
92
|
- - "~>"
|
114
93
|
- !ruby/object:Gem::Version
|
115
|
-
version: '
|
94
|
+
version: '7.0'
|
116
95
|
type: :development
|
117
96
|
prerelease: false
|
118
97
|
version_requirements: !ruby/object:Gem::Requirement
|
119
98
|
requirements:
|
120
99
|
- - "~>"
|
121
100
|
- !ruby/object:Gem::Version
|
122
|
-
version: '
|
101
|
+
version: '7.0'
|
123
102
|
- !ruby/object:Gem::Dependency
|
124
103
|
name: rubocop
|
125
104
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,10 +135,13 @@ extensions: []
|
|
156
135
|
extra_rdoc_files: []
|
157
136
|
files:
|
158
137
|
- ".github/dependabot.yml"
|
138
|
+
- ".github/workflows/release-please.yml"
|
159
139
|
- ".github/workflows/tests.yml"
|
160
140
|
- ".gitignore"
|
141
|
+
- ".release-please-manifest.json"
|
161
142
|
- ".rspec"
|
162
143
|
- ".rubocop.yml"
|
144
|
+
- ".tool-versions"
|
163
145
|
- ".yamllint"
|
164
146
|
- Appraisals
|
165
147
|
- CHANGELOG.md
|
@@ -174,12 +156,13 @@ files:
|
|
174
156
|
- config.ru
|
175
157
|
- config/locales/en.yml
|
176
158
|
- config/routes.rb
|
177
|
-
- gemfiles/
|
178
|
-
- gemfiles/
|
179
|
-
- gemfiles/
|
180
|
-
- gemfiles/rails7.0.gemfile
|
159
|
+
- gemfiles/rails7.1.gemfile
|
160
|
+
- gemfiles/rails7.gemfile
|
161
|
+
- gemfiles/rails8.0.gemfile
|
181
162
|
- gemfiles/rails_latest.gemfile
|
182
163
|
- gemfiles/sinatra2.x.gemfile
|
164
|
+
- gemfiles/sinatra3.x.gemfile
|
165
|
+
- gemfiles/sinatra4.x.gemfile
|
183
166
|
- lib/rapporteur.rb
|
184
167
|
- lib/rapporteur/check_list.rb
|
185
168
|
- lib/rapporteur/checker.rb
|
@@ -193,13 +176,13 @@ files:
|
|
193
176
|
- lib/rapporteur/rspec3.rb
|
194
177
|
- lib/rapporteur/version.rb
|
195
178
|
- rapporteur.gemspec
|
179
|
+
- release-please-config.json
|
196
180
|
homepage: https://github.com/envylabs/rapporteur
|
197
181
|
licenses:
|
198
182
|
- MIT
|
199
183
|
metadata:
|
200
184
|
source_code_uri: https://github.com/envylabs/rapporteur
|
201
|
-
changelog_uri: https://github.com/envylabs/rapporteur/blob/
|
202
|
-
post_install_message:
|
185
|
+
changelog_uri: https://github.com/envylabs/rapporteur/blob/main/CHANGELOG.md
|
203
186
|
rdoc_options: []
|
204
187
|
require_paths:
|
205
188
|
- lib
|
@@ -207,15 +190,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
207
190
|
requirements:
|
208
191
|
- - ">="
|
209
192
|
- !ruby/object:Gem::Version
|
210
|
-
version: 2
|
193
|
+
version: '3.2'
|
211
194
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
212
195
|
requirements:
|
213
196
|
- - ">="
|
214
197
|
- !ruby/object:Gem::Version
|
215
198
|
version: '0'
|
216
199
|
requirements: []
|
217
|
-
rubygems_version: 3.
|
218
|
-
signing_key:
|
200
|
+
rubygems_version: 3.6.2
|
219
201
|
specification_version: 4
|
220
202
|
summary: An engine that provides common status polling endpoint.
|
221
203
|
test_files: []
|