Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ jobs:
- macos

ruby:
- "2.3"
- "2.4"
- "2.5"
- "2.6"
- "2.7"
Expand Down
10 changes: 2 additions & 8 deletions lib/multipart/post/multipartable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,8 @@ def initialize(path, params, headers={}, boundary = Multipartable.secure_boundar

private

if RUBY_VERSION >= "2.5.0"
def symbolize_keys(hash)
hash.transform_keys(&:to_sym)
end
else
def symbolize_keys(hash)
hash.map{|key,value| [key.to_sym, value]}.to_h
end
def symbolize_keys(hash)
hash.transform_keys(&:to_sym)
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion multipart-post.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Gem::Specification.new do |spec|

spec.files = Dir['{lib}/**/*', '*.md']

spec.required_ruby_version = ">= 2.3.0"
spec.required_ruby_version = ">= 2.5.0"

spec.add_development_dependency "bundler"
spec.add_development_dependency "rspec", "~> 3.4"
Expand Down