decidim-generators 0.28.2 → 0.29.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -3
- data/Gemfile.lock +338 -365
- data/decidim-generators.gemspec +1 -1
- data/exe/decidim +2 -2
- data/lib/decidim/generators/app_generator.rb +35 -8
- data/lib/decidim/generators/app_templates/.ruby-version +1 -1
- data/lib/decidim/generators/app_templates/README.md.erb +1 -1
- data/lib/decidim/generators/app_templates/bullet_initializer.rb +2 -0
- data/lib/decidim/generators/app_templates/docker-compose-etherpad.yml +2 -2
- data/lib/decidim/generators/app_templates/initializer.rb +2 -24
- data/lib/decidim/generators/app_templates/package.json +19 -0
- data/lib/decidim/generators/app_templates/rack_profiler_initializer.rb +1 -0
- data/lib/decidim/generators/app_templates/secrets.yml.erb +0 -40
- data/lib/decidim/generators/component_templates/.ruby-version +1 -1
- data/lib/decidim/generators/component_templates/Gemfile.erb +3 -3
- data/lib/decidim/generators/component_templates/README.md.erb +1 -1
- data/lib/decidim/generators/component_templates/github/ci.yml.erb +6 -6
- data/lib/decidim/generators/install_generator.rb +38 -37
- data/lib/decidim/generators/test/generator_examples.rb +6 -144
- data/lib/decidim/generators/version.rb +1 -1
- metadata +8 -8
- data/lib/decidim/generators/app_templates/carrierwave.rb +0 -31
@@ -42,7 +42,6 @@ shared_examples_for "a new production application" do
|
|
42
42
|
|
43
43
|
expect(File.read("#{test_app}/Gemfile"))
|
44
44
|
.to match(/^# gem "decidim-initiatives"/)
|
45
|
-
.and match(/^# gem "decidim-elections"/)
|
46
45
|
.and match(/^# gem "decidim-conferences"/)
|
47
46
|
.and match(/^# gem "decidim-templates"/)
|
48
47
|
end
|
@@ -54,7 +53,6 @@ shared_examples_for "a new development application" do
|
|
54
53
|
|
55
54
|
expect(File.read("#{test_app}/Gemfile"))
|
56
55
|
.to match(/^gem "decidim-initiatives"/)
|
57
|
-
.and match(/^gem "decidim-elections"/)
|
58
56
|
.and match(/^gem "decidim-conferences"/)
|
59
57
|
.and match(/^gem "decidim-templates"/)
|
60
58
|
|
@@ -221,8 +219,6 @@ shared_context "with application env vars" do
|
|
221
219
|
"API_SCHEMA_MAX_PER_PAGE" => "31",
|
222
220
|
"API_SCHEMA_MAX_COMPLEXITY" => "3001",
|
223
221
|
"API_SCHEMA_MAX_DEPTH" => "11",
|
224
|
-
"PROPOSALS_SIMILARITY_THRESHOLD" => "0.99",
|
225
|
-
"PROPOSALS_SIMILARITY_LIMIT" => "3",
|
226
222
|
"PROPOSALS_PARTICIPATORY_SPACE_HIGHLIGHTED_PROPOSALS_LIMIT" => "6",
|
227
223
|
"PROPOSALS_PROCESS_GROUP_HIGHLIGHTED_PROPOSALS_LIMIT" => "5",
|
228
224
|
"MEETINGS_UPCOMING_MEETING_NOTIFICATION" => "3",
|
@@ -241,21 +237,7 @@ shared_context "with application env vars" do
|
|
241
237
|
"INITIATIVES_STATS_CACHE_EXPIRATION_TIME" => "7",
|
242
238
|
"INITIATIVES_MAX_TIME_IN_VALIDATING_STATE" => "50",
|
243
239
|
"INITIATIVES_PRINT_ENABLED" => "false",
|
244
|
-
"INITIATIVES_DO_NOT_REQUIRE_AUTHORIZATION" => "true"
|
245
|
-
"BULLETIN_BOARD_SERVER" => "a-bulletin-board-server",
|
246
|
-
"BULLETIN_BOARD_PUBLIC_KEY" => "a-bulletin-public-key",
|
247
|
-
"BULLETIN_BOARD_API_KEY" => "an-authority-api-key",
|
248
|
-
"AUTHORITY_NAME" => "an-authority-name",
|
249
|
-
"AUTHORITY_PRIVATE_KEY" => "an-authority-private-key",
|
250
|
-
"ELECTIONS_SCHEME_NAME" => "an-elections-scheme-name",
|
251
|
-
"ELECTIONS_NUMBER_OF_TRUSTEES" => "345",
|
252
|
-
"ELECTIONS_QUORUM" => "987",
|
253
|
-
"ELECTIONS_SETUP_MINIMUM_HOURS_BEFORE_START" => "4",
|
254
|
-
"ELECTIONS_START_VOTE_MAXIMUM_HOURS_BEFORE_START" => "7",
|
255
|
-
"ELECTIONS_VOTER_TOKEN_EXPIRATION_MINUTES" => "123",
|
256
|
-
"VOTINGS_CHECK_CENSUS_MAX_REQUESTS" => "6",
|
257
|
-
"VOTINGS_THROTTLING_PERIOD" => "2",
|
258
|
-
"VOTINGS_CENSUS_ACCESS_CODES_EXPORT_EXPIRY_TIME" => "3"
|
240
|
+
"INITIATIVES_DO_NOT_REQUIRE_AUTHORIZATION" => "true"
|
259
241
|
}
|
260
242
|
end
|
261
243
|
|
@@ -349,8 +331,6 @@ shared_examples_for "an application with configurable env vars" do
|
|
349
331
|
%w(decidim api schema_max_per_page) => 50,
|
350
332
|
%w(decidim api schema_max_complexity) => 5000,
|
351
333
|
%w(decidim api schema_max_depth) => 15,
|
352
|
-
%w(decidim proposals similarity_threshold) => 0.25,
|
353
|
-
%w(decidim proposals similarity_limit) => 10,
|
354
334
|
%w(decidim proposals participatory_space_highlighted_proposals_limit) => 4,
|
355
335
|
%w(decidim proposals process_group_highlighted_proposals_limit) => 3,
|
356
336
|
%w(decidim meetings upcoming_meeting_notification) => 2,
|
@@ -359,8 +339,6 @@ shared_examples_for "an application with configurable env vars" do
|
|
359
339
|
%w(decidim budgets enable_proposal_linking) => "auto",
|
360
340
|
%w(decidim accountability enable_proposal_linking) => "auto",
|
361
341
|
%w(decidim initiatives creation_enabled) => "auto",
|
362
|
-
%w(decidim initiatives similarity_threshold) => 0.25,
|
363
|
-
%w(decidim initiatives similarity_limit) => 5,
|
364
342
|
%w(decidim initiatives minimum_committee_members) => 2,
|
365
343
|
%w(decidim initiatives default_signature_time_period_length) => 120,
|
366
344
|
%w(decidim initiatives default_components) => %w(pages meetings),
|
@@ -369,13 +347,7 @@ shared_examples_for "an application with configurable env vars" do
|
|
369
347
|
%w(decidim initiatives stats_cache_expiration_time) => 5,
|
370
348
|
%w(decidim initiatives max_time_in_validating_state) => 60,
|
371
349
|
%w(decidim initiatives print_enabled) => "auto",
|
372
|
-
%w(decidim initiatives do_not_require_authorization) => false
|
373
|
-
%w(elections setup_minimum_hours_before_start) => 1,
|
374
|
-
%w(elections start_vote_maximum_hours_before_start) => 6,
|
375
|
-
%w(elections voter_token_expiration_minutes) => 120,
|
376
|
-
%w(elections votings check_census_max_requests) => 5,
|
377
|
-
%w(elections votings throttling_period) => 1,
|
378
|
-
%w(elections votings census access_codes_export_expiry_time) => 2
|
350
|
+
%w(decidim initiatives do_not_require_authorization) => false
|
379
351
|
}
|
380
352
|
end
|
381
353
|
|
@@ -453,8 +425,6 @@ shared_examples_for "an application with configurable env vars" do
|
|
453
425
|
%w(decidim api schema_max_per_page) => 31,
|
454
426
|
%w(decidim api schema_max_complexity) => 3001,
|
455
427
|
%w(decidim api schema_max_depth) => 11,
|
456
|
-
%w(decidim proposals similarity_threshold) => 0.99,
|
457
|
-
%w(decidim proposals similarity_limit) => 3,
|
458
428
|
%w(decidim proposals participatory_space_highlighted_proposals_limit) => 6,
|
459
429
|
%w(decidim proposals process_group_highlighted_proposals_limit) => 5,
|
460
430
|
%w(decidim meetings upcoming_meeting_notification) => 3,
|
@@ -463,8 +433,6 @@ shared_examples_for "an application with configurable env vars" do
|
|
463
433
|
%w(decidim budgets enable_proposal_linking) => false,
|
464
434
|
%w(decidim accountability enable_proposal_linking) => false,
|
465
435
|
%w(decidim initiatives creation_enabled) => false,
|
466
|
-
%w(decidim initiatives similarity_threshold) => 0.99,
|
467
|
-
%w(decidim initiatives similarity_limit) => 10,
|
468
436
|
%w(decidim initiatives minimum_committee_members) => 3,
|
469
437
|
%w(decidim initiatives default_signature_time_period_length) => 133,
|
470
438
|
%w(decidim initiatives default_components) => %w(pages proposals budgets),
|
@@ -473,21 +441,7 @@ shared_examples_for "an application with configurable env vars" do
|
|
473
441
|
%w(decidim initiatives stats_cache_expiration_time) => 7,
|
474
442
|
%w(decidim initiatives max_time_in_validating_state) => 50,
|
475
443
|
%w(decidim initiatives print_enabled) => false,
|
476
|
-
%w(decidim initiatives do_not_require_authorization) => true
|
477
|
-
%w(elections bulletin_board_server) => "a-bulletin-board-server",
|
478
|
-
%w(elections bulletin_board_public_key) => "a-bulletin-public-key",
|
479
|
-
%w(elections authority_api_key) => "an-authority-api-key",
|
480
|
-
%w(elections authority_name) => "an-authority-name",
|
481
|
-
%w(elections authority_private_key) => "an-authority-private-key",
|
482
|
-
%w(elections scheme_name) => "an-elections-scheme-name",
|
483
|
-
%w(elections number_of_trustees) => 345,
|
484
|
-
%w(elections quorum) => 987,
|
485
|
-
%w(elections setup_minimum_hours_before_start) => 4,
|
486
|
-
%w(elections start_vote_maximum_hours_before_start) => 7,
|
487
|
-
%w(elections voter_token_expiration_minutes) => 123,
|
488
|
-
%w(elections votings check_census_max_requests) => 6,
|
489
|
-
%w(elections votings throttling_period) => 2,
|
490
|
-
%w(elections votings census access_codes_export_expiry_time) => 3
|
444
|
+
%w(decidim initiatives do_not_require_authorization) => true
|
491
445
|
}
|
492
446
|
end
|
493
447
|
|
@@ -649,8 +603,6 @@ shared_examples_for "an application with configurable env vars" do
|
|
649
603
|
|
650
604
|
let(:proposals_initializer_off) do
|
651
605
|
{
|
652
|
-
"similarity_threshold" => 0.25,
|
653
|
-
"similarity_limit" => 10,
|
654
606
|
"participatory_space_highlighted_proposals_limit" => 4,
|
655
607
|
"process_group_highlighted_proposals_limit" => 3
|
656
608
|
}
|
@@ -658,8 +610,6 @@ shared_examples_for "an application with configurable env vars" do
|
|
658
610
|
|
659
611
|
let(:proposals_initializer_on) do
|
660
612
|
{
|
661
|
-
"similarity_threshold" => 0.99,
|
662
|
-
"similarity_limit" => 3,
|
663
613
|
"participatory_space_highlighted_proposals_limit" => 6,
|
664
614
|
"process_group_highlighted_proposals_limit" => 5
|
665
615
|
}
|
@@ -768,14 +718,14 @@ shared_examples_for "an application with configurable env vars" do
|
|
768
718
|
expect(current).to eq(value), "Initializer (#{key}) = (#{current}) expected to match Env:ON (#{value})"
|
769
719
|
end
|
770
720
|
|
771
|
-
# Test onto the initializer when ENV vars are set to
|
721
|
+
# Test onto the initializer when ENV vars are set to OpenStreetMap configuration
|
772
722
|
json_on = initializer_config_for(test_app, env_maps_osm)
|
773
723
|
initializer_maps_osm.each do |key, value|
|
774
724
|
current = json_on[key]
|
775
725
|
expect(current).to eq(value), "Initializer (#{key}) = (#{current}) expected to match Env:Maps OSM (#{value})"
|
776
726
|
end
|
777
727
|
|
778
|
-
# Test onto the initializer when ENV vars are set to
|
728
|
+
# Test onto the initializer when ENV vars are set to OpenStreetMap-HERE mix configuration
|
779
729
|
json_on = initializer_config_for(test_app, env_maps_mix)
|
780
730
|
initializer_maps_mix.each do |key, value|
|
781
731
|
current = json_on[key]
|
@@ -872,8 +822,6 @@ shared_examples_for "an application with extra configurable env vars" do
|
|
872
822
|
let(:initiatives_initializer_off) do
|
873
823
|
{
|
874
824
|
"creation_enabled" => true,
|
875
|
-
"similarity_threshold" => 0.25,
|
876
|
-
"similarity_limit" => 5,
|
877
825
|
"minimum_committee_members" => 2,
|
878
826
|
"default_signature_time_period_length" => 120,
|
879
827
|
"default_components" => %w(pages meetings),
|
@@ -889,8 +837,6 @@ shared_examples_for "an application with extra configurable env vars" do
|
|
889
837
|
let(:initiatives_initializer_on) do
|
890
838
|
{
|
891
839
|
"creation_enabled" => false,
|
892
|
-
"similarity_threshold" => 0.99,
|
893
|
-
"similarity_limit" => 10,
|
894
840
|
"minimum_committee_members" => 3,
|
895
841
|
"default_signature_time_period_length" => 133,
|
896
842
|
"default_components" => %w(pages proposals budgets),
|
@@ -903,48 +849,6 @@ shared_examples_for "an application with extra configurable env vars" do
|
|
903
849
|
}
|
904
850
|
end
|
905
851
|
|
906
|
-
let(:elections_initializer_off) do
|
907
|
-
{
|
908
|
-
"setup_minimum_hours_before_start" => 1,
|
909
|
-
"start_vote_maximum_hours_before_start" => 6,
|
910
|
-
"voter_token_expiration_minutes" => 120
|
911
|
-
}
|
912
|
-
end
|
913
|
-
|
914
|
-
let(:elections_initializer_on) do
|
915
|
-
{
|
916
|
-
"setup_minimum_hours_before_start" => 4,
|
917
|
-
"start_vote_maximum_hours_before_start" => 7,
|
918
|
-
"voter_token_expiration_minutes" => 123
|
919
|
-
}
|
920
|
-
end
|
921
|
-
|
922
|
-
let(:votings_initializer_off) do
|
923
|
-
{
|
924
|
-
"check_census_max_requests" => 5,
|
925
|
-
"throttling_period" => 60 # 1.minute
|
926
|
-
}
|
927
|
-
end
|
928
|
-
|
929
|
-
let(:votings_initializer_on) do
|
930
|
-
{
|
931
|
-
"check_census_max_requests" => 6,
|
932
|
-
"throttling_period" => 120 # 2.minutes
|
933
|
-
}
|
934
|
-
end
|
935
|
-
|
936
|
-
let(:census_initializer_off) do
|
937
|
-
{
|
938
|
-
"census_access_codes_export_expiry_time" => 172_800 # 2.days
|
939
|
-
}
|
940
|
-
end
|
941
|
-
|
942
|
-
let(:census_initializer_on) do
|
943
|
-
{
|
944
|
-
"census_access_codes_export_expiry_time" => 259_200 # 3.days
|
945
|
-
}
|
946
|
-
end
|
947
|
-
|
948
852
|
it "env vars generate secrets application" do
|
949
853
|
expect(result[1]).to be_success, result[0]
|
950
854
|
|
@@ -961,48 +865,6 @@ shared_examples_for "an application with extra configurable env vars" do
|
|
961
865
|
current = json_on[key]
|
962
866
|
expect(current).to eq(value), "Initiatives Initializer (#{key}) = (#{current}) expected to match Env (#{value})"
|
963
867
|
end
|
964
|
-
|
965
|
-
# Test onto the initializer with ENV vars OFF for the Elections module
|
966
|
-
json_off = initializer_config_for(test_app, env_off, "Decidim::Elections")
|
967
|
-
elections_initializer_off.each do |key, value|
|
968
|
-
current = json_off[key]
|
969
|
-
expect(current).to eq(value), "Elections Initializer (#{key}) = (#{current}) expected to match Env (#{value})"
|
970
|
-
end
|
971
|
-
|
972
|
-
# Test onto the initializer with ENV vars ON for the Elections module
|
973
|
-
json_on = initializer_config_for(test_app, env_on, "Decidim::Elections")
|
974
|
-
elections_initializer_on.each do |key, value|
|
975
|
-
current = json_on[key]
|
976
|
-
expect(current).to eq(value), "Elections Initializer (#{key}) = (#{current}) expected to match Env (#{value})"
|
977
|
-
end
|
978
|
-
|
979
|
-
# Test onto the initializer with ENV vars OFF for the Votings module
|
980
|
-
json_off = initializer_config_for(test_app, env_off, "Decidim::Votings")
|
981
|
-
votings_initializer_off.each do |key, value|
|
982
|
-
current = json_off[key]
|
983
|
-
expect(current).to eq(value), "Votings Initializer (#{key}) = (#{current}) expected to match Env (#{value})"
|
984
|
-
end
|
985
|
-
|
986
|
-
# Test onto the initializer with ENV vars ON for the Votings module
|
987
|
-
json_on = initializer_config_for(test_app, env_on, "Decidim::Votings")
|
988
|
-
votings_initializer_on.each do |key, value|
|
989
|
-
current = json_on[key]
|
990
|
-
expect(current).to eq(value), "Votings Initializer (#{key}) = (#{current}) expected to match Env (#{value})"
|
991
|
-
end
|
992
|
-
|
993
|
-
# Test onto the initializer with ENV vars OFF for the Votings::Census module
|
994
|
-
json_off = initializer_config_for(test_app, env_off, "Decidim::Votings::Census")
|
995
|
-
census_initializer_off.each do |key, value|
|
996
|
-
current = json_off[key]
|
997
|
-
expect(current).to eq(value), "Votings::Census Initializer (#{key}) = (#{current}) expected to match Env (#{value})"
|
998
|
-
end
|
999
|
-
|
1000
|
-
# Test onto the initializer with ENV vars ON for the Votings::Census module
|
1001
|
-
json_on = initializer_config_for(test_app, env_on, "Decidim::Votings::Census")
|
1002
|
-
census_initializer_on.each do |key, value|
|
1003
|
-
current = json_on[key]
|
1004
|
-
expect(current).to eq(value), "Votings::Census Initializer (#{key}) = (#{current}) expected to match Env (#{value})"
|
1005
|
-
end
|
1006
868
|
end
|
1007
869
|
end
|
1008
870
|
|
@@ -1079,7 +941,7 @@ shared_examples_for "an application with storage and queue gems" do
|
|
1079
941
|
|
1080
942
|
queues = %w(mailers vote_reminder reminders default newsletter newsletters_opt_in conference_diplomas events translations user_report block_user metrics exports
|
1081
943
|
close_meeting_reminder)
|
1082
|
-
expect(current["queues"].flatten).to include(*queues), "sidekiq queues (#{current["queues"].flatten}) expected to
|
944
|
+
expect(current["queues"].flatten).to include(*queues), "sidekiq queues (#{current["queues"].flatten}) expected to contain (#{queues})"
|
1083
945
|
end
|
1084
946
|
end
|
1085
947
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-generators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.29.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 0.29.0.rc1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 0.
|
28
|
+
version: 0.29.0.rc1
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: bundler
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,7 +70,6 @@ files:
|
|
70
70
|
- lib/decidim/generators/app_templates/budgets_workflow_random.rb
|
71
71
|
- lib/decidim/generators/app_templates/bullet_initializer.rb
|
72
72
|
- lib/decidim/generators/app_templates/cable.yml.erb
|
73
|
-
- lib/decidim/generators/app_templates/carrierwave.rb
|
74
73
|
- lib/decidim/generators/app_templates/config/boot.rb.tt
|
75
74
|
- lib/decidim/generators/app_templates/database.yml.erb
|
76
75
|
- lib/decidim/generators/app_templates/decidim_application.js
|
@@ -80,6 +79,7 @@ files:
|
|
80
79
|
- lib/decidim/generators/app_templates/docker-compose.yml.erb
|
81
80
|
- lib/decidim/generators/app_templates/dummy_authorization_handler.rb
|
82
81
|
- lib/decidim/generators/app_templates/initializer.rb
|
82
|
+
- lib/decidim/generators/app_templates/package.json
|
83
83
|
- lib/decidim/generators/app_templates/rack_profiler_initializer.rb
|
84
84
|
- lib/decidim/generators/app_templates/secrets.yml.erb
|
85
85
|
- lib/decidim/generators/app_templates/sidekiq.yml.erb
|
@@ -142,14 +142,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 3.
|
145
|
+
version: 3.2.0
|
146
146
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
147
|
requirements:
|
148
|
-
- - "
|
148
|
+
- - ">"
|
149
149
|
- !ruby/object:Gem::Version
|
150
|
-
version:
|
150
|
+
version: 1.3.1
|
151
151
|
requirements: []
|
152
|
-
rubygems_version: 3.
|
152
|
+
rubygems_version: 3.4.10
|
153
153
|
signing_key:
|
154
154
|
specification_version: 4
|
155
155
|
summary: Citizen participation framework for Ruby on Rails.
|
@@ -1,31 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Default CarrierWave setup.
|
4
|
-
#
|
5
|
-
CarrierWave.configure do |config|
|
6
|
-
config.permissions = 0o666
|
7
|
-
config.directory_permissions = 0o777
|
8
|
-
config.storage = :file
|
9
|
-
config.enable_processing = !Rails.env.test?
|
10
|
-
end
|
11
|
-
|
12
|
-
# Setup CarrierWave to use Amazon S3. Add `gem "fog-aws" to your Gemfile.
|
13
|
-
#
|
14
|
-
# CarrierWave.configure do |config|
|
15
|
-
# config.storage = :fog
|
16
|
-
# config.fog_provider = 'fog/aws' # required
|
17
|
-
# config.fog_credentials = {
|
18
|
-
# provider: 'AWS', # required
|
19
|
-
# aws_access_key_id: Rails.application.secrets.aws_access_key_id, # required
|
20
|
-
# aws_secret_access_key: Rails.application.secrets.aws_secret_access_key, # required
|
21
|
-
# region: 'eu-west-1', # optional, defaults to 'us-east-1'
|
22
|
-
# host: 's3.example.com', # optional, defaults to nil
|
23
|
-
# endpoint: 'https://s3.example.com:8080' # optional, defaults to nil
|
24
|
-
# }
|
25
|
-
# config.fog_directory = 'name_of_directory' # required
|
26
|
-
# config.fog_public = false # optional, defaults to true
|
27
|
-
# config.fog_attributes = {
|
28
|
-
# 'Cache-Control' => "max-age=#{365.day.to_i}",
|
29
|
-
# 'X-Content-Type-Options' => "nosniff"
|
30
|
-
# }
|
31
|
-
# end
|