diff --git a/packages/ruby/lib/readme/http_request.rb b/packages/ruby/lib/readme/http_request.rb index dbea436e0..736274ecb 100644 --- a/packages/ruby/lib/readme/http_request.rb +++ b/packages/ruby/lib/readme/http_request.rb @@ -131,7 +131,7 @@ def host_header def read_body(io) return '' if io.nil? - + io.rewind if io.respond_to?(:rewind) content = io.read || '' io.rewind if io.respond_to?(:rewind) diff --git a/packages/ruby/readme-metrics.gemspec b/packages/ruby/readme-metrics.gemspec index 3e126fcf0..0dd35192d 100644 --- a/packages/ruby/readme-metrics.gemspec +++ b/packages/ruby/readme-metrics.gemspec @@ -26,6 +26,6 @@ Gem::Specification.new do |spec| # spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ['lib'] - spec.add_runtime_dependency 'httparty', '~> 0.18' - spec.add_runtime_dependency 'rack', '>= 2.2', '< 4' + spec.add_dependency 'httparty', '~> 0.18' + spec.add_dependency 'rack', '>= 2.2', '< 4' end