pothoven-attachment_fu 3.2.2 → 3.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,6 +1,7 @@
1
1
  * Nov 15, 2012 *
2
2
  * Removed 'crop:' option as already included when prefixing geometry with a 'c'. Add note to docs.
3
3
  * Added option to sharpen resized images ':sharpen_on_resize'
4
+ * Removed old init code that causes a asset:precompile error for sprockets (per https://github.com/rails/rails/issues/6989)
4
5
 
5
6
  * Oct 26, 2012 *
6
7
  * Merged with https://github.com/tdd/attachment_fu fork to include GEM support for use in Rails 3.2, and bumped version to 3.2.x to indicate Rails 3.2 support.
@@ -4,16 +4,8 @@ class Engine < Rails::Engine
4
4
 
5
5
  initializer "attachment_fu" do
6
6
  require 'tempfile'
7
-
8
- Tempfile.class_eval do
9
- # overwrite so tempfiles use the extension of the basename. important for rmagick and image science
10
- def make_tmpname(basename, n)
11
- ext = nil
12
- sprintf("%s%d-%d%s", basename.to_s.gsub(/\.\w+$/) { |s| ext = s; '' }, $$, n.to_i, ext)
13
- end
14
- end
15
-
16
7
  require 'geometry'
8
+
17
9
  ActiveRecord::Base.send(:extend, Technoweenie::AttachmentFu::ActMethods)
18
10
  Technoweenie::AttachmentFu.tempfile_path = ATTACHMENT_FU_TEMPFILE_PATH if Object.const_defined?(:ATTACHMENT_FU_TEMPFILE_PATH)
19
11
  FileUtils.mkdir_p Technoweenie::AttachmentFu.tempfile_path
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pothoven-attachment_fu
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.2
4
+ version: 3.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: