attached 0.4.2 → 0.4.3
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/lib/attached.rb +0 -1
- data/lib/attached/attachment.rb +1 -0
- data/lib/attached/version.rb +1 -1
- metadata +7 -9
data/lib/attached.rb
CHANGED
data/lib/attached/attachment.rb
CHANGED
@@ -157,6 +157,7 @@ module Attached
|
|
157
157
|
self.file = file
|
158
158
|
|
159
159
|
if file
|
160
|
+
extension ||= file.extension if file.respond_to?(:extension)
|
160
161
|
extension ||= File.extname(file.original_filename) if file.respond_to?(:original_filename)
|
161
162
|
extension ||= File.extname(file.path) if file.respond_to?(:path)
|
162
163
|
end
|
data/lib/attached/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: attached
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
13
|
-
default_executable:
|
12
|
+
date: 2011-08-28 00:00:00.000000000Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: fog
|
17
|
-
requirement: &
|
16
|
+
requirement: &70325837033180 !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
18
|
requirements:
|
20
19
|
- - ! '>='
|
@@ -22,10 +21,10 @@ dependencies:
|
|
22
21
|
version: '0'
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
version_requirements: *
|
24
|
+
version_requirements: *70325837033180
|
26
25
|
- !ruby/object:Gem::Dependency
|
27
26
|
name: identifier
|
28
|
-
requirement: &
|
27
|
+
requirement: &70325837032180 !ruby/object:Gem::Requirement
|
29
28
|
none: false
|
30
29
|
requirements:
|
31
30
|
- - ! '>='
|
@@ -33,7 +32,7 @@ dependencies:
|
|
33
32
|
version: '0'
|
34
33
|
type: :runtime
|
35
34
|
prerelease: false
|
36
|
-
version_requirements: *
|
35
|
+
version_requirements: *70325837032180
|
37
36
|
description: Attached is a Ruby on Rails cloud attachment and processor library inspired
|
38
37
|
by Paperclip. Attached lets users push files to the cloud, then perform remote processing
|
39
38
|
on the files.
|
@@ -65,7 +64,6 @@ files:
|
|
65
64
|
- LICENSE
|
66
65
|
- Gemfile
|
67
66
|
- Rakefile
|
68
|
-
has_rdoc: true
|
69
67
|
homepage: http://github.com/ksylvest/attached
|
70
68
|
licenses: []
|
71
69
|
post_install_message:
|
@@ -86,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
84
|
version: '0'
|
87
85
|
requirements: []
|
88
86
|
rubyforge_project:
|
89
|
-
rubygems_version: 1.
|
87
|
+
rubygems_version: 1.8.10
|
90
88
|
signing_key:
|
91
89
|
specification_version: 3
|
92
90
|
summary: An attachment library designed with cloud processors in mind
|