on_the_fly 0.0.4 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/on_the_fly.rb +2 -2
  2. metadata +3 -3
data/lib/on_the_fly.rb CHANGED
@@ -180,8 +180,8 @@ Paperclip::Attachment.class_eval do
180
180
  end
181
181
 
182
182
  def already_converted?
183
- if self.to_s.match(/^s_[0-9]+_[0-9]+/) || self.to_s.match(/^s_[0-9]+_[a-z]+/) || self.to_s.match(/^s[0-9]+/) ||
184
- self.to_s.match(/^cls_[0-9]+_[0-9]+/) || self.to_s.match(/^cls_[0-9]+_[a-z]+/) || self.to_s.match(/^cls[0-9]+/)
183
+ puts("[ONTHEFLY]: SELF IS DEFINED AS #{self} IN ALREADY CONVERTED?");
184
+ if self.to_s.match(/[S].*[0-9]_/i) || self.to_s.match(/[CLS].*[0-9]_/i)
185
185
  puts("[ONTHEFLY]:ALREADY CONVERTED");
186
186
  return true
187
187
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: on_the_fly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ date: 2011-08-10 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: paperclip
17
- requirement: &22352292 !ruby/object:Gem::Requirement
17
+ requirement: &22081020 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,7 +22,7 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *22352292
25
+ version_requirements: *22081020
26
26
  description: ! "A Paperclip mix-in to allow auto-generation of resized images. Modded
27
27
  to delete images\n\tand rename the thumb works on only the ES3 AMS system right
28
28
  now."