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 CHANGED
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
 
4
4
  s.name = "indie-raster"
5
- s.version = "0.0.3"
5
+ s.version = "0.0.4"
6
6
 
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["ShopKeep"]
@@ -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}' | #{cmd}`
90
+ out = `cat '#{tmppath}' | #{INDIE_RASTER_PATH}`
89
91
  `rm '#{tmppath}'`
90
92
  else
91
93
  stdin, stdout, stderr = Open3.popen3 cmd
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: indie-raster
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - ShopKeep