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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ef363d3603b94e7a925b7650d14d4dc554409dc
4
- data.tar.gz: 29d9c5edc0dd77530108c943f8b1b8f95544548f
3
+ metadata.gz: a473ec818319f3bbd1e8dda4f542497a116a6504
4
+ data.tar.gz: 2ebe5922860d957dcc6e07fa9b0d20139c4ce06f
5
5
  SHA512:
6
- metadata.gz: b49f55899d20a47e877f65fe7f374ba453de5da30d19431c13ef7410f919d93e34d259b12068daee5377412130006b4d731420b53a3b502e3d6dbbfb745a4cd6
7
- data.tar.gz: dde844ae62c188beb139efa7e6b99254cd5a17a3511934e8fb870b8a832cb710d70427ee5d3e9427e74e8799caada8b40d276fea949877f0d2b6b1df300f0cec
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 = 'fog/aws'
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? or Rails.env.cucumber?
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
@@ -1,5 +1,5 @@
1
1
  module Metova
2
2
  module Carrierwave
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
  end
5
5
  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
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.1
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.