jeremyboles-graffic 0.3.0 → 0.3.1

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.
Files changed (2) hide show
  1. data/lib/graffic.rb +8 -0
  2. metadata +1 -1
data/lib/graffic.rb CHANGED
@@ -174,6 +174,14 @@ class Graffic < ActiveRecord::Base
174
174
  @processors || self.class.processors
175
175
  end
176
176
 
177
+ def reprocess
178
+ if respond_to?(:original)
179
+ @image = self.original.image
180
+ change_state('uploaded')
181
+ process
182
+ end
183
+ end
184
+
177
185
  # Returns a size string. Good for RMagick and image_tag :size
178
186
  def size
179
187
  "#{width}x#{height}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jeremyboles-graffic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Boles