sequel_paperclip 0.5.1 → 0.5.2

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.1
1
+ 0.5.2
@@ -26,17 +26,29 @@ module Sequel
26
26
 
27
27
  cmd = []
28
28
  cmd << "convert"
29
+
29
30
  cmd << "-resize"
30
31
  cmd << "'#{resize_str}'"
32
+
31
33
  if crop_str
32
34
  cmd << "-crop"
33
35
  cmd << "'#{crop_str}'"
34
36
  end
37
+
35
38
  if options[:convert_arguments]
36
39
  cmd << options[:convert_arguments]
37
40
  end
38
- cmd << @src_path
39
- cmd << "#{style_options[:format]}:#{dst_file.path}"
41
+
42
+ case style_options[:format]
43
+ when :gif, :apng
44
+ cmd << "'#{@src_path}'"
45
+ else
46
+ # extract first frame only (works even when input is non-animated)
47
+ cmd << "'#{@src_path}[0]'"
48
+ end
49
+
50
+ cmd << "'#{style_options[:format]}:#{dst_file.path}'"
51
+
40
52
  `#{cmd*" "}`
41
53
  end
42
54
 
@@ -1,46 +1,44 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sequel_paperclip}
8
- s.version = "0.5.1"
8
+ s.version = "0.5.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Corin Langosch"]
12
- s.date = %q{2010-11-18}
12
+ s.date = %q{2010-11-22}
13
13
  s.description = %q{Sequel plugin which provides Paperclip (attachments, thumbnail resizing, etc.) functionality for model.}
14
14
  s.email = %q{info@netskin.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.rdoc"
17
+ "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
- ".gitignore",
22
- "LICENSE",
23
- "README.rdoc",
24
- "Rakefile",
25
- "VERSION",
26
- "lib/sequel_paperclip.rb",
27
- "lib/sequel_paperclip/attachment.rb",
28
- "lib/sequel_paperclip/interpolations.rb",
29
- "lib/sequel_paperclip/processors/dummy.rb",
30
- "lib/sequel_paperclip/processors/image.rb",
31
- "sequel_paperclip.gemspec",
32
- "spec/sequel_paperclip_spec.rb",
33
- "spec/spec.opts",
34
- "spec/spec_helper.rb"
21
+ "LICENSE",
22
+ "README.rdoc",
23
+ "Rakefile",
24
+ "VERSION",
25
+ "lib/sequel_paperclip.rb",
26
+ "lib/sequel_paperclip/attachment.rb",
27
+ "lib/sequel_paperclip/interpolations.rb",
28
+ "lib/sequel_paperclip/processors/dummy.rb",
29
+ "lib/sequel_paperclip/processors/image.rb",
30
+ "sequel_paperclip.gemspec",
31
+ "spec/sequel_paperclip_spec.rb",
32
+ "spec/spec.opts",
33
+ "spec/spec_helper.rb"
35
34
  ]
36
35
  s.homepage = %q{http://github.com/gucki/sequel_paperclip}
37
- s.rdoc_options = ["--charset=UTF-8"]
38
36
  s.require_paths = ["lib"]
39
37
  s.rubygems_version = %q{1.3.7}
40
38
  s.summary = %q{Easy file attachment management for Sequel}
41
39
  s.test_files = [
42
- "spec/spec_helper.rb",
43
- "spec/sequel_paperclip_spec.rb"
40
+ "spec/sequel_paperclip_spec.rb",
41
+ "spec/spec_helper.rb"
44
42
  ]
45
43
 
46
44
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 1
9
- version: 0.5.1
8
+ - 2
9
+ version: 0.5.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Corin Langosch
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-11-18 00:00:00 +00:00
17
+ date: 2010-11-22 00:00:00 +00:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -43,7 +43,6 @@ extra_rdoc_files:
43
43
  - README.rdoc
44
44
  files:
45
45
  - .document
46
- - .gitignore
47
46
  - LICENSE
48
47
  - README.rdoc
49
48
  - Rakefile
@@ -62,8 +61,8 @@ homepage: http://github.com/gucki/sequel_paperclip
62
61
  licenses: []
63
62
 
64
63
  post_install_message:
65
- rdoc_options:
66
- - --charset=UTF-8
64
+ rdoc_options: []
65
+
67
66
  require_paths:
68
67
  - lib
69
68
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -90,5 +89,5 @@ signing_key:
90
89
  specification_version: 3
91
90
  summary: Easy file attachment management for Sequel
92
91
  test_files:
93
- - spec/spec_helper.rb
94
92
  - spec/sequel_paperclip_spec.rb
93
+ - spec/spec_helper.rb
data/.gitignore DELETED
@@ -1,22 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
- nbproject
21
-
22
- ## PROJECT::SPECIFIC