jekyll_elm 0.18.0 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/elm_compiler.rb +3 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1f0c86f3df046dfd3741d9191c10bcc2272a04352fa56c54a8384957b44babab
|
4
|
+
data.tar.gz: 31bb96ea9e85788dbd944b74ac54e51395f97cae80634ea934c2ef96905bbd9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 900f82631cfca7ab6700ab08ea7ca250adc37785b3b164521891c75812e2d6c51c0812c5ade95c479ff649231b7b7a24e7ee8b859ad05021e68a697e0321f36d
|
7
|
+
data.tar.gz: a8e3bb9197656b1d16774bde8533a46abb89281449093b3ffd54156dda786852f4a79db5aa4582d8bfa2d3756d1c617de6c10ce151f290fcfeb92031613e8932
|
data/lib/elm_compiler.rb
CHANGED
@@ -2,6 +2,8 @@ require 'open3'
|
|
2
2
|
require 'securerandom'
|
3
3
|
|
4
4
|
class ElmCompiler
|
5
|
+
ELM_COMMAND = 'PATH=$(yarn bin):$PATH elm make'
|
6
|
+
|
5
7
|
def initialize(content)
|
6
8
|
setup_dir
|
7
9
|
|
@@ -14,7 +16,7 @@ class ElmCompiler
|
|
14
16
|
with_error_handling do
|
15
17
|
result = File.open(tmp_path, 'w') { |f| f.write(@content) }
|
16
18
|
|
17
|
-
out, err, status = Open3.capture3("
|
19
|
+
out, err, status = Open3.capture3("#{ELM_COMMAND} #{tmp_path} --output #{dest_path}")
|
18
20
|
|
19
21
|
if status.success?
|
20
22
|
output = File.read(dest_path)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll_elm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sonny Michaud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: michaud.sonny@gmail.com
|
@@ -38,7 +38,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
38
38
|
version: '0'
|
39
39
|
requirements: []
|
40
40
|
rubyforge_project:
|
41
|
-
rubygems_version: 2.6
|
41
|
+
rubygems_version: 2.7.6
|
42
42
|
signing_key:
|
43
43
|
specification_version: 4
|
44
44
|
summary: Elm support for Jekyll
|