rack-cloudflare_middleware 1.2.0 → 1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1806fad87fa57e8317ff1937cd2cd45db0bcef1b89aabb7ba1c3d4aa71434d22
4
- data.tar.gz: 47811778ab426303239fa18e3e29310e5f212cd54740efc71674061e30787c85
3
+ metadata.gz: 94b610b53380179d91c61ccbbbf7b4c624daf3e8fa35cd27d5af29be5162943f
4
+ data.tar.gz: e1448c8c0781ce69c42725372a711d3e382f646164ea4d03d5cd10519a3b7d74
5
5
  SHA512:
6
- metadata.gz: '084ac8b92afac4bd6aff7435c56a546c3f4faafaf4124d19a3f542fcef07b43b31ffa1222bccc49d46693deb97db5aad3dfd31f1800cc4dcdd1c7475afe0f806'
7
- data.tar.gz: a10319a8ec1dabed6022d7efe051b8af63752f134fbafa4c9fc35d3e563780ec3e3d6fb3de26b81ffc637f1ac0c37ae87a6dabae78cbbeadc2a8b0cbb4d37715
6
+ metadata.gz: ba708b039e3745945858582255235c6665ba932e3879874f321f006f7d66d193e24d121948c0a5c61d230d361edc20bab8bfa1aaa21eb71b07a91f29bf316fb7
7
+ data.tar.gz: 96a5395cdc80a1dbe181522b35dbc2868d49ad9b9d2964b895e118323ef2d139ade65caee49403e685e55fdd109ade8093173a102f3288e47bf5574ccb4bdffc
@@ -10,6 +10,8 @@ updates:
10
10
  schedule:
11
11
  interval: "weekly"
12
12
  day: "wednesday"
13
+ reviewers:
14
+ - instrumentl/code-reviewers
13
15
  labels:
14
16
  - ":robot: dependabot"
15
17
  - ":octocat: github-actions"
@@ -23,3 +25,5 @@ updates:
23
25
  - ":robot: dependabot"
24
26
  - ":gem: ruby"
25
27
  - ":heavy_plus_sign: dependencies"
28
+ reviewers:
29
+ - instrumentl/code-reviewers
@@ -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"]
19
+ ruby: ["2.7", "3.0", "3.1", "3.2", "3.3"]
20
20
  steps:
21
21
  - name: Checkout code
22
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
22
+ uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
23
23
  - name: Install Ruby and gems
24
- uses: ruby/setup-ruby@8a45918450651f5e4784b6031db26f4b9f76b251
24
+ uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677
25
25
  with:
26
26
  bundler-cache: true
27
27
  ruby-version: ${{ matrix.ruby }}
@@ -35,17 +35,17 @@ jobs:
35
35
  contents: read
36
36
  steps:
37
37
  - name: Checkout code
38
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
38
+ uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
39
39
  - name: Install Ruby and gems
40
- uses: ruby/setup-ruby@8a45918450651f5e4784b6031db26f4b9f76b251
40
+ uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677
41
41
  with:
42
42
  bundler-cache: true
43
- ruby-version: "3.1"
43
+ ruby-version: "3.3"
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@bd6b4b6205c4dbad673328db7b31b7fab9e241c0
47
+ uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c
48
48
  with:
49
- python-version: "3.10"
49
+ python-version: "3.12"
50
50
  - name: Run pre-commit
51
- uses: pre-commit/action@5f528da5c95691c4cf42ff76a4d10854b62cbb82
51
+ uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd
@@ -7,12 +7,12 @@ jobs:
7
7
  runs-on: ubuntu-latest
8
8
  steps:
9
9
  - name: Checkout code
10
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
10
+ uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
11
11
  - name: Install Ruby and gems
12
- uses: ruby/setup-ruby@8a45918450651f5e4784b6031db26f4b9f76b251
12
+ uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677
13
13
  with:
14
14
  bundler-cache: true
15
- ruby-version: "3.2"
15
+ ruby-version: "3.3"
16
16
  - name: Publish gem
17
17
  run: |
18
18
  umask 077
@@ -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: 'b9c5657a92bcc2ebfa9ec295754b0c56877fbed8'
15
+ rev: 'v1.34.0'
16
16
  hooks:
17
17
  - id: standardrb
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ v1.2.1 - 2024-02-23
2
+ -------------------
3
+ - Update cloudflare trusted IP URL to include new required trailing slash
4
+ - Many dependabot bumps
5
+
1
6
  v1.2.0 - 2023-06-05
2
7
  -------------------
3
8
  - Set `required_ruby_version` in the gemspec
data/Gemfile CHANGED
@@ -13,6 +13,6 @@ group :development, :test do
13
13
  gem "rack-test", "~> 2"
14
14
  gem "standard", "~> 1"
15
15
  gem "pry"
16
- gem "webmock", "~> 3.18"
16
+ gem "webmock", "~> 3.19"
17
17
  gem "bundle-audit", "~> 0.1.0"
18
18
  end
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rack-cloudflare_middleware (1.2.0)
4
+ rack-cloudflare_middleware (1.2.1)
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.1)
11
+ addressable (2.8.5)
12
12
  public_suffix (>= 2.0.2, < 6.0)
13
13
  ast (2.4.2)
14
14
  bundle-audit (0.1.0)
@@ -20,29 +20,31 @@ GEM
20
20
  crack (0.4.5)
21
21
  rexml
22
22
  diff-lcs (1.5.0)
23
- faraday (2.7.5)
23
+ faraday (2.7.10)
24
24
  faraday-net_http (>= 2.0, < 3.1)
25
25
  ruby2_keywords (>= 0.0.4)
26
26
  faraday-net_http (3.0.2)
27
27
  hashdiff (1.0.1)
28
- json (2.6.3)
28
+ json (2.7.1)
29
29
  language_server-protocol (3.17.0.3)
30
- lint_roller (1.0.0)
30
+ lint_roller (1.1.0)
31
31
  method_source (1.0.0)
32
- parallel (1.23.0)
33
- parser (3.2.2.1)
32
+ parallel (1.24.0)
33
+ parser (3.3.0.5)
34
34
  ast (~> 2.4.1)
35
+ racc
35
36
  pry (0.14.2)
36
37
  coderay (~> 1.1)
37
38
  method_source (~> 1.0)
38
- public_suffix (5.0.1)
39
- rack (3.0.7)
39
+ public_suffix (5.0.3)
40
+ racc (1.7.3)
41
+ rack (3.0.9.1)
40
42
  rack-test (2.1.0)
41
43
  rack (>= 1.3)
42
44
  rainbow (3.1.1)
43
45
  rake (13.0.6)
44
- regexp_parser (2.8.0)
45
- rexml (3.2.5)
46
+ regexp_parser (2.9.0)
47
+ rexml (3.2.6)
46
48
  rspec (3.12.0)
47
49
  rspec-core (~> 3.12.0)
48
50
  rspec-expectations (~> 3.12.0)
@@ -59,43 +61,46 @@ GEM
59
61
  diff-lcs (>= 1.2.0, < 2.0)
60
62
  rspec-support (~> 3.12.0)
61
63
  rspec-support (3.12.0)
62
- rubocop (1.50.2)
64
+ rubocop (1.60.2)
63
65
  json (~> 2.3)
66
+ language_server-protocol (>= 3.17.0)
64
67
  parallel (~> 1.10)
65
- parser (>= 3.2.0.0)
68
+ parser (>= 3.3.0.2)
66
69
  rainbow (>= 2.2.2, < 4.0)
67
70
  regexp_parser (>= 1.8, < 3.0)
68
71
  rexml (>= 3.2.5, < 4.0)
69
- rubocop-ast (>= 1.28.0, < 2.0)
72
+ rubocop-ast (>= 1.30.0, < 2.0)
70
73
  ruby-progressbar (~> 1.7)
71
74
  unicode-display_width (>= 2.4.0, < 3.0)
72
- rubocop-ast (1.28.1)
75
+ rubocop-ast (1.30.0)
73
76
  parser (>= 3.2.1.0)
74
- rubocop-performance (1.16.0)
75
- rubocop (>= 1.7.0, < 2.0)
76
- rubocop-ast (>= 0.4.0)
77
+ rubocop-performance (1.20.2)
78
+ rubocop (>= 1.48.1, < 2.0)
79
+ rubocop-ast (>= 1.30.0, < 2.0)
77
80
  ruby-progressbar (1.13.0)
78
81
  ruby2_keywords (0.0.5)
79
- standard (1.28.4)
82
+ standard (1.34.0)
80
83
  language_server-protocol (~> 3.17.0.2)
81
84
  lint_roller (~> 1.0)
82
- rubocop (~> 1.50.2)
85
+ rubocop (~> 1.60)
83
86
  standard-custom (~> 1.0.0)
84
- standard-performance (~> 1.0.1)
85
- standard-custom (1.0.0)
87
+ standard-performance (~> 1.3)
88
+ standard-custom (1.0.2)
86
89
  lint_roller (~> 1.0)
87
- standard-performance (1.0.1)
88
- lint_roller (~> 1.0)
89
- rubocop-performance (~> 1.16.0)
90
+ rubocop (~> 1.50)
91
+ standard-performance (1.3.1)
92
+ lint_roller (~> 1.1)
93
+ rubocop-performance (~> 1.20.2)
90
94
  thor (1.2.1)
91
- unicode-display_width (2.4.2)
92
- webmock (3.18.1)
95
+ unicode-display_width (2.5.0)
96
+ webmock (3.19.1)
93
97
  addressable (>= 2.8.0)
94
98
  crack (>= 0.3.2)
95
99
  hashdiff (>= 0.4.0, < 2.0.0)
96
100
 
97
101
  PLATFORMS
98
102
  arm64-darwin-22
103
+ arm64-darwin-23
99
104
  x86_64-linux
100
105
 
101
106
  DEPENDENCIES
@@ -109,7 +114,7 @@ DEPENDENCIES
109
114
  rspec (~> 3.0)
110
115
  rspec-its (~> 1.3)
111
116
  standard (~> 1)
112
- webmock (~> 3.18)
117
+ webmock (~> 3.19)
113
118
 
114
119
  BUNDLED WITH
115
120
  2.4.7
@@ -40,8 +40,8 @@ module Rack
40
40
  end
41
41
 
42
42
  def update!
43
- read_network "https://www.cloudflare.com/ips-v4", 4
44
- read_network "https://www.cloudflare.com/ips-v6", 6
43
+ read_network "https://www.cloudflare.com/ips-v4/", 4
44
+ read_network "https://www.cloudflare.com/ips-v6/", 6
45
45
  end
46
46
 
47
47
  def check_update
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rack
4
4
  module CloudflareMiddleware
5
- VERSION = "1.2.0"
5
+ VERSION = "1.2.1"
6
6
  end
7
7
  end
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.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Brown
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-06 00:00:00.000000000 Z
11
+ date: 2024-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  requirements: []
154
- rubygems_version: 3.4.10
154
+ rubygems_version: 3.5.3
155
155
  signing_key:
156
156
  specification_version: 4
157
157
  summary: Rack middleware for handling Cloudflare remote IP headers