kastner-kompress 0.0.7 → 0.0.8

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.
data/kompress.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "kompress"
3
- s.version = "0.0.7"
3
+ s.version = "0.0.8"
4
4
  s.date = "2008-09-14"
5
5
  s.summary = "Kompress - kompress videos and see progress"
6
6
  s.email = "kastner@gmail.com"
data/lib/kompress/job.rb CHANGED
@@ -76,6 +76,10 @@ module Kompress
76
76
  def output_file
77
77
  input_file.gsub(file_type_regexp, ".#{container_type}")
78
78
  end
79
+
80
+ %w|input output temp|.each do |f|
81
+ define_method("raw_#{f}_file".to_sym) { send("#{f}_file").gsub(/'(.*)'/, '\1') }
82
+ end
79
83
 
80
84
  def thumb_file
81
85
  input_file.gsub(file_type_regexp, ".#{thumb_type}")
@@ -149,7 +153,7 @@ module Kompress
149
153
  File.unlink(state_file)
150
154
  File.unlink(status_file)
151
155
  File.unlink(done_file)
152
- File.unlink(temp_file)
156
+ File.unlink(raw_temp_file)
153
157
  end
154
158
 
155
159
  def write_state_to_disk
data/test/job_test.rb CHANGED
@@ -112,6 +112,12 @@ describe "A real job" do
112
112
  @job.command.should =~ /640x300/
113
113
  @job.command.should.not =~ /640x480/
114
114
  end
115
+
116
+ it "should have a raw version of input, output and temp" do
117
+ %w|input output temp|.each do |f|
118
+ @job.send("raw_#{f}_file").should == @job.send("#{f}_file").gsub(/'(.*)'/, '\1')
119
+ end
120
+ end
115
121
  end
116
122
 
117
123
  describe "A frozen job" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kastner-kompress
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Kastner