sprockets-illusionist 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c2ddbb3f7d5f6234ae709e3ba7bb57477fa8c8a
4
- data.tar.gz: 49f6caa5406c32128ffb31186888b55dec59b66f
3
+ metadata.gz: 3292d379e7ec6616f348fb8d0c11f345258cad0e
4
+ data.tar.gz: 31552a2b32c7ed6e5799711260ce146809544c1a
5
5
  SHA512:
6
- metadata.gz: 03ef860e67b6c68f70d5b8b9a8aef70fb9dd3b1379f9184aec5ea022f6b720629c8b0ebc7917ef3a2ae30f6e3f461aaa85a498081405556429eaecc7bc2b7263
7
- data.tar.gz: 21302f3b6a79dcebedcddbd54b109e19536ef34eb76d58d775e1dd40b9c8bdf2fb5793bfdaefb1ccefa6d1edeed1c49509ba89f729f70d5a443c9aca29a8a759
6
+ metadata.gz: 6eaf48de77b874859b39b50a0b9b8739999d175e8b9e2efa3613681ef81f5b6a3cc1e6e68f54d809f6d91d47f7ae76cac8772ba398e147c5746df0f5f56febe3
7
+ data.tar.gz: 1f0793bc59c8cfe743880521eb37372cdacfe41a744edd4b0a49b54dfb8ea701fd4d8cf712f022e26f6e56ffb28447a0c05100884aa6aeb59c84f6ec046ce0b1
@@ -2,6 +2,7 @@ module SprocketsIllusionist
2
2
  module Config
3
3
  class << self
4
4
  attr_accessor :node_path
5
+ attr_accessor :illusionist_path
5
6
  attr_accessor :base_path
6
7
  attr_accessor :module_type
7
8
  end
@@ -10,7 +10,7 @@ module SprocketsIllusionist
10
10
  end
11
11
 
12
12
  def evaluate(scope, locals, &block)
13
- stdout, _stderr, _status = Open3.capture3("#{node_path} illusionist #{option_string_from_config}", stdin_data: data)
13
+ stdout, _stderr, _status = Open3.capture3("#{node_path} #{illusionist_path} #{option_string_from_config}", stdin_data: data)
14
14
  stdout
15
15
  end
16
16
 
@@ -20,6 +20,10 @@ module SprocketsIllusionist
20
20
  SprocketsIllusionist::Config.try(:node_path) || 'node'
21
21
  end
22
22
 
23
+ def illusionist_path
24
+ SprocketsIllusionist::Config.try(:illusionist_path) || 'illusionist'
25
+ end
26
+
23
27
  def amd_module_name
24
28
  base_path = SprocketsIllusionist::Config.base_path
25
29
  file_name = File.basename(file, '.js.es6')
@@ -1,3 +1,3 @@
1
1
  module SprocketsIllusionist
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprockets-illusionist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Demers