We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f4b011 commit 20cf2b1Copy full SHA for 20cf2b1
lib/tasks/book2.rake
@@ -3,7 +3,6 @@
3
require "nokogiri"
4
require "octokit"
5
require "pathname"
6
-require "open-uri"
7
8
def expand(content, path, &get_content)
9
content.gsub(/include::(\S+)\[\]/) do |line|
@@ -71,7 +70,7 @@ def genbook(code, &get_content)
71
70
end
72
73
begin
74
- l10n_file = open("https://raw.githubusercontent.com/asciidoctor/asciidoctor/master/data/locale/attributes-#{code}.adoc").read
+ l10n_file = URI.open("https://raw.githubusercontent.com/asciidoctor/asciidoctor/master/data/locale/attributes-#{code}.adoc").read
75
rescue
76
l10n_file = ""
77
0 commit comments