couch_photo 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/couch_photo/couch_photo.rb +6 -2
  3. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.6
1
+ 0.0.7
@@ -41,8 +41,12 @@ module CouchPhoto
41
41
  basename = File.basename(filepath, "." + "#{image_format}")
42
42
 
43
43
  if self.class.xmp_metadata?
44
- File.open(filepath, 'w') { |f| f.write blob } if !blob.nil?
45
- `convert #{filepath} /tmp/#{basename}.xmp`
44
+ if blob
45
+ File.open("/tmp/#{filename}", 'w') { |f| f.write blob } if !blob.nil?
46
+ `convert /tmp/#{filename} /tmp/#{basename}.xmp`
47
+ else
48
+ `convert #{filepath} /tmp/#{basename}.xmp`
49
+ end
46
50
  self.metadata = Hash.from_xml File.read("/tmp/#{basename}.xmp")
47
51
  File.delete("/tmp/#{basename}.xmp")
48
52
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: couch_photo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Parker
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-16 00:00:00 Z
18
+ date: 2011-09-20 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: cucumber