lib/jekyll-postcss/socket.rb in jekyll-postcss-0.3.1 vs lib/jekyll-postcss/socket.rb in jekyll-postcss-0.3.2
- old
+ new
@@ -1,10 +1,9 @@
# frozen_string_literal: true
require "socket"
require "json"
-require "open3"
module PostCss
class Socket
class PostCssRuntimeError; end
START_SCRIPT = File.expand_path("../../bin/command", __dir__)
@@ -28,10 +27,10 @@
if development?
decode(@postcss.gets.chomp)
else
raise "You must call PostCss#write before calling PostCss#read" if @compiled_css.nil?
- @compiled_css
+ decode(@compiled_css)
end
end
private