sequel_paperclip 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/sequel_paperclip.rb +2 -2
- data/sequel_paperclip.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.1
|
data/lib/sequel_paperclip.rb
CHANGED
@@ -34,7 +34,7 @@ module Sequel
|
|
34
34
|
|
35
35
|
define_method("#{name}_basename") do
|
36
36
|
filename = send("#{name}_filename")
|
37
|
-
filename ?
|
37
|
+
filename ? filename.gsub(/\..+$/, "") : nil
|
38
38
|
end
|
39
39
|
|
40
40
|
define_method("#{name}_basename=") do |basename|
|
@@ -55,7 +55,7 @@ module Sequel
|
|
55
55
|
define_method("#{name}_extname=") do |extname|
|
56
56
|
if extname
|
57
57
|
old_filename = send("#{name}_filename")
|
58
|
-
basename = old_filename ?
|
58
|
+
basename = old_filename ? old_filename.gsub(/\..+$/, "") : ""
|
59
59
|
send("#{name}_filename=", basename+extname)
|
60
60
|
else
|
61
61
|
send("#{name}_filename=", nil)
|
data/sequel_paperclip.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{sequel_paperclip}
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.1"
|
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-09-
|
12
|
+
s.date = %q{2010-09-27}
|
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 = [
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 4
|
8
|
-
-
|
9
|
-
version: 0.4.
|
8
|
+
- 1
|
9
|
+
version: 0.4.1
|
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-09-
|
17
|
+
date: 2010-09-27 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|