attachment_on_the_fly 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -0,0 +1,8 @@
1
+ =Attachment on the Fly
2
+
3
+ ==Quick Start
4
+
5
+ ==Usage
6
+
7
+ ==Contributing
8
+
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -1,15 +1,15 @@
1
1
  # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{attachment_on_the_fly}
8
- s.version = "0.0.4"
8
+ s.version = "0.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jeff Sutherland"]
12
- s.date = %q{2009-11-19}
12
+ s.date = %q{2009-11-22}
13
13
  s.description = %q{A Paperclip mix-in to allow auto-generation of resized images}
14
14
  s.email = %q{jefferey.sutherland@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -45,3 +45,4 @@ Gem::Specification.new do |s|
45
45
  else
46
46
  end
47
47
  end
48
+
@@ -80,13 +80,13 @@ Paperclip::Attachment.class_eval do
80
80
 
81
81
  if kind == "height"
82
82
  # resize_image infilename, outfilename , 0, height
83
- `convert -colorspace RGB -geometry x#{height} -quality 100 -sharpen 2 #{original} #{newfilename} 2>&1 > /dev/null`
83
+ `convert -colorspace RGB -geometry x#{height} -quality 100 -sharpen 1 #{original} #{newfilename} 2>&1 > /dev/null`
84
84
  elsif kind == "width"
85
85
  # resize_image infilename, outfilename, width
86
- `convert -colorspace RGB -geometry #{width} -quality 100 -sharpen 2 #{original} #{newfilename} 2>&1 > /dev/null`
86
+ `convert -colorspace RGB -geometry #{width} -quality 100 -sharpen 1 #{original} #{newfilename} 2>&1 > /dev/null`
87
87
  elsif kind == "both"
88
88
  # resize_image infilename, outfilename, height, width
89
- `convert -colorspace RGB -geometry #{height}x#{height} -quality 100 -sharpen 2 #{original} #{newfilename} 2>&1 > /dev/null`
89
+ `convert -colorspace RGB -geometry #{height}x#{height} -quality 100 -sharpen 1 #{original} #{newfilename} 2>&1 > /dev/null`
90
90
  end
91
91
 
92
92
  return new_path
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attachment_on_the_fly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Sutherland
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-19 00:00:00 -07:00
12
+ date: 2009-11-22 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15