tdd-attachment_fu 0.9.9.b → 0.9.9

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,11 +1,3 @@
1
- * Mar 15, 2010 *
2
- * Added a symbol syntax for parent-type-based size spec: calls the corresponding method on the current asset instance to
3
- get a Hash of required thumbnails. Lets us dynamically specify what would otherwise be hard-coded, which is useful
4
- when the set of thumbnails for a given parent type varies depending on the usage context.
5
-
6
- * Aug 6, 2009 *
7
- * JPEG quality control finalized across processors (although CoreImage applies it in a rather fuzzy-logic way), with tests.
8
-
9
1
  * Aug 4, 2009 *
10
2
  * Supports the :aspect/'!' geometry flag in all processors
11
3
  (thanks to http://www.deepcalm.com/writing/cropped-thumbnails-in-attachment_fu-using-imagescience)
data/README CHANGED
@@ -47,9 +47,7 @@ has_attachment(options = {})
47
47
  # This option need only be included if you want thumbnailing.
48
48
  # If you have a polymorphic parent relationship, you can provide parent-type-specific
49
49
  # thumbnail settings by using a pair with the type string as key and a Hash of thumbnail
50
- # definitions, or a method symbol, as value. The method symbol will call the named
51
- # method in order to get a dynamically-built Hash of thumbnail definitions, which gives
52
- # you full flexibility.
50
+ # definitions as value.
53
51
  # AttachmentFu automatically detects your first polymorphic +belongs_to+ relationship.
54
52
  #
55
53
  :thumbnail_class # Set which model class to use for thumbnails.
@@ -474,11 +474,6 @@ module Technoweenie # :nodoc:
474
474
  if respond_to?(:process_attachment_with_processing) && thumbnailable? && !attachment_options[:thumbnails].blank? && parent_id.nil?
475
475
  temp_file = temp_path || create_temp_file
476
476
  attachment_options[:thumbnails].each { |suffix, size|
477
- if size.is_a?(Symbol)
478
- parent_type = polymorphic_parent_type
479
- next unless parent_type && [parent_type, parent_type.tableize].include?(suffix.to_s) && respond_to?(size)
480
- size = send(size)
481
- end
482
477
  if size.is_a?(Hash)
483
478
  parent_type = polymorphic_parent_type
484
479
  next unless parent_type && [parent_type, parent_type.tableize].include?(suffix.to_s)
metadata CHANGED
@@ -1,13 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tdd-attachment_fu
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: true
5
- segments:
6
- - 0
7
- - 9
8
- - 9
9
- - b
10
- version: 0.9.9.b
4
+ version: 0.9.9
11
5
  platform: ruby
12
6
  authors:
13
7
  - Rick Olson
@@ -16,7 +10,7 @@ autorequire:
16
10
  bindir: bin
17
11
  cert_chain: []
18
12
 
19
- date: 2010-03-15 00:00:00 +01:00
13
+ date: 2009-08-06 00:00:00 -07:00
20
14
  default_executable:
21
15
  dependencies: []
22
16
 
@@ -79,8 +73,7 @@ files:
79
73
  - vendor/red_artisan/core_image/filters/watermark.rb
80
74
  has_rdoc: true
81
75
  homepage: http://github.com/tdd/attachment_fu
82
- licenses: []
83
-
76
+ licenses:
84
77
  post_install_message:
85
78
  rdoc_options:
86
79
  - --inline-source
@@ -91,20 +84,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
91
84
  requirements:
92
85
  - - ">="
93
86
  - !ruby/object:Gem::Version
94
- segments:
95
- - 0
96
87
  version: "0"
88
+ version:
97
89
  required_rubygems_version: !ruby/object:Gem::Requirement
98
90
  requirements:
99
91
  - - ">="
100
92
  - !ruby/object:Gem::Version
101
- segments:
102
- - 0
103
93
  version: "0"
94
+ version:
104
95
  requirements: []
105
96
 
106
- rubyforge_project:
107
- rubygems_version: 1.3.6
97
+ rubyforge_project: attachment_fu
98
+ rubygems_version: 1.3.5
108
99
  signing_key:
109
100
  specification_version: 2
110
101
  summary: attachment_fu with more geometries, polymorphic-based settings and JPEG quality control.