jekyll_elm 0.18.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +5 -5
  2. data/lib/elm_compiler.rb +3 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 07324bf72a806ad6e5808d7bcb3e19863dfb91b2
4
- data.tar.gz: 9033023f4b4bfa62389bbb110b8656e1245f8a3d
2
+ SHA256:
3
+ metadata.gz: 1f0c86f3df046dfd3741d9191c10bcc2272a04352fa56c54a8384957b44babab
4
+ data.tar.gz: 31bb96ea9e85788dbd944b74ac54e51395f97cae80634ea934c2ef96905bbd9a
5
5
  SHA512:
6
- metadata.gz: 5ff74257305c6cc3b96136d3ef6a4347ad37f0813dacaa67be719007bdbc6c88e6c07a3532ca705d7df4a978cb97645fb3f111a482ba4637ec1791e46e45e471
7
- data.tar.gz: 83262617be9a30a61648c36a9dd43114a1963ca13ca28ef3896f66857dfe7490282af6d11d3627a8f80b975f58d99d0889a903ee7d50232cc8ab210f7f370429
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("elm-make #{tmp_path} --output #{dest_path} --yes")
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.18.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: 2017-06-20 00:00:00.000000000 Z
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.11
41
+ rubygems_version: 2.7.6
42
42
  signing_key:
43
43
  specification_version: 4
44
44
  summary: Elm support for Jekyll