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 +4 -4
- data/app/uploaders/eac_rails_base0/default_file_uploader.rb +12 -0
- data/config/initializers/carrier_wave.rb +16 -0
- data/lib/eac_rails_base0/version.rb +1 -1
- data/lib/fog.rb +3 -0
- metadata +44 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 917827937d23681bc2b42938ac54531b54c7b5663571f14dbd56d187be8f265b
|
4
|
+
data.tar.gz: 8f6264e2d84909a98b258d93a1792cd600e299ac2271fab45df0c5ddf1439813
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 559fcc4e64035652e542dbba30341f21822751e83122d8c432e6774f715189431eca3620b2f5bcfae2cffb4ad0a0da9bc7ccc4568c53081d87a451941e1549db
|
7
|
+
data.tar.gz: 03b17de86a8b6cb92c1163b4d5f3f476e1b7e18e1568d24eb2ecffc801396aa2bd80d74a3718c3c0b406ab86d05974295e8bc7cf06f81cfeea4fc95d37c3de08
|
@@ -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
|
data/lib/fog.rb
ADDED
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.
|
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
|