attached 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/attached.rb CHANGED
@@ -17,7 +17,6 @@ module Attached
17
17
  args.each do |name|
18
18
  column("#{name}_identifier", :string, options)
19
19
  column("#{name}_extension", :string, options)
20
- column("#{name}_status", :string, options)
21
20
  column("#{name}_size", :integer, options)
22
21
  end
23
22
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Attached
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
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.2
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-07-24 00:00:00.000000000 -07:00
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: &70341108747620 !ruby/object:Gem::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: *70341108747620
24
+ version_requirements: *70325837033180
26
25
  - !ruby/object:Gem::Dependency
27
26
  name: identifier
28
- requirement: &70341108747060 !ruby/object:Gem::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: *70341108747060
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.6.2
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