thecore_background_jobs 2.0.6 → 2.0.10

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: db0558244c16ddb2a86eafcd456db44b230f5d2190a4e2dde3a1ea72e50f3b82
4
- data.tar.gz: e712a8cb580afdda5e7d3c030a2990244c3571a5e3a00888cb3c4e5d3706b205
3
+ metadata.gz: 6d7501d7ea472ace89797e67187b1d5b972ed518273f8507abe12507fb4bf2d7
4
+ data.tar.gz: cd1d63cdc2d6e2903b4ed5c85a1a5c667fc103f5b741ef8155957be5eba3cdf4
5
5
  SHA512:
6
- metadata.gz: 5a74c44148a8298f9bfa929e1e8fa13a8049a97be65c6702b752c2626d392ab183f74590edef4118ede5bc9ce3c04cff34593ac84a615dfda07d715cea22c119
7
- data.tar.gz: 2835d44c81b665e85325f59225f9f8d9563d3b7073eb22baea991fdaf683d48ab19198ccd19ed4e507831c6b145d3c45610acfb42e8cdbffff4dd79a612ccee2
6
+ metadata.gz: 3312b147a1339e5da810e59913995e3bcd586c2b96a466d59c3e0d8abff0f26325a5754809df9ba93596ec20cf08f7596b7cdd2a30a4d86e5dcde37cd23ec246
7
+ data.tar.gz: 7563a79bc4c3045ba54139c75e17bea62669ee7c6909f8f7392089cc1c3994674ee673ebb8244b95536f49347bd6d77b1063285bb3b91e81eb5e8d28df23f61f
@@ -1,5 +1,6 @@
1
1
  class DemoWorker
2
2
  include Sidekiq::Worker
3
+ sidekiq_options retry: false, queue: "#{ENV["COMPOSE_PROJECT_NAME"]}_default"
3
4
 
4
5
  def perform(*args)
5
6
  puts "Worker is working"
data/config/routes.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  Rails.application.routes.draw do
2
2
  require 'sidekiq/web'
3
- Sidekiq::Web.set :session_secret, Rails.application.secrets[:secret_key_base]
4
- authenticate do
5
- mount Sidekiq::Web, at: "/app/sidekiq"
3
+
4
+ # Allow any authenticated User with admin capability
5
+ authenticate :user, lambda { |u| u.admin? } do
6
+ mount Sidekiq::Web => '/sidekiq'
6
7
  end
7
- # mount Sidekiq::Web => '/sidekiq', :constraints => AdminConstraint.new
8
8
  end
@@ -1,3 +1,3 @@
1
1
  module ThecoreBackgroundJobs
2
- VERSION = "#{`git describe --tags $(git rev-list --tags --max-count=1)`}"
2
+ VERSION = "#{`git describe --tags $(git rev-list --tags --max-count=1)`.chomp}"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_background_jobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.6
4
+ version: 2.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-12 00:00:00.000000000 Z
11
+ date: 2021-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_backend_commons
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  requirements: []
105
- rubygems_version: 3.0.3
105
+ rubygems_version: 3.0.3.1
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: Thecorized thecore_background_jobs