otto 2.8.0 → 2.8.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/workflows/ruby-lint.yml +9 -8
- data/.rubocop.yml +2 -1
- data/.rubocop_todo.yml +1384 -0
- data/CHANGELOG.rst +40 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +4 -4
- data/docs/.gitignore +1 -0
- data/docs/enrichment.md +128 -0
- data/docs/geo-country.md +2 -1
- data/lib/otto/core/error_handler.rb +15 -2
- data/lib/otto/env_keys.rb +24 -0
- data/lib/otto/privacy/anonymizer_resolver.rb +138 -0
- data/lib/otto/privacy/asn_resolver.rb +149 -0
- data/lib/otto/privacy/config.rb +159 -11
- data/lib/otto/privacy/core.rb +53 -1
- data/lib/otto/privacy/redacted_fingerprint.rb +15 -2
- data/lib/otto/privacy.rb +9 -0
- data/lib/otto/request.rb +39 -0
- data/lib/otto/security/csp/policy.rb +5 -3
- data/lib/otto/security/middleware/ip_privacy_middleware.rb +6 -1
- data/lib/otto/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f94ca7311ea4fde801ec716a32f0136bd3802332ad654e368e69b7d6638c4d0f
|
|
4
|
+
data.tar.gz: 319fcb9bf53b73dada223539de15cbc8eb7e700f6aa6e53046306fd8abe391a1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f8097fc6d3b184a0e6775f728ecb3195301a36512ad270b22db1f6137d79b5a0f8a5173235f96b1d42408fd381248b2f669326e08b48c02505884e779a97c6d2
|
|
7
|
+
data.tar.gz: 0c035928bf9bd52096567cdea4e725c44b6fc8055999564c606db8eff50c302ae863bc018a4366022ed8c5899965929edb06837eff8405bbbef76a8c0ced1320
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
name: Ruby Lint
|
|
4
4
|
|
|
5
|
-
# Runs RuboCop across
|
|
6
|
-
#
|
|
7
|
-
#
|
|
5
|
+
# Runs RuboCop across supported, non-experimental Ruby versions. Lint failures
|
|
6
|
+
# block merges; existing debt is tracked explicitly in .rubocop_todo.yml so new
|
|
7
|
+
# violations cannot enter the codebase unnoticed.
|
|
8
8
|
|
|
9
9
|
on:
|
|
10
10
|
push:
|
|
@@ -20,7 +20,7 @@ on:
|
|
|
20
20
|
inputs:
|
|
21
21
|
debug_enabled:
|
|
22
22
|
type: boolean
|
|
23
|
-
description:
|
|
23
|
+
description: "Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)"
|
|
24
24
|
required: false
|
|
25
25
|
default: false
|
|
26
26
|
|
|
@@ -32,12 +32,15 @@ jobs:
|
|
|
32
32
|
timeout-minutes: 10 # prevent hung jobs
|
|
33
33
|
|
|
34
34
|
runs-on: ubuntu-24.04
|
|
35
|
+
# RuboCop is declared in Otto's optional :development group. This must be
|
|
36
|
+
# set before ruby/setup-ruby so its Bundler cache includes the executable.
|
|
37
|
+
env:
|
|
38
|
+
BUNDLE_WITH: "development"
|
|
35
39
|
|
|
36
40
|
strategy:
|
|
37
41
|
fail-fast: true
|
|
38
42
|
matrix:
|
|
39
|
-
ruby: [
|
|
40
|
-
continue-on-error: [true]
|
|
43
|
+
ruby: ["3.2", "3.3", "3.4"]
|
|
41
44
|
|
|
42
45
|
steps:
|
|
43
46
|
- name: Checkout code
|
|
@@ -55,12 +58,10 @@ jobs:
|
|
|
55
58
|
detached: true
|
|
56
59
|
|
|
57
60
|
- name: Install dependencies
|
|
58
|
-
continue-on-error: ${{ matrix.continue-on-error }}
|
|
59
61
|
run: |
|
|
60
62
|
bundle config path vendor/bundle
|
|
61
63
|
bundle install --jobs 4 --retry 3
|
|
62
64
|
|
|
63
65
|
- name: Run Rubocop
|
|
64
|
-
continue-on-error: ${{ matrix.continue-on-error }}
|
|
65
66
|
run: |
|
|
66
67
|
bundle exec rubocop --config .rubocop.yml --format json --fail-level warning
|