photofy 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/photofy.rb +3 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 667260460f30c56a9596c8ddeeb528520af1d4db
4
- data.tar.gz: 7d857ed6127f21e1528a675e0c5782d98d0a8b4c
3
+ metadata.gz: 0a2ade0b25c273aef70885b568e4d3c84ed4bc65
4
+ data.tar.gz: 1dea40196a4de2d6d5f6aa5ec00ced5136d71c86
5
5
  SHA512:
6
- metadata.gz: 99c3aabdca1c3f14e55c8abc36efbbf2b99bd269d021732961edc6d434ffdf2bd00e5a51fdf2400e7465a046947a8429b386d9af1f2f95d50c659f0b8dd14596
7
- data.tar.gz: 0242265f4141d00c2b1b8bdd4d83746f96ae203a97ac1f90a581f89291c8dfabda3db87f6456eed30955e2c05f7b53af28f1674cc7fcbfe749ab5b5160da96f1
6
+ metadata.gz: 1456271b769da5ee9741dc5560e286129962ef1ae0e6b1a2f52211260a4178686eccfc85ff8dc30674ca031ed6ff97302a57403492e1c2312b41d86cbccb09dd
7
+ data.tar.gz: e07e56051800bea388710266b15f732b27580308b1d7bdf4eab0eae3b3d9b5b786872038cb0b5923ead3ae829bfb0a408d4b6e49850e7d389f587bf57a9fa6d6
data/lib/photofy.rb CHANGED
@@ -128,7 +128,9 @@ module Photofy
128
128
  send('initialize_photo_buffers')
129
129
 
130
130
  #Loading content from parent_photo_field if specified
131
- send("#{photo_field}=", File.open(send("#{parent_photo_field}_path"))) unless parent_photo_field.nil?
131
+ unless parent_photo_field.nil?
132
+ send("#{photo_field}=", File.open(send("#{parent_photo_field}_path"))) if File.exist?(send("#{parent_photo_field}_path"))
133
+ end
132
134
 
133
135
  unless @photo_file_buffer[photo_field].nil?
134
136
  File.delete(send("#{photo_field}_path")) if File.exist?(send("#{photo_field}_path")) #Clearing any existing existence
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: photofy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Praveen Kumar Sinha