eac_rails_base0 0.21.0 → 0.22.0

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
  SHA256:
3
- metadata.gz: 152af1bbea9ac3e6dcc43c0888601b89769492e2b46c2a88fb8dfc891fedb396
4
- data.tar.gz: 4921c6e335c3e6d5c80c60a01beefd435d575a36b3c684ad81e72e0576b0e350
3
+ metadata.gz: 917827937d23681bc2b42938ac54531b54c7b5663571f14dbd56d187be8f265b
4
+ data.tar.gz: 8f6264e2d84909a98b258d93a1792cd600e299ac2271fab45df0c5ddf1439813
5
5
  SHA512:
6
- metadata.gz: e65b6935acfff7f4bfe62c1651e540e866841287e3a9a3b3abb20f209fcbde19ca75cd2b5fbf03b81dec24bb94b3c14927d658453d15a115701bc3a63e3a2e2d
7
- data.tar.gz: ebe47c375efe3f7365cedf77111b7567cc1389f1a9a001034eacdb2f744239dab13cf4838152e37ec0676864de9467ad72993d3bcaca7474fa3cf2068da74936
6
+ metadata.gz: 559fcc4e64035652e542dbba30341f21822751e83122d8c432e6774f715189431eca3620b2f5bcfae2cffb4ad0a0da9bc7ccc4568c53081d87a451941e1549db
7
+ data.tar.gz: 03b17de86a8b6cb92c1163b4d5f3f476e1b7e18e1568d24eb2ecffc801396aa2bd80d74a3718c3c0b406ab86d05974295e8bc7cf06f81cfeea4fc95d37c3de08
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+ require 'carrierwave'
3
+
4
+ module EacRailsBase0
5
+ class DefaultFileUploader < ::CarrierWave::Uploader::Base
6
+ if ENV['carrierwave_provider'] == 'AWS'
7
+ storage :fog
8
+ else
9
+ storage :file
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+ require 'carrierwave'
3
+ require 'fog/aws'
4
+
5
+ if ENV['carrierwave_provider'] == 'AWS'
6
+ CarrierWave.configure do |config|
7
+ config.fog_credentials = {
8
+ aws_access_key_id: ENV['carrierwave_aws_access_key_id'],
9
+ aws_secret_access_key: ENV['carrierwave_aws_secret_access_key'],
10
+ provider: ENV['carrierwave_provider'],
11
+ region: ENV['carrierwave_aws_region']
12
+ }
13
+ config.fog_directory = ENV['carrierwave_fog_directory']
14
+ config.fog_public = true
15
+ end
16
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRailsBase0
4
- VERSION = '0.21.0'
4
+ VERSION = '0.22.0'
5
5
  end
data/lib/fog.rb ADDED
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+ module Fog
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_rails_base0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
@@ -100,6 +100,26 @@ dependencies:
100
100
  - - ">="
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
+ - !ruby/object:Gem::Dependency
104
+ name: carrierwave
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '1.3'
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: 1.3.1
113
+ type: :runtime
114
+ prerelease: false
115
+ version_requirements: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - "~>"
118
+ - !ruby/object:Gem::Version
119
+ version: '1.3'
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: 1.3.1
103
123
  - !ruby/object:Gem::Dependency
104
124
  name: coffee-rails
105
125
  requirement: !ruby/object:Gem::Requirement
@@ -162,6 +182,26 @@ dependencies:
162
182
  - - "~>"
163
183
  - !ruby/object:Gem::Version
164
184
  version: '4.0'
185
+ - !ruby/object:Gem::Dependency
186
+ name: fog-aws
187
+ requirement: !ruby/object:Gem::Requirement
188
+ requirements:
189
+ - - "~>"
190
+ - !ruby/object:Gem::Version
191
+ version: '3.5'
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: 3.5.2
195
+ type: :runtime
196
+ prerelease: false
197
+ version_requirements: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: '3.5'
202
+ - - ">="
203
+ - !ruby/object:Gem::Version
204
+ version: 3.5.2
165
205
  - !ruby/object:Gem::Dependency
166
206
  name: jbuilder
167
207
  requirement: !ruby/object:Gem::Requirement
@@ -415,6 +455,7 @@ files:
415
455
  - app/controllers/eac_rails_base0/application_controller.rb
416
456
  - app/helpers/eac_rails_base0/layout_helper.rb
417
457
  - app/helpers/eac_rails_base0/links_helper.rb
458
+ - app/uploaders/eac_rails_base0/default_file_uploader.rb
418
459
  - app/views/layouts/eac_rails_base0/_flash.html.erb
419
460
  - app/views/layouts/eac_rails_base0/_main_menu.html.erb
420
461
  - app/views/layouts/eac_rails_base0/_navbar_user.html.erb
@@ -424,6 +465,7 @@ files:
424
465
  - config/initializers/active_scaffold.rb
425
466
  - config/initializers/backport_pg_10_support_to_rails_4.rb
426
467
  - config/initializers/backtrace_silencers.rb
468
+ - config/initializers/carrier_wave.rb
427
469
  - config/initializers/cookies_serializer.rb
428
470
  - config/initializers/filter_parameter_logging.rb
429
471
  - config/initializers/mime_types.rb
@@ -468,6 +510,7 @@ files:
468
510
  - lib/eac_rails_base0/spec_helper/eac_users_support.rb
469
511
  - lib/eac_rails_base0/spec_helper/factory_bot.rb
470
512
  - lib/eac_rails_base0/version.rb
513
+ - lib/fog.rb
471
514
  - lib/generators/eac_rails_base0/abilities/abilities_generator.rb
472
515
  - lib/generators/eac_rails_base0/abilities/templates/ability.rb
473
516
  - lib/generators/eac_rails_base0/abilities/templates/ability_mapping.rb