jammit-s3 0.5.3.1 → 0.5.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/jammit-s3.gemspec +1 -1
- data/lib/jammit-s3.rb +15 -0
- metadata +15 -15
data/jammit-s3.gemspec
CHANGED
data/lib/jammit-s3.rb
CHANGED
@@ -6,4 +6,19 @@ module Jammit
|
|
6
6
|
def self.upload_to_s3!(options = {})
|
7
7
|
S3Uploader.new(options).upload
|
8
8
|
end
|
9
|
+
end
|
10
|
+
|
11
|
+
if defined?(Rails)
|
12
|
+
module Jammit
|
13
|
+
class JammitRailtie < Rails::Railtie
|
14
|
+
initializer "set asset host and asset id" do
|
15
|
+
config.after_initialize do
|
16
|
+
s3_bucket = Jammit.configuration[:s3_bucket]
|
17
|
+
if Jammit.package_assets and s3_bucket.present?
|
18
|
+
ActionController::Base.asset_host = "http://#{Jammit.configuration[:s3_bucket]}.s3.amazonaws.com"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
9
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jammit-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 111
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
9
|
- 3
|
10
|
-
-
|
11
|
-
version: 0.5.3.
|
10
|
+
- 2
|
11
|
+
version: 0.5.3.2
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Jacques Crocker
|
@@ -20,9 +20,10 @@ date: 2010-10-04 00:00:00 -07:00
|
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
|
-
|
23
|
+
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
|
25
|
+
name: jammit
|
26
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
26
27
|
none: false
|
27
28
|
requirements:
|
28
29
|
- - ">="
|
@@ -33,12 +34,12 @@ dependencies:
|
|
33
34
|
- 5
|
34
35
|
- 3
|
35
36
|
version: 0.5.3
|
36
|
-
|
37
|
-
version_requirements: *id001
|
37
|
+
requirement: *id001
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
|
-
|
39
|
+
type: :runtime
|
40
40
|
prerelease: false
|
41
|
-
|
41
|
+
name: mimemagic
|
42
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
42
43
|
none: false
|
43
44
|
requirements:
|
44
45
|
- - ">="
|
@@ -49,12 +50,12 @@ dependencies:
|
|
49
50
|
- 1
|
50
51
|
- 7
|
51
52
|
version: 0.1.7
|
52
|
-
|
53
|
-
version_requirements: *id002
|
53
|
+
requirement: *id002
|
54
54
|
- !ruby/object:Gem::Dependency
|
55
|
-
|
55
|
+
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
|
57
|
+
name: s3
|
58
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
58
59
|
none: false
|
59
60
|
requirements:
|
60
61
|
- - ">="
|
@@ -65,8 +66,7 @@ dependencies:
|
|
65
66
|
- 3
|
66
67
|
- 4
|
67
68
|
version: 0.3.4
|
68
|
-
|
69
|
-
version_requirements: *id003
|
69
|
+
requirement: *id003
|
70
70
|
description: " Jammit-S3 is an extension to the awesome Jammit library that handles deployment to s3 and cloudfront.\n"
|
71
71
|
email: railsjedi@gmail.com
|
72
72
|
executables:
|