Skip to content

Commit 19790ac

Browse files
committed
Ruby 3.4 compatibility
1 parent 2b0f341 commit 19790ac

27 files changed

+40
-16
lines changed

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ group :development do
1717
gem 'rubysspi'
1818
gem 'rubyntlm'
1919
gem 'rack-ntlm-test-service'
20+
gem 'webrick'
21+
gem 'base64'
2022
end
2123

2224
gemspec

lib/hexdump.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# encoding: binary
2+
# frozen_string_literal: false
23

34
# This was written by Arai-san and published at
45
# http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-list/31987

lib/http-access2.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: false
12
# HTTPAccess2 - HTTP accessing library.
23
# Copyright (C) 2000-2007 NAKAMURA, Hiroshi <[email protected]>.
34

lib/httpclient.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: false
12
# HTTPClient - HTTP client library.
23
# Copyright (C) 2000-2015 NAKAMURA, Hiroshi <[email protected]>.
34
#
@@ -1240,7 +1241,7 @@ def do_get_block(req, proxy, conn, &block)
12401241
conn.push(res)
12411242
return res
12421243
end
1243-
content = block ? nil : ''
1244+
content = block ? nil : +''
12441245
res = HTTP::Message.new_response(content, req.header)
12451246
@debug_dev << "= Request\n\n" if @debug_dev
12461247
sess = @session_manager.query(req, proxy)

lib/httpclient/auth.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: false
12
# HTTPClient - HTTP client library.
23
# Copyright (C) 2000-2015 NAKAMURA, Hiroshi <[email protected]>.
34
#

lib/httpclient/connection.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: false
12
# HTTPClient - HTTP client library.
23
# Copyright (C) 2000-2015 NAKAMURA, Hiroshi <[email protected]>.
34
#

lib/httpclient/cookie.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: false
12
# do not override if httpclient/webagent-cookie is loaded already
23
unless defined?(HTTPClient::CookieManager)
34
begin # for catching LoadError and load webagent-cookie instead

lib/httpclient/http.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- encoding: utf-8 -*-
2+
# frozen_string_literal: false
23

34
# HTTPClient - HTTP client library.
45
# Copyright (C) 2000-2015 NAKAMURA, Hiroshi <[email protected]>.

lib/httpclient/include_client.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: false
12
# It is useful to re-use a HTTPClient instance for multiple requests, to
23
# re-use HTTP 1.1 persistent connections.
34
#

lib/httpclient/jruby_ssl_socket.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: false
12
# HTTPClient - HTTP client library.
23
# Copyright (C) 2000-2015 NAKAMURA, Hiroshi <[email protected]>.
34
#

0 commit comments

Comments
 (0)