quick_file 1.0.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -272,9 +272,10 @@ module QuickFile
272
272
 
273
273
  def url_hash
274
274
  ret = {}
275
- @@processes.keys.each do |style_name|
275
+ processes.keys.each do |style_name|
276
276
  ret[style_name] = self.url(style_name.to_sym)
277
277
  end
278
+ ret
278
279
  end
279
280
 
280
281
  end
@@ -1,3 +1,3 @@
1
1
  module QuickFile
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.3"
3
3
  end
data/lib/quick_file.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  require "quick_file/version"
2
2
  require "quick_file/upload"
3
+ require "mime/types"
4
+ require "fog"
3
5
  require "RMagick"
4
6
 
5
7
  module QuickFile
@@ -11,7 +13,7 @@ module QuickFile
11
13
  end
12
14
 
13
15
  def options
14
- @@options ||= UPLOAD_OPTIONS
16
+ @@options ||= {}
15
17
  end
16
18
 
17
19
  def generate_cache_name(ext)
data/quick_file.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
 
21
21
  s.add_dependency "rmagick"
22
22
  s.add_dependency "fog"
23
- s.add_dependency "active_support"
23
+ s.add_dependency "mime-types"
24
24
 
25
25
  # specify any dependencies here; for example:
26
26
  # s.add_development_dependency "rspec"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quick_file
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.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: 2012-03-27 00:00:00.000000000Z
12
+ date: 2012-03-30 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rmagick
16
- requirement: &70135562226860 !ruby/object:Gem::Requirement
16
+ requirement: &70262344736000 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70135562226860
24
+ version_requirements: *70262344736000
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: fog
27
- requirement: &70135562226440 !ruby/object:Gem::Requirement
27
+ requirement: &70262344735580 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70135562226440
35
+ version_requirements: *70262344735580
36
36
  - !ruby/object:Gem::Dependency
37
- name: active_support
38
- requirement: &70135562226020 !ruby/object:Gem::Requirement
37
+ name: mime-types
38
+ requirement: &70262344735160 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70135562226020
46
+ version_requirements: *70262344735160
47
47
  description: A file upload library for use with MongoDB and S3
48
48
  email:
49
49
  - alangraham5@gmail.com