metova-carrierwave 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/metova/carrierwave/railtie.rb +4 -4
- data/lib/metova/carrierwave/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a473ec818319f3bbd1e8dda4f542497a116a6504
|
4
|
+
data.tar.gz: 2ebe5922860d957dcc6e07fa9b0d20139c4ce06f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2aabb42c43c0164589766ad19dd9bceed10830600f8d208943d0a577d84ec6a52e94d372a8a14b99ffa848549f3f8d7c34c2dc942482e139e67c4b19e6f9a54
|
7
|
+
data.tar.gz: 8114cb9aac99ebb1df190e9278dceb3e8f604b57f775425198ec8a8f9d48f0a901a4cfea5379aa436acce65d283b2dcdd4f7194155a915d69569d7dfdc201819
|
@@ -8,25 +8,25 @@ module Metova
|
|
8
8
|
|
9
9
|
if ENV['AWS_S3_BUCKET_NAME'] && ENV['AWS_S3_ACCESS_KEY_ID'] && ENV['AWS_S3_SECRET_ACCESS_KEY']
|
10
10
|
CarrierWave.configure do |config|
|
11
|
-
config.storage =
|
11
|
+
config.storage = :fog
|
12
12
|
config.fog_directory = ENV['AWS_S3_BUCKET_NAME']
|
13
13
|
config.fog_public = true
|
14
14
|
config.fog_attributes = { 'Cache-Control' => 'max-age=315576000' }
|
15
15
|
config.fog_credentials = {
|
16
16
|
provider: 'AWS',
|
17
17
|
aws_access_key_id: ENV['AWS_S3_ACCESS_KEY_ID'],
|
18
|
-
aws_secret_access_key: ENV['AWS_S3_SECRET_ACCESS_KEY']
|
18
|
+
aws_secret_access_key: ENV['AWS_S3_SECRET_ACCESS_KEY'],
|
19
|
+
region: ENV.fetch('AWS_S3_REGION', 'us-east-1')
|
19
20
|
}
|
20
21
|
end
|
21
22
|
end
|
22
23
|
|
23
|
-
if Rails.env.test?
|
24
|
+
if Rails.env.test? || Rails.env.cucumber?
|
24
25
|
CarrierWave.configure do |config|
|
25
26
|
config.storage = :file
|
26
27
|
config.enable_processing = false
|
27
28
|
end
|
28
29
|
end
|
29
|
-
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metova-carrierwave
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Logan Serman
|
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
116
|
version: '0'
|
117
117
|
requirements: []
|
118
118
|
rubyforge_project:
|
119
|
-
rubygems_version: 2.4.5
|
119
|
+
rubygems_version: 2.4.5
|
120
120
|
signing_key:
|
121
121
|
specification_version: 4
|
122
122
|
summary: Configures Carrierwave to use S3 through ENV variables.
|