indie-raster 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/indie-raster.gemspec +1 -1
- data/src-ruby/indie-raster.rb +4 -2
- metadata +1 -1
data/indie-raster.gemspec
CHANGED
data/src-ruby/indie-raster.rb
CHANGED
@@ -27,6 +27,9 @@ def dataFromOpt(opt)
|
|
27
27
|
end
|
28
28
|
|
29
29
|
|
30
|
+
INDIE_RASTER_PATH = File.expand_path(File.dirname(__FILE__) + "/../build-c/indie-raster")
|
31
|
+
|
32
|
+
|
30
33
|
class IndieRasterSession
|
31
34
|
|
32
35
|
def initialize
|
@@ -77,7 +80,6 @@ class IndieRasterSession
|
|
77
80
|
|
78
81
|
@c.push "exportP4 #{opt[:id] or 1}\n"
|
79
82
|
|
80
|
-
cmd = File.expand_path(File.dirname(__FILE__) + "/../build-c/indie-raster")
|
81
83
|
input = @c.join ''
|
82
84
|
|
83
85
|
tmppath = opt[:commands_temp_path]
|
@@ -85,7 +87,7 @@ class IndieRasterSession
|
|
85
87
|
File.open(tmppath, "w") do |f|
|
86
88
|
f.write input
|
87
89
|
end
|
88
|
-
out = `cat '#{tmppath}' | #{
|
90
|
+
out = `cat '#{tmppath}' | #{INDIE_RASTER_PATH}`
|
89
91
|
`rm '#{tmppath}'`
|
90
92
|
else
|
91
93
|
stdin, stdout, stderr = Open3.popen3 cmd
|