sprockets-illusionist 0.0.2 → 0.0.3

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: 171987302d4fbf78eedcd397cb70d687da9af4ce
4
- data.tar.gz: 9887933990182998b6b90abc45ceafab683d63d6
3
+ metadata.gz: 09bc0aa5fb719a7d909ffb4e7e1699de8079f49b
4
+ data.tar.gz: 51dc60072ba718ea834682de9214ed6ffc23fc14
5
5
  SHA512:
6
- metadata.gz: aa841fa874664c7d16a3771523fc97dcc4a0d43692475cb5839e4334603b818867d355e8a2bff0a2be914248d871aabc646256c36ce929360c8633bd289c6883
7
- data.tar.gz: 592b00fe9038ec624cd578dd47886333d169ee299fb5560e273d3a62a8d36c58c704640c1e45b114aa6e11ed187e688f6fda0c3d18b95e92f17f3273f8125e04
6
+ metadata.gz: 1f644a2a3ff9388ff7f8fefd78df64f6e8ad676e1a46758de1d2dc5969aff91651abbf1a6a95270a6d81396f520dfbf9d8f266e499fe14da1d50c3f8da7b3731
7
+ data.tar.gz: 3d6de5e3c5026a095ff964382ed5713f8afe2fb8881dec03aa42876a0e0012bbcf6bc51d3e937ea8631be78d796afb58d48a3bb0e1e335713d89b2cf4046ea62
@@ -1,6 +1,7 @@
1
1
  module SprocketsIllusionist
2
2
  module Config
3
3
  class << self
4
+ attr_accessor :node_path
4
5
  attr_accessor :base_path
5
6
  attr_accessor :module_type
6
7
  end
@@ -10,12 +10,16 @@ module SprocketsIllusionist
10
10
  end
11
11
 
12
12
  def evaluate(scope, locals, &block)
13
- stdout, _stderr, _status = Open3.capture3("illusionist #{option_string_from_config}", stdin_data: data)
13
+ stdout, _stderr, _status = Open3.capture3("NODE_PATH=#{node_path} illusionist #{option_string_from_config}", stdin_data: data)
14
14
  stdout
15
15
  end
16
16
 
17
17
  private
18
18
 
19
+ def node_path
20
+ SprocketsIllusionist::Config.try(:node_path) || 'node'
21
+ end
22
+
19
23
  def amd_module_name
20
24
  base_path = SprocketsIllusionist::Config.base_path
21
25
  file_name = File.basename(file, '.js.es6')
@@ -1,3 +1,3 @@
1
1
  module SprocketsIllusionist
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprockets-illusionist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Demers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-10 00:00:00.000000000 Z
11
+ date: 2014-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler