dusty_rails_renderer 0.2.6 → 0.2.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66494c24507aa23fa302243c41f32022b7e60585
4
- data.tar.gz: bc698fdf50d38502e32c349cb46ace6a93407021
3
+ metadata.gz: 6556b15791d26aa356f37d220ad66fd01078ccce
4
+ data.tar.gz: 53a0029aa0e913d5e24ce614624408ec41ef94b5
5
5
  SHA512:
6
- metadata.gz: 10193a2ad95df694367269e9adea0dbf227820cd14dd2bb6e2cf689df2ceac97b2d215c31ac54c95675b60b0c82a3fe5a5d520dc714b23a78526941ac8106253
7
- data.tar.gz: 4755b340288d0c1c6c965dea02906152920b084df9a6d0077a7c6e9f54a26a2a7c453accdcb7a1baa07b8084f024da2492b83af5cb1f6c9e18d8e910992d5b3e
6
+ metadata.gz: 7b7071ef9199810ee9829b01247261284efc7e3b193a81f82d011ce82c1e55b1c4dfa695a6bd7222a4a7a5eae40a870b837864d6674a25bfcc1d3e8b2f810ddf
7
+ data.tar.gz: a1a1439fef18337ed5f9f11817199eae5b80413012b75a9f8f430332e87e434519490d23ef1d50b096cb52ccd38928c3f64925b2d38f8c167d912f868bececcc
@@ -1,3 +1,3 @@
1
1
  module DustyRailsRenderer
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
@@ -44,7 +44,7 @@ module DustyRailsRenderer
44
44
  end
45
45
 
46
46
  if self.configuration.node_dust_compiler
47
- command = "env PATH=#{ENV['PATH']} dustc --name=#{template_name} #{file_url}"
47
+ command = "#{self.configuration.dust_compiler_command} --name=#{template_name} #{file_url}"
48
48
  template = Open3.capture3("bash","-l","-c",command)
49
49
  escaped_template = escape_javascript(template[0])
50
50
 
@@ -84,13 +84,15 @@ module DustyRailsRenderer
84
84
  attr_accessor :dust_template_base_path
85
85
  attr_accessor :node_dust_compiler
86
86
  attr_accessor :logging
87
-
87
+ attr_accessor :dust_compiler_command
88
+
88
89
  def initialize
89
90
  @dust_config_path = "config/dust_initializer.yml"
90
91
  @dust_js_library_path = "app/assets/javascripts/libraries/dust/dust-full.js"
91
92
  @dust_template_base_path = "app/assets/javascripts/dust/"
92
93
  @production = false
93
94
  @node_dust_compiler = false
95
+ @dust_compiler_command = "dustc"
94
96
  @logging = true
95
97
  end
96
98
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dusty_rails_renderer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Louis Ellis