nulogy_message_bus_producer 3.7.0 → 4.0.0.alpha

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +105 -9
  3. data/db/migrate/20210330204121_add_event_type_to_subscription_events.rb +9 -0
  4. data/lib/nulogy_message_bus_producer/subscription_event.rb +3 -0
  5. data/lib/nulogy_message_bus_producer/subscriptions/postgres_transport.rb +2 -2
  6. data/lib/nulogy_message_bus_producer/version.rb +1 -1
  7. data/lib/nulogy_message_bus_producer.rb +17 -1
  8. data/spec/dummy/bin/setup +9 -8
  9. data/spec/dummy/bin/yarn +7 -15
  10. data/spec/dummy/config/application.rb +6 -11
  11. data/spec/dummy/config/boot.rb +4 -2
  12. data/spec/dummy/config/cable.yml +2 -2
  13. data/spec/dummy/config/environments/development.rb +7 -29
  14. data/spec/dummy/config/environments/production.rb +15 -45
  15. data/spec/dummy/config/environments/test.rb +7 -24
  16. data/spec/dummy/config/initializers/backtrace_silencers.rb +3 -4
  17. data/spec/dummy/config/initializers/filter_parameter_logging.rb +1 -3
  18. data/spec/dummy/config/locales/en.yml +1 -1
  19. data/spec/dummy/config.ru +0 -1
  20. data/spec/dummy/db/schema.rb +4 -1
  21. data/spec/dummy/log/development.log +2553 -0
  22. data/spec/dummy/log/test.log +46636 -0
  23. data/spec/integration/lib/nulogy_message_bus_producer/repopulate_replication_slots_spec.rb +3 -1
  24. data/spec/integration/lib/nulogy_message_bus_producer_spec.rb +25 -0
  25. data/spec/spec_helper.rb +0 -1
  26. data/spec/support/test_graphql_schema.rb +2 -0
  27. metadata +67 -104
  28. data/spec/dummy/config/initializers/content_security_policy.rb +0 -30
  29. data/spec/dummy/config/initializers/new_framework_defaults_6_1.rb +0 -67
  30. data/spec/dummy/config/initializers/permissions_policy.rb +0 -11
  31. data/spec/dummy/config/storage.yml +0 -34
  32. data/spec/support/skip.rb +0 -9
@@ -14,7 +14,9 @@ RSpec.describe NulogyMessageBusProducer::RepopulateReplicationSlots do
14
14
  cleanup_everything
15
15
  end
16
16
 
17
- it "generates events", skip: flakey_in_ci do
17
+ # TODO: This test is incredibly flakey.
18
+ # It rarely works in CI, and ocassionally works locally.
19
+ xit "generates events" do
18
20
  Kafka.create_topic(topic_name)
19
21
  consumer = Kafka.setup_kafka_consumer(topic_name)
20
22
 
@@ -0,0 +1,25 @@
1
+ require "integration_spec_helper"
2
+
3
+ RSpec.describe NulogyMessageBusProducer do
4
+ describe "publishing events" do
5
+ it "publishes an event" do
6
+ company_uuid = SecureRandom.uuid
7
+
8
+ described_class.publish(
9
+ topic: "some-topic",
10
+ type: "some-type",
11
+ company_uuid: company_uuid,
12
+ data: {
13
+ field: "value"
14
+ }
15
+ )
16
+
17
+ message = NulogyMessageBusProducer::SubscriptionEvent.last
18
+
19
+ expect(message).to be_present
20
+ expect(message.topic_name).to eq("some-topic")
21
+ expect(message.company_uuid).to eq(company_uuid)
22
+ expect(message.event_json).to eq({"field" => "value"})
23
+ end
24
+ end
25
+ end
data/spec/spec_helper.rb CHANGED
@@ -56,5 +56,4 @@ RSpec.configure do |config|
56
56
  end
57
57
 
58
58
  config.include(SubscriptionHelpers)
59
- config.extend(Skip)
60
59
  end
@@ -40,6 +40,8 @@ module NulogyMessageBusProducer
40
40
  end
41
41
 
42
42
  class TestSchema < GraphQL::Schema
43
+ use GraphQL::Execution::Interpreter
44
+ use GraphQL::Analysis::AST
43
45
  use NulogyMessageBusProducer::Subscriptions::PostgresTransport
44
46
 
45
47
  query TestQuery
metadata CHANGED
@@ -1,49 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nulogy_message_bus_producer
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.0
4
+ version: 4.0.0.alpha
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nulogy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-01 00:00:00.000000000 Z
11
+ date: 2021-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '1.12'
20
- - - "<"
17
+ - - "~>"
21
18
  - !ruby/object:Gem::Version
22
- version: '1.14'
19
+ version: 1.11.4
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: '1.12'
30
- - - "<"
24
+ - - "~>"
31
25
  - !ruby/object:Gem::Version
32
- version: '1.14'
26
+ version: 1.11.4
33
27
  - !ruby/object:Gem::Dependency
34
- name: railties
28
+ name: rails
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - ">="
38
32
  - !ruby/object:Gem::Version
39
- version: '5.1'
33
+ version: '5'
40
34
  type: :runtime
41
35
  prerelease: false
42
36
  version_requirements: !ruby/object:Gem::Requirement
43
37
  requirements:
44
38
  - - ">="
45
39
  - !ruby/object:Gem::Version
46
- version: '5.1'
40
+ version: '5'
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: bundler-audit
49
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,20 +52,6 @@ dependencies:
58
52
  - - '='
59
53
  - !ruby/object:Gem::Version
60
54
  version: 0.7.0.1
61
- - !ruby/object:Gem::Dependency
62
- name: listen
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '3.5'
68
- type: :development
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: '3.5'
75
55
  - !ruby/object:Gem::Dependency
76
56
  name: pg
77
57
  requirement: !ruby/object:Gem::Requirement
@@ -114,20 +94,6 @@ dependencies:
114
94
  - - ">="
115
95
  - !ruby/object:Gem::Version
116
96
  version: '0'
117
- - !ruby/object:Gem::Dependency
118
- name: rails
119
- requirement: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - ">="
122
- - !ruby/object:Gem::Version
123
- version: '6'
124
- type: :development
125
- prerelease: false
126
- version_requirements: !ruby/object:Gem::Requirement
127
- requirements:
128
- - - ">="
129
- - !ruby/object:Gem::Version
130
- version: '6'
131
97
  - !ruby/object:Gem::Dependency
132
98
  name: rake
133
99
  requirement: !ruby/object:Gem::Requirement
@@ -242,7 +208,7 @@ dependencies:
242
208
  version: 1.40.0
243
209
  description: Nulogy's code for producing to the Message Bus
244
210
  email:
245
- - platform-engineering@nulogy.com
211
+ - tass@nulogy.com
246
212
  executables: []
247
213
  extensions: []
248
214
  extra_rdoc_files: []
@@ -251,6 +217,7 @@ files:
251
217
  - Rakefile
252
218
  - db/migrate/20200611150212_create_public_subscriptions_and_events_tables.rb
253
219
  - db/migrate/20201005150212_rename_tenant_id_and_public.rb
220
+ - db/migrate/20210330204121_add_event_type_to_subscription_events.rb
254
221
  - lib/nulogy_message_bus_producer.rb
255
222
  - lib/nulogy_message_bus_producer/application_record.rb
256
223
  - lib/nulogy_message_bus_producer/base_subscription.rb
@@ -303,22 +270,20 @@ files:
303
270
  - spec/dummy/config/initializers/application_controller_renderer.rb
304
271
  - spec/dummy/config/initializers/assets.rb
305
272
  - spec/dummy/config/initializers/backtrace_silencers.rb
306
- - spec/dummy/config/initializers/content_security_policy.rb
307
273
  - spec/dummy/config/initializers/cookies_serializer.rb
308
274
  - spec/dummy/config/initializers/filter_parameter_logging.rb
309
275
  - spec/dummy/config/initializers/inflections.rb
310
276
  - spec/dummy/config/initializers/mime_types.rb
311
- - spec/dummy/config/initializers/new_framework_defaults_6_1.rb
312
- - spec/dummy/config/initializers/permissions_policy.rb
313
277
  - spec/dummy/config/initializers/wrap_parameters.rb
314
278
  - spec/dummy/config/locales/en.yml
315
279
  - spec/dummy/config/puma.rb
316
280
  - spec/dummy/config/routes.rb
317
281
  - spec/dummy/config/secrets.yml
318
282
  - spec/dummy/config/spring.rb
319
- - spec/dummy/config/storage.yml
320
283
  - spec/dummy/db/migrate/20201005164116_create_active_storage_tables.active_storage.rb
321
284
  - spec/dummy/db/schema.rb
285
+ - spec/dummy/log/development.log
286
+ - spec/dummy/log/test.log
322
287
  - spec/dummy/package.json
323
288
  - spec/dummy/public/404.html
324
289
  - spec/dummy/public/422.html
@@ -334,6 +299,7 @@ files:
334
299
  - spec/integration/lib/nulogy_message_bus_producer/subscriptions/postgres_transport_spec.rb
335
300
  - spec/integration/lib/nulogy_message_bus_producer/subscriptions/query_validator_spec.rb
336
301
  - spec/integration/lib/nulogy_message_bus_producer/subscriptions/risky_subscription_blocker_spec.rb
302
+ - spec/integration/lib/nulogy_message_bus_producer_spec.rb
337
303
  - spec/integration_spec_helper.rb
338
304
  - spec/nulogy_message_bus_producer/configuration/query_parser_spec.rb
339
305
  - spec/nulogy_message_bus_producer/subscriptions/subscription_spec.rb
@@ -341,7 +307,6 @@ files:
341
307
  - spec/support/kafka.rb
342
308
  - spec/support/kafka_connect.rb
343
309
  - spec/support/shared_examples/subscription_validations.rb
344
- - spec/support/skip.rb
345
310
  - spec/support/spec_utils.rb
346
311
  - spec/support/sql_helpers.rb
347
312
  - spec/support/subscription_helpers.rb
@@ -355,94 +320,92 @@ require_paths:
355
320
  - lib
356
321
  required_ruby_version: !ruby/object:Gem::Requirement
357
322
  requirements:
358
- - - ">="
323
+ - - "~>"
359
324
  - !ruby/object:Gem::Version
360
- version: '2.6'
325
+ version: '2.0'
361
326
  required_rubygems_version: !ruby/object:Gem::Requirement
362
327
  requirements:
363
- - - ">="
328
+ - - ">"
364
329
  - !ruby/object:Gem::Version
365
- version: '0'
330
+ version: 1.3.1
366
331
  requirements: []
367
- rubygems_version: 3.2.15
332
+ rubygems_version: 3.0.3
368
333
  signing_key:
369
334
  specification_version: 4
370
335
  summary: Nulogy's code for producing to the Message Bus
371
336
  test_files:
372
- - spec/dummy/Rakefile
373
- - spec/dummy/app/assets/config/manifest.js
374
- - spec/dummy/app/assets/javascripts/application.js
375
- - spec/dummy/app/assets/javascripts/cable.js
376
- - spec/dummy/app/assets/stylesheets/application.css
377
- - spec/dummy/app/channels/application_cable/channel.rb
378
- - spec/dummy/app/channels/application_cable/connection.rb
379
- - spec/dummy/app/controllers/application_controller.rb
380
- - spec/dummy/app/controllers/dummy_controller.rb
381
- - spec/dummy/app/helpers/application_helper.rb
382
- - spec/dummy/app/jobs/application_job.rb
337
+ - spec/spec_helper.rb
383
338
  - spec/dummy/app/mailers/application_mailer.rb
384
339
  - spec/dummy/app/models/application_record.rb
340
+ - spec/dummy/app/jobs/application_job.rb
341
+ - spec/dummy/app/controllers/application_controller.rb
342
+ - spec/dummy/app/controllers/dummy_controller.rb
385
343
  - spec/dummy/app/views/layouts/application.html.erb
386
344
  - spec/dummy/app/views/layouts/mailer.html.erb
387
345
  - spec/dummy/app/views/layouts/mailer.text.erb
388
- - spec/dummy/bin/bundle
389
- - spec/dummy/bin/rails
346
+ - spec/dummy/app/assets/config/manifest.js
347
+ - spec/dummy/app/assets/javascripts/cable.js
348
+ - spec/dummy/app/assets/javascripts/application.js
349
+ - spec/dummy/app/assets/stylesheets/application.css
350
+ - spec/dummy/app/helpers/application_helper.rb
351
+ - spec/dummy/app/channels/application_cable/connection.rb
352
+ - spec/dummy/app/channels/application_cable/channel.rb
353
+ - spec/dummy/bin/update
390
354
  - spec/dummy/bin/rake
391
355
  - spec/dummy/bin/setup
392
- - spec/dummy/bin/update
356
+ - spec/dummy/bin/bundle
393
357
  - spec/dummy/bin/yarn
394
- - spec/dummy/config/application.rb
395
- - spec/dummy/config/boot.rb
358
+ - spec/dummy/bin/rails
359
+ - spec/dummy/config/secrets.yml
360
+ - spec/dummy/config/routes.rb
361
+ - spec/dummy/config/locales/en.yml
396
362
  - spec/dummy/config/cable.yml
397
- - spec/dummy/config/database.yml
398
- - spec/dummy/config/environment.rb
399
- - spec/dummy/config/environments/development.rb
400
363
  - spec/dummy/config/environments/production.rb
364
+ - spec/dummy/config/environments/development.rb
401
365
  - spec/dummy/config/environments/test.rb
366
+ - spec/dummy/config/spring.rb
367
+ - spec/dummy/config/environment.rb
368
+ - spec/dummy/config/application.rb
369
+ - spec/dummy/config/puma.rb
370
+ - spec/dummy/config/database.yml
371
+ - spec/dummy/config/boot.rb
402
372
  - spec/dummy/config/initializers/application_controller_renderer.rb
403
- - spec/dummy/config/initializers/assets.rb
404
373
  - spec/dummy/config/initializers/backtrace_silencers.rb
405
- - spec/dummy/config/initializers/content_security_policy.rb
406
- - spec/dummy/config/initializers/cookies_serializer.rb
407
- - spec/dummy/config/initializers/filter_parameter_logging.rb
408
- - spec/dummy/config/initializers/inflections.rb
409
374
  - spec/dummy/config/initializers/mime_types.rb
410
- - spec/dummy/config/initializers/new_framework_defaults_6_1.rb
411
- - spec/dummy/config/initializers/permissions_policy.rb
375
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
412
376
  - spec/dummy/config/initializers/wrap_parameters.rb
413
- - spec/dummy/config/locales/en.yml
414
- - spec/dummy/config/puma.rb
415
- - spec/dummy/config/routes.rb
416
- - spec/dummy/config/secrets.yml
417
- - spec/dummy/config/spring.rb
418
- - spec/dummy/config/storage.yml
377
+ - spec/dummy/config/initializers/assets.rb
378
+ - spec/dummy/config/initializers/cookies_serializer.rb
379
+ - spec/dummy/config/initializers/inflections.rb
419
380
  - spec/dummy/config.ru
420
- - spec/dummy/db/migrate/20201005164116_create_active_storage_tables.active_storage.rb
421
- - spec/dummy/db/schema.rb
422
- - spec/dummy/package.json
423
- - spec/dummy/public/404.html
381
+ - spec/dummy/Rakefile
382
+ - spec/dummy/public/favicon.ico
424
383
  - spec/dummy/public/422.html
384
+ - spec/dummy/public/apple-touch-icon.png
425
385
  - spec/dummy/public/500.html
386
+ - spec/dummy/public/404.html
426
387
  - spec/dummy/public/apple-touch-icon-precomposed.png
427
- - spec/dummy/public/apple-touch-icon.png
428
- - spec/dummy/public/favicon.ico
429
- - spec/integration/lib/nulogy_message_bus_producer/config_spec.rb
388
+ - spec/dummy/package.json
389
+ - spec/dummy/db/schema.rb
390
+ - spec/dummy/db/migrate/20201005164116_create_active_storage_tables.active_storage.rb
391
+ - spec/dummy/log/test.log
392
+ - spec/dummy/log/development.log
393
+ - spec/integration_spec_helper.rb
394
+ - spec/integration/lib/nulogy_message_bus_producer_spec.rb
430
395
  - spec/integration/lib/nulogy_message_bus_producer/repopulate_replication_slots_spec.rb
431
- - spec/integration/lib/nulogy_message_bus_producer/subscription_spec.rb
396
+ - spec/integration/lib/nulogy_message_bus_producer/config_spec.rb
397
+ - spec/integration/lib/nulogy_message_bus_producer/subscriptions/risky_subscription_blocker_spec.rb
432
398
  - spec/integration/lib/nulogy_message_bus_producer/subscriptions/finder_spec.rb
433
- - spec/integration/lib/nulogy_message_bus_producer/subscriptions/no_variables_spec.rb
434
399
  - spec/integration/lib/nulogy_message_bus_producer/subscriptions/postgres_transport_spec.rb
435
400
  - spec/integration/lib/nulogy_message_bus_producer/subscriptions/query_validator_spec.rb
436
- - spec/integration/lib/nulogy_message_bus_producer/subscriptions/risky_subscription_blocker_spec.rb
437
- - spec/integration_spec_helper.rb
438
- - spec/nulogy_message_bus_producer/configuration/query_parser_spec.rb
439
- - spec/nulogy_message_bus_producer/subscriptions/subscription_spec.rb
440
- - spec/spec_helper.rb
441
- - spec/support/kafka.rb
401
+ - spec/integration/lib/nulogy_message_bus_producer/subscriptions/no_variables_spec.rb
402
+ - spec/integration/lib/nulogy_message_bus_producer/subscription_spec.rb
442
403
  - spec/support/kafka_connect.rb
443
- - spec/support/shared_examples/subscription_validations.rb
444
- - spec/support/skip.rb
404
+ - spec/support/subscription_helpers.rb
405
+ - spec/support/kafka.rb
445
406
  - spec/support/spec_utils.rb
446
407
  - spec/support/sql_helpers.rb
447
- - spec/support/subscription_helpers.rb
408
+ - spec/support/shared_examples/subscription_validations.rb
448
409
  - spec/support/test_graphql_schema.rb
410
+ - spec/nulogy_message_bus_producer/configuration/query_parser_spec.rb
411
+ - spec/nulogy_message_bus_producer/subscriptions/subscription_spec.rb
@@ -1,30 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Define an application-wide content security policy
4
- # For further information see the following documentation
5
- # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
6
-
7
- # Rails.application.config.content_security_policy do |policy|
8
- # policy.default_src :self, :https
9
- # policy.font_src :self, :https, :data
10
- # policy.img_src :self, :https, :data
11
- # policy.object_src :none
12
- # policy.script_src :self, :https
13
- # policy.style_src :self, :https
14
- # # If you are using webpack-dev-server then specify webpack-dev-server host
15
- # policy.connect_src :self, :https, "http://localhost:3035", "ws://localhost:3035" if Rails.env.development?
16
-
17
- # # Specify URI for violation reports
18
- # # policy.report_uri "/csp-violation-report-endpoint"
19
- # end
20
-
21
- # If you are using UJS then enable automatic nonce generation
22
- # Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) }
23
-
24
- # Set the nonce only to specific directives
25
- # Rails.application.config.content_security_policy_nonce_directives = %w(script-src)
26
-
27
- # Report CSP violations to a specified URI
28
- # For further information see the following documentation:
29
- # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
30
- # Rails.application.config.content_security_policy_report_only = true
@@ -1,67 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
- #
3
- # This file contains migration options to ease your Rails 6.1 upgrade.
4
- #
5
- # Once upgraded flip defaults one by one to migrate to the new default.
6
- #
7
- # Read the Guide for Upgrading Ruby on Rails for more info on each option.
8
-
9
- # Support for inversing belongs_to -> has_many Active Record associations.
10
- # Rails.application.config.active_record.has_many_inversing = true
11
-
12
- # Track Active Storage variants in the database.
13
- # Rails.application.config.active_storage.track_variants = true
14
-
15
- # Apply random variation to the delay when retrying failed jobs.
16
- # Rails.application.config.active_job.retry_jitter = 0.15
17
-
18
- # Stop executing `after_enqueue`/`after_perform` callbacks if
19
- # `before_enqueue`/`before_perform` respectively halts with `throw :abort`.
20
- # Rails.application.config.active_job.skip_after_callbacks_if_terminated = true
21
-
22
- # Specify cookies SameSite protection level: either :none, :lax, or :strict.
23
- #
24
- # This change is not backwards compatible with earlier Rails versions.
25
- # It's best enabled when your entire app is migrated and stable on 6.1.
26
- # Rails.application.config.action_dispatch.cookies_same_site_protection = :lax
27
-
28
- # Generate CSRF tokens that are encoded in URL-safe Base64.
29
- #
30
- # This change is not backwards compatible with earlier Rails versions.
31
- # It's best enabled when your entire app is migrated and stable on 6.1.
32
- # Rails.application.config.action_controller.urlsafe_csrf_tokens = true
33
-
34
- # Specify whether `ActiveSupport::TimeZone.utc_to_local` returns a time with an
35
- # UTC offset or a UTC time.
36
- # ActiveSupport.utc_to_local_returns_utc_offset_times = true
37
-
38
- # Change the default HTTP status code to `308` when redirecting non-GET/HEAD
39
- # requests to HTTPS in `ActionDispatch::SSL` middleware.
40
- # Rails.application.config.action_dispatch.ssl_default_redirect_status = 308
41
-
42
- # Use new connection handling API. For most applications this won't have any
43
- # effect. For applications using multiple databases, this new API provides
44
- # support for granular connection swapping.
45
- # Rails.application.config.active_record.legacy_connection_handling = false
46
-
47
- # Make `form_with` generate non-remote forms by default.
48
- # Rails.application.config.action_view.form_with_generates_remote_forms = false
49
-
50
- # Set the default queue name for the analysis job to the queue adapter default.
51
- # Rails.application.config.active_storage.queues.analysis = nil
52
-
53
- # Set the default queue name for the purge job to the queue adapter default.
54
- # Rails.application.config.active_storage.queues.purge = nil
55
-
56
- # Set the default queue name for the incineration job to the queue adapter default.
57
- # Rails.application.config.action_mailbox.queues.incineration = nil
58
-
59
- # Set the default queue name for the routing job to the queue adapter default.
60
- # Rails.application.config.action_mailbox.queues.routing = nil
61
-
62
- # Set the default queue name for the mail deliver job to the queue adapter default.
63
- # Rails.application.config.action_mailer.deliver_later_queue_name = nil
64
-
65
- # Generate a `Link` header that gives a hint to modern browsers about
66
- # preloading assets when using `javascript_include_tag` and `stylesheet_link_tag`.
67
- # Rails.application.config.action_view.preload_links_header = true
@@ -1,11 +0,0 @@
1
- # Define an application-wide HTTP permissions policy. For further
2
- # information see https://developers.google.com/web/updates/2018/06/feature-policy
3
- #
4
- # Rails.application.config.permissions_policy do |f|
5
- # f.camera :none
6
- # f.gyroscope :none
7
- # f.microphone :none
8
- # f.usb :none
9
- # f.fullscreen :self
10
- # f.payment :self, "https://secure.example.com"
11
- # end
@@ -1,34 +0,0 @@
1
- test:
2
- service: Disk
3
- root: <%= Rails.root.join("tmp/storage") %>
4
-
5
- local:
6
- service: Disk
7
- root: <%= Rails.root.join("storage") %>
8
-
9
- # Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
10
- # amazon:
11
- # service: S3
12
- # access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
13
- # secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
14
- # region: us-east-1
15
- # bucket: your_own_bucket
16
-
17
- # Remember not to checkin your GCS keyfile to a repository
18
- # google:
19
- # service: GCS
20
- # project: your_project
21
- # credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
22
- # bucket: your_own_bucket
23
-
24
- # Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
25
- # microsoft:
26
- # service: AzureStorage
27
- # storage_account_name: your_account_name
28
- # storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
29
- # container: your_container_name
30
-
31
- # mirror:
32
- # service: Mirror
33
- # primary: local
34
- # mirrors: [ amazon, google, microsoft ]
data/spec/support/skip.rb DELETED
@@ -1,9 +0,0 @@
1
- module Skip
2
- def flakey_in_ci
3
- if ENV.fetch("CI", false)
4
- "This spec is terribly flakey in CI, so we only run it locally"
5
- else
6
- false
7
- end
8
- end
9
- end