mission_control-jobs 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 12e13fd449713b2cab7915721776a561c533d47e3e88e9a6ca52d3b889204aa2
4
- data.tar.gz: 3549e331263b4e6bd2ff7ab86903caafce60da891ebfc13dedcbaa21c77a350a
3
+ metadata.gz: 2bba1e3be2d257eea8a3956ca3f6b8c9e6708f2fc81fe23290953ac66ecd79b0
4
+ data.tar.gz: c470df35a98c7f0f90163540dca2d3c8bd9ca14128ae283731c0e920fdae140e
5
5
  SHA512:
6
- metadata.gz: 0f59744479a144daf0de7009b9dd3fbf2634becc242dbb24919a2129a3916999b9c0aabb6ec6ba736da19f80ff225f56422c8f8a465c3febb11df1708fefdf67
7
- data.tar.gz: 22f66b38214a110c9019714c3a091b750801f2898dfb10b2dff960b5d1afdb83e09321c92e4197eed295aeee2e9fdf02076026024157985e953977fef46e122f
6
+ metadata.gz: 8a6068c3fa2f86d32f07fb458b644efb9e8e0661f1feb65e26bf41d4051bca594ab29d15819b9ab94051451015b1d051bf33b7152797c87ec1952a074f968b2c
7
+ data.tar.gz: 972eb81ce61459dcdd2e881ce88a5bf69da431f1b2a17ed6e10a3bf8572222f27b111035747c46492fc459b485542b5dfd072cfb04c4ae1dca6a0cbc5b73bc0c
data/README.md CHANGED
@@ -54,8 +54,6 @@ For example, if you're using the Dockerfile generated by Rails with an API-only
54
54
  RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile
55
55
  ```
56
56
 
57
- *Note: Legacy CSS bundlers `sass-rails` and `sassc-rails` may fail to compile some of the CSS vendored into this library from [Bulma](https://github.com/jgthms/bulma), which was created in [Dart SASS](https://sass-lang.com/dart-sass/). You will therefore need to upgrade to `dartsass-rails` or some library that relies on it, like `cssbundling-rails`.*
58
-
59
57
  ### Authentication
60
58
 
61
59
  Mission Control comes with **HTTP basic authentication enabled and closed** by default. Credentials are stored in [Rails's credentials](https://edgeguides.rubyonrails.org/security.html#custom-credentials) like this:
@@ -76,6 +74,15 @@ To set them up for different environments you can use the `RAILS_ENV` environmen
76
74
  RAILS_ENV=production bin/rails mission_control:jobs:authentication:configure
77
75
  ```
78
76
 
77
+ User and password can also be configured by hand like this:
78
+
79
+ ```ruby
80
+ Rails.application.configure do
81
+ MissionControl::Jobs.http_basic_auth_user = "dev"
82
+ MissionControl::Jobs.http_basic_auth_password = "secret"
83
+ end
84
+ ```
85
+
79
86
  #### Custom authentication
80
87
 
81
88
  You can provide your own authentication mechanism, for example, if you have a certain type of admin user in your app that can access Mission Control. To make this easier, you can specify a different controller as the base class for Mission Control's controllers. By default, Mission Control's controllers will extend the host app's `ApplicationController`, but you can change this easily:
@@ -158,19 +165,19 @@ SERVERS_BY_APP.each do |app, servers|
158
165
  end
159
166
 
160
167
  # Default:
161
- #
168
+ #
162
169
  # @return Array<String, ActiveJob::QueueAdapters::Base)
163
170
  # An array where:
164
171
  # * the String represents the symbolic name for this server within the UI
165
172
  # * ActiveJob::QueueAdapters::Base adapter instance used to access this Application Server/Service
166
- [ server, queue_adapter ]
167
-
173
+ [ server, queue_adapter ]
174
+
168
175
  # Optional return formats:
169
- #
176
+ #
170
177
  # @return Array<String, Array<ActiveJob::QueueAdapters::Base>>
171
- # * This is equivalent, and behaves identically to, the format the default format above.
178
+ # * This is equivalent, and behaves identically to, the format the default format above.
172
179
  # [ server, [ queue_adapter ]] # without optional backtrace cleaner
173
- #
180
+ #
174
181
  # @return Array<String, Array<ActiveJob::QueueAdapters::Base, ActiveSupport::BacktraceCleaner>>
175
182
  # * This format adds an optional ActiveSupport::BacktraceCleaner to override the system wide
176
183
  # backtrace cleaner for *this* Application Server/Service.
@@ -246,7 +253,7 @@ Available job servers:
246
253
 
247
254
  And then:
248
255
  ```
249
- >> connect_to "hey:solid_queue"
256
+ >> connect_to hey:solid_queue
250
257
  Connected to hey:solid_queue
251
258
  ```
252
259