Commit fc47088
committed
fix URI.escape and URI.open deprecation warnings
Fixes #6
$ ./bin/nom search foo
Previous log entries:
(no matching entries found)
---------------------
(0) total
.../lib/nom/nom.rb:109: warning: URI.escape is obsolete
.../lib/nom/nom.rb:111: warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open
.../lib/nom/nom.rb:115: warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open
Food Diet Pro, Schoko (Powerstar Food)
(707) 1 Glas (200 ml)
(106) 1 Becher (30 ml)
As the stdlib [1] and the warnings suggest, use CGI.escape and URI.open
instead.
[1]: https://ruby-doc.org/stdlib-2.7.1/libdoc/uri/rdoc/URI/Escape.html#method-i-escape-label-Description1 parent ceb4530 commit fc47088
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
0 commit comments