smarter_paperclip 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +2 -0
- data/Rakefile +1 -1
- data/lib/paperclip.rb +5 -0
- data/smarter_paperclip.gemspec +3 -3
- metadata +17 -7
data/CHANGELOG.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('smarter_paperclip', '0.3.
|
5
|
+
Echoe.new('smarter_paperclip', '0.3.3') do |p|
|
6
6
|
p.description = "Papercli with bunch of extensions"
|
7
7
|
p.url = "https://github.com/mensfeld/Smarter-Paperclip"
|
8
8
|
p.author = "Maciej Mensfeld"
|
data/lib/paperclip.rb
CHANGED
@@ -284,6 +284,11 @@ module Paperclip
|
|
284
284
|
:if => options[:if],
|
285
285
|
:unless => options[:unless],
|
286
286
|
:allow_nil => true
|
287
|
+
validate do |subject|
|
288
|
+
unless subject.errors[:"#{name}_file_size"].empty?
|
289
|
+
subject.errors.add(:"#{name}", subject.errors[:"#{name}_file_size"].first)
|
290
|
+
end
|
291
|
+
end
|
287
292
|
end
|
288
293
|
|
289
294
|
# Adds errors if thumbnail creation fails. The same as specifying :whiny_thumbnails => true.
|
data/smarter_paperclip.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "smarter_paperclip"
|
5
|
-
s.version = "0.3.
|
5
|
+
s.version = "0.3.3"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Maciej Mensfeld"]
|
9
|
-
s.date = "
|
9
|
+
s.date = "2013-01-17"
|
10
10
|
s.description = "Papercli with bunch of extensions"
|
11
11
|
s.email = "maciej@mensfeld.pl"
|
12
12
|
s.extra_rdoc_files = ["CHANGELOG.rdoc", "LICENSE", "README.md", "lib/paperclip.rb", "lib/paperclip/attachment.rb", "lib/paperclip/callback_compatability.rb", "lib/paperclip/command_line.rb", "lib/paperclip/geometry.rb", "lib/paperclip/interpolations.rb", "lib/paperclip/iostream.rb", "lib/paperclip/matchers.rb", "lib/paperclip/matchers/have_attached_file_matcher.rb", "lib/paperclip/matchers/validate_attachment_content_type_matcher.rb", "lib/paperclip/matchers/validate_attachment_presence_matcher.rb", "lib/paperclip/matchers/validate_attachment_size_matcher.rb", "lib/paperclip/processor.rb", "lib/paperclip/railtie.rb", "lib/paperclip/storage.rb", "lib/paperclip/storage/filesystem.rb", "lib/paperclip/storage/s3.rb", "lib/paperclip/style.rb", "lib/paperclip/thumbnail.rb", "lib/paperclip/upfile.rb", "lib/paperclip/version.rb", "lib/smarter_paperclip.rb"]
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Smarter_paperclip", "--main", "README.md"]
|
16
16
|
s.require_paths = ["lib"]
|
17
17
|
s.rubyforge_project = "smarter_paperclip"
|
18
|
-
s.rubygems_version = "1.8.
|
18
|
+
s.rubygems_version = "1.8.24"
|
19
19
|
s.summary = "Papercli with bunch of extensions"
|
20
20
|
|
21
21
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smarter_paperclip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,15 @@ dependencies:
|
|
21
21
|
version: 2.0.0
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 2.0.0
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: paperclip
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ! '>='
|
@@ -32,7 +37,12 @@ dependencies:
|
|
32
37
|
version: '0'
|
33
38
|
type: :development
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
36
46
|
description: Papercli with bunch of extensions
|
37
47
|
email: maciej@mensfeld.pl
|
38
48
|
executables: []
|
@@ -122,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
132
|
version: '1.2'
|
123
133
|
requirements: []
|
124
134
|
rubyforge_project: smarter_paperclip
|
125
|
-
rubygems_version: 1.8.
|
135
|
+
rubygems_version: 1.8.24
|
126
136
|
signing_key:
|
127
137
|
specification_version: 3
|
128
138
|
summary: Papercli with bunch of extensions
|