Skip to content

Commit 24f6ae4

Browse files
committed
Install gem for printing Faraday requests as curls in terminal
1 parent 56bc222 commit 24f6ae4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Gemfile

+4-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ gem 'aws-sdk-s3'
4848
# For HTTP requests (native Rails does this terribly...)
4949
gem 'faraday'
5050

51+
# For printing curl requests after Faraday requests
52+
gem 'faraday_curl', groups: %i[development]
53+
5154
# For catching N+1 queries
5255
gem 'bullet', groups: %i[development test]
5356

@@ -62,4 +65,4 @@ gem 'rubocop-rails', groups: %i[development]
6265
gem 'minitest', groups: %i[test]
6366

6467
# For annotating models and fixtures with schema info.
65-
gem 'annotate', groups: %i[development]
68+
gem 'annotate', groups: %i[development]

Gemfile.lock

+3
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ GEM
9898
faraday-net_http (>= 2.0, < 3.1)
9999
ruby2_keywords (>= 0.0.4)
100100
faraday-net_http (3.0.2)
101+
faraday_curl (0.0.2)
102+
faraday (>= 0.9.0)
101103
ffi (1.15.0)
102104
globalid (0.4.2)
103105
activesupport (>= 4.2.0)
@@ -226,6 +228,7 @@ DEPENDENCIES
226228
byebug
227229
dotenv-rails
228230
faraday
231+
faraday_curl
229232
jsonapi-serializer
230233
jwt
231234
listen

0 commit comments

Comments
 (0)