rack-cloudflare_middleware 1.2.1 → 1.2.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 94b610b53380179d91c61ccbbbf7b4c624daf3e8fa35cd27d5af29be5162943f
4
- data.tar.gz: e1448c8c0781ce69c42725372a711d3e382f646164ea4d03d5cd10519a3b7d74
3
+ metadata.gz: 2609ebe8665618548d47b46498870d9a8c1e5331caea52cc947dd1cad87a8fc7
4
+ data.tar.gz: aaa6de3fdab8d9ca9818ce5e6f7d4ae3641cd83b489fd287fa7e4d67f7acd91b
5
5
  SHA512:
6
- metadata.gz: ba708b039e3745945858582255235c6665ba932e3879874f321f006f7d66d193e24d121948c0a5c61d230d361edc20bab8bfa1aaa21eb71b07a91f29bf316fb7
7
- data.tar.gz: 96a5395cdc80a1dbe181522b35dbc2868d49ad9b9d2964b895e118323ef2d139ade65caee49403e685e55fdd109ade8093173a102f3288e47bf5574ccb4bdffc
6
+ metadata.gz: 4c0e453400a747e25b00364d05f9a8278e2b408532599e32d551d463f204995b5dcabfb91230512ee48bde649d39227b454bbacfc4beead1e8ff23f4b18d0486
7
+ data.tar.gz: ccccb2ba8e68dacf97b4142e175f1686307937a18b95bea9cb38d0f49afc3a282e3a2efa9973b17eb8c18a92b7e04de07e23e2004f3ede628ed5167550ae50ca
@@ -10,8 +10,6 @@ updates:
10
10
  schedule:
11
11
  interval: "weekly"
12
12
  day: "wednesday"
13
- reviewers:
14
- - instrumentl/code-reviewers
15
13
  labels:
16
14
  - ":robot: dependabot"
17
15
  - ":octocat: github-actions"
@@ -25,5 +23,3 @@ updates:
25
23
  - ":robot: dependabot"
26
24
  - ":gem: ruby"
27
25
  - ":heavy_plus_sign: dependencies"
28
- reviewers:
29
- - instrumentl/code-reviewers
@@ -2,11 +2,11 @@ name: "CI"
2
2
  on:
3
3
  pull_request:
4
4
  push:
5
- branches: [ main ]
5
+ branches: [main]
6
6
 
7
7
  jobs:
8
8
  test:
9
- runs-on: ubuntu-latest
9
+ runs-on: ubuntu-24.04
10
10
  timeout-minutes: 30
11
11
  permissions:
12
12
  contents: read
@@ -16,12 +16,12 @@ jobs:
16
16
  strategy:
17
17
  fail-fast: true
18
18
  matrix:
19
- ruby: ["2.7", "3.0", "3.1", "3.2", "3.3"]
19
+ ruby: ["3.1", "3.2", "3.3", "3.4"]
20
20
  steps:
21
21
  - name: Checkout code
22
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
22
+ uses: actions/checkout@v4
23
23
  - name: Install Ruby and gems
24
- uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677
24
+ uses: ruby/setup-ruby@v1
25
25
  with:
26
26
  bundler-cache: true
27
27
  ruby-version: ${{ matrix.ruby }}
@@ -29,23 +29,23 @@ jobs:
29
29
  timeout-minutes: 20
30
30
  run: bundle exec rspec -f doc
31
31
  lint:
32
- runs-on: ubuntu-latest
32
+ runs-on: ubuntu-24.04
33
33
  timeout-minutes: 20
34
34
  permissions:
35
35
  contents: read
36
36
  steps:
37
37
  - name: Checkout code
38
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
38
+ uses: actions/checkout@v4
39
39
  - name: Install Ruby and gems
40
- uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677
40
+ uses: ruby/setup-ruby@v1
41
41
  with:
42
42
  bundler-cache: true
43
- ruby-version: "3.3"
43
+ ruby-version: "3.4"
44
44
  - name: Bundle Audit Check
45
45
  run: bundle exec bundle-audit update && bundle exec bundle-audit check
46
46
  - name: Setup Python
47
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c
47
+ uses: actions/setup-python@v5
48
48
  with:
49
49
  python-version: "3.12"
50
50
  - name: Run pre-commit
51
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd
51
+ uses: instrumentl/pre-commit-action@v4
@@ -0,0 +1,32 @@
1
+ name: Pull Request Updated
2
+
3
+ on:
4
+ pull_request_target:
5
+ types:
6
+ - opened
7
+ - reopened
8
+ - edited
9
+
10
+ jobs:
11
+ tag-for-dependabot:
12
+ name: Tag Infrastructure For Dependabot
13
+ if: ${{ github.actor == 'dependabot[bot]' }}
14
+ runs-on: ubuntu-24.04
15
+ timeout-minutes: 2
16
+ permissions:
17
+ contents: read
18
+ pull-requests: write
19
+ steps:
20
+ - name: Generate a token
21
+ id: generate_token
22
+ uses: actions/create-github-app-token@v2
23
+ with:
24
+ owner: ${{ github.repository_owner }}
25
+ repositories: ${{ github.event.repository.name }}
26
+ - name: Auto Assign infrastructure as reviewer
27
+ run: gh pr edit "$PR_URL" --add-reviewer "$REVIEWER"
28
+ env:
29
+ PR_URL: ${{ github.event.pull_request.html_url }}
30
+ REVIEWER: instrumentl/infrastructure
31
+ GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
32
+ GH_REPO: ${{github.repository}}
@@ -4,12 +4,14 @@ on:
4
4
  types: [published]
5
5
  jobs:
6
6
  release:
7
- runs-on: ubuntu-latest
7
+ runs-on: ubuntu-24.04
8
+ permissions:
9
+ contents: read
8
10
  steps:
9
11
  - name: Checkout code
10
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
12
+ uses: actions/checkout@v4
11
13
  - name: Install Ruby and gems
12
- uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677
14
+ uses: ruby/setup-ruby@v1
13
15
  with:
14
16
  bundler-cache: true
15
17
  ruby-version: "3.3"
@@ -12,6 +12,6 @@ repos:
12
12
  exclude: '^spec/data/'
13
13
  - id: check-merge-conflict
14
14
  - repo: https://github.com/instrumentl/pre-commit-standardrb.git
15
- rev: 'v1.34.0'
15
+ rev: 'v1.44.0'
16
16
  hooks:
17
17
  - id: standardrb
data/.rubocop.yml CHANGED
@@ -2,9 +2,9 @@ require: standard
2
2
  inherit_gem:
3
3
  standard: config/base.yml
4
4
  AllCops:
5
- TargetRubyVersion: 2.7
5
+ TargetRubyVersion: 3.4
6
6
  Exclude:
7
- - 'vendor/bundle/**/*'
8
- - 'tmp/**/*'
9
- - 'public/**/*'
10
- - 'bin/{bundle,rails,rake,spring}'
7
+ - "vendor/bundle/**/*"
8
+ - "tmp/**/*"
9
+ - "public/**/*"
10
+ - "bin/{bundle,rails,rake,spring}"
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+
2
+ v1.2.3 - 2025-07-25
3
+ -------------------
4
+ - Libraries updates
5
+
6
+ v1.2.2 - 2024-05-22
7
+ -------------------
8
+ - Added support for ruby 3.4
9
+
1
10
  v1.2.1 - 2024-02-23
2
11
  -------------------
3
12
  - Update cloudflare trusted IP URL to include new required trailing slash
data/CODEOWNERS ADDED
@@ -0,0 +1,2 @@
1
+ # Auto-tag the "Infrastructure" otherwise anyone can approve changes
2
+ ** @instrumentl/infrastructure
data/Gemfile CHANGED
@@ -4,15 +4,15 @@ source "https://rubygems.org"
4
4
 
5
5
  gemspec
6
6
 
7
- gem "faraday", "~> 2.7"
8
- gem "rake", "~> 13.0"
7
+ gem "faraday", "~> 2.13"
8
+ gem "rake", "~> 13.3"
9
9
 
10
10
  group :development, :test do
11
- gem "rspec", "~> 3.0"
12
- gem "rspec-its", "~> 1.3"
11
+ gem "rspec", "~> 3.13"
12
+ gem "rspec-its", "~> 2.0"
13
13
  gem "rack-test", "~> 2"
14
14
  gem "standard", "~> 1"
15
15
  gem "pry"
16
- gem "webmock", "~> 3.19"
17
- gem "bundle-audit", "~> 0.1.0"
16
+ gem "webmock", "~> 3.25"
17
+ gem "bundler-audit", "~> 0.9.2"
18
18
  end
data/Gemfile.lock CHANGED
@@ -1,99 +1,109 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rack-cloudflare_middleware (1.2.1)
4
+ rack-cloudflare_middleware (1.2.3)
5
5
  faraday (>= 1.0, < 3)
6
6
  rack (>= 2, < 4)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- addressable (2.8.5)
12
- public_suffix (>= 2.0.2, < 6.0)
13
- ast (2.4.2)
14
- bundle-audit (0.1.0)
15
- bundler-audit
16
- bundler-audit (0.9.1)
11
+ addressable (2.8.7)
12
+ public_suffix (>= 2.0.2, < 7.0)
13
+ ast (2.4.3)
14
+ bigdecimal (3.1.9)
15
+ bundler-audit (0.9.2)
17
16
  bundler (>= 1.2.0, < 3)
18
17
  thor (~> 1.0)
19
18
  coderay (1.1.3)
20
- crack (0.4.5)
19
+ crack (1.0.0)
20
+ bigdecimal
21
21
  rexml
22
- diff-lcs (1.5.0)
23
- faraday (2.7.10)
24
- faraday-net_http (>= 2.0, < 3.1)
25
- ruby2_keywords (>= 0.0.4)
26
- faraday-net_http (3.0.2)
27
- hashdiff (1.0.1)
28
- json (2.7.1)
29
- language_server-protocol (3.17.0.3)
22
+ diff-lcs (1.6.2)
23
+ faraday (2.13.3)
24
+ faraday-net_http (>= 2.0, < 3.5)
25
+ json
26
+ logger
27
+ faraday-net_http (3.4.1)
28
+ net-http (>= 0.5.0)
29
+ hashdiff (1.1.2)
30
+ json (2.13.0)
31
+ language_server-protocol (3.17.0.5)
30
32
  lint_roller (1.1.0)
31
- method_source (1.0.0)
32
- parallel (1.24.0)
33
- parser (3.3.0.5)
33
+ logger (1.7.0)
34
+ method_source (1.1.0)
35
+ net-http (0.6.0)
36
+ uri
37
+ parallel (1.27.0)
38
+ parser (3.3.8.0)
34
39
  ast (~> 2.4.1)
35
40
  racc
36
- pry (0.14.2)
41
+ prism (1.4.0)
42
+ pry (0.15.2)
37
43
  coderay (~> 1.1)
38
44
  method_source (~> 1.0)
39
- public_suffix (5.0.3)
40
- racc (1.7.3)
41
- rack (3.0.9.1)
42
- rack-test (2.1.0)
45
+ public_suffix (6.0.1)
46
+ racc (1.8.1)
47
+ rack (3.1.16)
48
+ rack-test (2.2.0)
43
49
  rack (>= 1.3)
44
50
  rainbow (3.1.1)
45
- rake (13.0.6)
46
- regexp_parser (2.9.0)
47
- rexml (3.2.6)
48
- rspec (3.12.0)
49
- rspec-core (~> 3.12.0)
50
- rspec-expectations (~> 3.12.0)
51
- rspec-mocks (~> 3.12.0)
52
- rspec-core (3.12.1)
53
- rspec-support (~> 3.12.0)
54
- rspec-expectations (3.12.2)
51
+ rake (13.3.0)
52
+ regexp_parser (2.10.0)
53
+ rexml (3.4.1)
54
+ rspec (3.13.1)
55
+ rspec-core (~> 3.13.0)
56
+ rspec-expectations (~> 3.13.0)
57
+ rspec-mocks (~> 3.13.0)
58
+ rspec-core (3.13.4)
59
+ rspec-support (~> 3.13.0)
60
+ rspec-expectations (3.13.5)
55
61
  diff-lcs (>= 1.2.0, < 2.0)
56
- rspec-support (~> 3.12.0)
57
- rspec-its (1.3.0)
58
- rspec-core (>= 3.0.0)
59
- rspec-expectations (>= 3.0.0)
60
- rspec-mocks (3.12.4)
62
+ rspec-support (~> 3.13.0)
63
+ rspec-its (2.0.0)
64
+ rspec-core (>= 3.13.0)
65
+ rspec-expectations (>= 3.13.0)
66
+ rspec-mocks (3.13.5)
61
67
  diff-lcs (>= 1.2.0, < 2.0)
62
- rspec-support (~> 3.12.0)
63
- rspec-support (3.12.0)
64
- rubocop (1.60.2)
68
+ rspec-support (~> 3.13.0)
69
+ rspec-support (3.13.4)
70
+ rubocop (1.75.5)
65
71
  json (~> 2.3)
66
- language_server-protocol (>= 3.17.0)
72
+ language_server-protocol (~> 3.17.0.2)
73
+ lint_roller (~> 1.1.0)
67
74
  parallel (~> 1.10)
68
75
  parser (>= 3.3.0.2)
69
76
  rainbow (>= 2.2.2, < 4.0)
70
- regexp_parser (>= 1.8, < 3.0)
71
- rexml (>= 3.2.5, < 4.0)
72
- rubocop-ast (>= 1.30.0, < 2.0)
77
+ regexp_parser (>= 2.9.3, < 3.0)
78
+ rubocop-ast (>= 1.44.0, < 2.0)
73
79
  ruby-progressbar (~> 1.7)
74
- unicode-display_width (>= 2.4.0, < 3.0)
75
- rubocop-ast (1.30.0)
76
- parser (>= 3.2.1.0)
77
- rubocop-performance (1.20.2)
78
- rubocop (>= 1.48.1, < 2.0)
79
- rubocop-ast (>= 1.30.0, < 2.0)
80
+ unicode-display_width (>= 2.4.0, < 4.0)
81
+ rubocop-ast (1.44.1)
82
+ parser (>= 3.3.7.2)
83
+ prism (~> 1.4)
84
+ rubocop-performance (1.25.0)
85
+ lint_roller (~> 1.1)
86
+ rubocop (>= 1.75.0, < 2.0)
87
+ rubocop-ast (>= 1.38.0, < 2.0)
80
88
  ruby-progressbar (1.13.0)
81
- ruby2_keywords (0.0.5)
82
- standard (1.34.0)
89
+ standard (1.50.0)
83
90
  language_server-protocol (~> 3.17.0.2)
84
91
  lint_roller (~> 1.0)
85
- rubocop (~> 1.60)
92
+ rubocop (~> 1.75.5)
86
93
  standard-custom (~> 1.0.0)
87
- standard-performance (~> 1.3)
94
+ standard-performance (~> 1.8)
88
95
  standard-custom (1.0.2)
89
96
  lint_roller (~> 1.0)
90
97
  rubocop (~> 1.50)
91
- standard-performance (1.3.1)
98
+ standard-performance (1.8.0)
92
99
  lint_roller (~> 1.1)
93
- rubocop-performance (~> 1.20.2)
94
- thor (1.2.1)
95
- unicode-display_width (2.5.0)
96
- webmock (3.19.1)
100
+ rubocop-performance (~> 1.25.0)
101
+ thor (1.4.0)
102
+ unicode-display_width (3.1.4)
103
+ unicode-emoji (~> 4.0, >= 4.0.4)
104
+ unicode-emoji (4.0.4)
105
+ uri (1.0.3)
106
+ webmock (3.25.1)
97
107
  addressable (>= 2.8.0)
98
108
  crack (>= 0.3.2)
99
109
  hashdiff (>= 0.4.0, < 2.0.0)
@@ -101,20 +111,21 @@ GEM
101
111
  PLATFORMS
102
112
  arm64-darwin-22
103
113
  arm64-darwin-23
114
+ arm64-darwin-24
104
115
  x86_64-linux
105
116
 
106
117
  DEPENDENCIES
107
- bundle-audit (~> 0.1.0)
108
118
  bundler (~> 2)
109
- faraday (~> 2.7)
119
+ bundler-audit (~> 0.9.2)
120
+ faraday (~> 2.13)
110
121
  pry
111
122
  rack-cloudflare_middleware!
112
123
  rack-test (~> 2)
113
- rake (~> 13.0)
114
- rspec (~> 3.0)
115
- rspec-its (~> 1.3)
124
+ rake (~> 13.3)
125
+ rspec (~> 3.13)
126
+ rspec-its (~> 2.0)
116
127
  standard (~> 1)
117
- webmock (~> 3.19)
128
+ webmock (~> 3.25)
118
129
 
119
130
  BUNDLED WITH
120
- 2.4.7
131
+ 2.5.23
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rack
4
4
  module CloudflareMiddleware
5
- VERSION = "1.2.1"
5
+ VERSION = "1.2.3"
6
6
  end
7
7
  end
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  end
22
22
  spec.require_paths = ["lib"]
23
23
 
24
- spec.required_ruby_version = ">= 2.7"
24
+ spec.required_ruby_version = ">= 3.1"
25
25
 
26
26
  spec.add_dependency "faraday", ">= 1.0", "< 3"
27
27
  spec.add_dependency "rack", ">= 2", "< 4"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-cloudflare_middleware
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Brown
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-23 00:00:00.000000000 Z
11
+ date: 2025-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -106,7 +106,7 @@ dependencies:
106
106
  - - "~>"
107
107
  - !ruby/object:Gem::Version
108
108
  version: '1'
109
- description:
109
+ description:
110
110
  email:
111
111
  - james@instrumentl.com
112
112
  executables: []
@@ -115,11 +115,13 @@ extra_rdoc_files: []
115
115
  files:
116
116
  - ".github/dependabot.yml"
117
117
  - ".github/workflows/ci.yml"
118
+ - ".github/workflows/pull-request-updated.yml"
118
119
  - ".github/workflows/release.yml"
119
120
  - ".gitignore"
120
121
  - ".pre-commit-config.yaml"
121
122
  - ".rubocop.yml"
122
123
  - CHANGELOG.md
124
+ - CODEOWNERS
123
125
  - Gemfile
124
126
  - Gemfile.lock
125
127
  - LICENSE.txt
@@ -136,7 +138,7 @@ homepage: https://github.com/instrumentl/rack-cloudflare_middleware
136
138
  licenses:
137
139
  - ISC
138
140
  metadata: {}
139
- post_install_message:
141
+ post_install_message:
140
142
  rdoc_options: []
141
143
  require_paths:
142
144
  - lib
@@ -144,15 +146,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
144
146
  requirements:
145
147
  - - ">="
146
148
  - !ruby/object:Gem::Version
147
- version: '2.7'
149
+ version: '3.1'
148
150
  required_rubygems_version: !ruby/object:Gem::Requirement
149
151
  requirements:
150
152
  - - ">="
151
153
  - !ruby/object:Gem::Version
152
154
  version: '0'
153
155
  requirements: []
154
- rubygems_version: 3.5.3
155
- signing_key:
156
+ rubygems_version: 3.5.22
157
+ signing_key:
156
158
  specification_version: 4
157
159
  summary: Rack middleware for handling Cloudflare remote IP headers
158
160
  test_files: []