Skip to content

Commit 5d51b3e

Browse files
authored
Merge pull request #40 from Flagsmith/chore/remove_faraday_middleware
chore: Remove faraday middleware
2 parents ee79786 + 1332101 commit 5d51b3e

File tree

5 files changed

+40
-61
lines changed

5 files changed

+40
-61
lines changed

.github/workflows/pull_request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
runs-on: ubuntu-latest
3232
strategy:
3333
matrix:
34-
ruby-version: ['2.7', '3.0', '3.1', '3.2']
34+
ruby-version: ['3.0', '3.1', '3.2', '3.3']
3535

3636
steps:
3737
- uses: actions/checkout@v3

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Layout/HashAlignment:
44
AllowMultipleStyles: true
55
EnforcedColonStyle: key
66
AllCops:
7-
TargetRubyVersion: 2.4 # Pin to flagsmith.gemspec required_ruby_version
7+
TargetRubyVersion: 3.0 # Pin to flagsmith.gemspec required_ruby_version
88
NewCops: enable
99
SuggestExtensions: false
1010
Exclude:

Gemfile.lock

Lines changed: 36 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ PATH
22
remote: .
33
specs:
44
flagsmith (3.2.0)
5-
faraday (>= 1.0.0)
5+
faraday (>= 2.0.1)
66
faraday-retry
7-
faraday_middleware
87
semantic
98

109
GEM
@@ -13,82 +12,64 @@ GEM
1312
ast (2.4.2)
1413
byebug (11.1.3)
1514
coderay (1.1.3)
16-
diff-lcs (1.4.4)
17-
faraday (1.10.3)
18-
faraday-em_http (~> 1.0)
19-
faraday-em_synchrony (~> 1.0)
20-
faraday-excon (~> 1.1)
21-
faraday-httpclient (~> 1.0)
22-
faraday-multipart (~> 1.0)
23-
faraday-net_http (~> 1.0)
24-
faraday-net_http_persistent (~> 1.0)
25-
faraday-patron (~> 1.0)
26-
faraday-rack (~> 1.0)
27-
faraday-retry (~> 1.0)
28-
ruby2_keywords (>= 0.0.4)
29-
faraday-em_http (1.0.0)
30-
faraday-em_synchrony (1.0.0)
31-
faraday-excon (1.1.0)
32-
faraday-httpclient (1.0.1)
33-
faraday-multipart (1.0.4)
34-
multipart-post (~> 2)
35-
faraday-net_http (1.0.1)
36-
faraday-net_http_persistent (1.2.0)
37-
faraday-patron (1.0.0)
38-
faraday-rack (1.0.0)
39-
faraday-retry (1.0.3)
40-
faraday_middleware (1.2.0)
41-
faraday (~> 1.0)
42-
gem-release (2.2.0)
43-
json (2.6.3)
15+
diff-lcs (1.5.0)
16+
faraday (2.9.0)
17+
faraday-net_http (>= 2.0, < 3.2)
18+
faraday-net_http (3.1.0)
19+
net-http
20+
faraday-retry (2.2.0)
21+
faraday (~> 2.0)
22+
gem-release (2.2.2)
23+
json (2.7.1)
4424
language_server-protocol (3.17.0.3)
4525
method_source (1.0.0)
46-
multipart-post (2.3.0)
47-
parallel (1.23.0)
48-
parser (3.2.2.3)
26+
net-http (0.4.1)
27+
uri
28+
parallel (1.24.0)
29+
parser (3.3.0.4)
4930
ast (~> 2.4.1)
5031
racc
51-
pry (0.14.1)
32+
pry (0.14.2)
5233
coderay (~> 1.1)
5334
method_source (~> 1.0)
5435
pry-byebug (3.10.1)
5536
byebug (~> 11.0)
5637
pry (>= 0.13, < 0.15)
57-
racc (1.7.1)
38+
racc (1.7.3)
5839
rainbow (3.1.1)
59-
rake (13.0.3)
60-
regexp_parser (2.8.1)
61-
rexml (3.2.5)
62-
rspec (3.10.0)
63-
rspec-core (~> 3.10.0)
64-
rspec-expectations (~> 3.10.0)
65-
rspec-mocks (~> 3.10.0)
66-
rspec-core (3.10.1)
67-
rspec-support (~> 3.10.0)
68-
rspec-expectations (3.10.1)
40+
rake (13.1.0)
41+
regexp_parser (2.9.0)
42+
rexml (3.2.6)
43+
rspec (3.12.0)
44+
rspec-core (~> 3.12.0)
45+
rspec-expectations (~> 3.12.0)
46+
rspec-mocks (~> 3.12.0)
47+
rspec-core (3.12.2)
48+
rspec-support (~> 3.12.0)
49+
rspec-expectations (3.12.3)
6950
diff-lcs (>= 1.2.0, < 2.0)
70-
rspec-support (~> 3.10.0)
71-
rspec-mocks (3.10.1)
51+
rspec-support (~> 3.12.0)
52+
rspec-mocks (3.12.6)
7253
diff-lcs (>= 1.2.0, < 2.0)
73-
rspec-support (~> 3.10.0)
74-
rspec-support (3.10.1)
75-
rubocop (1.54.2)
54+
rspec-support (~> 3.12.0)
55+
rspec-support (3.12.1)
56+
rubocop (1.60.0)
7657
json (~> 2.3)
7758
language_server-protocol (>= 3.17.0)
7859
parallel (~> 1.10)
79-
parser (>= 3.2.2.3)
60+
parser (>= 3.3.0.2)
8061
rainbow (>= 2.2.2, < 4.0)
8162
regexp_parser (>= 1.8, < 3.0)
8263
rexml (>= 3.2.5, < 4.0)
83-
rubocop-ast (>= 1.28.0, < 2.0)
64+
rubocop-ast (>= 1.30.0, < 2.0)
8465
ruby-progressbar (~> 1.7)
8566
unicode-display_width (>= 2.4.0, < 3.0)
86-
rubocop-ast (1.29.0)
67+
rubocop-ast (1.30.0)
8768
parser (>= 3.2.1.0)
8869
ruby-progressbar (1.13.0)
89-
ruby2_keywords (0.0.5)
9070
semantic (1.6.1)
91-
unicode-display_width (2.4.2)
71+
unicode-display_width (2.5.0)
72+
uri (0.13.0)
9273

9374
PLATFORMS
9475
ruby

flagsmith.gemspec

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require File.expand_path('lib/flagsmith/version', __dir__)
44

55
Gem::Specification.new do |spec|
6-
spec.required_ruby_version = '>= 2.4.0'
6+
spec.required_ruby_version = '>= 3.0.0'
77
spec.name = 'flagsmith'
88
spec.version = Flagsmith::VERSION
99
spec.authors = ['Tom Stuart', 'Brian Moelk', 'Zach Aysan']
@@ -32,8 +32,7 @@ Gem::Specification.new do |spec|
3232
spec.add_development_dependency 'rspec'
3333
spec.add_development_dependency 'rubocop'
3434

35-
spec.add_dependency 'faraday', '>= 1.0.0'
36-
spec.add_dependency 'faraday_middleware'
35+
spec.add_dependency 'faraday', '>= 2.0.1'
3736
spec.add_dependency 'faraday-retry'
3837
spec.add_dependency 'semantic'
3938
spec.metadata['rubygems_mfa_required'] = 'true'

lib/flagsmith.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
require 'faraday'
77
require 'faraday/retry'
8-
require 'faraday_middleware'
98

109
# Hash#slice was added in ruby version 2.5
1110
# This is the patch to use slice in earler versions

0 commit comments

Comments
 (0)