effective_assets 1.2.3 → 1.2.4

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: e78cac5a3011fb1f4574c6942ab16fcc49546280
4
- data.tar.gz: 9012f41f1fc49e7c4bee9e11b2c7b285b7dbd497
3
+ metadata.gz: 03e7fd7428627ed8fd303d70e6a478e17aeb80c5
4
+ data.tar.gz: 0a6a66812402954a1d8954eb0be67316d27db1d1
5
5
  SHA512:
6
- metadata.gz: 0fdc57585f43d4a326aab8007aa38f15fc8964dd032167fe8a9c17367bf5c8692e2cdc2d54fe2ce693d0014137286be07e4bba9c602c55b43d1a02602a7edde0
7
- data.tar.gz: 01e5dc7548936975ee112c28af73070d7a34e66dceb354764dc9e0ffedb1ae93cb6793b93cb60e60f33acb8b88003be4a25fa7a9e633b70a04bbdb224884157e
6
+ metadata.gz: f963edca391c3dbc93cd82581369a4306381174b1fcaac7f931192706dab840b9b7be93c8743e44065e831d2e4380b2ce4254597110ec03cb8526ece33c33224
7
+ data.tar.gz: bf1424823c5226157918db803efcf47216a753a4685982e52703b7b0d77a0dfd47fa805ab34594c6e466ea21f45317659f59c079edbed3b15975ae25a2319b8c
@@ -1,3 +1,3 @@
1
1
  module EffectiveAssets
2
- VERSION = '1.2.3'.freeze
2
+ VERSION = '1.2.4'.freeze
3
3
  end
@@ -14,6 +14,7 @@ module EffectiveAssets
14
14
  mattr_accessor :aws_bucket
15
15
  mattr_accessor :aws_access_key_id
16
16
  mattr_accessor :aws_secret_access_key
17
+ mattr_accessor :aws_region
17
18
 
18
19
  mattr_accessor :aws_path # This directory is where we upload files to
19
20
  mattr_accessor :aws_acl
@@ -47,7 +48,8 @@ module EffectiveAssets
47
48
  config.fog_credentials = {
48
49
  :provider => 'AWS',
49
50
  :aws_access_key_id => EffectiveAssets.aws_access_key_id,
50
- :aws_secret_access_key => EffectiveAssets.aws_secret_access_key
51
+ :aws_secret_access_key => EffectiveAssets.aws_secret_access_key,
52
+ :aws_region => EffectiveAssets.aws_region.presence || 'us-east-1'
51
53
  }
52
54
  config.fog_directory = EffectiveAssets.aws_bucket
53
55
  config.fog_public = EffectiveAssets.aws_acl.to_s.include?('public')
@@ -27,11 +27,11 @@ EffectiveAssets.setup do |config|
27
27
  # config.authorization_method = false
28
28
  config.authorization_method = Proc.new { |controller, action, resource| true } # All users can see every screen
29
29
 
30
-
31
30
  # This is your S3 bucket information
32
31
  config.aws_bucket = ''
33
32
  config.aws_access_key_id = ''
34
33
  config.aws_secret_access_key = ''
34
+ config.aws_region = 'us-east-1'
35
35
 
36
36
  config.aws_path = 'assets/'
37
37
 
@@ -40,7 +40,6 @@ EffectiveAssets.setup do |config|
40
40
  # Valid settings are public-read, authenticated-read
41
41
  config.aws_acl = 'public-read'
42
42
 
43
-
44
43
  # Register Effective::Asset with ActiveAdmin if ActiveAdmin is present
45
44
  config.use_active_admin = true
46
45
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect