has_image 0.2.1 → 0.2.2

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/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ 2008-09-10 Norman Clarke <norman@randomba.org>
2
+ * Fixed images not being converted to target format.
3
+
1
4
  2008-08-29 Norman Clarke <norman@randomba.org>
2
5
  * Fixed bad call to has_image_file
3
6
 
@@ -140,9 +140,8 @@ module HasImage
140
140
  def install_main_image(id, name)
141
141
  FileUtils.mkdir_p path_for(id)
142
142
  main = processor.resize(@temp_file, @options[:resize_to])
143
- main.tempfile.close
144
143
  file = File.open(File.join(path_for(id), file_name_for(name)), "w")
145
- file.write(IO.read(main.tempfile.path))
144
+ file.write(IO.read(main.path))
146
145
  file.close
147
146
  main.tempfile.close!
148
147
  end
@@ -1,4 +1,4 @@
1
- require 'test_helper.rb'
1
+ require File.dirname(__FILE__) + '/test_helper.rb'
2
2
 
3
3
  class StorageTest < Test::Unit::TestCase
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_image
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Norman Clarke
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-08-29 00:00:00 -03:00
12
+ date: 2008-09-10 00:00:00 -03:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency