rack-cloudflare_middleware 1.2.1 → 1.2.2

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: 8d81d3ecb48c6e3fceaaad766016e093caf5caba2b0176aa7613fe480b1e865a
4
+ data.tar.gz: 911cdb9c16f3dd50bbbd5c9c4a0f6039db5ebbdeaf4c85294687fdbced2e6e87
5
5
  SHA512:
6
- metadata.gz: ba708b039e3745945858582255235c6665ba932e3879874f321f006f7d66d193e24d121948c0a5c61d230d361edc20bab8bfa1aaa21eb71b07a91f29bf316fb7
7
- data.tar.gz: 96a5395cdc80a1dbe181522b35dbc2868d49ad9b9d2964b895e118323ef2d139ade65caee49403e685e55fdd109ade8093173a102f3288e47bf5574ccb4bdffc
6
+ metadata.gz: 3af4c44a7ff108468ad09081d44bf28626004070ffea1603a4e9de19c6b21917f780abd5e6f07a7ac09ab7ad85f15f5dd23eb4c18b77c180ebc21c5e5cfef752
7
+ data.tar.gz: 42a7a38e2c70f3722e3addb0037fd365d03a2c46f830d84e94832fec3f770bb655b0820c171cf6bd9d55c6c8fb09021082b1aedcde0a485ab31dc41eb1dcca68
@@ -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,36 @@
1
+ name: Pull Request Updated
2
+
3
+ on:
4
+ pull_request:
5
+ types:
6
+ - opened
7
+ - reopened
8
+ - edited
9
+ - synchronize
10
+ - ready_for_review
11
+ - converted_to_draft
12
+
13
+ jobs:
14
+ tag-for-dependabot:
15
+ name: Tag libero For Dependabot
16
+ if: ${{ github.actor == 'dependabot[bot]' }}
17
+ runs-on: ubuntu-24.04
18
+ timeout-minutes: 2
19
+ permissions:
20
+ contents: read
21
+ pull-requests: write
22
+ steps:
23
+ - name: Generate a token
24
+ id: generate_token
25
+ uses: actions/create-github-app-token@v2
26
+ with:
27
+ app-id: ${{ secrets.DEPENDABOT_AUTO_MERGER_APP_ID }}
28
+ private-key: ${{ secrets.DEPENDABOT_AUTO_MERGER_PRIVATE_KEY }}
29
+ owner: ${{ github.repository_owner }}
30
+ repositories: ${{ github.event.repository.name }}
31
+ - name: Auto Assign
32
+ run: gh pr edit "$PR_URL" --add-reviewer "$REVIEWER"
33
+ env:
34
+ PR_URL: ${{ github.event.pull_request.html_url }}
35
+ REVIEWER: instrumentl/libero
36
+ GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
@@ -4,12 +4,12 @@ on:
4
4
  types: [published]
5
5
  jobs:
6
6
  release:
7
- runs-on: ubuntu-latest
7
+ runs-on: ubuntu-24.04
8
8
  steps:
9
9
  - name: Checkout code
10
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
10
+ uses: actions/checkout@v4
11
11
  - name: Install Ruby and gems
12
- uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677
12
+ uses: ruby/setup-ruby@v1
13
13
  with:
14
14
  bundler-cache: true
15
15
  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,11 @@
1
+ NEXT
2
+ ----
3
+ - Drop support for Ruby <3.1
4
+
5
+ v1.2.2 - 2024-05-22
6
+ -------------------
7
+ - Added support for ruby 3.4
8
+
1
9
  v1.2.1 - 2024-02-23
2
10
  -------------------
3
11
  - Update cloudflare trusted IP URL to include new required trailing slash
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.2"
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.2)
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.5.1)
23
+ faraday (2.13.1)
24
+ faraday-net_http (>= 2.0, < 3.5)
25
+ json
26
+ logger
27
+ faraday-net_http (3.4.0)
28
+ net-http (>= 0.5.0)
29
+ hashdiff (1.1.2)
30
+ json (2.12.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.15)
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.2.1)
52
+ regexp_parser (2.10.0)
53
+ rexml (3.4.1)
54
+ rspec (3.13.0)
55
+ rspec-core (~> 3.13.0)
56
+ rspec-expectations (~> 3.13.0)
57
+ rspec-mocks (~> 3.13.0)
58
+ rspec-core (3.13.2)
59
+ rspec-support (~> 3.13.0)
60
+ rspec-expectations (3.13.3)
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.2)
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.1)
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.3.2)
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.2)
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.2"
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.2
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-05-23 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,6 +115,7 @@ 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"
@@ -136,7 +137,7 @@ homepage: https://github.com/instrumentl/rack-cloudflare_middleware
136
137
  licenses:
137
138
  - ISC
138
139
  metadata: {}
139
- post_install_message:
140
+ post_install_message:
140
141
  rdoc_options: []
141
142
  require_paths:
142
143
  - lib
@@ -144,15 +145,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
144
145
  requirements:
145
146
  - - ">="
146
147
  - !ruby/object:Gem::Version
147
- version: '2.7'
148
+ version: '3.1'
148
149
  required_rubygems_version: !ruby/object:Gem::Requirement
149
150
  requirements:
150
151
  - - ">="
151
152
  - !ruby/object:Gem::Version
152
153
  version: '0'
153
154
  requirements: []
154
- rubygems_version: 3.5.3
155
- signing_key:
155
+ rubygems_version: 3.5.22
156
+ signing_key:
156
157
  specification_version: 4
157
158
  summary: Rack middleware for handling Cloudflare remote IP headers
158
159
  test_files: []