Skip to content

Commit

Permalink
Replace inline reuby2_keywords with the gem
Browse files Browse the repository at this point in the history
  • Loading branch information
dgholz committed May 4, 2020
1 parent 7ae6a33 commit 5590aca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions faraday.gemspec
Expand Up @@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = '>= 2.3'

spec.add_dependency 'multipart-post', '>= 1.2', '< 3'
spec.add_dependency 'ruby2_keywords'

files = %w[CHANGELOG.md LICENSE.md README.md Rakefile examples lib spec]
spec.files = `git ls-files -z #{files.join(' ')}`.split("\0")
Expand Down
2 changes: 1 addition & 1 deletion lib/faraday/dependency_loader.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true

def ruby2_keywords(*) end if RUBY_VERSION < '2.7'
require 'ruby2_keywords'

module Faraday
# DependencyLoader helps Faraday adapters and middleware load dependencies.
Expand Down
3 changes: 1 addition & 2 deletions lib/faraday/rack_builder.rb
@@ -1,7 +1,6 @@
# frozen_string_literal: true

def ruby2_keywords(*) end if RUBY_VERSION < '2.7'

require 'ruby2_keywords'
require 'faraday/adapter_registry'

module Faraday
Expand Down

0 comments on commit 5590aca

Please sign in to comment.