paperclip-cloudfiles 2.3.8.4 → 2.3.8.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/paperclip/storage/cloud_files.rb +3 -2
- data/lib/paperclip/version.rb +1 -1
- metadata +21 -23
@@ -25,6 +25,7 @@ module Paperclip
|
|
25
25
|
# api_key: 87k...
|
26
26
|
# servicenet: true
|
27
27
|
# auth_url: https://lon.auth.api.rackspacecloud.com/v1.0
|
28
|
+
# cname: http://cdn.myapp.com
|
28
29
|
# This is not required, however, and the file may simply look like this:
|
29
30
|
# username: minter...
|
30
31
|
# api_key: 11q...
|
@@ -60,8 +61,8 @@ module Paperclip
|
|
60
61
|
@container_name = @options[:container] || options[:container_name] || @cloudfiles_credentials[:container] || @cloudfiles_credentials[:container_name]
|
61
62
|
@container_name = @container_name.call(self) if @container_name.is_a?(Proc)
|
62
63
|
@cloudfiles_options = @options[:cloudfiles_options] || {}
|
63
|
-
@@cdn_url = cloudfiles_container.cdn_url
|
64
|
-
@@ssl_url = cloudfiles_container.cdn_ssl_url
|
64
|
+
@@cdn_url = @cloudfiles_credentials[:cname] || cloudfiles_container.cdn_url
|
65
|
+
@@ssl_url = @cloudfiles_credentials[:cname] || cloudfiles_container.cdn_ssl_url
|
65
66
|
@use_ssl = @options[:ssl] || false
|
66
67
|
@path_filename = ":cf_path_filename" unless @url.to_s.match(/^:cf.*filename$/)
|
67
68
|
@url = (@use_ssl == true ? @@ssl_url : @@cdn_url) + "/#{URI.encode(@path_filename).gsub(/&/,'%26')}"
|
data/lib/paperclip/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paperclip-cloudfiles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 93
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 3
|
9
9
|
- 8
|
10
|
-
-
|
11
|
-
version: 2.3.8.
|
10
|
+
- 5
|
11
|
+
version: 2.3.8.5
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Jon Yurek
|
@@ -17,10 +17,10 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-
|
21
|
-
default_executable:
|
20
|
+
date: 2011-05-05 00:00:00 Z
|
22
21
|
dependencies:
|
23
22
|
- !ruby/object:Gem::Dependency
|
23
|
+
prerelease: false
|
24
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
@@ -30,11 +30,11 @@ dependencies:
|
|
30
30
|
segments:
|
31
31
|
- 0
|
32
32
|
version: "0"
|
33
|
-
prerelease: false
|
34
|
-
type: :runtime
|
35
33
|
name: activerecord
|
34
|
+
type: :runtime
|
36
35
|
version_requirements: *id001
|
37
36
|
- !ruby/object:Gem::Dependency
|
37
|
+
prerelease: false
|
38
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
@@ -44,11 +44,11 @@ dependencies:
|
|
44
44
|
segments:
|
45
45
|
- 0
|
46
46
|
version: "0"
|
47
|
-
prerelease: false
|
48
|
-
type: :runtime
|
49
47
|
name: activesupport
|
48
|
+
type: :runtime
|
50
49
|
version_requirements: *id002
|
51
50
|
- !ruby/object:Gem::Dependency
|
51
|
+
prerelease: false
|
52
52
|
requirement: &id003 !ruby/object:Gem::Requirement
|
53
53
|
none: false
|
54
54
|
requirements:
|
@@ -58,11 +58,11 @@ dependencies:
|
|
58
58
|
segments:
|
59
59
|
- 0
|
60
60
|
version: "0"
|
61
|
-
prerelease: false
|
62
|
-
type: :development
|
63
61
|
name: shoulda
|
62
|
+
type: :development
|
64
63
|
version_requirements: *id003
|
65
64
|
- !ruby/object:Gem::Dependency
|
65
|
+
prerelease: false
|
66
66
|
requirement: &id004 !ruby/object:Gem::Requirement
|
67
67
|
none: false
|
68
68
|
requirements:
|
@@ -72,11 +72,11 @@ dependencies:
|
|
72
72
|
segments:
|
73
73
|
- 0
|
74
74
|
version: "0"
|
75
|
-
prerelease: false
|
76
|
-
type: :development
|
77
75
|
name: appraisal
|
76
|
+
type: :development
|
78
77
|
version_requirements: *id004
|
79
78
|
- !ruby/object:Gem::Dependency
|
79
|
+
prerelease: false
|
80
80
|
requirement: &id005 !ruby/object:Gem::Requirement
|
81
81
|
none: false
|
82
82
|
requirements:
|
@@ -86,11 +86,11 @@ dependencies:
|
|
86
86
|
segments:
|
87
87
|
- 0
|
88
88
|
version: "0"
|
89
|
-
prerelease: false
|
90
|
-
type: :development
|
91
89
|
name: mocha
|
90
|
+
type: :development
|
92
91
|
version_requirements: *id005
|
93
92
|
- !ruby/object:Gem::Dependency
|
93
|
+
prerelease: false
|
94
94
|
requirement: &id006 !ruby/object:Gem::Requirement
|
95
95
|
none: false
|
96
96
|
requirements:
|
@@ -100,11 +100,11 @@ dependencies:
|
|
100
100
|
segments:
|
101
101
|
- 0
|
102
102
|
version: "0"
|
103
|
-
prerelease: false
|
104
|
-
type: :development
|
105
103
|
name: aws-s3
|
104
|
+
type: :development
|
106
105
|
version_requirements: *id006
|
107
106
|
- !ruby/object:Gem::Dependency
|
107
|
+
prerelease: false
|
108
108
|
requirement: &id007 !ruby/object:Gem::Requirement
|
109
109
|
none: false
|
110
110
|
requirements:
|
@@ -116,11 +116,11 @@ dependencies:
|
|
116
116
|
- 4
|
117
117
|
- 15
|
118
118
|
version: 1.4.15
|
119
|
-
prerelease: false
|
120
|
-
type: :development
|
121
119
|
name: cloudfiles
|
120
|
+
type: :development
|
122
121
|
version_requirements: *id007
|
123
122
|
- !ruby/object:Gem::Dependency
|
123
|
+
prerelease: false
|
124
124
|
requirement: &id008 !ruby/object:Gem::Requirement
|
125
125
|
none: false
|
126
126
|
requirements:
|
@@ -130,9 +130,8 @@ dependencies:
|
|
130
130
|
segments:
|
131
131
|
- 0
|
132
132
|
version: "0"
|
133
|
-
prerelease: false
|
134
|
-
type: :development
|
135
133
|
name: sqlite3-ruby
|
134
|
+
type: :development
|
136
135
|
version_requirements: *id008
|
137
136
|
description: Easy upload management for ActiveRecord with Rackspace Cloud Files support
|
138
137
|
email:
|
@@ -207,7 +206,6 @@ files:
|
|
207
206
|
- generators/paperclip/templates/paperclip_migration.rb.erb
|
208
207
|
- generators/paperclip/USAGE
|
209
208
|
- shoulda_macros/paperclip.rb
|
210
|
-
has_rdoc: true
|
211
209
|
homepage: http://github.com/minter/paperclip
|
212
210
|
licenses: []
|
213
211
|
|
@@ -238,7 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
238
236
|
requirements:
|
239
237
|
- ImageMagick
|
240
238
|
rubyforge_project: paperclip
|
241
|
-
rubygems_version: 1.
|
239
|
+
rubygems_version: 1.7.2
|
242
240
|
signing_key:
|
243
241
|
specification_version: 3
|
244
242
|
summary: File attachments as attributes for ActiveRecord with Rackspace Cloud Files support
|