rack-cloudflare_middleware 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +4 -0
- data/.github/workflows/ci.yml +9 -9
- data/.github/workflows/release.yml +3 -3
- data/.pre-commit-config.yaml +1 -1
- data/CHANGELOG.md +5 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +33 -28
- data/lib/rack/cloudflare_middleware/trusted_ips.rb +2 -2
- data/lib/rack/cloudflare_middleware/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94b610b53380179d91c61ccbbbf7b4c624daf3e8fa35cd27d5af29be5162943f
|
4
|
+
data.tar.gz: e1448c8c0781ce69c42725372a711d3e382f646164ea4d03d5cd10519a3b7d74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba708b039e3745945858582255235c6665ba932e3879874f321f006f7d66d193e24d121948c0a5c61d230d361edc20bab8bfa1aaa21eb71b07a91f29bf316fb7
|
7
|
+
data.tar.gz: 96a5395cdc80a1dbe181522b35dbc2868d49ad9b9d2964b895e118323ef2d139ade65caee49403e685e55fdd109ade8093173a102f3288e47bf5574ccb4bdffc
|
data/.github/dependabot.yml
CHANGED
@@ -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
|
data/.github/workflows/ci.yml
CHANGED
@@ -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@
|
22
|
+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
23
23
|
- name: Install Ruby and gems
|
24
|
-
uses: ruby/setup-ruby@
|
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@
|
38
|
+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
39
39
|
- name: Install Ruby and gems
|
40
|
-
uses: ruby/setup-ruby@
|
40
|
+
uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677
|
41
41
|
with:
|
42
42
|
bundler-cache: true
|
43
|
-
ruby-version: "3.
|
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@
|
47
|
+
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c
|
48
48
|
with:
|
49
|
-
python-version: "3.
|
49
|
+
python-version: "3.12"
|
50
50
|
- name: Run pre-commit
|
51
|
-
uses: pre-commit/action@
|
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@
|
10
|
+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
11
11
|
- name: Install Ruby and gems
|
12
|
-
uses: ruby/setup-ruby@
|
12
|
+
uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677
|
13
13
|
with:
|
14
14
|
bundler-cache: true
|
15
|
-
ruby-version: "3.
|
15
|
+
ruby-version: "3.3"
|
16
16
|
- name: Publish gem
|
17
17
|
run: |
|
18
18
|
umask 077
|
data/.pre-commit-config.yaml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rack-cloudflare_middleware (1.2.
|
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.
|
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.
|
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.
|
28
|
+
json (2.7.1)
|
29
29
|
language_server-protocol (3.17.0.3)
|
30
|
-
lint_roller (1.
|
30
|
+
lint_roller (1.1.0)
|
31
31
|
method_source (1.0.0)
|
32
|
-
parallel (1.
|
33
|
-
parser (3.
|
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.
|
39
|
-
|
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.
|
45
|
-
rexml (3.2.
|
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.
|
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.
|
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.
|
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.
|
75
|
+
rubocop-ast (1.30.0)
|
73
76
|
parser (>= 3.2.1.0)
|
74
|
-
rubocop-performance (1.
|
75
|
-
rubocop (>= 1.
|
76
|
-
rubocop-ast (>=
|
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.
|
82
|
+
standard (1.34.0)
|
80
83
|
language_server-protocol (~> 3.17.0.2)
|
81
84
|
lint_roller (~> 1.0)
|
82
|
-
rubocop (~> 1.
|
85
|
+
rubocop (~> 1.60)
|
83
86
|
standard-custom (~> 1.0.0)
|
84
|
-
standard-performance (~> 1.
|
85
|
-
standard-custom (1.0.
|
87
|
+
standard-performance (~> 1.3)
|
88
|
+
standard-custom (1.0.2)
|
86
89
|
lint_roller (~> 1.0)
|
87
|
-
|
88
|
-
|
89
|
-
|
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.
|
92
|
-
webmock (3.
|
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.
|
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
|
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.
|
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:
|
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.
|
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
|