multi_encoder 0.0.6 → 0.0.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.
@@ -28,5 +28,10 @@ module MultiEncoder
28
28
  end
29
29
  self.class.send :include, storage
30
30
  end
31
+
32
+ private
33
+ def eps_path
34
+ "/tmp/#{@contents}-#{Time.now.strftime('%Y%m%d-%H%M%S')}.eps"
35
+ end
31
36
  end
32
37
  end
@@ -20,7 +20,7 @@ module MultiEncoder
20
20
  eps.close
21
21
  system("convert #{eps_path} #{file_path}")
22
22
  ensure
23
- FileUtils.rm eps
23
+ FileUtils.rm(eps) if File.exists? eps_path
24
24
  end
25
25
  save if respond_to? :save
26
26
  end
@@ -53,10 +53,6 @@ module MultiEncoder
53
53
  end
54
54
 
55
55
  private
56
- def eps_path
57
- "/tmp/#{@contents}.eps"
58
- end
59
-
60
56
  def filename
61
57
  fingerprint.join
62
58
  end
@@ -24,10 +24,6 @@ module MultiEncoder
24
24
  file_path.exist?
25
25
  end
26
26
 
27
- private
28
- def eps_path
29
- "/tmp/#{@contents}.eps"
30
- end
31
27
  end
32
28
  end
33
29
  end
@@ -1,3 +1,3 @@
1
1
  module MultiEncoder
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multi_encoder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-29 00:00:00.000000000 Z
12
+ date: 2013-06-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: qrencoder
@@ -210,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  version: '0'
211
211
  segments:
212
212
  - 0
213
- hash: -335514368553364785
213
+ hash: 2631013867526324705
214
214
  requirements:
215
215
  - ImageMagick
216
216
  rubyforge_project: