hdmake 0.0.2 → 0.0.3

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.
Files changed (3) hide show
  1. data/lib/hdmake/version.rb +1 -1
  2. data/lib/hdmake.rb +2 -3
  3. metadata +2 -2
@@ -1,3 +1,3 @@
1
1
  module Hdmake
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/hdmake.rb CHANGED
@@ -28,14 +28,13 @@ module Hdmake
28
28
  raise ImageNotReadableError if not File.readable?(@image_path)
29
29
  raise CommandNotFoundError if not File.exists?(@hdmake_path)
30
30
  raise CommandNotExecutableError if not File.executable?(@hdmake_path)
31
- cmd = "#{@hdmake_path} -src #{@image_path} #{options}"
32
- output = %x[ cmd ]
31
+ output = %x[ #{@hdmake_path} -src #{@image_path} #{options} ]
33
32
  status = $?
34
33
 
35
34
  if status.exitstatus == 0
36
35
  output
37
36
  else
38
- raise CommandLineError, "Hdmake command (#{cmd.inspect}) failed: #{{:status_code => status, :output => output}.inspect}"
37
+ raise CommandLineError, "Hdmake command failed: #{{:status_code => status, :output => output}.inspect}"
39
38
  end
40
39
  end
41
40
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Tobias Matthies