diff options
author | Go MAEDA <maeda@farend.jp> | 2023-03-05 05:07:50 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-03-05 05:07:50 +0000 |
commit | 89d759ed7aacc5cf04a6952c2921ab960a4a613e (patch) | |
tree | 7e346621970a661d29d420ec2470d3e21705e07d /bin | |
parent | d1f13e865c588ab1f17a3771012bf0246b1a46f0 (diff) | |
download | redmine-89d759ed7aacc5cf04a6952c2921ab960a4a613e.tar.gz redmine-89d759ed7aacc5cf04a6952c2921ab960a4a613e.zip |
Directly call URI.open instead of calling it via Kernel#open to fix deprecation warning.
git-svn-id: https://svn.redmine.org/redmine/trunk@22128 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'bin')
-rw-r--r-- | bin/changelog.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/changelog.rb b/bin/changelog.rb index e8f4beca8..6bed48869 100644 --- a/bin/changelog.rb +++ b/bin/changelog.rb @@ -145,7 +145,7 @@ module Redmine def retrieve_pagination_items_span_content begin - Nokogiri::HTML(open(ISSUES_URL)).css(PAGINATION_ITEMS_SPAN_SELECTOR).text + Nokogiri::HTML(URI.open(ISSUES_URL)).css(PAGINATION_ITEMS_SPAN_SELECTOR).text rescue OpenURI::HTTPError puts CONNECTION_ERROR_MSG exit @@ -176,7 +176,7 @@ module Redmine def retrieve_issues_list_page(page_number) begin - Nokogiri::HTML(open(ISSUES_URL + '&page=' + page_number.to_s)) + Nokogiri::HTML(URI.open(ISSUES_URL + '&page=' + page_number.to_s)) rescue OpenURI::HTTPError puts CONNECTION_ERROR_MSG exit @@ -222,7 +222,7 @@ module Redmine def retrieve_version_details begin - Nokogiri::HTML(open(VERSIONS_URL)).css(VERSION_DETAILS_SELECTOR) + Nokogiri::HTML(URI.open(VERSIONS_URL)).css(VERSION_DETAILS_SELECTOR) rescue OpenURI::HTTPError puts CONNECTION_ERROR_MSG exit |