Compare commits

...

2 Commits

Author SHA1 Message Date
Danila Fedorin d7a601dd5e Unescape HTML from document 2022-03-27 21:21:44 -07:00
Danila Fedorin 41142b963a Reset nokogiri back to latest version 2022-03-27 21:15:00 -07:00
4 changed files with 12 additions and 10 deletions

View File

@ -1,3 +1,3 @@
source 'https://rubygems.org' source 'https://rubygems.org'
gem 'nokogiri', '~>1.12.5' gem 'nokogiri'

View File

@ -1,9 +1,9 @@
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
mini_portile2 (2.6.1) mini_portile2 (2.8.0)
nokogiri (1.12.5) nokogiri (1.13.3)
mini_portile2 (~> 2.6.1) mini_portile2 (~> 2.8.0)
racc (~> 1.4) racc (~> 1.4)
racc (1.6.0) racc (1.6.0)
@ -11,7 +11,7 @@ PLATFORMS
ruby ruby
DEPENDENCIES DEPENDENCIES
nokogiri (~> 1.12.5) nokogiri
BUNDLED WITH BUNDLED WITH
2.2.24 2.1.4

View File

@ -2,8 +2,10 @@ require "open3"
require "nokogiri" require "nokogiri"
require "net/http" require "net/http"
require "json" require "json"
require "cgi"
def render_cached(cache, display, string, render_comment = nil) def render_cached(cache, display, string, render_comment = nil)
string = CGI.unescapeHTML string
cache.fetch(string) do |new| cache.fetch(string) do |new|
puts " Rendering #{render_comment || new}" puts " Rendering #{render_comment || new}"
res = Net::HTTP.post URI("http://localhost:8000/render"), res = Net::HTTP.post URI("http://localhost:8000/render"),

View File

@ -4,10 +4,10 @@
platforms = []; platforms = [];
source = { source = {
remotes = ["https://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "1lvxm91hi0pabnkkg47wh1siv56s6slm2mdq1idfm86dyfidfprq"; sha256 = "0rapl1sfmfi3bfr68da4ca16yhc0pp93vjwkj7y3rdqrzy3b41hy";
type = "gem"; type = "gem";
}; };
version = "2.6.1"; version = "2.8.0";
}; };
nokogiri = { nokogiri = {
dependencies = ["mini_portile2" "racc"]; dependencies = ["mini_portile2" "racc"];
@ -15,10 +15,10 @@
platforms = []; platforms = [];
source = { source = {
remotes = ["https://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "1v02g7k7cxiwdcahvlxrmizn3avj2q6nsjccgilq1idc89cr081b"; sha256 = "1p6b3q411h2mw4dsvhjrp1hh66hha5cm69fqg85vn2lizz71n6xz";
type = "gem"; type = "gem";
}; };
version = "1.12.5"; version = "1.13.3";
}; };
racc = { racc = {
groups = ["default"]; groups = ["default"];