Skip to content

Commit

Permalink
Resolved. warning on ruby 2.7
Browse files Browse the repository at this point in the history
```
/home/runner/work/syobocalite/syobocalite/lib/syobocalite.rb:44: warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open
```

https://github.com/sue445/syobocalite/runs/370498939
  • Loading branch information
sue445 committed Jan 2, 2020
1 parent f99e52c commit 7144b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/syobocalite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def self.fetch(start_at:, end_at:)
"User-Agent" => "Syobocalite v#{Syobocalite::VERSION}",
}

open("http://cal.syoboi.jp/cal_chk.php?#{params.to_param}", headers).read
URI.open("http://cal.syoboi.jp/cal_chk.php?#{params.to_param}", headers).read
end
private_class_method :fetch
end

0 comments on commit 7144b1e

Please sign in to comment.